/* ================================================================
       PROPUESTA RADICAL V2 — "Metro Atlas / Search Mode"
       Objetivo: separar claramente exploración, búsqueda y taxonomía.
       Estética: atlas editorial + señalética de transporte, sin parecer
       una lista clásica de enlaces.
       ================================================================ */
    :root {
      /* Paleta unificada: tonos del fichero "paleta_colores_design_OK"
         sobre la funcionalidad de "funcionalidad_OK". Fondo blanco puro
         y líneas azuladas frías. */
      --ink: #071225;
      --ink-2: #16233A;
      --text: #24324A;
      --muted: #65748B;
      --muted-2: #8995A8;
      --paper: #FFFFFF;
      --surface: #FFFFFF;
      --soft: #F3F7FC;
      --soft-2: #EEF4FF;
      --line: #D9E2EF;
      --line-strong: #C0CCE0;
      --blue: #0039A6;
      --blue-2: #0B4FE8;
      --red: #E1251B;
      --red-2: #B91C16;
      --yellow: #FFD329;
      --green: #12A878;
      --orange: #F97316;
      --cyan: #06A7C8;
      --amber: #F4B400;
      --maxw: 1480px;
      --radius: 18px;
      --radius-sm: 10px;
      --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.55;
      font-weight: 500;
      color: var(--ink);
      background:
        linear-gradient(90deg, rgba(0,57,166,.040) 1px, transparent 1px),
        linear-gradient(0deg, rgba(225,37,27,.030) 1px, transparent 1px),
        var(--paper);
      background-size: 48px 48px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      font-feature-settings: "cv11" 1, "ss01" 1;
    }
    a { color: var(--blue); text-decoration: none; }
    a:hover { color: var(--red); }
    img { max-width: 100%; height: auto; display: block; }

    .skip {
      position: absolute; left: -9999px; top: 0;
      background: var(--red); color: #fff;
      padding: 10px 14px; z-index: 1000;
    }
    .skip:focus { left: 12px; top: 12px; border-radius: 999px; }

    .container {
      width: min(100%, var(--maxw));
      margin-inline: auto;
      padding-left: clamp(22px, 4vw, 56px);
      padding-right: clamp(22px, 4vw, 56px);
    }

    /* HEADER: barra oscura tipo señalética */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 80;
      background: rgba(7, 17, 36, .94);
      color: #fff;
      border-bottom: 4px solid var(--red);
      backdrop-filter: blur(12px) saturate(160%);
      -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-top: 12px;
      padding-bottom: 12px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      text-decoration: none;
      font-weight: 950;
      letter-spacing: -0.045em;
      font-size: clamp(1.08rem, 2.15vw, 1.42rem);
      white-space: nowrap;
    }
    .logo:hover { color: #fff; text-decoration: none; }
    .logo small { color: rgba(255,255,255,.68); font-weight: 900; letter-spacing: -0.03em; }
    .roundel { width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
    .logo-mark-m { font-family: var(--font-sans); font-weight: 950; letter-spacing: -.08em; }

    .header-search {
      flex: 1 1 420px;
      max-width: 560px;
      min-width: 220px;
      position: relative;
      margin-left: auto;
    }
    .header-search input {
      width: 100%;
      height: 42px;
      padding: 0 46px 0 42px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 999px;
      background: rgba(255,255,255,.10);
      color: #fff;
      outline: none;
      font: inherit;
      font-weight: 750;
      letter-spacing: -.01em;
    }
    .header-search input::placeholder { color: rgba(255,255,255,.62); }
    .header-search input:focus {
      border-color: #fff;
      background: #fff;
      color: var(--ink);
      box-shadow: 0 0 0 4px rgba(255,255,255,.16);
    }
    .header-search .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(255,255,255,.72);
      pointer-events: none;
    }
    .header-search input:focus + .search-icon { color: var(--blue); }
    .header-search-clear {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      font-weight: 900;
    }
    body.searching .header-search-clear { display: inline-flex; }

    .lang-switcher { position: relative; }
    .lang-switcher summary {
      list-style: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 13px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 999px;
      background: rgba(255,255,255,.09);
      color: #fff;
      font-size: .86rem;
      font-weight: 800;
      user-select: none;
    }
    .lang-switcher summary::-webkit-details-marker { display: none; }
    .lang-switcher summary::marker { content: ""; }
    .lang-switcher[open] summary,
    .lang-switcher summary:hover { background: #fff; color: var(--ink); }
    .lang-panel {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      min-width: 230px;
      max-height: min(70vh, 480px);
      overflow-y: auto;
      padding: 8px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 18px 50px rgba(7,17,36,.24);
      z-index: 100;
    }
    .lang-panel a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 12px;
      border-radius: 10px;
      color: var(--ink);
      font-size: .93rem;
      font-weight: 700;
      text-decoration: none;
    }
    .lang-panel a:hover { background: #F4F6FF; color: var(--blue); }
    .lang-panel a.active { background: var(--blue); color: #fff; }
    .lang-panel .flag { width: 1.5em; text-align: center; font-size: 1.2rem; }
    .lang-panel .name { flex: 1; }
    .lang-panel .code { font-size: .72rem; letter-spacing: .08em; color: var(--muted-2); }
    .lang-panel a.active .code { color: rgba(255,255,255,.78); }

    /* HERO: portada editorial de atlas */
    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
      align-items: end;
      gap: clamp(24px, 4vw, 64px);
      padding-top: clamp(48px, 8vw, 104px);
      padding-bottom: clamp(30px, 5vw, 58px);
      text-align: left;
    }
    .hero::after {
      content: "";
      position: absolute;
      right: clamp(22px, 4vw, 56px);
      top: 40px;
      width: min(34vw, 420px);
      aspect-ratio: 1;
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 50%, transparent 0 42%, var(--red) 43% 50%, transparent 51%),
        linear-gradient(var(--blue), var(--blue));
      background-size: 100% 100%, 100% 18%;
      background-repeat: no-repeat;
      background-position: center, center;
      opacity: .075;
      pointer-events: none;
    }
    .hero h1 {
      max-width: 850px;
      margin: 0 0 18px;
      font-size: clamp(2.55rem, 7.6vw, 6.2rem);
      line-height: .86;
      letter-spacing: -0.075em;
      font-weight: 900;
      color: var(--ink);
      text-wrap: balance;
    }
    .hero h1 .accent {
      display: inline-block;
      color: var(--red);
      position: relative;
    }
    .hero h1 .accent::after {
      content: "";
      position: absolute;
      left: .05em;
      right: .02em;
      bottom: .05em;
      height: .12em;
      background: var(--yellow);
      z-index: -1;
      border-radius: 999px;
    }
    .hero .lead {
      max-width: 700px;
      margin: 0;
      color: var(--muted);
      font-size: clamp(1.05rem, 1.4vw, 1.28rem);
      font-weight: 560;
      letter-spacing: -0.018em;
      text-wrap: balance;
    }
    .hero .stats {
      align-self: stretch;
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 0;
      padding: 0;
      color: var(--muted);
      font-size: .95rem;
    }
    .hero .stats span {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 16px;
      background: rgba(255,255,255,.76);
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 10px 24px rgba(7,17,36,.045);
    }
    .hero .stats b {
      color: var(--blue);
      font-size: 1.7rem;
      line-height: 1;
      font-weight: 900;
      letter-spacing: -0.05em;
    }

    .search-wrap {
      grid-column: 1 / -1;
      width: 100%;
      max-width: none;
      margin: clamp(12px, 2vw, 22px) 0 0;
      position: relative;
    }
    .search-wrap input {
      width: 100%;
      padding: 18px 56px 18px 58px;
      font-size: clamp(1rem, 1.2vw, 1.15rem);
      font-family: inherit;
      color: var(--ink);
      background: #fff;
      border: 2px solid var(--ink);
      border-radius: 18px;
      outline: none;
      box-shadow: 8px 8px 0 var(--yellow);
      transition: box-shadow .15s ease, border-color .15s ease;
    }
    .search-wrap input:focus {
      border-color: var(--blue);
      box-shadow: 8px 8px 0 rgba(0,25,168,.16);
    }
    .search-wrap .search-icon {
      position: absolute;
      left: 20px; top: 50%; transform: translateY(-50%);
      color: var(--blue);
      pointer-events: none;
    }
    .search-wrap kbd {
      position: absolute;
      right: 16px; top: 50%; transform: translateY(-50%);
      padding: 4px 8px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #F6F1E8;
      color: var(--muted);
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: .76rem;
    }
    .search-wrap .clear {
      position: absolute;
      right: 14px; top: 50%; transform: translateY(-50%);
      width: 34px; height: 34px;
      border: 0;
      border-radius: 10px;
      background: var(--red);
      color: #fff;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .search-wrap.has-value .clear { display: inline-flex; }
    .search-wrap.has-value kbd { display: none; }
    .search-hint {
      grid-column: 1 / -1;
      margin: 6px 0 0;
      max-width: none;
      color: var(--muted-2);
      text-align: left;
      font-size: .92rem;
    }
    .search-hint b { color: var(--ink-2); font-weight: 800; }

    /* NAV: línea de metro horizontal, no píldoras sueltas */
    .continent-nav {
      position: sticky;
      top: 68px;
      z-index: 60;
      display: flex;
      justify-content: center;
      gap: 0;
      padding-top: 12px;
      padding-bottom: 12px;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(12px) saturate(160%);
      -webkit-backdrop-filter: blur(12px) saturate(160%);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      overflow-x: auto;
      scrollbar-width: thin;
    }
    .continent-nav a {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 42px;
      padding: 8px 18px;
      color: var(--ink);
      font-weight: 900;
      font-size: .92rem;
      white-space: nowrap;
      text-decoration: none;
    }
    .continent-nav a::after {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 50%;
      height: 4px;
      background: var(--ink);
      transform: translateY(-50%);
      z-index: -1;
      opacity: .08;
    }
    .continent-nav a:first-child::after { left: 50%; }
    .continent-nav a:last-child::after { right: 50%; }
    .continent-nav a .dot {
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--red);
      border: 4px solid #fff;
      box-shadow: 0 0 0 2px currentColor;
      flex: 0 0 auto;
    }
    .continent-nav a[data-c="europa"] .dot { background: var(--red); }
    .continent-nav a[data-c="asia"] .dot { background: var(--orange); }
    .continent-nav a[data-c="america"] .dot { background: var(--green); }
    .continent-nav a[data-c="africa"] .dot { background: var(--amber); }
    .continent-nav a[data-c="oceania"] .dot { background: var(--cyan); }
    .continent-nav a:hover { color: var(--blue); }

    /* CONTINENTES: bloques tipo capítulo */
    .continent {
      padding-top: clamp(34px, 6vw, 84px);
      padding-bottom: 12px;
      scroll-margin-top: 140px;
    }
    .continent-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 18px;
      margin-bottom: 16px;
      padding-bottom: 18px;
      border-bottom: 4px solid var(--ink);
      position: relative;
    }
    .continent-head::after {
      content: "";
      position: absolute;
      left: 0; bottom: -4px;
      width: min(42%, 360px);
      height: 4px;
      background: var(--red);
    }
    .continent[data-c="asia"] .continent-head::after { background: var(--orange); }
    .continent[data-c="america"] .continent-head::after { background: var(--green); }
    .continent[data-c="africa"] .continent-head::after { background: var(--amber); }
    .continent[data-c="oceania"] .continent-head::after { background: var(--cyan); }
    .continent-head h2 {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: clamp(2rem, 5.2vw, 4.6rem);
      line-height: .94;
      letter-spacing: -0.07em;
      font-weight: 900;
      color: var(--ink);
      text-wrap: balance;
    }
    .continent-head h2 .stripe {
      display: inline-block;
      flex: 0 0 auto;
      width: 18px;
      height: clamp(42px, 6vw, 76px);
      border-radius: 999px;
      background: var(--red);
    }
    .continent[data-c="asia"] .stripe { background: var(--orange); }
    .continent[data-c="america"] .stripe { background: var(--green); }
    .continent[data-c="africa"] .stripe { background: var(--amber); }
    .continent[data-c="oceania"] .stripe { background: var(--cyan); }
    .continent-head .more {
      margin: 0 0 10px;
      white-space: nowrap;
      font-weight: 900;
      font-size: clamp(.9rem, 1.2vw, 1.02rem);
    }
    .continent-head .more a {
      color: var(--blue);
      border-bottom: 3px solid rgba(0,25,168,.18);
    }
    .continent-head .more a:hover {
      color: var(--red);
      border-bottom-color: rgba(220,36,31,.25);
    }
    .continent-intro,
    .continent > p:not(.more):not(.search-hint) {
      max-width: 820px;
      margin: 0 0 26px;
      color: var(--muted);
      font-size: clamp(1rem, 1.4vw, 1.2rem);
      font-weight: 560;
      letter-spacing: -0.012em;
    }

    /* Países: tarjetas compactas tipo ficha de estación */
    .countries {
      columns: 3 330px;
      column-gap: 22px;
    }
    @media (min-width: 1320px) { .countries { columns: 4 300px; } }
    @media (max-width: 900px) { .countries { columns: 2 280px; } }
    @media (max-width: 620px) { .countries { columns: 1; } }

    .country {
      position: relative;
      display: inline-block;
      width: 100%;
      margin: 0 0 22px;
      break-inside: avoid;
      -webkit-column-break-inside: avoid;
      page-break-inside: avoid;
      overflow: hidden;
      background: rgba(255,255,255,.88);
      border: 2px solid var(--ink);
      border-radius: 20px;
      box-shadow: 6px 6px 0 rgba(7,17,36,.08);
      transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
    }
    .country:hover {
      transform: translate(-1px, -1px);
      border-color: var(--blue);
      box-shadow: 8px 8px 0 rgba(0,25,168,.12);
    }
    .country::before { display: none; }
    .country h3 {
      margin: 0;
      padding: 13px 16px;
      background: var(--ink);
      color: #fff;
      font-size: 1.02rem;
      line-height: 1.15;
      font-weight: 900;
      letter-spacing: -0.024em;
    }
    .country h3 a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #fff;
      text-decoration: none;
    }
    .country h3 a:hover { color: #fff; }
    .country h3 .count {
      flex: 0 0 auto;
      min-width: 30px;
      text-align: center;
      font-size: .72rem;
      color: var(--ink);
      background: var(--yellow);
      padding: 3px 8px;
      border-radius: 999px;
      font-weight: 900;
    }
    .country ul {
      list-style: none;
      margin: 0;
      padding: 8px 12px 12px;
    }
    .country li {
      margin: 0;
      padding: 0;
      border-top: 1px dashed var(--line-strong);
    }
    .country li:first-child { border-top: 0; }
    .country li a {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 8px;
      align-items: baseline;
      padding: 8px 2px;
      color: var(--ink-2);
      font-size: .94rem;
      line-height: 1.28;
      font-weight: 680;
      letter-spacing: -0.006em;
      text-decoration: none;
    }
    .country li a::before {
      content: "";
      width: 12px;
      height: 12px;
      margin-top: .2em;
      border: 3px solid var(--blue);
      border-radius: 50%;
      background: #fff;
      opacity: 1;
      transform: none;
      position: static;
      transition: background .12s ease, border-color .12s ease, transform .12s ease;
    }
    .country li a:hover {
      color: var(--red);
      padding-left: 2px;
    }
    .country li a:hover::before {
      width: 12px;
      background: var(--red);
      border-color: var(--red);
      transform: scale(1.1);
    }
    .country li a.updated::after {
      content: "Actualizado";
      display: inline-block;
      justify-self: start;
      grid-column: 2;
      margin-top: 2px;
      font-size: .64rem;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #fff;
      background: var(--red);
      padding: 2px 7px;
      border-radius: 999px;
    }

    /* SEARCH MODE: al escribir, la página cambia de estado y muestra resultados visibles */
    .search-results-bar {
      display: none;
      position: sticky;
      top: 70px;
      z-index: 58;
      padding-top: 14px;
      padding-bottom: 14px;
      background: rgba(255,255,255,.94);
      backdrop-filter: blur(12px) saturate(160%);
      -webkit-backdrop-filter: blur(12px) saturate(160%);
      border-bottom: 1px solid var(--line);
    }
    body.searching .search-results-bar { display: block; }
    .search-results-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      background: #fff;
      border: 2px solid var(--ink);
      border-radius: 18px;
      padding: 14px 16px;
      box-shadow: 5px 5px 0 rgba(0,25,168,.12);
    }
    .search-results-inner strong {
      display: block;
      color: var(--ink);
      font-size: clamp(1rem, 1.4vw, 1.15rem);
      font-weight: 950;
      letter-spacing: -.03em;
    }
    .search-results-inner span {
      color: var(--muted);
      font-weight: 720;
    }
    .exit-search {
      flex: 0 0 auto;
      border: 0;
      border-radius: 999px;
      background: var(--ink);
      color: #fff;
      padding: 10px 14px;
      cursor: pointer;
      font-weight: 900;
      letter-spacing: -.01em;
    }
    .exit-search:hover { background: var(--red); }
    body.searching .hero,
    body.searching .continent-nav,
    body.searching .continent-intro,
    body.searching .continent > p:not(.more):not(.search-hint) {
      display: none !important;
    }
    body.searching .continent {
      padding-top: 24px;
      scroll-margin-top: 150px;
    }
    body.searching .continent-head {
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom-width: 2px;
    }
    body.searching .continent-head h2 {
      font-size: clamp(1.45rem, 3.2vw, 2.4rem);
      line-height: 1.05;
      letter-spacing: -.045em;
    }
    body.searching .continent-head h2 .stripe {
      width: 10px;
      height: 34px;
    }
    body.searching .continent-head .more { display: none; }
    body.searching .countries { columns: 3 320px; }
    .country.search-hit { border-color: var(--blue); }

    .empty {
      display: none;
      text-align: center;
      padding-top: 42px;
      padding-bottom: 42px;
      color: var(--muted);
      font-weight: 800;
    }
    .empty.visible { display: block; }

    .site-footer {
      margin-top: 76px;
      padding: 34px 0;
      background: var(--ink);
      border-top: 4px solid var(--red);
      color: rgba(255,255,255,.75);
      font-size: .92rem;
      text-align: center;
    }
    .site-footer a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
    .site-footer .legal { margin-top: 6px; color: rgba(255,255,255,.56); }

    .visually-hidden {
      position: absolute !important;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0);
      white-space: nowrap; border: 0;
    }
    .to-top {
      position: fixed;
      right: 20px; bottom: 20px;
      width: 48px; height: 48px;
      border-radius: 14px;
      background: var(--red);
      color: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      border: 2px solid #fff;
      box-shadow: 0 14px 34px rgba(7,17,36,.28);
      cursor: pointer;
      z-index: 70;
    }
    .to-top:hover { background: var(--blue); }
    .to-top.visible { display: inline-flex; }

    @media (max-width: 920px) {
      .hero { grid-template-columns: 1fr; }
      .hero .stats { grid-template-columns: repeat(3, 1fr); }
      .hero .stats span { display: block; text-align: center; }
      .hero .stats b { display: block; margin-bottom: 4px; }
      .continent-nav { justify-content: flex-start; }
    }
    @media (max-width: 640px) {
      .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        /* 2 filas explícitas: 1ª = logo + idiomas; 2ª = buscador a ancho completo.
           Sin grid-template-areas el auto-placement (sparse) empujaba el lang
           a una 3ª fila al toparse con el grid-column: 1 / -1 del buscador. */
        grid-template-areas:
          "logo lang"
          "search search";
        gap: 10px 12px;
        align-items: center;
      }
      .logo { grid-area: logo; font-size: 1.02rem; min-width: 0; }
      .logo span { overflow: hidden; text-overflow: ellipsis; }
      .roundel { width: 36px; height: 36px; }
      .lang-switcher { grid-area: lang; justify-self: end; }
      .header-search {
        grid-area: search;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        padding-top: 2px;
      }
      .header-search input {
        height: 46px;
        background: #fff;
        color: var(--ink);
        border-color: rgba(255,255,255,.92);
        box-shadow: 0 8px 22px rgba(0,0,0,.18);
      }
      .header-search input::placeholder { color: rgba(15,23,42,.56); }
      .header-search .search-icon { color: var(--blue); }
      .hero { padding-top: 38px; }
      .hero h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
      .hero .stats { grid-template-columns: 1fr; }
      .search-wrap input {
        border-radius: 16px;
        padding: 16px 48px 16px 50px;
        box-shadow: 5px 5px 0 var(--yellow);
      }
      .search-wrap kbd { display: none; }
      .continent-head {
        grid-template-columns: 1fr;
        align-items: start;
      }
      .continent-head h2 {
        font-size: clamp(1.72rem, 8.6vw, 2.55rem);
        line-height: 1.04;
        letter-spacing: -0.052em;
      }
      .continent-head h2 .stripe { height: 42px; width: 12px; }

      /* MÓVIL: el header se queda en SÓLO 2 filas (logo+idiomas / buscador).
         Ocultamos por completo la barra sticky de resultados (tercer nivel)
         y mostramos el resumen y el botón "Salir" como una pastilla flotante
         no-sticky justo debajo del campo de búsqueda. */
      .search-results-bar { display: none !important; }

      body.searching .header-search::after {
        content: attr(data-summary);
        display: block;
        margin-top: 8px;
        padding: 6px 12px;
        font-size: .78rem;
        font-weight: 800;
        color: #fff;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.20);
        border-radius: 999px;
        text-align: center;
        letter-spacing: -.01em;
      }
      .continent-head .more {
        margin: 0;
        white-space: normal;
        font-size: .95rem;
      }
      .country { border-radius: 16px; box-shadow: 4px 4px 0 rgba(7,17,36,.08); }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    }
    @media print {
      .site-header, .continent-nav, .search-wrap, .header-search, .search-results-bar, .to-top, .site-footer { display: none; }
      body { background: #fff; }
      .country { box-shadow: none; border: 1px solid #999; }
    }

    /* Pista bajo el buscador (con palabras clave resaltadas en amarillo) */
    .search-hint {
      grid-column: 1 / -1;
      max-width: 640px;
      margin: 14px 0 0;
      font-size: .9rem;
      color: var(--muted);
    }
    .search-hint b {
      color: var(--ink);
      font-weight: 700;
      background: linear-gradient(transparent 60%, rgba(255,211,41,.55) 60%);
      padding: 0 2px;
    }