/* =========================================================
   CAVA · Comitato delle Associazioni Venete dell'Argentina
   Un solo CSS para todo el sitio. Colores y medidas en :root.
   ========================================================= */

@font-face { font-family: 'ZT Nature'; src: url('../assets/fonts/ZTNature-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ZT Nature'; src: url('../assets/fonts/ZTNature-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ZT Nature'; src: url('../assets/fonts/ZTNature-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'ZT Nature'; src: url('../assets/fonts/ZTNature-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'ZT Nature'; src: url('../assets/fonts/ZTNature-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  /* Colores del logo CAVA */
  --verde: #1d6b45;
  --celeste: #3ba9e0;
  --rosso: #c8323a;
  --arancio: #e07a2e;
  /* Colores del Veneto / presentaciones */
  --bordo: #5e1327;
  --navy: #13263b;
  --navy-deep: #0b1828;
  /* Dorado (estilo whitehouse.gov): el claro sobre fondos oscuros, el oscuro sobre fondos claros */
  --oro: #cfae62;
  --oro-scuro: #8b6914;
  /* Dorado metálico: empieza y termina igual para que el brillo animado no tenga corte */
  --oro-grad: linear-gradient(100deg, #a8823a 0%, #e6c97f 22%, #fff1c4 36%, #d4b366 50%, #9c7a32 68%, #e6c97f 86%, #a8823a 100%);
  --oro-grad-scuro: linear-gradient(100deg, #6e520c 0%, #a8822a 30%, #c9a24a 45%, #8b6914 65%, #6e520c 100%);
  --verde-hover: #17583a;
  --crema: #f4eee1;
  --crema-2: #ebe3d1;
  --azzurro: #2a8fc4;

  --sheet: var(--crema);
  --paper: #fbf8f1;
  --ink: #13263b;
  --ink-soft: #5b6470;
  --line: rgba(19, 38, 59, 0.14);
  --white: #fff;

  /* Tipografía: solo ZT Nature (la del CAVA) */
  --font: 'ZT Nature', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);

  /* Espacios y formas */
  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --max-w: 75rem;
  --radius: clamp(1.25rem, 1rem + 1vw, 2rem);
  --radius-sheet: clamp(2.25rem, 1rem + 5vw, 5.75rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
h1, h2 { font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h3 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--oro-scuro); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- Nav (píldora de vidrio, como en la inspo) ---------- */
.nav {
  --nav-fg: var(--white);
  --nav-bg: rgba(10, 18, 30, .34);
  --nav-bg-scrolled: rgba(10, 18, 30, .72);
  --nav-border: rgba(255, 255, 255, .14);
  --nav-hover: rgba(255, 255, 255, .12);
  position: fixed; inset: 1rem var(--gutter) auto; z-index: 50;
  max-width: 72rem; margin-inline: auto;
  height: 4.2rem; border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: var(--nav-fg);
  transition: background-color .45s, border-color .45s, color .45s, height .4s var(--ease), box-shadow .45s;
}
.nav.is-scrolled { --nav-bg: var(--nav-bg-scrolled); height: 3.7rem; }
/* Sobre la hoja crema la píldora se vuelve clara */
.nav.is-light {
  --nav-fg: var(--navy);
  --nav-bg: rgba(251, 248, 241, .78);
  --nav-bg-scrolled: rgba(251, 248, 241, .86);
  --nav-border: rgba(19, 38, 59, .12);
  --nav-hover: rgba(19, 38, 59, .07);
  box-shadow: 0 10px 30px -18px rgba(19, 38, 59, .35);
}

.nav-main {
  position: absolute; inset: 0;
  display: grid; align-items: center;
  padding-inline: .75rem .6rem;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s;
}
.nav-main { grid-template-columns: 1fr auto 1fr; }
.nav-links { display: flex; gap: .25rem; font-size: .95rem; }
.nav-links a { padding: .5rem .9rem; border-radius: 999px; opacity: .85; transition: opacity .25s, background-color .3s; }
.nav-links a:hover { opacity: 1; background: var(--nav-hover); }
.nav-links a.is-active { opacity: 1; background: var(--nav-hover); box-shadow: inset 0 0 0 1px var(--nav-border); }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }

.brand { display: grid; place-items: center; padding: .25rem .5rem; border-radius: .75rem; }
.brand-mark { height: 2.35rem; width: auto; filter: brightness(0) invert(1); transition: filter .45s, height .4s var(--ease); }
.nav.is-scrolled .brand-mark { height: 2.1rem; }
.nav.is-light .brand-mark { filter: none; }

.nav-cta { padding: .55rem 1.05rem; border-radius: 999px; font-size: .92rem; font-weight: 700; background: var(--verde); color: var(--white); transition: transform .4s var(--ease), box-shadow .3s, background-color .3s; }
.nav-cta:hover { background: var(--verde-hover); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }

.burger { display: none; width: 2.9rem; height: 2.9rem; place-content: center; gap: 5px; border-radius: 50%; transition: background-color .25s; }
.burger:hover { background: var(--nav-hover); }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { height: 3.6rem; }
  .nav.is-scrolled { height: 3.6rem; }
  .nav-main { grid-template-columns: 1fr auto; padding-left: 1rem; }
  .nav-main .nav-links, .nav-cta { display: none; }
  .brand { justify-self: start; }
  .brand-mark, .nav.is-scrolled .brand-mark { height: 2rem; }
  .burger { display: grid; }
}

/* ---------- Menú overlay (celular, o desde la hamburguesa) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: center;
  padding: 6.5rem var(--gutter) 2rem;
  background: rgba(8, 16, 28, .94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  color: var(--white);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-open { overflow: hidden; }
/* Con el menú abierto la nav siempre va en modo oscuro y principal */
.menu-open .nav { --nav-fg: var(--white); --nav-bg: transparent; --nav-bg-scrolled: transparent; --nav-border: transparent; --nav-hover: rgba(255, 255, 255, .12); box-shadow: none; }
.menu-open .nav .brand-mark { filter: brightness(0) invert(1); }
.menu-inner { width: min(100%, 36rem); margin-inline: auto; display: grid; }
.menu-label { font-size: .95rem; font-weight: 700; color: var(--oro); margin-bottom: 1rem; }
.menu ol, .menu ul { list-style: none; padding: 0; display: grid; gap: .25rem; }
.menu li, .menu-mail { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.menu-open .menu li, .menu-open .menu-mail { opacity: 1; transform: none; }
.menu-sec a { display: block; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); padding: .15rem 0; transition: color .25s; }
.menu-sec a:hover { color: var(--oro); }
.menu-sec .menu-mail { display: grid; margin-top: 1.75rem; font-family: var(--font); font-size: 1.05rem; font-weight: 700; padding: 1rem 1.2rem; border-radius: 1rem; background: var(--verde); color: var(--white); }
.menu-sec .menu-mail:hover { color: var(--white); background: var(--verde-hover); }
.menu-mail small { font-size: .85rem; font-weight: 600; opacity: .7; }
@media (max-width: 760px) { .menu { align-items: start; } }
/* ---------- Fondo: video + gradiente + oscurecido ---------- */
.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--bg-base); }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.bg-video.is-ready { opacity: 1; }
/* Capa oscura para que el texto contraste, sin tapar el video */
.bg-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(6, 12, 22, .35), transparent 75%),
    linear-gradient(180deg, rgba(6, 12, 22, .72) 0%, rgba(6, 12, 22, .58) 45%, rgba(6, 12, 22, .72) 100%);
}
/* Un poco de sombra en los textos sobre video, por si el cuadro es muy claro */
.hero h1, .hero .lead, .band h2, .band p { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* Gradientes (mientras no haya video): colores del CAVA y del Veneto */
[data-theme='cava'] { --bg-base: radial-gradient(ellipse 80% 70% at 15% 10%, rgba(59, 169, 224, .45), transparent 60%), radial-gradient(ellipse 70% 60% at 90% 95%, rgba(29, 107, 69, .7), transparent 65%), linear-gradient(165deg, #0f2c48 0%, #173d5c 50%, #10392b 100%); }
[data-theme='veneto'] { --bg-base: #161d2c; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(36rem, 100svh, 64rem);
  display: grid; place-items: center;
  padding: 8rem var(--gutter) calc(var(--radius-sheet) + 5rem);
  color: var(--white); text-align: center;
}
.hero-content { position: relative; z-index: 2; max-width: 62rem; display: grid; justify-items: center; gap: 1.4rem; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.75rem); }
.hero .lead { font-size: var(--fs-lead); max-width: 46rem; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.hero-logo { width: clamp(7.5rem, 5rem + 8vw, 12rem); height: auto; filter: brightness(0) invert(1); opacity: .95; }
.eyebrow { font-size: clamp(.8rem, .75rem + .3vw, 1.05rem); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); }
/* Etiqueta del evento (Consulta 2026) arriba del título */
.event-badge {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .55em 1.1em; border-radius: 999px;
  border: 1px solid rgba(207, 174, 98, .55);
  background: rgba(10, 18, 30, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: clamp(.75rem, .7rem + .3vw, .95rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--oro); text-align: center;
}
.event-badge-dot { flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 .25em rgba(207, 174, 98, .2); }
/* Botón "Chi siamo ↓" al pie del hero */
.hero-down {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0;
  bottom: calc(var(--radius-sheet) + 2rem + clamp(1.25rem, 1rem + 1.5vw, 2.25rem));
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .45rem .45rem .45rem 1.15rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--white);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s, border-color .3s;
}
.hero-down:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
/* Lugar para el botón: el contenido del hero no lo pisa */
.hero { padding-bottom: calc(var(--radius-sheet) + 9rem); }
.hero-down span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--verde); color: var(--white); font-weight: 700; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }

.js .hero .fade-in { opacity: 0; animation: fade-up 1s var(--ease) forwards; animation-delay: var(--d, .3s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hoja (sheet) ---------- */
.sheet {
  position: relative; z-index: 3;
  margin-top: calc(var(--radius-sheet) * -1 - 2rem);
  background: var(--sheet);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem) var(--section);
}
.section { padding-top: var(--section); }

/* Rótulo de sección */
.label { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }

.sec-head { display: grid; gap: 1.1rem; justify-items: start; max-width: 50rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sec-head h2, .about h2, .rete h2 { font-size: var(--fs-h2); color: var(--navy); }
.sec-head p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); }
.sec-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.sec-head.on-dark h2, .sec-head.on-dark { color: var(--white); }
.sec-head.on-dark p { color: rgba(255, 255, 255, .82); }
.sec-head.on-dark .label { color: rgba(255, 255, 255, .7); }
.sec-head.on-dark .label span { color: var(--oro); }
.big { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }

/* ---------- Chi siamo ---------- */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.about-head { display: grid; gap: 1.1rem; justify-items: start; }
.about-logo { width: clamp(7rem, 5rem + 5vw, 10rem); height: auto; margin-bottom: .5rem; }
.about-body { display: grid; gap: 1rem; padding-top: .5rem; }
.about-body > p:not(.big) { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.facts div { border-top: 1px solid var(--navy); padding-top: 1rem; }
.facts dt { font-weight: 900; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1; letter-spacing: -0.05em; color: var(--navy); }
/* Contadores (main.js): suben desde 0 al aparecer; el "+" entra con un rebote al final */
.facts dt[data-count] { font-variant-numeric: tabular-nums; }
.count-plus { display: inline-block; color: var(--oro-scuro); transform-origin: 20% 70%; }
.js .facts dt.is-counting .count-plus { opacity: 0; transform: scale(.3) rotate(-25deg); }
.js .facts dt.is-counted .count-plus { animation: count-plus .6s var(--ease-spring) both; }
@keyframes count-plus { from { opacity: 0; transform: scale(.3) rotate(-25deg); } to { opacity: 1; transform: none; } }
.facts dd { margin: .5rem 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
/* En celular: número a la izquierda y texto a la derecha; los textos alineados en una misma columna */
@media (max-width: 520px) {
  .facts { grid-template-columns: auto 1fr; gap: 1rem 0; }
  .facts div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 1.1rem; align-items: center; padding-block: .9rem; }
  .facts dd { margin: 0; line-height: 1.35; }
}

/* ---------- La rete: mapa ---------- */
.rete { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.rete-text { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.rete-head { display: grid; gap: 1.1rem; justify-items: start; }
.routes-hint { font-size: .95rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .9rem; }

/* Rutas destacadas: cada viaje en Argentina frente a uno parecido en Italia, a la misma escala */
.routes-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: .9rem; }
.routes-top .routes-hint { margin: 0; }
.cmp-legend { display: flex; gap: 1rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.cmp-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cmp-legend span::before { content: ''; width: .9rem; height: .5rem; border-radius: 999px; background: var(--c); }
.ar { --c: var(--azzurro); }
.it { --c: var(--verde); }

.routes { list-style: none; padding: 0; border-bottom: 1px solid var(--line); --max: 1113; }
.route {
  width: 100%; display: grid; gap: .7rem;
  padding: 1.1rem .9rem 1.2rem; border-top: 1px solid var(--line);
  transition: background-color .3s, padding .4s var(--ease);
}
.route-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.route-city { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; transition: color .3s; }
.route-time { font-size: .9rem; color: var(--ink-soft); }
.cmp { display: grid; gap: .45rem; }
.cmp-row { display: grid; grid-template-columns: 13.25rem 1fr 4.6rem; align-items: center; gap: .8rem; font-size: .88rem; }
.cmp-label { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-track { height: .55rem; border-radius: 999px; background: rgba(19, 38, 59, .06); overflow: hidden; }
.cmp-track i { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); border-radius: inherit; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.cmp-row.it .cmp-track i { transition-delay: .15s; }
.routes-wrap.is-in .cmp-track i { transform: none; }
.cmp-row b { font-weight: 800; text-align: right; white-space: nowrap; color: var(--navy); }
.route:hover, .route.is-active { background: var(--paper); padding-left: 1.3rem; }
.route:hover .route-city, .route.is-active .route-city { color: var(--rosso); }
@media (max-width: 520px) {
  .cmp-row { grid-template-columns: 1fr auto; gap: .25rem .6rem; }
  .cmp-label { grid-column: 1 / -1; }
}

/* Todas las sedes (lista compacta conectada al mapa) */
.localita { padding-top: 1.75rem; border-top: 1px solid var(--navy); }
.localita h3 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--navy); margin-bottom: .4rem; }
.localita dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.1rem 1.75rem; margin: 1.25rem 0; }
.localita dt { font-size: .88rem; font-weight: 700; color: var(--verde); margin-bottom: .2rem; }
.localita dd { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .25rem; }
.sede { padding: .15rem .45rem; margin-left: -.45rem; border-radius: .4rem; font-size: 1rem; transition: background-color .25s, color .25s; }
.sede:hover, .sede.is-active { background: var(--paper); color: var(--rosso); }
.localita .note { font-size: .85rem; color: var(--ink-soft); }
/* La provincia es un botón (lo pone main.js), pero en desktop se ve y se comporta como texto */
.prov { padding: 0; font: inherit; color: inherit; cursor: default; pointer-events: none; }
.prov-n { display: none; }
.hint-mob { display: none; }
@media (max-width: 600px) { .js .hint-desk { display: none; } .js .hint-mob { display: inline; } }
/* En celular: cada provincia es un chip; al tocarlo se estira y muestra sus ciudades */
@media (max-width: 600px) {
  .localita dl { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
  .localita dl > div {
    display: inline-flex; align-items: center; max-width: 100%;
    padding: .2rem; border-radius: 1.4rem; background: var(--paper); border: 1px solid var(--line);
    transition: border-color .3s, background-color .3s;
  }
  .localita dl > div.is-open { background: var(--white); border-color: color-mix(in srgb, var(--verde) 45%, transparent); }
  .localita dt { margin: 0; flex: none; align-self: flex-start; }
  .prov { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .45rem .4rem .75rem; border-radius: 999px; font-size: .92rem; font-weight: 700; color: var(--verde); white-space: nowrap; cursor: pointer; pointer-events: auto; }
  .prov-n { display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--verde); color: var(--white); font-size: .72rem; transition: background-color .3s, transform .4s var(--ease-spring); }
  .is-open .prov-n { background: var(--navy); transform: scale(.85); }
  /* Cerrado: en una sola línea (si no, las ciudades ocultas se apilan y estiran el chip hacia abajo) */
  .localita dd { flex-wrap: nowrap; max-width: 0; overflow: hidden; align-items: center; gap: .1rem; transition: max-width .55s var(--ease); }
  .localita dd .sede { margin: 0; padding: .35rem .55rem; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateX(-.4rem); transition: opacity .25s, transform .4s var(--ease), background-color .25s, color .25s; }
  .is-open dd .sede { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * 50ms), calc(.08s + var(--i, 0) * 50ms), 0s, 0s; }
  .sede:hover, .sede.is-active { background: var(--paper); }
  .is-open .sede.is-active { background: color-mix(in srgb, var(--rosso) 10%, transparent); }
}

/* Columna del mapa: selector + mapa + nota (fija al hacer scroll en desktop) */
.map-col { position: sticky; top: 5.5rem; display: grid; justify-items: center; gap: .9rem; }
.map-switch { display: inline-flex; padding: .25rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.map-switch button { padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); transition: background-color .3s, color .3s; }
.map-switch button:hover { color: var(--navy); }
.map-switch button[aria-pressed='true'] { background: var(--navy); color: var(--white); }
/* "Italia alla stessa scala": un pulso que invita a tocarlo, hasta el primer toque */
.map-col:not(.italia-seen) [data-view='italia'] { color: var(--navy); animation: italia-pulse 2.4s var(--ease) infinite; }
@keyframes italia-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--oro-scuro) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 .6rem color-mix(in srgb, var(--oro-scuro) 0%, transparent); }
}
/* Globito "Prova!" bajo el botón de Italia (::after) con su colita (::before): aparece cuando el mapa
   entra en pantalla, después de las ciudades, y se va con el primer toque */
.map-switch [data-view='italia'] { position: relative; }
.map-switch [data-view='italia']::before, .map-switch [data-view='italia']::after {
  content: ''; position: absolute; z-index: 4; left: 50%; pointer-events: none; background: var(--oro-scuro);
  opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease-spring);
}
.map-switch [data-view='italia']::after {
  content: 'Prova!'; top: calc(100% + .8rem);
  padding: .35rem .75rem; border-radius: .6rem; color: var(--white); font-size: .82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(19, 38, 59, .55);
  transform: translate(-50%, -.4rem) scale(.7); transform-origin: 50% 0;
}
.map-switch [data-view='italia']::before { top: calc(100% + .55rem); width: .65rem; height: .65rem; margin-left: -.325rem; border-radius: 2px; transform: translateY(-.4rem) rotate(45deg) scale(.7); }
.js .map-col.is-in:not(.italia-seen) [data-view='italia']::before,
.js .map-col.is-in:not(.italia-seen) [data-view='italia']::after { opacity: 1; transition-delay: 1.8s; animation: bubble-bob 2.4s ease-in-out 2.4s infinite; }
.js .map-col.is-in:not(.italia-seen) [data-view='italia']::after { transform: translateX(-50%); }
.js .map-col.is-in:not(.italia-seen) [data-view='italia']::before { transform: rotate(45deg); }
@keyframes bubble-bob { 50% { translate: 0 -3px; } }
.map-note { max-width: 24rem; text-align: center; font-size: .88rem; color: var(--ink-soft); }
.map-note strong { color: var(--ink); }
.map-note .note-italia, .map-col.show-italia .note-rete { display: none; }
.map-col.show-italia .note-italia { display: inline; }

.map {
  position: relative; margin: 0;
  width: min(100%, 25rem, calc((100svh - 12rem) * 0.4817));
  aspect-ratio: 475 / 986;
}
.map-svg { width: 100%; height: 100%; overflow: visible; }
.prov-off, .malvinas { fill: var(--crema-2); stroke: #d8ccb2; }
.prov-on { fill: #c3dacb; stroke: #a2c1ad; transition: fill .5s, stroke .5s; }
.map-col.show-italia .prov-on { fill: #dde8e0; stroke: #c6d8cc; }
.italia { opacity: 0; transform: scale(.85); transform-origin: 160px 540px; transition: opacity .6s var(--ease), transform .8s var(--ease-spring); pointer-events: none; }
.italia g:first-of-type { fill: var(--crema); stroke: var(--crema); }
.italia [fill='#E0A93B'] { fill: var(--navy); }
.italia [fill='#B3262D'] { fill: var(--rosso); }
.map-col.show-italia .italia { opacity: 1; transform: none; }
.map-col.show-italia .routes-svg, .map-col.show-italia .cities { opacity: .12; pointer-events: none; }
.map-col.show-italia .city-label { opacity: 0 !important; }

/* Ciudades: aparecen de norte a sur cuando el mapa entra en pantalla; se pueden tocar */
.cities, .routes-svg, .city-label { transition: opacity .4s var(--ease); }
.city { cursor: pointer; }
.city-hit { fill: transparent; }
.city-dot { fill: var(--navy); stroke: var(--crema); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-spring), fill .3s; }
.city-dot.small, .city:not(.main) .city-dot { stroke-width: 2.5; }
.js .map-col .city-dot { transform: scale(0); transition-delay: calc(.2s + var(--i) * 55ms); }
.js .map-col.is-in .city-dot { transform: none; }
.city:hover .city-dot { transform: scale(1.3) !important; transition-delay: 0s; }
.city.is-active .city-dot { fill: var(--rosso); transform: scale(1.45) !important; transition-delay: 0s; }

/* Rutas: arcos que se dibujan desde Buenos Aires; un punto recorre el viaje */
.route-svg { fill: none; stroke-linecap: round; }
.route-halo { stroke: var(--crema); stroke-width: 10; }
.route-line { stroke: var(--rosso); stroke-width: 4.5; }
.route-halo, .route-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease); }
.route-svg.is-active .route-halo, .route-svg.is-active .route-line { stroke-dashoffset: 0; }
.traveler { fill: var(--white); stroke: var(--rosso); stroke-width: 3; opacity: 0; transition: opacity .3s; }
.route-svg.is-active .traveler { opacity: 1; }

.hq { cursor: pointer; }
.hq-dot { fill: var(--rosso); stroke: var(--crema); stroke-width: 3.5; }
.hq-ring { fill: none; stroke: var(--rosso); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.scale path { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; }
.scale text { font-family: var(--font); font-size: 22px; fill: var(--ink-soft); }

/* Nombres de las ciudades (HTML encima del SVG para que se lean igual en celular).
   Las principales se ven siempre; las demás aparecen al elegirlas. */
.city-label {
  position: absolute; z-index: 1; white-space: nowrap; pointer-events: none;
  font-size: clamp(.66rem, .6rem + .22vw, .8rem); font-weight: 600; line-height: 1; color: var(--navy);
  text-shadow: 0 0 3px var(--crema), 0 0 3px var(--crema), 0 0 6px var(--crema);
  transition: opacity .4s var(--ease), color .3s;
}
.city-label.pos-r { transform: translate(10px, -50%); }
.city-label.pos-l { transform: translate(calc(-100% - 10px), -50%); }
.city-label.pos-t { transform: translate(-50%, calc(-100% - 9px)); }
.city-label.pos-b { transform: translate(-50%, 9px); }
.city-label.pos-bl { transform: translate(calc(-100% + 2px), 8px); }
.city-label:not(.main) { opacity: 0; }
.js .map-col .city-label.main { opacity: 0; transition-delay: calc(.35s + var(--i) * 55ms); }
.js .map-col.is-in .city-label.main { opacity: 1; }
.city-label b { display: none; margin-left: .35em; font-weight: 700; color: var(--rosso); }
.map-col .city-label.is-active { opacity: 1; color: var(--rosso); transition-delay: 0s; z-index: 3; }
.city-label.is-active b { display: inline; }
.map-col .city-label.is-active { padding: .22rem .4rem; border-radius: .35rem; background: var(--paper); text-shadow: none; box-shadow: 0 4px 12px -6px rgba(19, 38, 59, .45); }
.map-col[data-active] .city-label.main:not(.is-active) { opacity: .4; }

.map-hq {
  position: absolute; z-index: 2; display: grid; line-height: 1.15; white-space: nowrap;
  transform: translate(0, -50%); padding: .3rem .55rem; border-radius: .5rem;
  font-size: clamp(.68rem, .62rem + .25vw, .82rem); font-weight: 600;
  background: var(--navy); color: var(--white);
  box-shadow: 0 6px 14px -10px rgba(19, 38, 59, .6);
}
.map-hq b { font-weight: 400; color: rgba(255, 255, 255, .7); font-size: .92em; }

.map-legend { position: absolute; top: 0; right: 0; display: grid; gap: .35rem; font-size: .74rem; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.lg-dot::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--crema); }
.lg-prov::before { content: ''; width: .75rem; height: .6rem; border-radius: 2px; background: #c3dacb; box-shadow: inset 0 0 0 1px #a2c1ad; }
.map-col.show-italia .map-legend { opacity: 0; }

@media (max-width: 860px) {
  .rete { grid-template-columns: 1fr; }
  .rete-text { display: contents; }
  .rete-head { order: 1; }
  .map-col { order: 2; position: relative; top: 0; }
  .map { width: min(100%, 21rem); }
  .routes-wrap { order: 3; }
  .localita { order: 4; }
}

/* ---------- Banda oscura (fondo de video) ---------- */
.band { position: relative; isolation: isolate; color: var(--white); padding-block: var(--section); overflow: hidden; }
.band > .container { position: relative; z-index: 2; }
.roles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.role { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 1.25rem; }
.role-n { display: block; font-weight: 900; font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em; color: var(--oro); margin-bottom: 1rem; }
.role h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: .5rem; }
.role p { color: rgba(255, 255, 255, .78); font-size: .98rem; }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

.quote { margin: var(--section) auto 0; max-width: 58rem; text-align: center; }
.quote::before { content: '“'; display: block; font-weight: 900; font-size: 6rem; line-height: .6; color: var(--oro); margin-bottom: .5rem; }
.quote p { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); line-height: 1.25; }
.quote em { font-style: normal; color: var(--oro); }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; color: rgba(255, 255, 255, .78); background: var(--navy-deep); padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
/* Tricolore italiano (verde, bianco, rosso) */
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #009246 0 33.3%, #f4f5f0 0 66.6%, #ce2b37 0); z-index: 2; }
.footer-map { position: absolute; z-index: -1; top: 50%; left: 47%; height: 120%; aspect-ratio: 475 / 986; transform: translate(-50%, -50%); pointer-events: none; }
.footer-map svg { width: 100%; height: 100%; }
.footer-map path { stroke: rgba(255, 255, 255, .13); }
.footer-ba { fill: var(--rosso); stroke: var(--navy-deep); stroke-width: 4; }
@media (max-width: 760px) { .footer-map { left: auto; right: -3rem; height: 95%; transform: translateY(-50%); opacity: .7; } }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2.5rem; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-cta h2 { font-family: var(--font); font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--white); max-width: 12ch; }
.footer-cta h2 span { display: block; color: var(--oro); }
.footer-contact { display: grid; gap: 1.5rem; max-width: 30rem; }
.footer-contact p { font-size: var(--fs-lead); line-height: 1.4; color: rgba(255, 255, 255, .85); }
/* Mail: tarjeta de vidrio con flecha que se mueve al pasar el mouse */
.footer-mail {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .35s, border-color .35s, transform .45s var(--ease);
}
.footer-mail:hover { background: rgba(255, 255, 255, .12); border-color: color-mix(in srgb, var(--oro) 60%, transparent); transform: translateY(-3px); }
.footer-mail-text { display: grid; gap: .1rem; min-width: 0; color: var(--white); font-weight: 700; font-size: clamp(1rem, .85rem + .7vw, 1.35rem); overflow-wrap: anywhere; }
.footer-mail-text small { font-size: .85rem; font-weight: 600; color: var(--oro); }
.footer-mail-arrow { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--verde); color: var(--white); font-size: 1.25rem; font-weight: 700; transition: transform .45s var(--ease-spring); }
.footer-mail:hover .footer-mail-arrow { transform: translateX(4px) rotate(-45deg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
/* Créditos */
.credits a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; transition: text-decoration-color .3s, color .3s; }
.credits a:hover { color: var(--oro); text-decoration-color: currentColor; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .3s, color .3s; }
.to-top:hover { background: var(--white); color: var(--navy); }

/* ---------- Reveal al hacer scroll ---------- */
.js [data-reveal]:not(.map) { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Dorado en degradé: los textos dorados se pintan con el degradado (background-clip: text).
   Sin soporte, queda el color --oro de cada regla. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .eyebrow, .menu-label, .sec-head.on-dark .label span,
  .role-n, .quote::before, .quote em, .footer-cta h2 span, .footer-mail-text small, .count-plus {
    background: var(--oro-grad); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent; text-shadow: none;
  }
  .count-plus { background-image: var(--oro-grad-scuro); }
  /* La sombra del texto sobre video se vería a través del dorado: se pasa a drop-shadow */
  .band .quote em { text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
  /* Brillo que recorre los dorados grandes */
  .footer-cta h2 span, .quote em { animation: oro-shine 7s linear infinite; }
}
@keyframes oro-shine { from { background-position: 0% 0; } to { background-position: -200% 0; } }
.map-switch [data-view='italia']::before, .map-switch [data-view='italia']::after { background: var(--oro-grad-scuro); }

/* "Reducir animaciones" (lo activa Windows cuando se apagan los efectos de animación):
   se quitan los movimientos, pero quedan los fundidos, los videos y las flechas del mapa. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hq-ring, .hero-down span, .map-col:not(.italia-seen) [data-view='italia'] { animation: none; }
  .js .map-col [data-view='italia']::before, .js .map-col [data-view='italia']::after { animation: none !important; }
  .footer-cta h2 span, .quote em { animation: none; }
  .js [data-reveal]:not(.map) { transform: none; }
  @keyframes fade-up { from { opacity: 0; } to { opacity: 1; } }
  .footer-mail:hover { transform: none; }
  @keyframes count-plus { from { opacity: 0; } to { opacity: 1; } }
}
