/* TALLER 4 AROS — estilos
   La idea: un taller alemán premium de noche. Asfalto y grafito de fondo, acero en los bordes y el rojo del logo
   (el «4» del wordmark) usado con cuidado: botones, la zona roja del cuentavueltas, subrayados. Bandas claras
   (servicios, proceso, opiniones, preguntas) para que la página respire. Letras: Archivo ancha e itálica para títulos
   (como el wordmark del taller) y IBM Plex Mono para los códigos técnicos (0CJ, DQ200). */

:root {
  /* Color */
  --negro: #0B0C0E;
  --asfalto: #111317;
  --grafito: #181B20;
  --acero: #23272E;
  --linea: rgba(255, 255, 255, .09);
  --linea-2: rgba(255, 255, 255, .18);
  --texto: #EDEFF2;
  --suave: #A2A9B4;
  --plata: #C9CED6;
  --rojo: #E1141E;
  --rojo-hover: #F2242E;
  --rojo-claro: #FF5A61;          /* texto chico rojo sobre fondo oscuro */
  --rojo-texto: #B80D16;          /* texto rojo sobre fondo claro */
  --papel: #F2F3F5;
  --tinta: #121418;
  --tinta-suave: #4B525C;
  --verde: #3BD68A;
  --ambar: #FFB020;
  --wa: #25D366;
  /* Letras */
  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --t-hero: clamp(2.5rem, 6.4vw + .9rem, 5.2rem);
  --t-h2: clamp(2rem, 3.6vw + 1rem, 3.7rem);
  /* Movimiento (curvas tomadas de las referencias) */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Medidas */
  --top-h: 68px;
  --radio: 14px;
  --lado: max(1rem, env(safe-area-inset-left, 0px));
  --lado-d: max(1rem, env(safe-area-inset-right, 0px));
  --seccion: clamp(4.5rem, 8vw + 1rem, 8.5rem);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
@media (min-width: 768px) { :root { --lado: max(2.5rem, env(safe-area-inset-left, 0px)); --lado-d: max(2.5rem, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1024px) { :root { --top-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 1rem); background: var(--negro); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--negro); color: var(--texto);
  font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h1 em, h2 em { font-style: italic; font-weight: 850; color: var(--rojo); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.15; }
[hidden] { display: none !important; }
svg use { pointer-events: none; }
.mono { font-family: var(--mono); font-weight: 500; font-size: .78em; letter-spacing: .04em; }

:focus-visible { outline: 2px solid var(--rojo-claro); outline-offset: 3px; border-radius: 4px; }
.claro :focus-visible { outline-color: var(--rojo-texto); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--rojo); color: #fff; padding: .7rem 1rem; border-radius: 10px; transition: top .2s; }
.saltar:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

.envoltura { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: var(--lado); padding-right: var(--lado-d); }

/* El wordmark del taller: «taller4aros» ancho e itálico, con el 4 en rojo (como en sus publicaciones) */
.marca {
  display: inline-block; font: italic 850 1.5rem/1 var(--f); font-stretch: 118%; letter-spacing: -.035em;
  color: var(--texto); text-decoration: none; white-space: nowrap;
}
.marca b { color: var(--rojo); font-weight: 900; margin-inline: .02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
  font: 500 .74rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rojo-claro);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--rojo); transform: skewX(-20deg); }
.claro .eyebrow { color: var(--rojo-texto); }

.seccion { padding-block: var(--seccion); position: relative; }
.claro { background: var(--papel); color: var(--tinta); color-scheme: light; }
.claro h2 em { color: var(--rojo-texto); }

.cab { display: grid; justify-items: start; max-width: 46rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.cab h2 { margin-bottom: .9rem; }
.cab__p { color: var(--suave); max-width: 40rem; }
.claro .cab__p { color: var(--tinta-suave); }
.cab--fila { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; }
.cab--fila > div:first-child { max-width: 46rem; }

/* ───────── Botones ───────── */
.boton {
  --bg: var(--rojo); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.4rem; border: 1px solid var(--bd); border-radius: 10px;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1.1 var(--f); font-stretch: 106%; letter-spacing: .005em; text-decoration: none;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.boton svg { width: 1.15rem; height: 1.15rem; flex: none; transition: transform .35s var(--ease-out); }
.boton:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(225, 20, 30, .7); }
.boton:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.boton:active { transform: translateY(1px); box-shadow: none; transition-duration: .1s; }
.boton--rojo:hover { --bg: var(--rojo-hover); }
.boton--linea { --bg: transparent; --fg: var(--texto); --bd: var(--linea-2); }
.boton--linea:hover { --bg: rgba(255, 255, 255, .06); --bd: var(--plata); box-shadow: none; }
.claro .boton--linea { --fg: var(--tinta); --bd: rgba(18, 20, 24, .2); }
.claro .boton--linea:hover { --bg: rgba(18, 20, 24, .04); --bd: var(--tinta); }
.boton--negro { --bg: var(--tinta); --fg: var(--papel); }
.boton--negro:hover { --bg: #000; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .6); }
.boton--chico { min-height: 2.5rem; padding: .5rem .95rem; font-size: .86rem; border-radius: 8px; }
.boton--grande { min-height: 3.5rem; padding: .95rem 1.6rem; font-size: 1rem; }
.boton.esta { --bg: transparent; --fg: var(--verde); --bd: rgba(59, 214, 138, .5); }
.claro .boton.esta { --fg: #13804B; --bd: rgba(19, 128, 75, .45); }

/* ───────── Pantalla de carga ───────── */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 120; display: grid; place-content: center; justify-items: center; gap: 1.1rem;
  background: var(--negro); transition: opacity .6s var(--ease-io), visibility .6s;
}
.intro-corta .loader { display: none; }
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.marca--loader { font-size: clamp(2.2rem, 8vw, 3.4rem); opacity: 0; transform: translateY(8px); animation: sube .7s .1s var(--ease-out) forwards; }
.loader__barra { width: min(240px, 60vw); height: 4px; background: var(--acero); border-radius: 4px; overflow: hidden; transform: skewX(-20deg); }
.loader__barra span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--plata) 0 70%, var(--ambar) 70% 85%, var(--rojo) 85%); animation: rpm 1.1s .25s var(--ease-io) forwards; }
.loader__rpm { font: 500 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
@keyframes sube { to { opacity: 1; transform: none; } }
@keyframes rpm { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); } 82% { transform: scaleX(.86); } 100% { transform: scaleX(1); } }

.aviso-top { position: relative; z-index: 60; background: var(--rojo); color: #fff; text-align: center; padding: .55rem var(--lado); font-weight: 600; font-size: .9rem; }

/* ───────── Cabecera ───────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s, transform .5s var(--ease-expo), border-color .4s;
  border-bottom: 1px solid transparent;
}
.top::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 12, 14, .85), rgba(11, 12, 14, 0)); transition: opacity .4s; }
.top.solido::before, .menu-abierto .top::before { opacity: 0; }
.top.solido { background: rgba(11, 12, 14, .84); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--linea); }
.top.oculto { transform: translateY(-100%); }
.menu-abierto .top { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top__in { height: 100%; display: flex; align-items: center; gap: 1rem; }
.top__marca { font-size: 1.35rem; margin-right: auto; }
.top__nav { display: none; }
.top__wa {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.6rem; padding: 0 .95rem; border-radius: 9px;
  border: 1px solid var(--linea-2); text-decoration: none; font: 700 .88rem/1 var(--f); font-stretch: 106%;
  transition: background-color .35s, border-color .35s, color .35s;
}
.top__wa svg { width: 1.15rem; height: 1.15rem; color: var(--wa); transition: color .35s; }
.top__wa-b { display: none; }
.top.solido .top__wa { background: var(--rojo); border-color: var(--rojo); }
.top.solido .top__wa svg { color: #fff; }
.top.solido .top__wa-a { display: none; }
.top.solido .top__wa-b { display: inline; }
.top__wa:hover { border-color: var(--plata); }
.top.solido .top__wa:hover { background: var(--rojo-hover); }
.hamburguesa { width: 2.75rem; height: 2.75rem; display: grid; place-content: center; gap: 6px; border: 0; background: transparent; padding: 0; margin-right: -.4rem; }
.hamburguesa span { display: block; width: 22px; height: 2px; background: var(--texto); border-radius: 2px; transition: transform .45s var(--ease-expo); }
.hamburguesa[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 380px) { .top__wa-a, .top.solido .top__wa-b { display: none; } .top__wa { padding: 0 .7rem; } }
@media (min-width: 1024px) {
  .hamburguesa { display: none; }
  .top__nav { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-right: 1.4rem; }
  .top__nav a { position: relative; padding: .4rem 0; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--suave); transition: color .25s; }
  .top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rojo); transform: scaleX(0) skewX(-20deg); transform-origin: left; transition: transform .45s var(--ease-expo); }
  .top__nav a:hover, .top__nav a[aria-current="true"] { color: var(--texto); }
  .top__nav a[aria-current="true"]::after, .top__nav a:hover::after { transform: scaleX(1) skewX(-20deg); }
}

/* Menú del celular: se abre como una persiana y los links entran escalonados */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--negro); padding: calc(var(--top-h) + 1.5rem + env(safe-area-inset-top, 0px)) var(--lado) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-expo);
}
.menu.abierto { clip-path: inset(0 0 0 0); }
.menu__nav { display: grid; gap: .2rem; }
.menu__nav a {
  font: italic 800 clamp(1.8rem, 8vw, 2.6rem)/1.15 var(--f); font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; padding: .2rem 0;
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-expo), color .2s;
  transition-delay: calc(.08s + var(--i, 0) * .045s);
}
.menu__nav a:hover { color: var(--rojo-claro); }
.menu.abierto .menu__nav a { opacity: 1; transform: none; }
.menu__pie { display: flex; flex-wrap: wrap; gap: .7rem; opacity: 0; transition: opacity .5s .35s; }
.menu.abierto .menu__pie { opacity: 1; }
.menu__pie .boton { flex: 1 1 10rem; }

/* ───────── Inicio ───────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--negro); isolation: isolate; }
.hero__foto { position: absolute; inset: 0; z-index: -1; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .5; filter: saturate(.85) contrast(1.05); }
.hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 14, .7) 0%, rgba(11, 12, 14, .25) 30%, rgba(11, 12, 14, .85) 72%, var(--negro) 100%); }
.hero__in { position: relative; display: grid; gap: 2.5rem; padding-top: calc(var(--top-h) + 5rem); padding-bottom: 2.5rem; }
.hero h1 { font-size: var(--t-hero); margin-bottom: 1.2rem; }
.hero__p { font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); color: #CDD2D9; max-width: 34rem; margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.hero__ctas .boton { flex: 1 1 auto; }
.hero__nota { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--suave); }
.hero__nota svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--rojo-claro); }
@media (min-width: 560px) { .hero__ctas .boton { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero__foto { left: auto; width: 52vw; }
  .hero__foto img { opacity: .8; object-position: 40% 50%; }
  .hero__foto::after { background: linear-gradient(90deg, var(--negro) 0%, rgba(11, 12, 14, .55) 28%, rgba(11, 12, 14, .1) 60%, rgba(11, 12, 14, .5) 100%), linear-gradient(0deg, var(--negro) 0%, transparent 30%); }
  .hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 3rem; padding-top: calc(var(--top-h) + 3rem); padding-bottom: 4rem; }
}
/* Entrada del inicio cuando termina la carga */
.motion .hero__texto > *:not(h1) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-expo); }
.motion .hero.listo .hero__texto > *:not(h1) { opacity: 1; transform: none; }
.motion .hero.listo .hero__p { transition-delay: .35s; }
.motion .hero.listo .hero__ctas { transition-delay: .45s; }
.motion .hero.listo .hero__nota { transition-delay: .55s; }
.motion .tablero { opacity: 0; transform: scale(.94); transition: opacity 1s .5s var(--ease-out), transform 1.2s .5s var(--ease-expo); }
.motion .hero.listo .tablero { opacity: 1; transform: none; }

/* El tablero (cuentavueltas + computadora de a bordo) */
.tablero { position: relative; width: min(330px, 86vw); justify-self: center; }
.tablero__gauge { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tablero__gauge svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.tablero__gauge:focus-visible { outline-offset: 6px; border-radius: 50%; }
.tablero__aguja { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(-135deg); }
.tablero__num { font: italic 700 15px var(--f); font-stretch: 110%; fill: var(--plata); }
.tablero__num--rojo { fill: var(--rojo-claro); }
.tablero__unidad { font: 500 7.5px var(--mono); letter-spacing: .14em; fill: var(--suave); text-transform: uppercase; }
.tablero__led { fill: #2B3038; stroke: #3A4049; stroke-width: .6; transition: fill .08s; }
.tablero__led.on { fill: var(--c); }
.tablero__display {
  position: absolute; left: 50%; top: 68%; transform: translateX(-50%); width: 38%;
  display: grid; justify-items: center; gap: .15rem; padding: .5rem .4rem .45rem; border-radius: 6px;
  background: linear-gradient(180deg, #0E1A16, #08100D); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .8); pointer-events: none; text-align: center;
}
.tablero__titulo { font: 500 clamp(.78rem, 2.4vw, .9rem)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--plata); }
.tablero__detalle { font: 500 clamp(.6rem, 1.9vw, .68rem)/1.2 var(--mono); color: var(--suave); }
.tablero[data-abierto="true"] .tablero__titulo { color: var(--verde); text-shadow: 0 0 10px rgba(59, 214, 138, .55); }
.tablero[data-abierto="false"] .tablero__titulo { color: var(--ambar); text-shadow: 0 0 10px rgba(255, 176, 32, .45); }
.tablero.acelera .tablero__titulo { color: var(--texto); text-shadow: none; }
.tablero__pista { margin-top: .4rem; text-align: center; font: 500 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.motion .tablero.limite .tablero__gauge svg { animation: vibra .06s linear infinite; }
@keyframes vibra { 50% { transform: translate(.6px, -.4px); } }

/* ───────── Especialidad ───────── */
.especialidad { background: linear-gradient(180deg, var(--negro), var(--asfalto)); }
.especialidad__grid { display: grid; gap: 2.5rem; }
.especialidad__foto figcaption { margin-top: .8rem; font-size: .9rem; color: var(--suave); }
.especialidad__foto .mono { display: inline-block; margin-right: .5rem; padding: .15rem .45rem; border: 1px solid var(--linea-2); border-radius: 4px; color: var(--plata); }
.marco { overflow: hidden; border-radius: var(--radio); background: var(--grafito); }
.marco img { width: 100%; height: 100%; object-fit: cover; }
.ficha { border-top: 1px solid var(--linea-2); }
.ficha > div { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.ficha dt { font: 500 .74rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rojo-claro); }
.ficha dd { color: #D3D7DD; }
.ficha .mono { display: block; margin-top: .35rem; color: var(--suave); }
@media (min-width: 900px) {
  .especialidad__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "cab foto" "ficha foto"; column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .especialidad__grid .cab { grid-area: cab; margin-bottom: 0; }
  .especialidad__foto { grid-area: foto; position: sticky; top: calc(var(--top-h) + 2rem); }
  .ficha { grid-area: ficha; }
  .ficha > div { grid-template-columns: 11rem 1fr; gap: 1.5rem; }
}

/* ───────── Servicios ───────── */
.filtros { display: flex; flex-wrap: wrap; gap: .45rem; }
.filtros button {
  min-height: 2.6rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(18, 20, 24, .18); background: transparent;
  font-size: .9rem; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s;
}
.filtros button:hover { border-color: var(--tinta); }
.filtros button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.servicios__grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.serv {
  position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.3rem 1.25rem 1.15rem; border-radius: var(--radio);
  background: #fff; border: 1px solid rgba(18, 20, 24, .08); box-shadow: 0 1px 0 rgba(18, 20, 24, .04);
  transition: border-color .3s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.serv:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(18, 20, 24, .45); }
.serv.esta { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.serv__ic { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 10px; background: var(--tinta); color: #fff; transition: background-color .3s; }
.serv.esta .serv__ic { background: var(--rojo); }
.serv__ic svg { width: 1.45rem; height: 1.45rem; }
.serv h3 { font-size: 1.12rem; }
.serv p { color: var(--tinta-suave); font-size: .95rem; flex: 1; }
.serv__pie { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .75rem; border-top: 1px dashed rgba(18, 20, 24, .14); }
.serv__precio { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); }
.serv .boton { --bg: var(--tinta); }
.serv .boton:hover { --bg: #000; box-shadow: none; }
.serv .boton.esta { --bg: transparent; }
.motion .serv.entra { animation: entra .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

/* ───────── ADAS ───────── */
.adas { background: var(--negro); overflow: hidden; }
.adas__top { display: grid; gap: 2rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.adas__top .cab { margin-bottom: 0; }
.mira { max-width: 420px; width: 100%; justify-self: center; }
.mira svg { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }
.mira__cruz { transform-box: view-box; transform-origin: 160px 100px; }
.mira__txt { font: 500 9px var(--mono); letter-spacing: .2em; fill: var(--rojo); }
.motion .mira__cruz { transform: translate(-48px, 28px) rotate(-8deg) scale(1.25); transition: transform 1.6s var(--ease-expo); }
.motion .mira.in .mira__cruz { transform: none; }
.motion .mira.in .mira__txt { animation: parpadea 1s steps(2) 3; }
@keyframes parpadea { 50% { opacity: 0; } }
.adas__sub { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); margin-bottom: 1.2rem; }
.adas__casos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.adas__casos li { padding: 1.3rem 1.2rem; border-radius: var(--radio); background: var(--grafito); border: 1px solid var(--linea); }
.adas__casos svg { width: 1.8rem; height: 1.8rem; color: var(--rojo-claro); margin-bottom: .9rem; }
.adas__casos h4 { font-size: 1.08rem; margin-bottom: .35rem; }
.adas__casos p { color: var(--suave); font-size: .95rem; }
.adas__fotos { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.adas__fotos figure .marco { aspect-ratio: 3 / 4; }
.adas__fotos figcaption { margin-top: .6rem; font-size: .82rem; color: var(--suave); }
.adas__texto { grid-column: 1 / -1; display: grid; gap: 1rem; align-content: center; justify-items: start; }
.adas__texto p { color: #D3D7DD; }
.adas__texto .adas__marcas { font-size: .95rem; color: var(--suave); }
@media (min-width: 900px) {
  .adas__top { grid-template-columns: 1.2fr .8fr; }
  .adas__fotos { grid-template-columns: 1fr 1fr 1.1fr; gap: 1.4rem; }
  .adas__texto { grid-column: auto; padding-left: 1rem; }
}

/* ───────── Chapa y pintura ───────── */
.chapa { background: linear-gradient(180deg, var(--negro), var(--asfalto)); }
.chapa__grid { display: grid; gap: 2rem; }
.chapa__grid .cab { margin-bottom: 0; }
.chapa__auto { color: var(--plata); }
.chapa__auto svg { width: 100%; }
.motion .chapa__linea { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--trazo, 1)); }
.chapa__brillo { transform: translateX(calc(var(--brillo, 0) * 900px)) skewX(-20deg); }
.chapa__lista { display: grid; border-top: 1px solid var(--linea-2); }
.chapa__lista li { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--linea); }
.chapa__lista svg { width: 1.9rem; height: 1.9rem; color: var(--rojo-claro); grid-row: span 2; align-self: start; }
.chapa__lista h3 { margin-bottom: .25rem; }
.chapa__lista p { color: var(--suave); font-size: .95rem; }
.chapa__lista .boton { grid-column: 2; justify-self: start; }
@media (min-width: 640px) {
  .chapa__lista li { grid-template-columns: auto 1fr auto; }
  .chapa__lista svg { grid-row: auto; align-self: center; }
  .chapa__lista .boton { grid-column: auto; }
}
@media (min-width: 1024px) {
  .chapa__grid { grid-template-columns: .9fr 1.1fr; column-gap: 4rem; align-items: center; }
  .chapa__lista { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 1rem; }
  .chapa__lista li { grid-template-columns: 1fr; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.4rem; background: var(--grafito); align-content: start; }
  .chapa__lista svg { grid-row: auto; }
  .chapa__lista .boton { grid-column: auto; margin-top: .4rem; }
}

/* ───────── Cómo trabajamos ───────── */
.proceso__grid { display: grid; gap: 2rem; }
.proceso__lado .cab { margin-bottom: 1.5rem; }
.palanca { width: 120px; color: var(--tinta); }
.palanca__num text { font: italic 800 15px var(--f); fill: var(--tinta-suave); text-anchor: middle; }
.palanca__bocha { fill: var(--rojo); transition: cx .6s var(--ease-expo), cy .6s var(--ease-expo); }
.pasos { display: grid; gap: .8rem; }
.pasos li {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem; padding: 1.4rem 1.3rem; border-radius: var(--radio);
  background: #fff; border: 1px solid rgba(18, 20, 24, .08); transition: border-color .4s, box-shadow .4s;
}
.pasos li.activo { border-color: var(--rojo); box-shadow: 0 18px 32px -24px rgba(225, 20, 30, .6); }
.pasos__n { grid-row: span 2; font: italic 900 2.6rem/1 var(--f); font-stretch: 118%; color: rgba(18, 20, 24, .16); transition: color .4s; }
.pasos li.activo .pasos__n { color: var(--rojo); }
.pasos h3 { font-size: 1.25rem; align-self: end; }
.pasos p { color: var(--tinta-suave); }
@media (min-width: 900px) {
  .proceso__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .proceso__lado { position: sticky; top: calc(var(--top-h) + 2.5rem); }
  .palanca { width: 190px; }
  .pasos { gap: 1rem; }
  .pasos li { padding: 1.8rem 1.6rem; }
}

/* ───────── Trabajos (galería) ───────── */
.trabajos { background: var(--negro); }
/* 16 fotos: 4 anchas (2 columnas) y, en compu, 4 altas (2 filas). En 2 y en 4 columnas el total de celdas cierra justo. */
.galeria { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(12rem, 52vw, 17rem); grid-auto-flow: dense; }
.galeria li { position: relative; }
.galeria li.ancha { grid-column: span 2; }
.galeria button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--grafito); text-align: left; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.galeria button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, transparent 55%); }
.galeria__cap { position: absolute; left: .8rem; right: .8rem; bottom: .7rem; z-index: 1; display: grid; gap: .1rem; }
.galeria__cap strong { font-size: .95rem; font-stretch: 106%; line-height: 1.15; }
.galeria__cap span { font: 500 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--plata); }
.galeria button:hover img { transform: scale(1.05); }
.motion .galeria li.entra { animation: entra .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@media (min-width: 768px) {
  .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(13rem, 19vw, 17rem); gap: .8rem; }
  .galeria li.alta { grid-row: span 2; }
}

/* ───────── Nosotros ───────── */
.nosotros { background: linear-gradient(180deg, var(--negro), var(--asfalto)); }
.nosotros__grid { display: grid; gap: 2.5rem; align-items: center; }
.nosotros__foto .marco { aspect-ratio: 4 / 5; }
.nosotros__texto .cab { margin-bottom: 1.4rem; }
.nosotros__texto > p { color: #D3D7DD; margin-bottom: 1rem; max-width: 38rem; }
.sellos { display: grid; gap: .6rem; margin-top: 1.8rem; }
.sellos li { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--linea); border-radius: 10px; background: var(--grafito); font-weight: 600; font-size: .95rem; }
.sellos svg { width: 1.2rem; height: 1.2rem; color: var(--rojo-claro); flex: none; }
@media (min-width: 900px) { .nosotros__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }

/* ───────── Opiniones ───────── */
.flechas { display: flex; gap: .5rem; }
.flecha { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(18, 20, 24, .2); background: transparent; transition: background-color .25s, opacity .25s, border-color .25s; }
.flecha:hover:not(:disabled) { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.flecha:disabled { opacity: .3; cursor: default; }
.flecha svg { width: 1.2rem; height: 1.2rem; }
.opiniones__lista {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 25rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: calc(var(--lado) * -1) calc(var(--lado-d) * -1); padding-inline: var(--lado) var(--lado-d); scroll-padding-inline: var(--lado);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.opiniones__lista::-webkit-scrollbar { display: none; }
.op { scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.2rem; padding: 1.6rem 1.5rem; border-radius: var(--radio); background: #fff; border: 1px solid rgba(18, 20, 24, .08); }
.op__estrellas { display: flex; gap: .15rem; color: #E8A000; }
.op__estrellas svg { width: 1rem; height: 1rem; }
.op blockquote { margin: 0; font-size: 1.12rem; font-weight: 500; line-height: 1.45; flex: 1; }
.op blockquote::before { content: "«"; }
.op blockquote::after { content: "»"; }
.op footer { display: grid; font-size: .88rem; color: var(--tinta-suave); }
.op footer strong { color: var(--tinta); font-size: .95rem; }
.opiniones__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.opiniones__link svg { width: 1rem; height: 1rem; }

/* ───────── Pedir turno ───────── */
.turno { background: var(--asfalto); }
.turno__grid { display: grid; gap: 2rem; align-items: start; }
.form { display: grid; gap: 1.2rem; }
.form__bloque { margin: 0; padding: 1.4rem 1.2rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--grafito); display: grid; gap: 1rem; min-width: 0; }
.form__bloque legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; font-weight: 800; font-stretch: 110%; font-size: 1.1rem; }
.form__bloque legend small { font-weight: 400; font-stretch: 100%; color: var(--suave); font-size: .85rem; }
.form__bloque legend + * { clear: both; }
.form__n { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 6px; background: var(--rojo); color: #fff; font: italic 800 .95rem/1 var(--f); transform: skewX(-8deg); flex: none; }
.cuenta { margin-left: auto; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--suave); display: inline-flex; align-items: baseline; gap: .3rem; }
.cuenta__num { display: inline-block; min-width: 1ch; font-size: 1.05rem; color: var(--texto); }
.motion .cuenta__num.salta, .motion .barra-solicitud__num.salta { animation: odometro .45s var(--ease-expo); }
@keyframes odometro { 0% { transform: translateY(-70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .4rem .35rem .8rem; border-radius: 8px; background: var(--acero); border: 1px solid var(--linea-2); font-size: .9rem; font-weight: 600; }
.chip button { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--suave); }
.chip button:hover { background: rgba(255, 255, 255, .08); color: var(--texto); }
.chip button svg { width: .95rem; height: .95rem; }
.motion .chip.entra { animation: entra .4s var(--ease-out) both; }
.chips__vacio { font-size: .92rem; color: var(--suave); }
.fila { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fila { grid-template-columns: 1fr 1fr; } .fila--3 { grid-template-columns: 1fr 1fr .6fr; } }
.campo { display: grid; gap: .4rem; align-content: start; font-size: .92rem; font-weight: 600; min-width: 0; }
.campo small { font-weight: 400; color: var(--suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem; border-radius: 9px; border: 1px solid var(--linea-2); background: var(--negro);
  font-size: 1rem; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.campo input::placeholder, .campo textarea::placeholder { color: #6E7682; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(225, 20, 30, .25); }
.campo [aria-invalid="true"] { border-color: var(--rojo-claro); }
.campo input[type="date"] { color-scheme: dark; }
.mayus { text-transform: uppercase; }
.mayus::placeholder { text-transform: none; }
.campo__ayuda { font-size: .8rem; font-weight: 400; color: var(--suave); }
.campo__error { font-size: .84rem; font-weight: 600; color: var(--rojo-claro); }
.campo__error:empty { display: none; }
.campo--sumar select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(-45deg, transparent 50%, var(--suave) 50%); background-position: right 1.1rem center, right .8rem center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.radios { display: flex; flex-wrap: wrap; gap: .4rem; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem .9rem; border-radius: 9px; border: 1px solid var(--linea-2); font-weight: 600; font-size: .9rem; transition: background-color .2s, border-color .2s; }
.radio input:checked + span { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.radio input:focus-visible + span { outline: 2px solid var(--rojo-claro); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--rojo); flex: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__acciones { display: flex; flex-wrap: wrap; gap: .7rem; }
.form__acciones .boton--grande { flex: 1 1 16rem; }
.form__nota { font-size: .86rem; color: var(--suave); }
.form__estado { font-weight: 600; }
.form__estado:empty { display: none; }
.form__estado.ok { padding: 1rem 1.1rem; border-radius: 10px; background: rgba(59, 214, 138, .1); border: 1px solid rgba(59, 214, 138, .35); color: #BFF5D8; }
.form__estado.ok a { color: #fff; }
.form__estado.mal { color: var(--rojo-claro); }
.vista { display: grid; gap: .6rem; justify-items: center; }
.vista__cel { width: min(100%, 360px); border-radius: 22px; overflow: hidden; background: #0B141A; border: 1px solid var(--linea-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.vista__top { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #1F2C33; }
.vista__top strong { display: block; font-size: .95rem; }
.vista__top small { font-size: .75rem; color: #8696A0; }
.vista__avatar { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--negro); color: var(--rojo-claro); font: italic 900 1.1rem/1 var(--f); }
.vista__chat { padding: 1rem; min-height: 14rem; background: #0B141A radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 14px 14px; display: flex; justify-content: flex-end; align-items: flex-start; }
.vista__burbuja { max-width: 92%; padding: .6rem .75rem; border-radius: 10px 2px 10px 10px; background: #005C4B; color: #E9EDEF; font-size: .84rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.vista__nota { font-size: .82rem; color: var(--suave); }
@media (min-width: 1024px) {
  .turno__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 3rem; }
  .vista { position: sticky; top: calc(var(--top-h) + 1.5rem); }
  .form__bloque { padding: 1.7rem 1.6rem; }
}
@media (max-width: 1023px) { .vista { display: none; } }

/* ───────── Preguntas ───────── */
.preguntas__grid { display: grid; gap: 1rem; }
.preguntas__grid .cab .boton { margin-top: 1.3rem; }
.acordeon { display: grid; border-top: 1px solid rgba(18, 20, 24, .14); }
.acordeon details { border-bottom: 1px solid rgba(18, 20, 24, .14); }
.acordeon summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0;
  font-weight: 700; font-stretch: 106%; font-size: 1.08rem;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: ""; width: .7rem; height: .7rem; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .45s var(--ease-expo); }
.acordeon details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acordeon details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-expo), content-visibility .5s allow-discrete; }
.acordeon details[open]::details-content { block-size: auto; }
.acordeon p { padding-bottom: 1.2rem; color: var(--tinta-suave); max-width: 44rem; }
@media (min-width: 900px) { .preguntas__grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } .preguntas__grid .cab { position: sticky; top: calc(var(--top-h) + 2rem); } }

/* ───────── Ubicación ───────── */
.ubicacion { background: var(--negro); }
.ubicacion__grid { display: grid; gap: 2rem; }
.ubicacion__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.horario { padding: 1.3rem 1.2rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--grafito); margin-bottom: 1.5rem; }
.horario__estado { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; margin-bottom: .8rem; font: 500 .82rem/1.3 var(--mono); letter-spacing: .06em; color: var(--suave); }
.horario__estado:empty { display: none; }
.horario__estado strong { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.horario__estado[data-abierto="true"] strong { color: var(--verde); }
.horario__estado[data-abierto="false"] strong { color: var(--ambar); }
.horario__tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.horario__tabla th, .horario__tabla td { padding: .5rem .6rem; text-align: left; font-weight: 400; border-top: 1px solid var(--linea); }
.horario__tabla th { text-transform: capitalize; color: var(--plata); }
.horario__tabla td { text-align: right; color: var(--suave); }
.horario__tabla tr.hoy th, .horario__tabla tr.hoy td { color: var(--texto); font-weight: 700; background: rgba(225, 20, 30, .1); }
.horario__tabla tr.hoy th { box-shadow: inset 3px 0 0 var(--rojo); }
.horario__nota { margin-top: .8rem; font-size: .84rem; color: var(--suave); }
.contacto { display: grid; gap: .5rem; }
.contacto a { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--linea); text-decoration: none; transition: border-color .25s, background-color .25s; }
.contacto a:hover { border-color: var(--linea-2); background: var(--grafito); }
.contacto svg { width: 1.3rem; height: 1.3rem; color: var(--rojo-claro); flex: none; }
.contacto small { display: block; font: 500 .68rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.mapa { position: relative; min-height: 380px; border-radius: var(--radio); overflow: hidden; background: var(--grafito); border: 1px solid var(--linea); z-index: 0; }
.mapa__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 1.5rem; color: var(--suave); }
.mapa__fallback svg { width: 2.2rem; height: 2.2rem; color: var(--rojo); }
.mapa .leaflet-container { position: absolute; inset: 0; background: #DADDE2; font-family: var(--f); }
.mapa .leaflet-tile-pane { filter: grayscale(.85) contrast(1.05) brightness(.97); }
.pin { position: relative; }
.pin__pulso { position: absolute; inset: 0; border-radius: 50%; background: rgba(225, 20, 30, .35); animation: pulso 2.2s var(--ease-out) infinite; }
.pin__pulso:nth-child(2) { animation-delay: 1.1s; }
.pin__marca { position: absolute; inset: 12px; display: grid; place-items: center; border-radius: 50%; background: var(--negro); color: var(--rojo); border: 2px solid var(--rojo); font: italic 900 15px/1 var(--f); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
@keyframes pulso { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.leaflet-popup-content { font: 400 .9rem/1.4 var(--f); color: var(--tinta); margin: .8rem 1rem; }
.leaflet-popup-content strong { display: block; font-size: 1rem; }
.leaflet-popup-content a { color: var(--rojo-texto); font-weight: 600; }
@media (min-width: 900px) {
  .ubicacion__grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: stretch; }
  .mapa { min-height: 560px; }
}

/* ───────── Pie ───────── */
.pie { background: #060708; padding: 4rem 0 calc(6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linea); font-size: .95rem; }
.pie__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--linea); }
.pie__marca { font-size: clamp(2.4rem, 7vw, 4rem); }
.pie__lema { margin-top: .5rem; font: 500 .72rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.pie__col { display: grid; gap: .6rem; align-content: start; color: var(--suave); }
.pie__col a { text-decoration: none; color: var(--texto); }
.pie__col a:hover { color: var(--rojo-claro); }
.pie__legal { display: grid; gap: .6rem; padding-top: 1.5rem; font-size: .8rem; color: #8A919C; }
@media (min-width: 768px) { .pie__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* ───────── Flotantes ───────── */
.wa-flotante {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .6); transition: transform .45s var(--ease-expo), opacity .3s;
}
.wa-flotante svg { width: 1.8rem; height: 1.8rem; }
.wa-flotante:hover { transform: scale(1.07); }
.wa-flotante.oculto { transform: scale(.4); opacity: 0; pointer-events: none; }
.barra-solicitud {
  position: fixed; left: max(1rem, env(safe-area-inset-left, 0px)); right: calc(5.4rem + env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: .7rem; max-width: 30rem; min-height: 3.6rem; padding: .5rem .6rem; border-radius: 12px;
  background: rgba(24, 27, 32, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--linea-2);
  text-decoration: none; font-size: .9rem; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-expo), opacity .3s;
}
.barra-solicitud.oculto { transform: translateY(140%); opacity: 0; pointer-events: none; }
.barra-solicitud__num { min-width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 8px; background: var(--rojo); color: #fff; font: italic 900 1.1rem/1 var(--f); }
.barra-solicitud > span:nth-child(2) { flex: 1; color: var(--plata); line-height: 1.2; }
.barra-solicitud strong { display: inline-flex; align-items: center; gap: .3rem; padding-right: .3rem; }
.barra-solicitud strong svg { width: 1rem; height: 1rem; }
@media (min-width: 768px) { .barra-solicitud { left: 50%; right: auto; transform: translateX(-50%); width: 26rem; } .barra-solicitud.oculto { transform: translate(-50%, 140%); } }

/* ───────── Visor de fotos ───────── */
.visor { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 7, 8, .96); color: var(--texto); }
.visor::backdrop { background: rgba(0, 0, 0, .6); }
.visor[open] { display: grid; place-items: center; }
.visor__fig { display: grid; gap: .8rem; justify-items: center; padding: 4rem 1rem 5rem; max-width: 100%; touch-action: pan-y; }
.visor__fig img { max-height: calc(100svh - 11rem); width: auto; max-width: min(100%, 900px); border-radius: 10px; object-fit: contain; }
.motion .visor__fig img.cambia { animation: aparece .45s var(--ease-out); }
@keyframes aparece { from { opacity: 0; transform: scale(.98); } }
.visor figcaption { text-align: center; font-size: .95rem; color: var(--plata); }
.visor__num { display: block; margin-top: .3rem; font: 500 .72rem/1 var(--mono); color: var(--suave); }
.visor__btn { position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linea-2); background: rgba(24, 27, 32, .8); }
.visor__btn:hover { background: var(--acero); }
.visor__btn svg { width: 1.3rem; height: 1.3rem; }
.visor__cerrar { top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; }
.visor__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.visor__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .visor__prev, .visor__next { top: auto; bottom: 1rem; translate: none; } }

/* ───────── Apariciones al bajar ───────── */
.reveal [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-expo); }
.reveal [data-r].in { opacity: 1; transform: none; }
.reveal .adas__casos li:nth-child(2), .reveal .chapa__lista li:nth-child(2) { transition-delay: .08s; }
.reveal .adas__casos li:nth-child(3), .reveal .chapa__lista li:nth-child(3) { transition-delay: .16s; }
.reveal .adas__casos li:nth-child(4) { transition-delay: .24s; }
/* Títulos: cada palabra sube desde atrás de una máscara */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; padding-right: .08em; margin-right: -.08em; }
.wi { display: inline-block; }
.reveal [data-split] .wi { transform: translateY(105%); transition: transform 1s var(--ease-expo); transition-delay: calc(var(--i) * 45ms); }
.reveal [data-split].in .wi { transform: none; }
.reveal .hero [data-split] .wi { transition-delay: calc(.15s + var(--i) * 55ms); }
.reveal .hero:not(.listo) [data-split].in .wi { transform: translateY(105%); }
/* Fotos que se abren desde el centro */
.motion [data-clip] { clip-path: inset(calc((1 - var(--p, 1)) * 18%) calc((1 - var(--p, 1)) * 12%) round var(--radio)); }
.motion [data-clip] img { scale: calc(1.15 - var(--p, 1) * .15); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pin__pulso { display: none; }
}
