/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --bg-2: #111821;
  --ink: #eef2f6;
  --ink-soft: #b8c2cc;
  --accent: #f4b266;
  --accent-2: #5ad7b7;
  --card: rgba(17, 24, 33, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #282828;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 18px 80px;
}

.main-menu {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-brand {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  color: var(--ink);
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.menu-toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
  cursor: pointer;
}

.menu-panel {
  display: none;
  padding: 24px 18px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-panel.open {
  display: block;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 16px;
  max-width: 420px;
  justify-content: flex-start;
}

.menu-tabs button {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #1f2937;
  padding: 8px 14px;
  cursor: pointer;
  height: auto;
}

.menu-tabs button.active {
  background: #e8f0ff;
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
}

.menu-form {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  width: min(420px, 100%);
  background: #ffffff;
  color: #0b0e11;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.menu-form-inline {
  width: 100%;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 8px 0 0;
}

.menu-form-inline .menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-form-inline .menu-check-label {
  overflow-wrap: anywhere;
}

.menu-form-inline input,
.menu-form-inline select {
  width: 100%;
  max-width: 100%;
}

.menu-form > label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 0.95rem;
  color: #1f2937;
}

.menu-form input,
.menu-form select {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.12);
}

.menu-form input:focus,
.menu-form select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.6);
}

.menu-input-search {
  padding-left: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 24 24'><path d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8L20 20.5 20.5 20l-5-6zM6.5 11a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.menu-form option {
  color: #0b0e11;
  background: #ffffff;
}

.menu-checks {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.menu-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  grid-gap: 6px 12px;
  gap: 6px 12px;
}

.menu-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #1f2937;
  margin: 0;
}

.menu-check input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.menu-check.is-checked input {
  background: #2563eb;
  border-color: #1d4ed8;
}

.menu-check.is-checked input::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.menu-check--pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  height: 34px;
}

.menu-check--pill input {
  border-radius: 50%;
}

.menu-check--pill.is-checked {
  background: #e9f2ff;
  border-color: #9cc0ff;
  color: #1d4ed8;
}

.menu-check-label {
  line-height: 1.2;
}

.menu-actions {
  display: flex;
  gap: 12px;
}

.menu-actions button {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.menu-error {
  color: #b91c1c;
  font-size: 0.95rem;
}

.menu-warning {
  color: #92400e;
  font-size: 0.9rem;
}

.menu-muted {
  color: #475569;
  font-size: 0.9rem;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.menu-links a {
  color: #475569;
}

.menu-intro {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  margin-bottom: 6px;
}

.menu-intro-title {
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.menu-intro-subtitle {
  color: #2563eb;
  font-weight: 600;
  font-size: 1.05rem;
}

.menu-intro-description {
  color: #475569;
  font-size: 0.9rem;
}

.menu-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.menu-block--controls {
  margin-top: 6px;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, rgba(17, 26, 35, 0.96), rgba(20, 30, 40, 0.9));
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 12px 0 8px;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-1 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.info-card h1 {
  margin-top: 0;
}

.info-card p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.info-card h2 {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.mapa-wrapper {
  margin-top: 18px;
}

.mapa-container {
  position: relative;
  width: 1024px;
  height: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.mapa-img {
  width: 1024px;
  height: 800px;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.mapa-overlay {
  position: absolute;
  top: 35px;
  left: 27px;
  width: 742px;
  height: 510px;
  pointer-events: none;
}

.mapa-overlay img {
  position: absolute;
  inset: 0;
  width: 742px;
  height: 510px;
  display: block;
}

.mapa-selected {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 12, 16, 0.85);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.mapa-selected a {
  color: var(--accent);
}

.mapa-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 8px 12px;
  gap: 8px 12px;
  margin-top: 20px;
}

.mapa-list a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink-soft);
}

.mapa-list a:hover {
  color: var(--ink);
  border-color: rgba(244, 178, 102, 0.6);
}

.mapa-section {
  margin-top: 24px;
}

.access-form {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin: 16px 0;
}

.access-form label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.access-form input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
}

.access-form button {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(244, 178, 102, 0.9), rgba(90, 215, 183, 0.9));
  color: #0b0e11;
  cursor: pointer;
  font-weight: 600;
}

.kv {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.kv strong {
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.carousel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.carousel-frame {
  background: #0f151c;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #0c1117;
}

.carousel-caption {
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.carousel-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 10, 14, 0.34);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.carousel-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: carousel-spin 0.85s linear infinite;
}

@keyframes carousel-spin {
  to {
    transform: rotate(360deg);
  }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-controls button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.carousel-count {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-frame {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: grayscale(20%);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.table th {
  font-weight: 700;
}

.info-button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 12, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  width: min(680px, 100%);
  background: #0f151c;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.notice {
  background: rgba(244, 178, 102, 0.1);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
}

.contact-form button {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(244, 178, 102, 0.9), rgba(90, 215, 183, 0.9));
  color: #0b0e11;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.site-footer {
  padding: 24px 18px 16px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.9);
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 0.86rem;
  color: #d9e2ea;
  margin-top: 2px;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.school-page .school-hero-copy .muted {
  margin-top: 15px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.results-sort a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.results-sort a.active {
  background: rgba(244, 178, 102, 0.15);
  border-color: rgba(244, 178, 102, 0.5);
}

.results-list {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
}

.result-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(10, 15, 20, 0.6);
}

.result-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.result-meta {
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.result-score {
  min-width: 90px;
  text-align: center;
}

.score-chip {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.score-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.score-high {
  background: rgba(90, 215, 183, 0.18);
  border-color: rgba(90, 215, 183, 0.5);
}

.score-mid {
  background: rgba(244, 178, 102, 0.18);
  border-color: rgba(244, 178, 102, 0.5);
}

.score-low {
  background: rgba(255, 255, 255, 0.08);
}

.score-na {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}

.pagination {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination a {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.pagination a.active {
  background: var(--accent);
  color: #0b0e11;
  border-color: transparent;
}

.ellipsis {
  color: var(--ink-soft);
  padding: 0 4px;
}

.range-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.range-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.range-description {
  color: var(--ink-soft);
  margin-top: 6px;
}

.range-controls {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
}

.range-sliders {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.range-slider {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.range-slider label {
  font-size: 0.9rem;
}

.range-slider input[type="range"] {
  width: 100%;
}

.range-controls label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 0.9rem;
}

.range-controls select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.range-label {
  font-weight: 600;
  color: var(--accent);
}

.range-submit {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.quadrant-header {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.quadrant-map {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(9, 14, 20, 0.7);
}

@media (max-width: 720px) {
  .hero {
    padding: 24px;
  }

  .menu-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-actions {
    flex-direction: column;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-score {
    text-align: left;
  }

  .range-controls {
    grid-template-columns: 1fr;
  }

  .mapa-container {
    display: none;
  }
}

@media (max-width: 1100px) {
  .mapa-container {
    display: none;
  }
}

/* Legacy-inspired search listing */
.search-page .container {
  width: min(1030px, calc(100% - 24px));
}

.search-page .search-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-gap: 0;
  gap: 0;
  align-items: start;
}

.search-page .search-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.search-page .search-sidebar {
  background: transparent;
  color: #101010;
  border: 0;
  border-left: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}

.search-page .sidebar-ads {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #cfcfcf;
}

.search-page .sidebar-ads-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.search-page .sidebar-ads img {
  display: block;
  width: 100%;
  height: auto;
}

.search-page .sidebar-ads-llamanos {
  margin-bottom: 8px;
}

.search-page .search-sidebar-title {
  color: #1e70b9;
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 0.95;
}

.search-page .search-sidebar-desc {
  margin: 8px 0 12px;
  font-size: 0.93rem;
}

.search-page .search-sidebar-form {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.search-page .search-sidebar-form label {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

.search-page .search-sidebar-form input,
.search-page .search-sidebar-form select {
  width: 100%;
  height: 30px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  padding: 4px 6px;
  font-size: 0.95rem;
}

.search-page .search-sidebar-form button {
  margin-top: 4px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: #63af55;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.search-page .search-legacy-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.88rem;
}

.search-page .search-query-banner {
  margin: -20px -20px 14px;
  padding: 10px 14px;
  background: #6f88e2;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.search-page .search-query-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.search-page .search-query-text {
  font-size: 0.86rem;
  margin-top: 6px;
}

.search-page .results-header .section-title {
  color: #1a58b8;
  font-size: 1.42rem;
  margin-bottom: 2px;
}

.search-page .muted {
  color: #2a2a2a;
}

.search-page .results-sort span {
  color: #111111;
}

.search-page .results-sort a {
  background: #ffffff;
  border-color: #b9b9b9;
  color: #1a58b8;
}

.search-page .results-sort a.active {
  background: #ffd9a6;
  border-color: #f59316;
  color: #111111;
}

.search-page .legacy-results-list {
  gap: 10px;
}

.search-page .legacy-results-head {
  display: grid;
  grid-template-columns: 84px 1fr 150px 96px;
  grid-gap: 12px;
  gap: 12px;
  color: #0f57be;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0 0 4px;
  border-bottom: 1px solid #bdbdbd;
}

.search-page .legacy-results-head span:nth-child(1),
.search-page .legacy-results-head span:nth-child(3),
.search-page .legacy-results-head span:nth-child(4) {
  text-align: center;
}

.search-page .legacy-results-head span:nth-child(2) {
  text-align: left;
}

.search-page .legacy-result-row {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #c7c7c7;
  padding: 8px 0 10px;
  background: transparent;
  color: #111111;
  display: grid;
  grid-template-columns: 84px 1fr 150px 96px;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.search-page .legacy-shield-col {
  display: grid;
  place-items: center;
}

.search-page .legacy-shield-placeholder {
  width: 78px;
  height: 52px;
  border: 1px solid #9aa9c8;
  border-radius: 2px;
  background:
    linear-gradient(120deg, #325fa7 0%, #4b84d7 45%, #8eb4f0 100%);
}

.search-page .escudo_img_general {
  width: 84px;
  height: 48px;
  object-fit: none;
  border: 1px solid #9aa9c8;
  border-radius: 2px;
  display: block;
  background: #d8dfe8;
}

.search-page .legacy-school-col h3 {
  font-size: 0.94rem;
  text-transform: none;
  margin: 0 0 4px;
}

.search-page .legacy-school-col h3 a {
  color: #0f57be;
}

.search-page .legacy-school-col .result-meta,
.search-page .legacy-school-col .result-tags {
  color: #2f2f2f;
  font-size: 0.8rem;
}

.search-page .result-inline-flags {
  display: none;
}

.search-page .result-meta-flags {
  display: none;
}

.search-page .legacy-control-col {
  text-align: center;
  color: #d61111;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.08;
}

.search-page .result-score {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: center;
}

.search-page .legacy-list-medal {
  position: relative;
  width: 44px;
  height: 46px;
  background-image: url('/legacy/imagenes/medallas_sprite.gif');
  background-size: 398% 100%;
  background-repeat: no-repeat;
}

.search-page .legacy-list-medal-oro { background-position: 2% 0%; }
.search-page .legacy-list-medal-plata { background-position: 33% 0%; }
.search-page .legacy-list-medal-bronce { background-position: 65% 0%; }
.search-page .legacy-list-medal-nd { background-position: 97% 0%; }

.search-page .legacy-list-medal-score {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  color: #2b67c7;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
}

.search-page .score-chip {
  border-radius: 999px;
  border: 2px solid #f2c244;
  background: #e8f2ff;
  color: #2b67c7;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  padding: 0;
}

.search-page .score-label {
  color: #0f57be;
  font-size: 0.74rem;
}

.search-page .pagination {
  margin: 10px auto 0;
  width: 100%;
  text-align: center;
  display: block;
}

.search-page .pagination .pagination-mascot {
  display: block;
  width: 81px;
  height: 113px;
  background: url('/legacy/imagenes/follow_busqueda.gif') no-repeat center/contain;
  margin: 0 auto 6px;
}

.search-page .pagination-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-page .pagination a {
  min-width: 28px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #b8b8b8;
  background: #ffffff;
  color: #1a58b8;
}

.search-page .pagination a.active {
  background: #ffd9a6;
  border-color: #f59316;
  color: #7a0f0f;
  font-weight: 700;
}

.search-page .ellipsis {
  color: #444444;
}

.search-page.nearby-page .hero {
  background: #6f88e2;
  border: 1px solid #cfcfcf;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  padding: 10px 14px;
}

.search-page.nearby-page .hero small {
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.search-page.nearby-page .hero h1 {
  margin: 4px 0;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
}

.search-page.nearby-page .hero p {
  color: #ffffff;
  font-size: 0.86rem;
}

.search-page.nearby-page {
  gap: 0;
}

.search-page.nearby-page > .container {
  margin: 0 auto;
}

.search-page.nearby-page .nearby-main-column {
  display: grid;
  grid-gap: 0;
  gap: 0;
  min-width: 0;
}

.search-page.nearby-page .search-content-grid {
  gap: 0;
  align-items: start;
}

.search-page.nearby-page .nearby-top-grid {
  margin-bottom: 0;
}

.search-page.nearby-page .nearby-results-stack {
  margin-top: 0;
  min-width: 0;
}

.search-page.nearby-page .search-sidebar {
  border-left: 1px solid #cfcfcf;
  margin-left: 0;
}

.nosotros-page .search-content-grid {
  align-items: start;
}

.nosotros-page .nosotros-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.nosotros-page .nosotros-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.legal-page .search-content-grid {
  align-items: start;
}

.legal-page .legal-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.legal-page .legal-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.legal-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.legal-page .legal-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.legal-page .legal-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.legal-page .legal-intro {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.legal-page .legal-mascot {
  width: 248px;
  height: 234px;
  margin: 0;
  display: block;
  flex: 0 0 auto;
}

.legal-page .legal-intro-data {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.legal-page .legal-card h2,
.legal-page .legal-card h3,
.legal-page .legal-card p,
.legal-page .legal-card li {
  color: #111111;
}

.legal-page .legal-card p,
.legal-page .legal-card li {
  font-size: 0.98rem;
  line-height: 1.2;
}

.legal-page .legal-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.methodology-page .search-content-grid {
  align-items: start;
}

.methodology-page .methodology-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.methodology-page .methodology-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.methodology-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.methodology-page .methodology-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.methodology-page .methodology-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.methodology-page .methodology-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 14px;
}

.methodology-page .methodology-mascot {
  width: 220px;
  height: 295px;
  display: block;
}

.methodology-page .methodology-card h2,
.methodology-page .methodology-card h3,
.methodology-page .methodology-card p,
.methodology-page .methodology-card li {
  color: #111111;
}

.methodology-page .methodology-card p,
.methodology-page .methodology-card li {
  font-size: 0.98rem;
  line-height: 1.2;
}

.methodology-page .methodology-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.faq-page .search-content-grid {
  align-items: start;
}

.faq-page .faq-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.faq-page .faq-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.faq-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.faq-page .faq-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.faq-page .faq-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.faq-page .faq-intro-copy {
  color: #111111;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.faq-page .faq-intro-media {
  margin-bottom: 10px;
}

.faq-page .faq-mascot {
  width: min(320px, 100%);
  height: auto;
  display: block;
}

.faq-page .faq-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.faq-page .faq-item {
  border: 1px solid #c8d8f0;
  border-radius: 8px;
  background: #f4f8ff;
  overflow: hidden;
}

.faq-page .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  color: #0f2c66;
  font-weight: 700;
  font-size: 0.95rem;
  background: #dce9ff;
}

.faq-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-page .faq-item[open] summary {
  background: #cddfff;
}

.faq-page .faq-item p {
  margin: 0;
  padding: 10px 12px;
  color: #1a1a1a;
  font-size: 0.94rem;
  line-height: 1.25;
}

.contact-page .search-content-grid {
  align-items: start;
}

.contact-page .contact-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.contact-page .contact-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.contact-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.contact-page .contact-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.contact-page .contact-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.contact-page .contact-card p {
  color: #111111;
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.contact-page .contact-mail-gif {
  display: inline-block;
  vertical-align: middle;
  height: 15px;
  width: auto;
  margin-left: 6px;
}

.contact-page .contact-columns {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 288px minmax(0, 320px);
  justify-content: space-between;
  grid-gap: 16px;
  gap: 16px;
}

.contact-page .contact-illustration {
  width: 288px;
  height: 363px;
  display: block;
}

.contact-page .contact-form-wrap .contact-form {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.contact-page .contact-form-wrap .contact-form label {
  color: #fc940f;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.contact-page .contact-form-wrap .contact-form input,
.contact-page .contact-form-wrap .contact-form textarea {
  width: 100%;
  padding: 7px 6px;
  border: 1px solid #ced5d7;
  border-radius: 0;
  resize: none;
  box-shadow: 0 0 0 3px #eef5f7;
  background: #ffffff;
  color: #111111;
}

.contact-page .contact-form-wrap .contact-form input:focus,
.contact-page .contact-form-wrap .contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px #dde9ec;
}

.contact-page .contact-form-wrap .contact-form button {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  color: #ffffff;
  background: #fe930f;
  border: 0;
  border-radius: 0;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
}

.contact-page .contact-form-wrap .contact-form button:hover {
  background: #fea60e;
}

.contact-page .contact-form-wrap .contact-form p {
  font-size: 0.9rem;
}

.access-page .search-content-grid {
  align-items: start;
}

.access-page .access-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.access-page .access-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.access-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.access-page .access-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.access-page .access-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.access-page .access-card p,
.access-page .access-card li {
  color: #111111;
  font-size: 0.98rem;
  line-height: 1.2;
}

.access-page .access-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.access-page .access-columns {
  margin: 8px 0 14px;
  display: grid;
  grid-template-columns: 288px minmax(0, 320px);
  justify-content: space-between;
  grid-gap: 16px;
  gap: 16px;
}

.access-page .access-illustration {
  width: min(246px, 100%);
  height: auto;
  display: block;
}

.access-page .access-form-wrap .access-form {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.access-page .access-form-wrap .access-form label {
  color: #fc940f;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.access-page .access-form-wrap .access-form input {
  width: 100%;
  padding: 7px 6px;
  border: 1px solid #ced5d7;
  border-radius: 0;
  box-shadow: 0 0 0 3px #eef5f7;
  background: #ffffff;
  color: #111111;
}

.access-page .access-form-wrap .access-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px #dde9ec;
}

.access-page .aclaracion_label {
  font-weight: 400;
  color: #fc940f;
  font-size: 0.78em;
}

.access-page .access-form-wrap .access-form button {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  padding: 10px;
  color: #ffffff;
  background: #fe930f;
  border: 0;
  border-radius: 0;
  font-size: 1.08em;
  font-weight: 700;
  cursor: pointer;
}

.access-page .access-form-wrap .access-form button:hover {
  background: #fea60e;
}

.nosotros-page .search-sidebar-title {
  color: #2a71c2;
  font-size: 1.45rem;
}

.nosotros-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.nosotros-page .nosotros-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.nosotros-page .nosotros-card .section-title {
  color: #d27600;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.nosotros-page .nosotros-card p {
  color: #111111;
  font-size: 1.02rem;
  line-height: 1.18;
  margin: 0 0 9px;
}

.nosotros-page .nosotros-mascot {
  width: 178px;
  float: left;
  margin: 0 16px 10px 0;
  display: block;
}

@media (max-width: 900px) {
  .nosotros-page .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-mascot {
    margin: 0 auto;
  }

  .legal-page .legal-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .methodology-page .methodology-grid {
    grid-template-columns: 1fr;
  }

  .methodology-page .methodology-intro {
    grid-template-columns: 1fr;
  }

  .methodology-page .methodology-mascot {
    margin: 0 auto;
  }

  .faq-page .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-page .faq-mascot {
    margin: 0 auto;
  }

  .contact-page .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-columns {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .contact-page .contact-illustration {
    margin: 0 auto;
  }

  .access-page .access-grid {
    grid-template-columns: 1fr;
  }

  .access-page .access-columns {
    grid-template-columns: 1fr;
  }

  .access-page .access-illustration {
    margin: 0 auto;
  }
}

.search-page.nearby-page .range-card {
  background: transparent;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  color: #111111;
  padding: 14px;
}

.search-page.nearby-page .range-title {
  color: #1a58b8;
  font-size: 1.1rem;
}

.search-page.nearby-page .range-description {
  color: #333333;
  font-size: 0.86rem;
}

.search-page.nearby-page .range-slider label,
.search-page.nearby-page .range-controls label,
.search-page.nearby-page .range-label {
  color: #111111;
}

.home-page .search-content-grid {
  align-items: start;
}

.home-page .home-shell {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  overflow: hidden;
}

.home-page .home-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.home-page .search-sidebar {
  position: static;
  max-height: none;
  border: 0;
  border-right: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  height: 100%;
}

.home-page .home-copy-card {
  background: transparent;
  border: 0;
  color: #111111;
  border-radius: 0;
  min-height: 620px;
  box-shadow: none;
}

.home-page .home-copy-card .section-title {
  color: #e8841a;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.home-page .home-copy-card p {
  color: #111111;
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.search-page.nearby-page .range-controls select {
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
}

.search-page.nearby-page .range-submit {
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: #63af55;
  color: #ffffff;
  font-weight: 700;
}

.search-page.nearby-page .nearby-sort-card {
  border-radius: 0;
}

.search-page.nearby-page .nearby-section-card {
  border-radius: 0;
}

.search-page.nearby-page .nearby-map-strip {
  display: grid;
  grid-template-columns: 337px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 2px;
  margin-bottom: 10px;
  min-width: 0;
  overflow: hidden;
}

.search-page.nearby-page .nearby-map-indicator {
  position: relative;
  width: 337px;
  min-height: 250px;
  background-color: #1e70b9;
  background-image: url("/legacy/imagenes/bg_estrella.gif");
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 30px 0 0 30px;
  color: #ffffff;
  overflow: hidden;
  padding: 18px 14px 14px;
}

.search-page.nearby-page .nearby-indicator-code {
  font-size: 5.1rem;
  line-height: 0.92;
  font-weight: 700;
  width: 188px;
  text-align: center;
}

.search-page.nearby-page .nearby-indicator-label {
  margin-top: 16px;
  font-size: 0.93rem;
  font-weight: 700;
  width: 188px;
  text-align: center;
}

.search-page.nearby-page .nearby-indicator-range {
  position: absolute;
  top: 58px;
  left: 148px;
  width: 152px;
  text-align: center;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.05;
}

.search-page.nearby-page .nearby-indicator-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100px;
  padding: 14px 16px;
  font-size: 0.73rem;
  line-height: 1.35;
  text-transform: capitalize;
}

.search-page.nearby-page .nearby-order-bar {
  color: #111111;
  width: 100%;
  text-align: right;
  font-size: 0.83rem;
  padding: 6px 0 10px;
}

.search-page.nearby-page .nearby-order-bar a {
  color: #1d6ebd;
}

.search-page.nearby-page .nearby-order-bar a.active {
  font-weight: 700;
}

.search-page.nearby-page .quadrant-map {
  width: 100%;
  min-width: 0;
  min-height: 250px;
  height: auto;
  border-radius: 0;
  border: 1px solid #c7c7c7;
  background: #d7d7d7;
}

@media (max-width: 900px) {
  .search-page.nearby-page .nearby-map-strip {
    grid-template-columns: 1fr;
  }

  .search-page.nearby-page .nearby-map-indicator {
    width: 100%;
    min-height: 220px;
    border-radius: 0;
    background-size: cover;
  }

  .search-page.nearby-page .nearby-indicator-code {
    width: auto;
  }

  .search-page.nearby-page .nearby-indicator-label {
    width: auto;
  }

  .search-page.nearby-page .nearby-indicator-range {
    position: static;
    width: auto;
    margin-top: 8px;
    text-align: left;
    font-size: 1.8rem;
  }

  .search-page.nearby-page .nearby-indicator-meta {
    position: static;
    min-height: 0;
    padding: 12px 0 0;
  }

  .search-page.nearby-page .quadrant-map {
    width: 100%;
    min-height: 250px;
    border: 0;
  }

  .search-page .search-content-grid {
    grid-template-columns: 1fr;
  }

  .search-page .search-sidebar {
    display: none;
  }

  .home-page .home-grid {
    grid-template-columns: 1fr;
  }

  .search-page .pagination .pagination-mascot {
    width: 81px;
    height: 113px;
    margin-bottom: 4px;
  }

  .search-page .legacy-results-head {
    display: none;
  }

  .search-page .legacy-result-row {
    grid-template-columns: 84px minmax(0, 1fr) 54px;
    align-items: start;
    gap: 8px 12px;
  }

  .search-page .legacy-shield-col {
    justify-content: center;
    justify-items: center;
    place-items: start center;
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .search-page .legacy-school-col {
    grid-column: 2;
  }

  .search-page .legacy-control-col {
    display: none;
  }

  .search-page .result-score {
    grid-column: 3;
    grid-row: 1 / span 3;
    justify-items: center;
    align-items: stretch;
    align-self: stretch;
    margin-top: 0;
  }

  .search-page .result-score .legacy-list-medal {
    width: 40px;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
  }

  .search-page .result-score .legacy-list-medal-oro {
    background: #fac41b;
  }

  .search-page .result-score .legacy-list-medal-plata {
    background: #e1e2e1;
  }

  .search-page .result-score .legacy-list-medal-bronce {
    background: #b45b16;
  }

  .search-page .result-score .legacy-list-medal-nd {
    background: #ffffff;
  }

  .search-page .result-score .legacy-list-medal-score {
    position: static;
    transform: none;
    color: #0056c7;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .search-page .result-meta-flags {
    display: inline;
    white-space: nowrap;
  }

  .search-page .result-meta-flags .flag-turno {
    color: #107f08;
  }

  .search-page .result-meta-flags .flag-control {
    color: #bd262d;
  }
}

/* Legacy-inspired school profile page */
.school-page {
  background: #2b3841;
  color: #ffffff;
  padding: 0 0 88px;
  gap: 0;
}

.school-shell {
  width: min(830px, calc(100% - 44px));
  margin: 0 auto;
}

.school-hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 22px;
  gap: 22px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 16px;
  padding: 14px 0 8px;
  box-shadow: none;
}

.school-hero-logo {
  background: transparent;
  border-radius: 0;
  border: 0;
  padding: 0;
  display: grid;
  place-items: start center;
  align-content: start;
  min-height: 150px;
}

.school-hero-mascot-frame {
  width: 100%;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
}

.school-hero-logo-img {
  width: min(280px, 100%);
  height: auto;
  max-height: 220px;
  object-fit: contain;
  filter: none;
}

.school-hero-copy small {
  text-transform: none;
  color: #f8fbff;
  letter-spacing: 0;
  font-size: clamp(1.9rem, 2.9vw, 2.2rem);
  line-height: 0.95;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: none;
}

.school-hero-copy h1 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 0.9vw, 1.1rem);
  text-transform: none;
  line-height: 0.98;
  max-width: 100%;
}

.school-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-hero-copy p {
  color: #f0f4f8;
  margin: 0;
}

.school-page .badges {
  margin-top: 10px;
}

.school-page .badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 5px 10px;
}

.school-band {
  margin-top: 22px;
  padding: 10px 0;
}

.school-page .school-band + .school-band {
  margin-top: 0;
}

.school-band-blue {
  background: transparent;
  padding-top: 0;
  margin-top: 22px;
}

.school-band-charcoal {
  background: #232323;
  padding-top: 28px;
  padding-bottom: 34px;
}

.school-band-about {
  background: #2c6f73;
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 34px;
}

.school-band-purple {
  background: #7f296f;
  padding-top: 28px;
  padding-bottom: 34px;
}

.school-band-orange {
  background: #e8841a;
  padding-top: 24px;
  padding-bottom: 30px;
}

.school-band-orange .school-shell {
  border-radius: 18px;
  overflow: hidden;
}

.school-band-steel {
  background: #3f4b58;
}

.school-grid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.school-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.school-page .card,
.school-page .school-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  padding: 6px 0;
}

.school-band-blue .school-grid-2 > .school-card:first-child,
.school-band-blue .school-grid-2 > .school-card:last-child {
  min-width: 0;
}

.school-band-blue .school-grid-2 {
  margin-bottom: 6px;
}

.school-page .section-title {
  margin-bottom: 16px;
  font-size: 1.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
}

.school-page .school-about-card {
  margin-top: 0;
  padding: 6px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.school-page .school-about-card .section-title {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.school-page .school-about-layout {
  display: block;
}

.school-page .school-about-text {
  min-width: 0;
  overflow: hidden;
  text-align: justify;
  text-justify: inter-word;
}

.school-page .school-about-illustration-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.school-page .school-about-illustration {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.school-page .school-about-illustration-float {
  float: right;
  width: min(30%, 230px);
  max-width: 230px;
  margin: 0 0 10px 40px;
}

.school-page .school-about-lead,
.school-page .school-about-paragraph {
  margin: 0 0 22px;
  max-width: none;
  color: #f7fbff;
  line-height: 1.42;
  font-size: 1.03rem;
  text-wrap: pretty;
}

.school-page .school-about-paragraph {
  margin-top: 0;
}

.school-page .school-about-lead {
  font-size: 1.08rem;
}

.school-page .school-about-card .section-title {
  margin-bottom: 30px;
}

.school-page .notice {
  background: #ffd9a6;
  border-left: 4px solid #f59316;
  color: #3b2200;
}

.school-page .table th,
.school-page .table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.school-page .map-frame {
  width: 100%;
  max-width: 100%;
  height: 180px;
  border-radius: 0;
  filter: none;
  box-shadow: none;
  border: 1px solid #ffcf3d;
}

.school-page .carousel-frame {
  position: relative;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  max-width: 100%;
  overflow: hidden;
}

.school-page .carousel-frame img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #1b1b1b;
}

.school-page .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  color: #f0f7ff;
  padding: 0;
}

.school-page .carousel-count {
  color: #f0f7ff;
}

.school-page .carousel {
  gap: 10px;
}

.school-page .carousel-source {
  font-size: 0.76rem;
  color: #f0f7ff;
  margin-top: 2px;
  text-align: right;
}

.school-page .school-adsense-block {
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  background: #000000;
}

.school-page .school-adsense-block .adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.school-page .carousel-controls {
  max-width: 100%;
  justify-content: space-between;
}

.school-page .carousel-controls button,
.school-page .contact-form button,
.school-page .info-button,
.school-page .modal-close {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  box-shadow: none;
}

.school-page .carousel-controls button {
  border: 0;
  background: #f59316;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 18px;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
}

.school-page .carousel-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.school-page .cemabe-button {
  width: auto;
  height: auto;
  min-height: 34px;
  border: 0;
  background: #f59316;
  color: #ffffff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 16px;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.2;
  margin-top: 4px;
}

.school-page .cemabe-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.school-page .media-head {
  max-width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.school-page .media-title {
  margin: 0;
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
}

.school-page .media-subtitle {
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.school-page .contact-form input,
.school-page .contact-form textarea {
  background: #cecece;
  border: 1px solid #707070;
  color: #111111;
  border-radius: 0;
  padding: 3px 5px;
  min-height: 14px;
  font-size: 0.86rem;
}

.school-page .contact-form label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  line-height: 1.12;
}

.school-contact-form-card .contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 8px 22px;
  gap: 8px 22px;
  align-items: start;
  margin-bottom: 20px;
}

.school-contact-form-card .contact-form label:nth-of-type(1),
.school-contact-form-card .contact-form label:nth-of-type(2),
.school-contact-form-card .contact-form label:nth-of-type(3) {
  grid-column: 1;
}

.school-contact-form-card .contact-form label:nth-of-type(4) {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.school-contact-form-card .contact-form textarea {
  min-height: 100px;
  width: 100%;
}

.school-contact-form-card .contact-form button {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin-top: 15px;
  width: 76px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  background: #ff9800;
  border: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.school-contact-form-card .contact-form p {
  grid-column: 1 / -1;
  margin: 0;
}

.school-contact-form-card {
  margin-top: 6px;
  padding-top: 0 !important;
  border-top: 0;
}

.school-page .modal {
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.school-page details {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.school-page summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.school-page summary::-webkit-details-marker {
  display: none;
}

.school-page .teacher-detail > summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

.school-page .teacher-detail[open] > summary {
  background: #f59316;
  color: #111111;
}

.school-page .teacher-detail[open] > summary::after {
  content: "−";
}

.school-page .teacher-detail > .kv,
.school-page .teacher-detail > div {
  padding: 10px 12px 12px;
}

.school-page a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .school-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .school-hero-logo {
    min-height: 120px;
  }

  .school-hero-logo-img {
    width: min(300px, 100%);
    max-height: 240px;
  }

  .school-hero-copy {
    align-items: center;
    text-align: center;
  }

  .school-hero-copy h1 {
    max-width: 100%;
  }

  .school-grid-2 {
    grid-template-columns: 1fr;
  }

  .school-band-blue {
    margin-top: 28px;
  }

  .school-band-blue .school-grid-2 {
    margin-bottom: 18px;
  }

  .school-contact-form-card {
    margin-top: 20px;
  }

  .school-contact-form-card .contact-form {
    grid-template-columns: 1fr;
  }

  .school-contact-form-card .contact-form label:nth-of-type(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .school-contact-form-card .contact-form button {
    grid-column: 1;
    grid-row: auto;
  }

  .school-page .media-head {
    max-width: 100%;
    align-items: center;
  }

  .school-page .school-about-layout {
    display: block;
  }

  .school-page .school-about-illustration {
    max-width: 170px;
  }

  .school-page .school-about-illustration-float {
    float: none;
    width: min(170px, 100%);
    margin: 0 auto 12px;
  }

  .school-page .media-subtitle {
    font-size: 1.35rem;
  }

  .school-page .carousel-frame,
  .school-page .carousel-controls {
    max-width: 100%;
  }

  .school-page .carousel-frame img {
    height: 240px;
  }

  .school-page .carousel-source {
    font-size: 0.72rem;
  }

}

/* ENLACE legacy visuals */
.enlace-legacy .info_nivel_legacy,
.planea-legacy .info_nivel_legacy {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.planea-main-title {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "lnum";
}

.cemabe-main-title {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "lnum";
}

.bg_enlace_legacy {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #ffffff;
  color: #101010;
  border: 1px solid #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-gap: 14px 16px;
  gap: 14px 16px;
  align-items: start;
}

.enlace-logo {
  height: 95px;
  width: 150px;
  background-image: url('/legacy/imagenes/sprites_enlace.gif');
  background-repeat: no-repeat;
  margin-top: 8px;
}

.enlace-content {
  min-width: 0;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.enlace-medallas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px 12px;
  gap: 10px 12px;
}

.medalla-box {
  position: relative;
  width: 100%;
  max-width: 148px;
  min-height: 98px;
  padding-top: 10px;
  margin: 0 auto;
}

.medalla-title {
  text-align: center;
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 4px;
}

.a_medalla_oro,
.a_medalla_plata,
.a_medalla_bronce,
.a_medalla_nd {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-56%);
  width: 58px;
  height: 65px;
  background-image: url('/legacy/imagenes/medallas_sprite.gif');
  background-repeat: no-repeat;
}

.a_medalla_oro { background-position: 2% 0%; }
.a_medalla_plata { background-position: 33% 0%; }
.a_medalla_bronce { background-position: 65% 0%; }
.a_medalla_nd { background-position: 97% 0%; }

.medalla-score {
  position: absolute;
  top: 48px;
  right: -8px;
  width: 50px;
  text-align: center;
  color: #2788f5;
  font-size: 1.8rem;
  font-weight: 700;
}

.enlace-indicadores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px 12px;
  gap: 10px 12px;
}

.indicador-box {
  width: 100%;
  max-width: 172px;
  margin: 0 auto;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
}

.indicador-title {
  text-align: center;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.15;
  min-height: 44px;
  margin-bottom: 4px;
}

.indicador-icon {
  width: 73px;
  height: 95px;
  margin: 0 auto;
  background-image: url('/legacy/imagenes/sprites_enlace.gif');
  background-repeat: no-repeat;
}

.indicador-total { background-position: -350px 0; }
.indicador-excelente { background-position: -160px 0; }
.indicador-bajo { background-position: -248px 0; }

.indicador-value {
  margin-top: -4px;
  text-align: center;
  color: #2788f5;
  font-size: 1.75rem;
  font-weight: 700;
}

/* PLANEA legacy visuals */
.bg_planea_legacy {
  margin-top: 16px;
  padding: 10px;
  border-radius: 14px;
  background: #cb0670;
  color: #ffffff;
}

.planea-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  max-width: 700px;
}

.planea-logo {
  width: 148px;
  height: 65px;
  background-image: url('/legacy/imagenes/logoplanea.gif');
  background-repeat: no-repeat;
  background-size: contain;
}

.planea-promedio-box {
  text-align: center;
}

.planea-promedio-label {
  font-size: 0.95rem;
}

.planea-promedio-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.planea-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  grid-column-gap: 0;
  column-gap: 0;
  grid-row-gap: 6px;
  row-gap: 6px;
}

.planea-col {
  display: grid;
  align-content: start;
}

.planea-cell {
  color: #ffffff;
  padding: 6px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.planea-header {
  min-height: 46px;
  font-weight: 700;
}

.planea-row-label {
  min-height: 32px;
  font-weight: 700;
  justify-content: flex-start;
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
}

.planea-tornasol {
  background-image: url('/legacy/imagenes/tornasol.png');
  background-repeat: repeat-x;
  border-radius: 0;
  display: grid;
}

.planea-col-head .planea-tornasol {
  border-radius: 10px 0 0 10px;
}

.planea-grid > .planea-col:nth-child(2) .planea-tornasol {
  border-radius: 0;
}

.planea-col:last-child .planea-tornasol {
  border-radius: 0 10px 10px 0;
}

.school-page .planea-legacy .info-button,
.school-page .enlace-legacy .info-button {
  width: 20px;
  height: 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  padding: 0;
}

/* Contact row icon-like layout */
.school-page .contact-line {
  position: relative;
  padding-left: 0;
  margin-bottom: 6px;
  font-size: 0.86rem;
  line-height: 1.2;
}

.school-page .contact-line::before {
  display: none;
}

.school-page .contact-line strong {
  font-weight: 700;
}

.school-page .contact-line-dir,
.school-page .contact-line-tel {
  max-width: none;
}

.level-maps-links {
  background: #363636;
  text-align: center;
  width: 100%;
  padding: 4px 10px 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.level-maps-links a {
  display: inline-block;
  padding: 4px 2px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.1;
}

@media (max-width: 860px) {
  .bg_enlace_legacy {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .enlace-logo {
    margin: 0 auto;
    grid-row: auto;
  }

  .enlace-medallas,
  .enlace-indicadores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    gap: 8px;
  }

  .medalla-box,
  .indicador-box {
    max-width: none;
  }

  .medalla-title {
    font-size: 0.86rem;
  }

  .medalla-score {
    font-size: 1.1rem;
    width: 42px;
    right: -14px;
  }

  .indicador-title {
    font-size: 0.82rem;
    min-height: 38px;
  }

  .indicador-value {
    font-size: 1.05rem;
    margin-top: 0;
  }

  .planea-grid {
    grid-template-columns: 106px 1fr 1fr;
    min-width: 0;
  }

  .planea-col-head {
    display: grid;
  }

  .planea-cell {
    padding: 4px;
    min-height: 28px;
    font-size: 0.95rem;
    gap: 4px;
  }

  .planea-header {
    min-height: 40px;
    font-size: 0.88rem;
  }

  .planea-row-label {
    padding-left: 6px;
    font-size: 0.82rem;
  }

  .planea-tornasol,
  .planea-col-head .planea-tornasol,
  .planea-grid > .planea-col:nth-child(2) .planea-tornasol,
  .planea-col:last-child .planea-tornasol {
    border-radius: 0;
  }
}

/* Top bar tuning for school profile (goal-like) */
.main-menu {
  position: relative;
  top: auto;
  background: rgba(28, 30, 35, 0.82);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom: 0;
}

.menu-bar {
  max-width: none;
  margin: 0;
  padding: 5px 14px 5px 0;
  min-height: 52px;
}

.menu-brand {
  position: relative;
  padding-left: 56px;
  color: #ffffff;
  min-height: 44px;
  display: grid;
  align-content: center;
}

.main-menu a,
.main-menu a:hover,
.main-menu a:focus,
.main-menu a:active,
.main-menu a:visited {
  text-decoration: none;
}

.menu-brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 57px;
  background: url('/legacy/imagenes/logo_movil.png') no-repeat center/contain;
}

.brand-title {
  font-size: 0.9rem;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.7rem;
  line-height: 1.05;
  color: #e0e0e0;
}

.menu-toggle {
  border: 0;
  width: 28px;
  height: 20px;
  padding: 0;
  font-size: 0;
  background:
    linear-gradient(#f4a000, #f4a000) 0 2px/100% 2px no-repeat,
    linear-gradient(#f4a000, #f4a000) 0 9px/100% 2px no-repeat,
    linear-gradient(#f4a000, #f4a000) 0 16px/100% 2px no-repeat;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus,
.menu-toggle:focus-visible,
.menu-toggle:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

.menu-panel {
  display: none;
}

.menu-panel.open {
  display: block !important;
  position: absolute;
  right: 12px;
  top: calc(100% + 6px);
  width: min(460px, calc(100vw - 24px));
  max-width: min(460px, calc(100vw - 24px));
  margin: 0;
  background: rgba(20, 24, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px;
  z-index: 35;
}

.menu-tabs {
  margin: 0 0 10px;
  max-width: none;
  justify-content: flex-start;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-form {
  width: 100%;
  border-radius: 14px;
  padding: 14px;
  box-shadow: none;
}

.menu-tabs button {
  border: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.12);
  color: #f0f4ff;
  padding: 8px 14px;
  margin-right: 4px;
}

.menu-tabs button.active {
  background: #f59316;
  color: #ffffff;
  font-weight: 700;
}

.tab-label-short {
  display: none;
}

@media (max-width: 860px) {
  .menu-panel.open {
    right: 8px;
    width: min(440px, calc(100vw - 16px));
    max-width: min(440px, calc(100vw - 16px));
  }
}

@media (max-width: 1120px) {
  .menu-bar {
    position: relative;
    padding-right: 52px;
    align-items: flex-start;
  }

  .menu-toggle {
    position: absolute;
    right: 14px;
    top: 12px;
  }

  .brand-title {
    font-size: 0.82rem;
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .menu-brand::after {
    font-size: 0.82rem;
  }

  .menu-panel.open {
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 760px) {
  .menu-tabs {
    gap: 2px;
  }

  .menu-tabs button {
    padding: 6px 10px;
    font-size: 0.86rem;
    margin-right: 0;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }
}

