/* aDigital — sistema de diseño (rediseño con principios de Apple: respuesta inmediata,
   movimiento con resortes, materiales translúcidos, tipografía con tracking por tamaño).
   Los colores de marca se conservan sin cambios. */
:root {
  /* Colores de marca (sin cambios) */
  --ink: #000;
  --paper: #fff;
  --mist: #f3f4f8;
  --line: #e2e4ec;
  --muted: #545869;
  --blue: #2b3cff;
  --blue-dk: #1c29c9;
  --sun: #ffd83d;
  --wa: #25d366;

  /* Derivados para materiales y profundidad */
  --glass-dark: rgb(0 0 0 / .78);
  --glass-dark-strong: rgb(10 10 14 / .82);
  --glass-light: rgb(255 255 255 / .72);
  --hairline-dark: rgb(255 255 255 / .14);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .05), 0 2px 8px rgb(0 0 0 / .04);
  --shadow-md: 0 2px 4px rgb(0 0 0 / .04), 0 12px 32px -8px rgb(0 0 0 / .14);
  --shadow-lg: 0 4px 8px rgb(0 0 0 / .05), 0 30px 60px -18px rgb(0 0 0 / .28);
  --shadow-blue: 0 18px 40px -14px color-mix(in srgb, var(--blue) 70%, transparent);

  /* Forma */
  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 999px;
  --wrap: 1200px;
  --pad: clamp(1rem, 4vw, 2rem);
  --head-h: 64px;

  /* Tipografía de marca (sin cambios) */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Curvas de movimiento: resorte críticamente amortiguado (sin rebote) y uno con rebote ligero */
  --spring: cubic-bezier(.22, 1, .36, 1);
  --spring-bounce: cubic-bezier(.34, 1.36, .64, 1);
  --t-press: 100ms;
  --t-ui: 420ms;
  --t-reveal: 900ms;
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Resortes reales muestreados (damping 1.0 / response .4 y damping .8 / response .4) */
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 18.4%, .988 22.5%, 1.003 27.4%, 1.004 33.1%, 1);
    --spring-bounce: linear(0, .011, .043 2.1%, .175 4.6%, .861 13.6%, 1.067 19.3%, 1.096 21.9%, 1.093 25.4%, 1.036 32.7%, 1.003 40.3%, .993 48.5%, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; letter-spacing: -.003em;
  color: var(--ink); background: var(--paper); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }

/* Tipografía: tracking y leading cambian con el tamaño */
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 5.2vw, 3.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -.038em; }
h3, .h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
small { letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 12px; transition: top var(--t-ui) var(--spring); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }

/* ---------- botones: respuesta al presionar, no al soltar ---------- */
.btn {
  --mx: 0px; --my: 0px; --s: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--blue); color: #fff; font-weight: 600; letter-spacing: -.005em; text-decoration: none; text-align: center; line-height: 1.2;
  border: 0; box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-sm);
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--s));
  transition: background-color .25s var(--spring), color .25s var(--spring), box-shadow .35s var(--spring), transform var(--t-ui) var(--spring);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn::after { /* brillo que sigue al puntero */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .28), transparent 70%);
  opacity: 0; transition: opacity .3s var(--spring);
}
.btn:hover::after { opacity: 1; }
.btn:hover { background: var(--blue-dk); box-shadow: inset 0 0 0 2px var(--blue-dk), var(--shadow-blue); }
.btn:active, .btn.is-pressed { --s: .96; transition-duration: .25s, .25s, .35s, var(--t-press); transition-timing-function: var(--spring), var(--spring), var(--spring), ease-out; }
.btn-sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .95rem; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff, var(--shadow-sm); }
.btn-light::after { background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgb(43 60 255 / .14), transparent 70%); }
.btn-light:hover { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun), 0 18px 40px -16px rgb(255 216 61 / .7); }
.btn-ghost { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff, var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline::after { background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .2), transparent 70%); }
.btn-outline:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-md); }
.btn-block { width: 100%; }

.link {
  font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 calc(100% - 8px) / 100% 2px no-repeat;
  transition: background-size .5s var(--spring), color .2s;
}
.link::after { content: "→"; transition: transform var(--t-ui) var(--spring); }
.link:hover { color: var(--blue); background-size: 0 2px; background-position: 100% calc(100% - 8px); }
.link:hover::after { transform: translateX(4px); }
.link-light { color: #fff; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.link-light:hover { color: var(--sun); }

/* ---------- barra superior + encabezado translúcido ---------- */
.topbar {
  position: relative; display: block; background: var(--sun); color: var(--ink); text-align: center;
  font-size: .9rem; font-weight: 600; padding: .55rem var(--pad); text-decoration: none; line-height: 1.35; letter-spacing: -.005em; overflow: hidden;
}
.topbar::before { /* destello que cruza la barra */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  animation: sheen 6s var(--spring) 1.2s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.topbar:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff; padding-top: env(safe-area-inset-top, 0px);
  background: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 -1px 0 var(--hairline-dark);
  transition: background-color .5s var(--spring), box-shadow .5s var(--spring);
}
.site-header.is-scrolled { background: var(--glass-dark); box-shadow: inset 0 -1px 0 var(--hairline-dark), 0 10px 30px -12px rgb(0 0 0 / .45); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--head-h); gap: 1rem; transition: min-height .5s var(--spring); }
.is-scrolled .header-in { min-height: 56px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--sun)); pointer-events: none; }

.logo { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.035em; text-decoration: none; display: inline-flex; align-items: center; gap: .15rem; }
.logo-a {
  display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; background: var(--blue); color: #fff; border-radius: 10px; margin-right: .12em; font-size: .9em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 16px -6px var(--blue);
  transition: transform .6s var(--spring-bounce), border-radius .6s var(--spring);
}
.logo:hover .logo-a { transform: rotate(-8deg) scale(1.06); border-radius: 14px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav ul { display: flex; gap: .15rem; position: relative; }
.nav ul a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; text-decoration: none;
  color: rgb(255 255 255 / .8); font-weight: 500; font-size: .97rem; border-radius: var(--radius-sm); transition: color .25s var(--spring);
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: #fff; }
.nav-pill { /* indicador deslizante del menú */
  position: absolute; top: 0; left: 0; height: 40px; border-radius: var(--radius-sm); pointer-events: none;
  background: rgb(255 255 255 / .12); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
  opacity: 0; transition: opacity .3s var(--spring);
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { color: rgb(255 255 255 / .8); text-decoration: none; font-size: .95rem; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.nav-phone:hover { color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: 14px; transition: background-color .2s, transform var(--t-press) ease-out; }
.nav-toggle:active { transform: scale(.92); background: rgb(255 255 255 / .1); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; margin: auto; position: relative; transition: transform var(--t-ui) var(--spring), background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) { .nav-phone { display: none; } }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-pill { display: none; }
  /* Hoja que nace del botón de menú (origen anclado arriba a la derecha) */
  .nav {
    position: absolute; inset: calc(100% + 8px) 8px auto 8px; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius);
    max-height: calc(100dvh - var(--head-h) - env(safe-area-inset-top, 0px) - 24px); overflow-y: auto;
    background: rgb(14 14 20 / .97); /* casi sólido: el encabezado ya difumina, un segundo desenfoque anidado no funciona */
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 0 0 1px var(--hairline-dark), 0 40px 80px -20px rgb(0 0 0 / .6);
    transform-origin: calc(100% - 24px) -8px;
    display: flex; visibility: hidden; opacity: 0; transform: scale(.92) translateY(-8px); filter: blur(6px);
    transition: opacity .3s var(--spring), transform var(--t-ui) var(--spring), filter .35s var(--spring), visibility 0s .45s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; filter: none; transition: opacity .3s var(--spring), transform var(--t-ui) var(--spring-bounce), filter .35s var(--spring), visibility 0s; }
  .nav ul { flex-direction: column; }
  .nav ul li { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--spring), transform var(--t-ui) var(--spring); }
  .nav.open ul li { opacity: 1; transform: none; }
  .nav.open ul li:nth-child(2) { transition-delay: .03s; } .nav.open ul li:nth-child(3) { transition-delay: .06s; }
  .nav.open ul li:nth-child(4) { transition-delay: .09s; } .nav.open ul li:nth-child(5) { transition-delay: .12s; }
  .nav ul a { font-size: 1.2rem; min-height: 52px; width: 100%; padding: 0 1rem; border-radius: 14px; }
  .nav ul a:active { background: rgb(255 255 255 / .1); }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-phone { display: flex; justify-content: center; padding: .5rem; }
  body.menu-open { overflow: hidden; }
  .menu-scrim { position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .35s var(--spring); }
  body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- migas ---------- */
.crumbs { padding-top: 1.25rem; font-size: .88rem; color: var(--muted); letter-spacing: .005em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .5rem; color: #b7bbc9; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--blue); }

/* ---------- hero (inicio) con video ---------- */
.hero {
  position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden;
  min-height: min(calc(100svh - var(--head-h) - 2.4rem), 980px); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #000 var(--poster, none) center / cover no-repeat; }
.hero-media::before { /* póster suavizado mientras carga el video */
  content: ""; position: absolute; inset: -20px; background: inherit; filter: blur(14px) saturate(130%); transform: scale(1.06);
}
.hero-media { container-type: size; }
.hero-media iframe {
  /* Cubre el hero y se amplía de más: la barra de título y el logo de YouTube quedan fuera del recorte */
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; user-select: none;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(calc(var(--zoom, 1.34) + var(--enter, .08)));
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--spring), visibility 0s linear 1.2s, transform 2.4s var(--spring);
}
.hero-media.is-ready iframe { opacity: 1; visibility: visible; --enter: 0; transition: opacity 1.2s var(--spring), visibility 0s, transform 2.4s var(--spring); }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 15% 100%, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .35) 55%, transparent 80%),
    linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .15) 35%, rgb(0 0 0 / .6) 80%, #000 100%),
    radial-gradient(60% 60% at 85% 20%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 70%);
}

.hero-in { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(4rem, 12vw, 8rem) clamp(2.5rem, 6vw, 4rem); will-change: transform, opacity; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: end; } }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); max-width: 11ch; line-height: .92; letter-spacing: -.055em; text-shadow: 0 2px 40px rgb(0 0 0 / .35); }
.hero h1 .w { display: inline-block; }
.hero .lead { color: rgb(255 255 255 / .86); max-width: 56ch; font-weight: 450; text-shadow: 0 1px 20px rgb(0 0 0 / .4); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; letter-spacing: .01em; color: var(--blue); margin-bottom: 1rem; }
.hero .kicker, .section-ink .kicker, .cta-band .kicker { color: var(--sun); }
.hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgb(255 216 61 / .6); animation: pulse 2.4s var(--spring) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 216 61 / .55); } 80%, 100% { box-shadow: 0 0 0 12px rgb(255 216 61 / 0); } }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.55; letter-spacing: -.01em; max-width: 62ch; }
.hero-actions, .intro-actions, .cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; align-items: center; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; color: rgb(255 255 255 / .66); font-size: .95rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-facts li {
  border-radius: var(--radius-sm); padding: .5rem 1.05rem; font-size: .95rem;
  background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
/* Panel de ciudades: material oscuro translúcido sobre el video */
.hero-cities {
  border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; align-self: end;
  background: rgb(12 12 18 / .5); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -24px rgb(0 0 0 / .7);
}
.hero-cities > p { color: rgb(255 255 255 / .7); margin-bottom: .25rem; font-size: .95rem; }
.hero-cities li { border-bottom: 1px solid rgb(255 255 255 / .12); }
.hero-cities li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; text-decoration: none; transition: transform var(--t-ui) var(--spring); }
.hero-cities li a:hover { transform: translateX(6px); }
.hero-cities li span { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; line-height: 1; transition: color .25s; }
.hero-cities li a:hover span { color: var(--sun); }
.hero-cities small { color: var(--sun); font-weight: 600; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-cities .link-light { margin-top: .6rem; }

/* Cinta de servicios: arrastrable, con inercia */
.marquee {
  position: relative; border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.1rem; overflow: hidden; cursor: grab; touch-action: pan-y;
  background: rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  user-select: none; -webkit-user-select: none;
}
.marquee.is-dragging { cursor: grabbing; }
.marquee ul { display: flex; gap: 2.5rem; width: max-content; animation: slide 36s linear infinite; will-change: transform; }
.marquee.is-js ul { animation: none; }
.marquee li { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.7rem); letter-spacing: -.02em; color: rgb(255 255 255 / .92); white-space: nowrap; }
.marquee li::after { content: "✦"; margin-left: 2.5rem; color: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- intro de páginas internas ---------- */
.page-intro {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 60%), linear-gradient(180deg, var(--paper), var(--mist));
}
.page-intro::after { /* orbe de color que flota lentamente */
  content: ""; position: absolute; z-index: -1; width: min(48vw, 520px); aspect-ratio: 1; right: -10%; top: -30%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 62%);
  filter: blur(30px); opacity: .7; transform: translate3d(0, var(--py, 0px), 0);
}
.page-intro h1 { max-width: 18ch; }
.page-intro .lead { color: var(--muted); }
.promo {
  display: inline-block; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 700; border-radius: var(--radius-sm); padding: .25rem .7rem; vertical-align: middle; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgb(255 216 61 / .9); animation: nudge 3.2s var(--spring) 1.5s infinite;
}
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-4deg) scale(1.06); } 94% { transform: rotate(3deg) scale(1.03); } }

/* ---------- secciones ---------- */
.section { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.section-tight { padding-top: 2rem; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.section-ink::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 40%, transparent), transparent 65%); filter: blur(40px); opacity: .55;
  transform: translate3d(0, var(--py, 0px), 0);
}
.sec-head { max-width: 64ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.sec-head .kicker { color: var(--blue); }
.section-ink .sec-head p { color: rgb(255 255 255 / .72); }
.section-ink .sec-head .kicker, .cta-band .kicker { color: var(--sun); }
.split { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split > .sec-head { margin-bottom: 0; }
@media (min-width: 821px) { .split > .sec-head { position: sticky; top: calc(var(--head-h) + 2rem); } }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.more { margin-top: 2.5rem; }

/* ---------- tarjetas con profundidad (base común) ---------- */
.svc, .pkg, .zone-card, .svc-links a, .contact-side, .finder {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0);
  transform-style: preserve-3d;
}
.tilt { will-change: transform; }
.tilt::before { /* reflejo de luz según el puntero */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .55), transparent 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s var(--spring);
}
.tilt.is-hover::before { opacity: 1; }

/* ---------- servicios ---------- */
.svc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.svc {
  position: relative; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow .5s var(--spring);
}
.svc::after { /* franja de color de la tarjeta */
  content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 4px; border-radius: 0 0 6px 6px; background: var(--blue);
  transform-origin: 0 50%; transition: left .5s var(--spring), right .5s var(--spring);
}
.svc:hover::after { left: 0; right: 0; border-radius: var(--radius) var(--radius) 0 0; }
.svc-marca::after { background: var(--ink); }
.svc-redes::after { background: var(--sun); }
.svc:hover, .pkg:hover, .zone-card:hover, .svc-links a:hover { box-shadow: inset 0 0 0 1px transparent, var(--shadow-lg); }
.svc-head { display: flex; justify-content: space-between; align-items: start; gap: .5rem; flex-wrap: wrap; }
.svc h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: -.025em; }
.svc h3 a { text-decoration: none; }
.svc h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* toda la tarjeta es tocable */
.svc > p { color: var(--muted); }
.svc > p.price { color: var(--ink); }
.svc .checks { margin-bottom: 1.5rem; }
.svc-actions { position: relative; z-index: 3; margin-top: auto; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.svc-actions .btn { width: 100%; }

.checks li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.7 11 12 5.4' fill='none' stroke='%232b3cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.section-ink .checks li::before { background-color: rgb(255 255 255 / .12); }
.checks-lg li { font-size: 1.15rem; padding-block: .75rem; border-bottom: 1px solid var(--line); margin: 0; padding-left: 2.2rem; transition: padding-left .45s var(--spring); }
.checks-lg li::before { top: .95em; }
.checks-lg li:hover { padding-left: 2.6rem; }

.price { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 2.9rem); line-height: 1; margin: .5rem 0 1.25rem; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin: 0 .35rem; }
.price small:first-child { margin-left: 0; display: block; margin-bottom: .3rem; }
.price-sm { font-size: 1.9rem; }

/* ---------- paquetes ---------- */
.pk-rows { border-top: 2px solid var(--ink); }
.pk-row {
  position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 1rem; align-items: center;
  padding: 1.6rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate;
  transition: padding-left .5s var(--spring);
}
.pk-row::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-md); opacity: 0; transform: scale(.97); transition: opacity .35s var(--spring), transform .5s var(--spring); }
.pk-row:hover { padding-left: 1.6rem; }
.pk-row:hover::before { opacity: 1; transform: none; }
.pk-row:active::before { transform: scale(.985); transition-duration: .1s; }
.pk-num { font-family: var(--display); font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.pk-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: -.03em; }
.pk-list { color: var(--muted); }
.pk-from { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.pk-from::after { content: "→"; color: var(--blue); transition: transform var(--t-ui) var(--spring); }
.pk-row:hover .pk-from::after { transform: translateX(5px); }
@media (max-width: 720px) {
  .pk-row { grid-template-columns: 2.5rem 1fr; row-gap: .2rem; }
  .pk-list, .pk-from { grid-column: 2; }
}
.pkg-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.pkg {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .5s var(--spring);
}
.pkg .checks { margin-bottom: 1.5rem; }
.pkg .btn { margin-top: auto; }
.pkg-hot { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--ink), 0 30px 60px -24px color-mix(in srgb, var(--blue) 80%, transparent); }
.pkg-hot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; background: conic-gradient(from var(--ang, 0deg), var(--blue), var(--sun), var(--blue)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.pkg-hot:hover { box-shadow: 0 0 0 2px var(--ink), 0 40px 80px -24px color-mix(in srgb, var(--blue) 90%, transparent); }
.pkg.pkg-hot .pkg-tag, .pkg.pkg-hot > p:not(.pkg-tag):not(.price), .pkg.pkg-hot .price small { color: rgb(255 255 255 / .72); }
.pkg-hot .checks li::before { background-color: rgb(255 255 255 / .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.7 11 12 5.4' fill='none' stroke='%23ffd83d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pkg-hot .badge { background: var(--sun); color: var(--ink); }
.pkg-tag { font-size: .9rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; letter-spacing: .01em; }
.badge { background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: .2rem .7rem; font-size: .8rem; }
.pkg-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -.035em; }
.pkg > p:not(.pkg-tag):not(.price) { color: var(--muted); }
.pk-group { padding-block: 1rem 3.5rem; }
.pk-group + .pk-group { border-top: 1px solid var(--line); padding-top: 3.5rem; }
.pk-group h2 { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.pk-more { margin-top: 1rem; }
.jump ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.jump a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0 1.15rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500;
  background: var(--glass-light); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s, color .25s, transform var(--t-ui) var(--spring), box-shadow .3s;
}
.jump a:hover { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.jump a:active { transform: scale(.95); transition-duration: .25s, .25s, var(--t-press), .3s; }

/* ---------- proceso / por qué ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.steps li {
  position: relative; padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .05); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: background-color .4s var(--spring), transform .6s var(--spring);
}
.steps li:hover { background: rgb(255 255 255 / .09); transform: translateY(-4px); }
.section:not(.section-ink) .steps li { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.step-n {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.05em; display: block; margin-bottom: .9rem;
  background: linear-gradient(135deg, var(--sun), color-mix(in srgb, var(--sun) 50%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section:not(.section-ink) .step-n { background: linear-gradient(135deg, var(--blue), var(--blue-dk)); -webkit-background-clip: text; background-clip: text; }
.steps p { color: rgb(255 255 255 / .72); margin: 0; }
.section:not(.section-ink) .steps p { color: var(--muted); }
.why { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why > div {
  position: relative; padding: 1.4rem 1.4rem 1.4rem 1.6rem; border-radius: var(--radius); background: var(--mist); overflow: hidden;
  transition: background-color .4s var(--spring), box-shadow .5s var(--spring), transform .6s var(--spring);
}
.why > div::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); transition: top .5s var(--spring), bottom .5s var(--spring); }
.why > div:hover { background: var(--paper); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why > div:hover::before { top: 0; bottom: 0; }
.why p { color: var(--muted); margin: 0; }

/* ---------- cobertura ---------- */
.finder {
  position: relative; border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 2rem;
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--line);
}
.finder label { display: block; font-weight: 600; margin-bottom: .6rem; }
.finder-row { display: flex; gap: .6rem; }
.finder input, .quote input:not([type="radio"]), .quote select, .quote textarea {
  flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1.1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #c9ccd8;
  transition: box-shadow .3s var(--spring), transform var(--t-ui) var(--spring);
}
.finder input:hover, .quote :is(input:not([type="radio"]), select, textarea):hover { box-shadow: inset 0 0 0 1.5px #9ea2b3; }
.finder input:focus, .quote :is(input:not([type="radio"]), select, textarea):focus { outline: 0; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent); }
@media (max-width: 480px) { #cobertura .finder-row { flex-direction: column; } }
.cities { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.city {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; padding: 1.7rem; border-radius: var(--radius);
  background: var(--ink); color: #fff; text-decoration: none; min-height: 220px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0);
  box-shadow: var(--shadow-md); transition: box-shadow .5s var(--spring);
}
.city::after {
  content: ""; position: absolute; z-index: -1; width: 260px; aspect-ratio: 1; right: -80px; bottom: -110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 75%, transparent), transparent 68%);
  transition: transform .8s var(--spring);
}
.city:hover { box-shadow: var(--shadow-lg); }
.city:hover::after { transform: scale(1.5) translate(-20px, -20px); }
.city-name { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.city-meta { color: var(--sun); font-weight: 600; }
.city-zones { margin-top: auto; color: rgb(255 255 255 / .72); font-size: .95rem; }

.dir-city { padding-block: 2rem 2.5rem; border-top: 2px solid var(--ink); }
.dir-city h2 a { text-decoration: none; transition: color .2s; }
.dir-city h2 a:hover { color: var(--blue); }
.dir-zones { display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.dir-zone h3 a { text-decoration: none; color: var(--blue); }
.dir-zone h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dir-zone ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.dir-zone li a, .chips a { transition: background-color .25s, color .25s, box-shadow .3s var(--spring), transform var(--t-ui) var(--spring); }
.dir-zone li a { display: inline-flex; align-items: center; min-height: 38px; padding: .2rem .85rem; border-radius: var(--radius-sm); text-decoration: none; font-size: .95rem; box-shadow: inset 0 0 0 1px var(--line); }
.dir-zone li a:hover { box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-sm); transform: translateY(-2px); }
.dir-zone li a:active, .chips a:active { transform: scale(.95); transition-duration: .25s, .25s, .3s, var(--t-press); }
.dir-zone li.hit a { background: var(--sun); box-shadow: inset 0 0 0 1px var(--sun), 0 6px 16px -8px rgb(255 216 61 / .9); animation: pop .5s var(--spring-bounce); }
@keyframes pop { from { transform: scale(.85); } }
.dir-count { margin: .7rem 0 0; font-size: .95rem; color: var(--muted); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.dir-empty { text-align: center; padding: 2.5rem 1rem; }

.zone-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.zone-card {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .5s var(--spring);
}
.zone-card h3 a { text-decoration: none; }
.zone-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
.zone-card p { color: var(--muted); margin: 0 0 .5rem; }
.zone-meta { font-weight: 600; color: var(--blue) !important; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; min-height: 46px; padding: .3rem 1.15rem; border-radius: var(--radius-sm); background: var(--mist); text-decoration: none; font-weight: 500; box-shadow: inset 0 0 0 1px transparent; }
.chips a:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-md); transform: translateY(-2px); }
.chips li:target a { background: var(--sun); }

.svc-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.svc-links a {
  position: relative; display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: 1.5rem; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .5s var(--spring);
}
.svc-links strong { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.025em; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.svc-links strong::after { content: "→"; font-family: var(--body); color: var(--blue); transition: transform var(--t-ui) var(--spring); }
.svc-links a:hover strong::after { transform: translateX(5px); }
.svc-links span { color: var(--muted); font-size: .95rem; }

.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: flex; align-items: center; min-height: 54px; text-decoration: none; font-weight: 500; transition: color .2s, padding-left .45s var(--spring); }
.linklist a:hover { color: var(--blue); padding-left: .5rem; }
.linklist a::after { content: "›"; margin-left: auto; padding-left: 1rem; color: var(--muted); font-size: 1.3rem; transition: transform var(--t-ui) var(--spring), color .2s; }
.linklist a:hover::after { transform: translateX(4px); color: var(--blue); }

/* ---------- FAQ: el contenido se despliega con resorte ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; min-height: 60px; transition: color .2s; }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mist); font-size: 1.35rem; font-weight: 400; line-height: 1;
  transition: transform var(--t-ui) var(--spring-bounce), background-color .25s, color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq summary h3 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; max-width: 65ch; margin: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .5s var(--spring), opacity .4s var(--spring), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- contacto ---------- */
.quote { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.opt { font-weight: 400; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios label {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .3rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #c9ccd8; transition: box-shadow .3s var(--spring), background-color .3s, transform var(--t-ui) var(--spring);
}
.radios label:active { transform: scale(.96); transition-duration: .3s, .3s, var(--t-press); }
.radios label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue), 0 8px 18px -10px var(--blue); background: color-mix(in srgb, var(--blue) 7%, #fff); }
.radios input { accent-color: var(--blue); width: 18px; height: 18px; }
.quote select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.quote select:user-invalid, .quote input:user-invalid { box-shadow: inset 0 0 0 2px #c4122f; animation: shake .45s var(--spring); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 90% { transform: translateX(1px); } }
.form-note { color: var(--muted); font-size: .9rem; text-align: center; margin: 0; }
.contact-side { position: relative; background: var(--mist); border-radius: var(--radius); padding: 1.75rem; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 821px) { .contact-side { position: sticky; top: calc(var(--head-h) + 2rem); } }
.big-link { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.04em; text-decoration: none; color: var(--blue); transition: color .2s; }
.big-link:hover { color: var(--blue-dk); }
@media (max-width: 820px) { .contact-side { order: -1; } }

/* ---------- CTA + pie ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #fff; padding-block: clamp(4rem, 10vw, 7rem);
}
.cta-band::before { /* luz que sigue al puntero */
  content: ""; position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  transform: translate3d(calc(var(--cx, 70vw) - 50%), calc(var(--cy, 30%) - 50%), 0);
  background: radial-gradient(circle, rgb(255 255 255 / .22), transparent 62%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% auto; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 40%, transparent), transparent 65%); filter: blur(30px); opacity: .55;
}
.cta-band h2 { max-width: 18ch; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.cta-band p { max-width: 55ch; color: rgb(255 255 255 / .88); font-size: 1.12rem; }

.site-footer { background: var(--ink); color: rgb(255 255 255 / .72); padding: clamp(3.5rem, 8vw, 5.5rem) 0 calc(6rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer h3 { color: #fff; font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer h3 a { text-decoration: none; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer li a { display: inline-block; padding: .3rem 0; transition: color .2s, transform var(--t-ui) var(--spring); }
.site-footer li a:hover { transform: translateX(3px); }
.logo-inv { color: #fff; margin-bottom: 1rem; }
.foot-top { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / .12); }
.foot-brand p { max-width: 40ch; }
.foot-brand .btn { margin-top: .5rem; }
.foot-brand .btn:hover { color: #fff; }
.hours { margin-top: .75rem; }
.foot-dir { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-block: 2.5rem; }
.foot-dir h3 { text-transform: none; letter-spacing: -.005em; font-size: 1rem; }
.legal { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 1.5rem; margin: 0; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Botón flotante de WhatsApp: material + entrada con resorte */
.wa-float {
  --mx: 0px; --my: 0px; --s: 1;
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: .6rem 1.25rem .6rem .8rem;
  background: var(--wa); color: #062b14; font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 12px 30px -8px rgb(6 43 20 / .5);
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--s));
  transition: transform var(--t-ui) var(--spring), box-shadow .4s var(--spring);
  animation: wa-in .9s var(--spring-bounce) .8s both;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(37 211 102 / .55); animation: ring 3s var(--spring) 2s infinite; pointer-events: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .5); } 70%, 100% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
.wa-float:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 18px 40px -10px rgb(6 43 20 / .6); }
.wa-float:active { --s: .94; transition-duration: var(--t-press); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-float { padding: .8rem; width: 60px; height: 60px; justify-content: center; } }

/* ---------- aparición al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); filter: blur(4px);
  transition: opacity .8s var(--spring), transform var(--t-reveal) var(--spring), filter .8s var(--spring);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
/* Entrada del título del hero palabra por palabra */
.js .hero h1 .w { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); transition: opacity .9s var(--spring), transform 1.1s var(--spring), filter .9s var(--spring); transition-delay: calc(120ms + var(--i, 0) * 75ms); }
.js .hero.is-in h1 .w { opacity: 1; transform: none; filter: none; }

/* ---------- accesibilidad: movimiento, transparencia, contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero h1 .w { transform: none !important; filter: none !important; }
  .btn, .wa-float, .svc, .pkg, .zone-card, .svc-links a, .city, .contact-side, .finder { transform: none !important; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; }
  .hero-media iframe { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-scrolled, .nav { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-cities, .hero-facts li, .btn-ghost, .marquee,   .jump a { background: var(--paper); }
}
@media (prefers-contrast: more) {
  .site-header { background: #000; }
  .hero-cities, .steps li, .svc, .pkg, .zone-card, .svc-links a { box-shadow: inset 0 0 0 2px currentColor; }
  .hero-scrim { background: rgb(0 0 0 / .78); }
  .sec-head p, .svc > p, .pk-list, .pkg > p:not(.pkg-tag):not(.price) { color: #2a2d3a; }
}
@media (hover: none) { .tilt::before { display: none; } }
@media (max-width: 600px) { .hero-in { padding-top: 3.5rem; } }

/* ---------- Rediseño multipágina (oct 2026): ciudades, texto local, listas en columnas ---------- */
.cities-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cities-compact .city { min-height: 170px; padding: 1.4rem 1.5rem; }
.cities-compact .city-name { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.cities-compact .city-zones { font-size: .9rem; line-height: 1.45; }
.dir-city > h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 1.25rem; }
.dir-city + .dir-count { margin-top: 2rem; }
.prose { max-width: 66ch; }
.prose p { font-size: 1.08rem; line-height: 1.7; }
.prose p:first-child { font-size: clamp(1.12rem, 1.8vw, 1.25rem); color: var(--ink); }
.prose p:not(:first-child) { color: var(--muted); }
.linklist-cols { display: grid; column-gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 1rem; }
.section-ink .sec-head p { max-width: 70ch; }

/* ---------- Cabecera interior con el video de fondo del hero ---------- */
.page-intro.has-video {
  background: var(--ink); color: #fff;
  min-height: min(68svh, 640px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 0 clamp(2.5rem, 6vw, 4.5rem);
}
.page-intro.has-video::after { display: none; }
.page-intro.has-video > .crumbs { margin-bottom: auto; color: rgb(255 255 255 / .7); }
.page-intro.has-video > .crumbs li:not(:last-child)::after { color: rgb(255 255 255 / .45); }
.page-intro.has-video > .crumbs a:hover { color: var(--sun); }
.page-intro.has-video > .wrap { padding-top: clamp(2.5rem, 8vw, 5rem); }
.page-intro.has-video .kicker { color: var(--sun); }
.page-intro.has-video h1 { text-shadow: 0 2px 40px rgb(0 0 0 / .35); }
.page-intro.has-video .lead { color: rgb(255 255 255 / .86); text-shadow: 0 1px 20px rgb(0 0 0 / .4); }
.page-intro.has-video .link { color: #fff; background-image: linear-gradient(var(--sun), var(--sun)); }
.page-intro.has-video .link:hover { color: var(--sun); }
.page-intro.has-video .jump a { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); }
.page-intro.has-video .jump a:hover { background: #fff; color: var(--ink); }
.pk-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* Contacto: dirección y reseñas de Google */
.contact-addr { font-style: normal; margin: 0 0 .4rem; }
.contact-reviews { margin-bottom: .4rem; }
.contact-reviews .stars { color: #f5b301; letter-spacing: .08em; margin-right: .35rem; }

/* Enlaces contextuales de palabra clave (diseño web → inicio) */
.prose a, .faq p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; font-weight: 600; }
.foot-brand p a { color: #fff; text-decoration: underline; text-underline-offset: .18em; }

/* Mejoras SEO oct 2026 */
.site-footer .foot-h { color: #fff; font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .9rem; }
.foot-dir .foot-h { text-transform: none; letter-spacing: -.005em; font-size: 1rem; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .98rem; }
.cmp th, .cmp td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--display); font-size: 1.1rem; background: var(--mist); }
.cmp tbody th { font-weight: 600; color: var(--muted); width: 18%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .hot { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.cmp-note { color: var(--muted); font-size: .95rem; margin-top: .9rem; }
.ctx-links { margin-top: 1rem; color: var(--muted); }
.ctx-links a { color: var(--blue); font-weight: 500; }
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
