/* ==========================================================================
   We Buy Exotics — Homepage (Corporate Redesign)
   Design tokens mirror the Figma variable set.
   ========================================================================== */

:root{
  /* Brand */
  --red:            #be322b;   /* general/primary · destructive */
  --red-bright:     #d6453e;   /* general/accent-foreground */
  --red-deep:       #581714;

  /* Neutrals */
  --ink:            #0a0a0a;   /* general/foreground */
  --n50:            #fafafa;
  --n100:           #f5f5f5;
  --n200:           #e5e5e5;   /* general/border (light) */
  --n300:           #d4d4d4;
  --n400:           #a3a3a3;   /* muted-foreground */
  --n500:           #737373;
  --n600:           #525252;
  --n700:           #404040;   /* general/border (dark) */
  --n900:           #171717;   /* general/secondary */

  --star:           #f59e0b;

  /* Radii */
  --r-sm:  4px;
  --r-md:  5.373px;
  --r-lg:  8px;
  --r-xl:  12px;

  /* Layout */
  --maxw:   1200px;
  /* The homepage, Why Us and each marque page all lead with a hero headline of
     a different length. Reserving one height across them keeps the lede and the
     buttons underneath landing on the same line as you move between pages. */
  --hero-title-h: 134px;
  /* Where the hero copy block starts, measured from the top of the hero band.
     The homepage sets the reference: its 290px copy column centres in the
     525px content area of the 573px .hero__body, i.e. 24px padding + 117.5px.
     Every other hero pins its copy here so the block never shifts as you move
     between pages. */
  --hero-copy-top: 141.5px;
  --gutter: 64px;
  --pad-y:  64px;

  /* Type */
  --font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --silver: linear-gradient(175deg, #e5e5e5 21.64%, #d4d4d4 50%, #e5e5e5 75%);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:24px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
p{ margin:0; }
button{ font:inherit; color:inherit; }

:focus-visible{ outline:2px solid var(--red-bright); outline-offset:3px; }

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.section{
  padding: var(--pad-y) max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.section--dark{ background:var(--ink); color:var(--n50); }
.section--light{ background:#fff; color:var(--ink); }

.h2{
  margin:0;
  font-family:var(--font-head);
  font-weight:900;
  font-size:48px;
  line-height:48px;
  letter-spacing:-1px;
}
.h3{
  margin:0;
  font-family:var(--font-head);
  font-weight:700;
  font-size:30px;
  line-height:32px;
}
.accent{ color:var(--red-bright); }

.eyebrow{
  margin:0;
  font-family:var(--font-body);
  font-weight:500;
  font-size:14px;
  line-height:20px;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.eyebrow--red{ color:var(--red); }
.eyebrow--light{ color:#fff; }
.eyebrow--silver{
  background:var(--silver);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.icon{ width:16px; height:16px; fill:currentColor; flex:none; }

/* Buttons ---------------------------------------------------------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:10px 24px;
  border:1px solid transparent;
  border-radius:var(--r-sm);
  background:transparent;
  font-family:var(--font-head);
  font-weight:500;
  font-size:14px;
  line-height:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .2s ease;
}
/* Respuesta al presionar: el boton reacciona apenas baja el dedo, no al soltar. */
.btn:active:not([disabled]){ transform:scale(.97); transition-duration:.06s; }
.btn--sm{ min-height:36px; padding:8px 16px; }

.btn--primary{ background:var(--red); color:var(--n50); }
.btn--primary:hover{ background:#a72a24; }

.btn--light{ background:var(--n100); color:var(--ink); }
.btn--light:hover{ background:#fff; }

.btn--dark{ background:var(--n900); border-color:var(--n700); color:var(--n100); }
.btn--dark:hover{ background:#242424; }

.btn--outline-light{ border-color:rgba(255,255,255,.5); color:#fff; }
.btn--outline-light:hover{ background:rgba(255,255,255,.12); border-color:#fff; }

.btn--ghost-dark{ background:rgba(255,255,255,.1); border-color:rgba(250,250,250,.3); color:var(--n50); }
.btn--ghost-dark:hover{ background:rgba(255,255,255,.18); }

.btn--nav{ min-height:36px; padding:8px 16px; color:var(--n50); }
.btn--nav:hover{ color:#fff; background:rgba(255,255,255,.08); }

/* Solid-black pill for the nav CTA on the light pages, where --red would
   fight the red closing CTA further down. */
.btn--ink{ background:var(--ink); color:var(--n50); }
.btn--ink:hover{ background:var(--n900); }

.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* Icon buttons ----------------------------------------------------------- */

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  min-height:32px;
  padding:8px;
  border:1px solid transparent;
  border-radius:9999px;
  background:transparent;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .2s ease;
}
.icon-btn:active:not([disabled]){ transform:scale(.92); transition-duration:.06s; }
.icon-btn--dark{ background:#000; border-color:var(--n200); color:var(--n200); box-shadow:0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.1); }
.icon-btn--dark:hover{ background:#1a1a1a; }
.icon-btn--dark[disabled]{ opacity:.35; cursor:default; }

.icon-btn--light{ background:rgba(0,0,0,.03); border-color:var(--n200); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.1); }

.icon-btn--square{ border-radius:var(--r-lg); min-width:36px; min-height:36px; background:var(--n900); color:var(--n50); }
.icon-btn--square:hover{ background:#232323; }

/* Stars ------------------------------------------------------------------ */

.stars{ display:inline-flex; align-items:center; color:var(--star); }
.stars .icon{ fill:currentColor; }
.stars--xs{ gap:3px; } .stars--xs .icon{ width:18px; height:18px; }
.stars--sm{ gap:3px; } .stars--sm .icon{ width:15px; height:15px; }
.stars--md{ gap:3px; } .stars--md .icon{ width:23px; height:23px; }
.stars--lg{ gap:3px; } .stars--lg .icon{ width:28px; height:28px; }

/* Slanted scroll indicator ------------------------------------------------ */

.scrollbar{
  position:relative;
  height:4px;
  width:100%;
  background:var(--n700);
  overflow:hidden;
}
.scrollbar--light{ background:var(--n200); }
.scrollbar__thumb{
  position:absolute;
  inset:0 auto 0 0;
  width:50%;
  background:var(--n300);
  transform:translateX(var(--offset, 0));
  clip-path:polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transition:transform .2s ease;
}
.scrollbar--light .scrollbar__thumb{ background:var(--ink); }
.scrollbar[data-scrollbar-static] .scrollbar__thumb{ width:17.5%; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero{
  position:relative;
  isolation:isolate;
  color:var(--n50);
  padding-inline:max(var(--gutter), calc((100% - var(--maxw)) / 2));
  overflow:hidden;
}
/* El hero cierra en los mismos 680px que el de Why Us, para que la franja de
   stats de las dos paginas caiga exactamente a la misma altura (568px). El
   cuerpo se queda con lo que sobra entre el nav y la franja; si el contenido
   pide mas (pantallas angostas, el formulario largo), crece y el 680 queda de
   piso, no de techo. Antes esto era 100svh: la franja bailaba segun el alto de
   la pantalla y no coincidia con la de Why Us. */
@media (min-width:1025px){
  .hero{ min-height:680px; display:flex; flex-direction:column; }
  /* El piso de 573px del cuerpo se levanta: con el hero cerrado en 680 lo que
     manda es el reparto (680 - 80 de nav - 112 de franja = 488), y 573 lo
     empujaba 85px de mas. Si el contenido pide mas que 488, igual crece.
     Va con .hero delante porque la regla base de .hero__body esta mas abajo en
     el archivo y, a igual especificidad, ganaria ella. */
  .hero .hero__body{ flex:1 1 auto; min-height:0; }
}
.hero__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 46%, rgba(0,0,0,.28) 100%),
    #0a0a0a url("../assets/images/hero-bg.jpg") center/cover no-repeat;
}

/* Same plate, but the photograph is a real element so a looping clip can sit
   behind the copy. The two scrims move onto ::after, since they now have to
   paint over the media rather than under it. The <video> poster holds the
   frame while the file loads — and if no clip has been supplied yet, the
   poster is simply what stays on screen. */
.hero__bg--media{
  background:#0a0a0a;
}
.hero__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero__bg--media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 46%, rgba(0,0,0,.28) 100%);
}

/* Nav -------------------------------------------------------------------- */

/* Every page shares this geometry so the bar never shifts between pages.
   Keep the padding here rather than on each page's header. */
.nav{ padding-top:12px; }
.nav__inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 0;
}

/* Light navigation ------------------------------------------------------- */

/* The hero pages let the nav float over their photograph. Pages with no
   image behind the bar get their own white plate, rule and inline gutter. */
.nav--light{
  position:relative;
  z-index:2;
  padding-inline:max(var(--gutter), calc((100% - var(--maxw)) / 2));
  background:#fff;
  border-bottom:1px solid var(--n200);
}
.nav--light .nav__brand{ opacity:1; }
.nav--light .nav__tag{ color:var(--n600); border-left-color:var(--n300); }
.nav--light .nav__burger{ color:var(--ink); }
.nav--light .btn--nav{ color:var(--n700); }
.nav--light .btn--nav:hover{ color:var(--ink); background:rgba(0,0,0,.05); }
.nav--light .btn--nav[aria-current="page"]{ color:var(--ink); }
.nav__brand{ display:flex; align-items:center; gap:12px; opacity:.8; }
/* 1.87x del archivo original (59x24), en su misma proporcion. El PNG fuente es
   de 400x162, asi que a 110px sigue sobrando densidad en pantallas retina. */
.nav__logo{ width:110px; height:45px; object-fit:contain; }
/* "San Clemente Est 2014" y su linea divisoria salen de la barra. Se apaga por
   CSS y no borrando el markup: la barra esta repetida en cada pagina hecha a
   mano y en las dos plantillas, asi una sola regla las cubre a todas y volver
   atras es quitar esta linea. */
.nav__tag{ display:none; }
.nav__tag{
  padding-left:12px;
  border-left:1px solid var(--n600);
  font-family:var(--font-head);
  font-size:12px;
  line-height:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--n50);
  white-space:nowrap;
}
.nav__links{ display:flex; align-items:center; gap:16px; margin-left:auto; }
/* The mark and the CTA inside .nav__links belong to the mobile sheet only —
   on the desktop bar the real logo and .nav__cta already cover both. */
.nav__menu-home,
.nav__menu-logo,
.nav__menu-cta{ display:none; }
.nav__cta{ flex:none; }
.nav__burger{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  margin-left:auto;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.icon--menu{ width:20px; height:16px; }

/* Three real bars rather than an icon, so the burger can fold into the X that
   closes the sheet — same button, same spot, no swap. */
.nav__burger-box{
  position:relative;
  display:block;
  width:20px;
  height:14px;
}
.nav__burger-box > span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  border-radius:1px;
  background:currentColor;
  transition:transform .28s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}
.nav__burger-box > span:nth-child(1){ top:0; }
.nav__burger-box > span:nth-child(2){ top:6px; }
.nav__burger-box > span:nth-child(3){ top:12px; }

.nav__burger[aria-expanded="true"] .nav__burger-box > span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-box > span:nth-child(2){
  opacity:0;
  transform:scaleX(.2);
}
.nav__burger[aria-expanded="true"] .nav__burger-box > span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion:reduce){
  .nav__burger-box > span{ transition:none; }
}

/* Marque dropdown -------------------------------------------------------- */

/* "Sell Your Car" opens a panel of every marque we buy. On the desktop bar it
   floats under the trigger; inside the burger sheet it collapses to a plain
   two-column list so the menu keeps scrolling as one thing. */
.nav__drop{ position:relative; }

.nav__drop-trigger .icon--caret{
  width:14px; height:14px;
  transition:transform .18s ease;
}
.nav__drop.is-open .nav__drop-trigger .icon--caret{ transform:rotate(180deg); }
.nav__drop.is-open .nav__drop-trigger{ color:#fff; background:rgba(255,255,255,.08); }
.nav--light .nav__drop.is-open .nav__drop-trigger{ color:var(--ink); background:rgba(0,0,0,.05); }

/* Same dark glass plate as the hero's offer panel and the burger sheet, so the
   menu reads as part of the hero rather than a browser-native dropdown. */
.nav__panel{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  z-index:30;
  width:492px;
  max-width:calc(100vw - 32px);
  transform:translateX(-50%);
  padding:20px;
  border:1px solid var(--n700);
  border-radius:var(--r-lg);
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 24px 60px -24px rgba(0,0,0,.8);
}
.nav__panel[hidden]{ display:none; }

/* Entra y sale por el mismo camino, creciendo desde el boton que la abre.
   Solo en el desplegable flotante de desktop; en la hoja mobile es una lista. */
@media (min-width:1025px) and (prefers-reduced-motion:no-preference){
  .nav__panel{
    transform-origin:top center;
    transition:opacity .16s ease-out, transform .2s cubic-bezier(.2,.7,.3,1);
  }
  .nav__panel.is-entering,
  .nav__panel.is-leaving{
    opacity:0;
    transform:translateX(-50%) translateY(-4px) scale(.98);
  }
}

/* The panel floats 10px below the trigger. That gap is outside both elements,
   so a cursor travelling into the menu would leave .nav__drop and close it —
   this transparent strip bridges it and keeps the pointer "inside". */
.nav__panel::before{
  content:"";
  position:absolute;
  bottom:100%;
  left:0;
  right:0;
  height:14px;
}

.nav__panel-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:4px;
}

/* Text-only tiles, cut from the same glass as the hero's marque squares. */
.navbrand{
  display:block;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:var(--r-md);
  font-family:var(--font-head);
  font-weight:500;
  font-size:14px;
  line-height:16px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--n300);
  transition:border-color .18s ease, background-color .18s ease, color .18s ease;
}
.navbrand:hover,
.navbrand:focus-visible{
  border-color:var(--n700);
  background:rgba(255,255,255,.08);
  color:#fff;
}
.navbrand[aria-current="page"]{
  border-color:var(--n200);
  background:rgba(255,255,255,.1);
  color:#fff;
}

.nav__panel-foot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--n700);
  font-family:var(--font-head);
  font-weight:500;
  font-size:13px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--red-bright);
}
.nav__panel-foot:hover{ color:#fff; }


/* Hero body -------------------------------------------------------------- */

.hero__body{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:48px;
  min-height:573px;
  padding:24px 0;
}
/* 636px de contenido: lo que necesitan el boton y la linea del telefono para
   entrar en una sola fila, como en el diseno, sin invadir el formulario
   (660 + 48 de gap + 449 del form = 1157, y la franja da 1312). */
.hero__copy{ width:660px; max-width:100%; flex:0 1 660px; padding-right:24px; }

/* A hero with nothing beside the copy — the trade-in and financing pages. The
   610px cap exists to leave room for the offer form; with no form to clear,
   the column takes the width its own content needs, which keeps the CTA and
   the phone line on one row instead of wrapping the phone underneath. */
.hero--solo .hero__copy{ width:auto; max-width:720px; flex:0 1 auto; padding-right:0; }

/* 12px dejaba el texto tres veces mas lejos de la ultima estrella que las
   estrellas entre si (4.5 de tinta contra 13.5), y la fila se leia partida en
   dos. Con 8 la separacion sigue marcando que son dos cosas distintas pero el
   bloque se lee entero. */
.hero__rating{ display:flex; align-items:center; gap:8px; }
.hero__rating-text{
  font-weight:500;
  font-size:12px;
  line-height:20px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#fff;
}

.hero__title{ margin:16px 0 0; min-height:var(--hero-title-h); display:flex; flex-direction:column; justify-content:center; }
.hero__title-lg,
.hero__title-sm{
  font-family:var(--font-head);
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  background:var(--silver);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
/* Cada linea del titular entra entera: a 64/48 "We Buy Exotics" y "Without the
   Hassle." se partian en dos. Medido contra los 636px de la columna.
   La segunda linea va mas chica y liviana que la primera, a proposito. */
.hero__title-lg{ font-size:60px; line-height:1.02; }
.hero__title-sm{
  font-size:32px;
  line-height:44px;
  font-weight:500;
  letter-spacing:3px;
  opacity:.85;
  margin-top:8px;
}

.hero__lede{ margin-top:24px; color:var(--n50); max-width:560px; }

.hero__actions{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:32px; }
.hero__phone{ font-weight:500; font-size:14px; line-height:20px; color:var(--n50); }
.hero__phone a:hover{ text-decoration:underline; }

/* Inline offer form ------------------------------------------------------ */

.offer{
  flex:0 0 449px;
  width:449px;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:16px;
  border-radius:var(--r-lg);
  background:rgba(0,0,0,.2);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  overflow:hidden;
}
.offer__title{
  font-family:var(--font-head);
  font-weight:500;
  font-size:16px;
  line-height:16px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#fff;
}
.offer__group{ display:flex; flex-direction:column; gap:12px; }
.offer__label{
  font-weight:700;
  font-size:10px;
  line-height:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--n300);
}

.brands{ display:flex; flex-direction:column; gap:12px; }
.brands__scroller{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
  padding-bottom:2px;
}
.brands__scroller::-webkit-scrollbar{ display:none; }

.brand{
  flex:none;
  width:87px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 4px;
  border:0.672px solid var(--n700);
  border-radius:var(--r-md);
  background:rgba(0,0,0,.25);
  cursor:pointer;
  scroll-snap-align:start;
  transition:border-color .18s ease, background-color .18s ease;
  overflow:hidden;
}
/* Marks sit desaturated at rest and come back to full colour on hover or once
   the tile is picked. The grey state also lifts them into a legible band on the
   dark glass; the colour state shows each logo exactly as supplied. */
.brand img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:grayscale(1) brightness(1.65) contrast(.55);
  transition:filter .2s ease;
}
.brand:hover img,
.brand:focus-visible img,
.brand.is-selected img{ filter:none; }

.brand:hover{ border-color:var(--n500); }
.brand.is-selected{
  border-color:var(--n200);
  background:rgba(255,255,255,.1);
}

.offer__fields{ display:flex; flex-direction:column; gap:16px; }
.offer__row{ display:flex; gap:12px; }

.field{
  flex:1 1 0;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:7.5px 10px;
  border:1px solid var(--n700);
  border-radius:var(--r-sm);
  background:rgba(0,0,0,.3);
  cursor:text;
  transition:border-color .18s ease;
}
.field:focus-within{ border-color:var(--n300); }
.field__label{
  font-weight:700;
  font-size:10px;
  line-height:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--n300);
}
.field input{
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  color:#fff;
  font-family:var(--font-body);
  font-size:14px;
  line-height:20px;
}
/* Dimmer than the label so the hint reads as secondary, not as content. */
.field input::placeholder{ color:var(--n500); opacity:1; }
.field input:focus{ outline:none; }

/* BRAND es un desplegable propio, no un <select>. La lista de un select nativo
   la dibuja el sistema operativo: no se puede acotar al ancho del campo ni
   darle el estilo del panel, y se desbordaba por encima del formulario. Esto
   es un listbox comun, anclado al campo y con el mismo ancho. */
.field--select{ position:relative; padding:0; cursor:pointer; }
.field--select .field__label{ display:block; padding:7.5px 10px 0; }
.field__trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  padding:0 10px 7.5px;
  border:0;
  background:transparent;
  color:#fff;
  font-family:var(--font-body);
  font-size:14px;
  line-height:20px;
  text-align:left;
  cursor:pointer;
}
.field__trigger:focus-visible{ outline:2px solid var(--n300); outline-offset:2px; }
/* Mientras no se elige nada el texto es un hint, no contenido. */
.field__value.is-placeholder{ color:var(--n500); }
.field__caret{
  flex:none;
  width:16px;
  height:16px;
  color:var(--n300);
  transition:transform .2s ease;
}
.field--select.is-open .field__caret{ transform:rotate(180deg); }
.field__list{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:20;
  /* Entra dentro del formulario, que recorta: 17 marcas no caben, asi que la
     lista scrollea sola. */
  max-height:200px;
  overflow-y:auto;
  overscroll-behavior:contain;
  margin:0;
  padding:4px;
  list-style:none;
  border:1px solid var(--n700);
  border-radius:var(--r-sm);
  background:#141414;
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}
.field__option{
  padding:8px 10px;
  border-radius:4px;
  font-size:14px;
  line-height:20px;
  color:var(--n50);
  cursor:pointer;
}
.field__option:hover,
.field__option.is-active{ background:rgba(255,255,255,.08); }
.field__option[aria-selected="true"]{ color:var(--red-bright); }

.offer__submit{ width:100%; }
.offer__legal{
  font-size:14px;
  line-height:20px;
  text-align:center;
  background:var(--silver);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.offer__legal a{ color:var(--red-bright); }
.offer__legal a:hover{ text-decoration:underline; }

/* Stats ------------------------------------------------------------------ */

.stats{ padding-bottom:32px; }
.stats__inner{
  display:flex;
  align-items:center;
  gap:40px;
  max-width:var(--maxw);
  margin:0 auto;
}
/* On wide screens the track is transparent: the stats stay direct flex
   children of .stats__inner and share the row evenly, as before. It only
   becomes a real element on phones, where it turns into the ticker rail. */
.stats__track{ display:contents; }
.stats__track--clone{ display:none; }

.stat{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:4px; }
.stat__num{
  font-family:var(--font-head);
  font-weight:900;
  font-size:56px;
  line-height:56px;
  letter-spacing:-1px;
  color:var(--n50);
  white-space:nowrap;
}
.stat__num--star{ display:flex; align-items:center; gap:2px; }
.icon--star-lg{ width:34px; height:34px; fill:#fff; }
.stat__label{
  font-weight:500;
  font-size:14px;
  line-height:20px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#fff;
  white-space:nowrap;
}
/* El color sale de una variable para que la banda clara (.stats--light) y el
   separador de cierre del ticker lo compartan sin repetir el valor. */
.stats{ --stat-rule:rgba(255,255,255,.35); }
.stat__rule{ flex:none; width:1px; height:71px; background:var(--stat-rule); }

/* One full track-width of travel — the clone has already taken its place. */
@keyframes stats-ticker{
  from{ transform:translate3d(0,0,0); }
  to{ transform:translate3d(-100%,0,0); }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how__inner{ display:flex; gap:64px; align-items:flex-start; }
.how__aside{ flex:0 0 469px; width:469px; display:flex; flex-direction:column; gap:32px; }
.how__intro{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.how__intro .h2{ max-width:344px; }
.how__lede{ color:var(--n300); max-width:428px; }
.how__photo{ width:100%; height:255px; object-fit:cover; border-radius:var(--r-lg); }

/* --------------------------------------------------------------------------
   HOW IT WORKS — la foto como fondo de la mitad izquierda (desktop)
   -------------------------------------------------------------------------- */

/* En el diseno la foto no es una miniatura debajo del copy: ocupa la mitad
   izquierda de la seccion, sangrada hasta el borde, y se funde en el negro
   antes de llegar a los pasos. Va como fondo de la <section>, que es la unica
   caja que llega al borde (el inner respeta el gutter). */
@media (min-width:1025px){
  .how{ position:relative; isolation:isolate; overflow:hidden; background-color:var(--ink); }
  /* La foto llena una caja del 62% izquierdo con 'cover', no el ancho entero:
     asi el encuadre cae sobre la persona, como en el diseno, en vez de dejarla
     a media seccion y tapada por el degradado. */
  /* La caja de la foto llega hasta el 75% a proposito: el degradado de abajo ya
     es negro puro en el 60%, asi que el borde donde la foto termina queda
     tapado. Cortandola en el 62% (donde el velo todavia no cerraba) se veia
     el canto del rectangulo. */
  /* Medidas tomadas del nodo 2206:631 del Figma, que es una caja de 1219x665
     corrida a left:-282 sobre un frame de 1440, espejada en horizontal
     (rotate(180)+scaleY(-1) en Figma = scaleX(-1)), con la foto dentro a
     149.04% x 145.85% y desplazada -30.92% / -3.33%. Traducido a CSS: la caja
     es el pseudo-elemento, el espejo es transform:scaleX(-1) sobre si mismo
     (la caja cae sobre si misma, lo unico que se invierte es el contenido) y
     el desplazamiento de la foto se expresa en el sistema de porcentajes de
     background-position, offset = (caja - imagen) * p. */
  .how::before{
    content:"";
    position:absolute;
    /* La caja se mide contra la COLUMNA DE CONTENIDO, no contra el viewport.
       Con porcentajes del viewport, en un monitor de 2560 la caja pasaba a
       2167px y la foto, que esta dimensionada en % de la caja, se ampliaba a
       3230px: la persona quedaba enorme y descuadrada. Anclada al contenido,
       la caja mide siempre 1219x100% y el encuadre es identico a cualquier
       ancho — en 1440 da left:-282px, que es el valor del Figma. */
    left:min(0px, calc(50% - 1002px));   /* 600 (medio contenido) + 402 (sangrado del Figma) */
    top:0;
    /* Crece solo hacia la izquierda, hasta el borde del viewport: el borde
       derecho queda donde lo pone el contenido y la foto no se entera. */
    width:calc(1219px + max(0px, 50% - 1002px));
    height:100%;
    z-index:-1;
    /* Ancho de la foto en px (los 1817 que daba el 149.04% de la caja del
       Figma) y anclada al borde derecho de la caja, que es el fijo. Asi el
       encuadre es el mismo a 1440 que a 2560. */
    background:url("/wp-content/uploads/2026/10/wbe-how-phone.jpg") right -221px top 7.25% / 1817px 145.85% no-repeat;
    transform:scaleX(-1);
    border-radius:var(--r-md);
  }
  /* Los dos degradados del diseno, sobre la misma caja. Como alli viven dentro
     del grupo espejado, el angulo va invertido: 90deg -> 270deg y
     133.561deg -> 226.439deg. A la derecha de la caja (65% del ancho) ya no hay
     foto: queda el fondo #0a0a0a de la seccion, igual que en el Figma. */
  .how::after{
    content:"";
    position:absolute;
    left:min(0px, calc(50% - 1002px));
    top:0;
    width:calc(1219px + max(0px, 50% - 1002px));
    height:100%;
    z-index:-1;
    background:
      linear-gradient(226.439deg, rgba(0,0,0,0) 33.868%, rgba(0,0,0,.8) 62.206%),
      linear-gradient(270deg, rgb(0,0,0) 6.6613%, rgba(0,0,0,0) 49.959%);
    border-radius:var(--r-md);
  }
  /* La miniatura deja de tener sentido: la foto ya es el fondo. */
  .how__photo{ display:none; }
  /* El copy se apoya abajo del todo, sobre la foto. */
  .how__inner{ align-items:stretch; }
  .how__aside{ justify-content:flex-end; }
}

.steps{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:24px; padding:32px 0 32px 32px; }
.step{ display:flex; gap:32px; }
.step + .step{ border-top:1px solid var(--n700); padding-top:24px; margin-top:0; }
.step__num{
  flex:none;
  font-family:var(--font-head);
  font-weight:700;
  font-size:30px;
  line-height:32px;
  color:var(--red-bright);
}
.step__body{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:16px; }
.step__body > p{ color:var(--n50); }
.step__meta{
  font-weight:500;
  font-size:14px;
  line-height:20px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--red) !important;
}

/* ==========================================================================
   FEATURED TESTIMONIAL
   ========================================================================== */

.quote-section__inner{ display:flex; flex-direction:column; gap:24px; }
.quote-section__row{ display:flex; align-items:center; gap:64px; }

/* Slides are stacked in one grid cell so the section keeps the height of the
   tallest story and nothing reflows as it advances. */
.quote-stack{ flex:1 1 0; min-width:0; display:grid; }
.quote-stack > .quote{
  grid-area:1 / 1;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .45s ease, transform .45s ease, visibility .45s;
}
.quote-stack > .quote.is-active{ opacity:1; visibility:visible; transform:none; }

.photo-stack{
  flex:0 0 469px;
  width:469px;
  height:445px;
  display:grid;
  grid-template:1fr / 1fr;   /* explicit track so children can resolve height:100% */
  border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--n200);
}
.photo-stack > .quote-section__photo{
  grid-area:1 / 1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  object-fit:cover;
  border-radius:0;
  opacity:0;
  transform:scale(1.04);
  transition:opacity .55s ease, transform .8s ease;
}
.photo-stack > .quote-section__photo.is-active{ opacity:1; transform:none; }

.quote{ margin:0; display:flex; flex-direction:column; gap:24px; padding:32px 0; position:relative; }
.quote__text{
  position:relative;
  margin:0;
  font-family:var(--font-head);
  font-weight:700;
  font-size:30px;
  line-height:32px;
}
.quote__mark{
  display:none;
  position:absolute;
  left:-11px;
  top:-16px;
  font-family:var(--font-head);
  font-weight:700;
  font-size:96px;
  line-height:1;
  background:linear-gradient(180deg, #fff1f0 0%, #e9635d 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  pointer-events:none;
}
.quote__foot{ display:flex; align-items:center; gap:24px; }
.quote__who{ flex:1 1 0; min-width:0; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.quote__who b{ font-size:17px; line-height:24px; }
.quote__who span{ font-size:16px; line-height:24px; }
/* Progress counter — one segment per story, the active one fills over the
   slide's dwell time; click a segment to jump to that story. */
.quote-progress{ display:flex; gap:6px; width:100%; }
.qp{
  flex:1 1 0;
  position:relative;
  height:4px;
  padding:0;
  border:0;
  background:var(--n200);
  overflow:hidden;
  cursor:pointer;
}
.qp__fill{
  position:absolute;
  inset:0;
  background:var(--ink);
  transform:scaleX(var(--p, 0));   /* driven by script.js, one rAF loop */
  transform-origin:left center;
  clip-path:polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* ==========================================================================
   WHY WE'RE DIFFERENT
   ========================================================================== */

.why__head{ display:flex; align-items:center; gap:24px; margin-bottom:48px; }
.why__head > div{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:12px; }
.why__lede{ flex:0 0 375px; width:375px; color:var(--n300); }

.why__grid{ display:flex; gap:64px; align-items:stretch; }
.why__card{
  flex:1 1 0;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-top:24px;
  border-top:1px solid var(--n700);
}
.why__num{
  font-family:var(--font-head);
  font-weight:700;
  font-size:30px;
  line-height:32px;
  color:var(--red-bright);
}
.why__card .h3{ margin-top:8px; }
.why__card > p:last-child{ margin-top:8px; color:var(--n50); }

/* ==========================================================================
   PERSONAL SERVICE BANNER
   ========================================================================== */

.service{ padding-bottom:0; }
.service__card{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:344px;
  padding:64px;
  border-radius:var(--r-xl);
  overflow:hidden;
  color:var(--n50);
  background:#0a0a0a url("/wp-content/uploads/2026/11/wbe-service-handshake.jpg") center/cover no-repeat;
}
.service__card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(72deg, rgba(0,0,0,.95) 1%, rgba(0,0,0,.285) 76%);
}
.service__copy{ display:flex; flex-direction:column; gap:24px; width:100%; max-width:520px; }
.service__copy .h2{ max-width:493px; }
.service__lede{ color:var(--n300); max-width:375px; }
.service__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ==========================================================================
   MARQUES CAROUSEL
   ========================================================================== */

.marques{
  padding-left:0;
  padding-right:0;
  display:flex;
  flex-direction:column;
  gap:32px;
}
.marques__head,
.marques__bar{
  padding-inline:max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.marques__head{ display:flex; align-items:center; gap:32px; }
.marques__intro{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:12px; }
.marques__lede{ margin-top:12px; max-width:588px; color:var(--n700); }
.marques__nav{ display:flex; gap:12px; flex:none; }

/* The row of cars runs past both gutters — the marques at either end are
   meant to be cut off, which is what tells you the row keeps going. */
.marques__track{
  display:flex;
  /* El Figma pedia 40, pero con la llave ocupando ~68 de los 114 de la columna
     las etiquetas largas ("MERCEDES BENZ" mide 135) quedaban casi tocandose.
     64 deja 43px de aire entre etiqueta y etiqueta y separa bien las llaves. */
  gap:64px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding-inline:max(var(--gutter), calc((100% - var(--maxw)) / 2));
  /* El auto crece 5% en hover: el track necesita aire vertical antes de
     recortar. El margin negativo devuelve ese aire al layout. */
  padding-block:16px;
  margin-block:-16px;
}
.marques__track::-webkit-scrollbar{ display:none; }

/* Figma 2213:602 (desktop) y 2213:797 (mobile): la fila ya no son autos de
   perfil sino la llave de cada marca. La columna mide 114px y la llave 155,
   o sea que la imagen sobresale 20.5px por lado y las llaves quedan mas
   juntas que las etiquetas. El margen negativo es lo que produce eso sin
   tocar el ancho de la columna, que es el que fija el ritmo de la fila. */
.marque{
  flex:none;
  width:114px;
  scroll-snap-align:center;
  display:block;
  color:var(--ink);
}
.marque__stage{
  display:block;
  width:155px;
  margin-inline:-20.5px;
  aspect-ratio:1 / 1;
}
.marque__car{
  width:100%;
  height:100%;
  object-fit:contain;
}
.marque__name{
  margin-top:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-family:var(--font-head);
  font-weight:500;
  font-size:16px;
  line-height:16px;
  letter-spacing:2px;
  text-transform:uppercase;
  white-space:nowrap;
  color:inherit;
}

/* El Figma no lleva flecha al lado del nombre. */
.marque__arrow{ display:none; }

/* Hover — con el auto de perfil la llevaba hacia adelante (a la izquierda);
   una llave de frente no tiene adelante, asi que levanta. */
@media (hover:hover){
  .marque__car{
    transition:transform .45s cubic-bezier(.2,.7,.3,1);
  }
  .marque__name{ transition:color .2s ease; }

  .marque:hover .marque__car,
  .marque:focus-visible .marque__car{ transform:translateY(-8px) scale(1.04); }

  .marque:hover .marque__name,
  .marque:focus-visible .marque__name{ color:var(--red); }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.reviews{ display:flex; flex-direction:column; gap:48px; }
.reviews__head{ display:flex; align-items:flex-end; gap:24px; }
.reviews__head > div:first-child{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:12px; }
.reviews__score{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:none; }
.reviews__score-row{ display:flex; align-items:center; gap:8px; }
.reviews__score-row .h3{ color:var(--n50); }
.reviews__verified{ color:var(--n300); }

.reviews__track{ display:flex; gap:20px; align-items:stretch; }
.review{
  position:relative;
  isolation:isolate;
  flex:1 1 0;
  min-width:0;
  /* El contenido de estas tarjetas mide ~200px (cita de tres lineas + pie +
     padding); 358 dejaba casi 160px de aire muerto abajo. 290 recorta el hueco
     y deja igual una caja grande para la foto que aparece en hover. Sigue
     siendo un piso: una review mas larga estira la tarjeta. */
  min-height:290px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  padding:24px;
  border-radius:var(--r-xl);
  background:#fff;
  color:var(--ink);
  overflow:hidden;
}
/* Figma annotation on this card: "On Hover image appears" — the card sits
   white at rest and reveals its photo, with a scrim, on hover/focus.
   The photo is a real <img> rather than a CSS background: a url() carried
   in a custom property resolves against the stylesheet that reads it, not
   the page that sets it, so it would break the moment this file moves. */
.review__photo{
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  opacity:0;
  transition:opacity .3s ease;
}
.review--photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:rgba(0,0,0,.5);
  opacity:0;
  transition:opacity .3s ease;
}
.review--photo:hover,
.review--photo:focus-within{ color:var(--n50); }
.review--photo:hover .review__photo,
.review--photo:focus-within .review__photo,
.review--photo:hover::after,
.review--photo:focus-within::after{ opacity:1; }
.review--photo:hover .review__foot,
.review--photo:focus-within .review__foot{ border-top-color:rgba(255,255,255,.35); }
.review__top{ display:flex; flex-direction:column; gap:16px; }
.review__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:12px;
  border-top:1px solid var(--n200);
  font-size:14px;
  line-height:20px;
}

.reviews__nav{ display:none; gap:12px; justify-content:center; }
.reviews__all{ align-self:center; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq{ display:flex; gap:64px; align-items:flex-start; }
.faq__aside{ flex:0 0 398px; width:398px; display:flex; flex-direction:column; gap:12px; }
.faq__aside .h2{ margin-bottom:12px; }
.faq__lede{ color:var(--n700); }

.faq__list{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:16px; }
.faq__item + .faq__item{ border-top:1px solid rgba(10,10,10,.25); padding-top:16px; }

.faq__q{ margin:0; }
.faq__q button{
  display:flex;
  align-items:center;
  gap:32px;
  width:100%;
  padding:4px 0;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.faq__q button > span:first-child{
  flex:1 1 0;
  min-width:0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:18px;
  line-height:27px;
  transition:color .18s ease;
}
.faq__q .icon-btn{ flex:none; pointer-events:none; }
.faq__item.is-open .faq__q button > span:first-child{ color:var(--red-bright); }
.faq__item.is-open .icon-btn{ background:rgba(0,0,0,.03); border-color:var(--n300); }
.faq__q .icon--minus{ display:none; }
.faq__item.is-open .icon--plus{ display:none; }
.faq__item.is-open .icon--minus{ display:block; }

/* El panel colapsa animando la fila del grid de 0fr a 1fr. Dos cosas lo
   rompian: 'grid-template-rows' solo define la PRIMERA fila, asi que una
   respuesta con varios <p> dejaba los demas en filas implicitas que nunca se
   cerraban; y el selector '> p' no alcanzaba a las paginas cuyo panel envuelve
   el texto en .faq__a-body, que quedaba sin overflow:hidden y tampoco se
   recortaba. Por eso hay que cubrir las filas implicitas y cualquier hijo. */
.faq__a{
  display:grid;
  grid-template-rows:0fr;
  grid-auto-rows:0fr;
  transition:grid-template-rows .28s ease, grid-auto-rows .28s ease;
}
.faq__a > *{ overflow:hidden; min-height:0; padding-bottom:0; }
.faq__item.is-open .faq__a{ grid-template-rows:1fr; grid-auto-rows:1fr; }
.faq__item.is-open .faq__a > *{ padding-bottom:8px; }

/* ==========================================================================
   VIDEOS DE FAQ
   ========================================================================== */

/* Los clips de WBE van debajo del texto, dentro de .faq__a-body y no como
   hermanos del parrafo: .faq__a es una grilla que anima de 0fr a 1fr y con el
   video suelto el alto se repartia entre filas. Sin autoplay y con
   preload="none" no se baja un byte hasta que lo tocan; lo unico que carga de
   entrada es el poster. Los subtitulos vienen quemados en el archivo. */
.faqvid{ margin:16px 0 0; }
.faqvid video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  background:#0a0a0a;
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */

.cta{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:464px;
  padding:64px max(var(--gutter), calc((100% - var(--maxw)) / 2));
  overflow:hidden;
  color:var(--n50);
  background:linear-gradient(104deg, var(--red-deep) 0%, #8d251f 34%, var(--red) 100%);
}
.cta__inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:24px;
  width:100%;
  max-width:560px;
}
.cta__lede{ color:var(--n300); max-width:375px; }
.cta__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cta__car{
  position:absolute;
  right:-22%;
  top:50%;
  transform:translateY(-50%);
  width:1088px;
  max-width:none;
  height:auto;
  z-index:0;
  pointer-events:none;
}

/* ==========================================================================
   OFFER MODAL
   ========================================================================== */

/* The dialog is only a frame — the panel inside it is the same .offer glass
   used in the homepage hero, so the two stay identical by construction. */
.offer-modal{
  width:min(492px, calc(100vw - 32px));
  max-height:calc(100dvh - 48px);
  padding:0;
  border:0;
  background:transparent;
  overflow:visible;
}
.offer-modal::backdrop{
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.offer-modal .offer{
  position:relative;
  flex:1 1 auto;
  width:100%;
  max-height:calc(100dvh - 48px);
  padding:24px;
  border:1px solid var(--n700);
  border-radius:var(--r-lg);
  /* Opaque here: in the hero the glass sits on a photograph, but over a
     dimmed page it needs its own ground to stay readable. */
  background:rgba(12,12,12,.96);
  overflow-y:auto;
}

.offer-modal__close{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  padding:0;
  border:0;
  background:none;
  color:var(--n300);
  cursor:pointer;
  transition:color .18s ease;
}
.offer-modal__close:hover{ color:#fff; }
.offer-modal__close .icon{ width:16px; height:16px; }

.offer-modal .offer__title{ padding-right:40px; }

/* Opening animation, skipped for anyone who has asked for less motion. */
@media (prefers-reduced-motion:no-preference){
  .offer-modal[open]{ animation:offer-modal-in .22s ease-out; }
  .offer-modal[open]::backdrop{ animation:offer-backdrop-in .22s ease-out; }
}
@keyframes offer-modal-in{
  from{ opacity:0; transform:translateY(8px) scale(.98); }
  to{ opacity:1; transform:none; }
}
@keyframes offer-backdrop-in{ from{ opacity:0; } to{ opacity:1; } }

/* La salida es la entrada al reves, con la curva espejada: se va por donde vino. */
@media (prefers-reduced-motion:no-preference){
  .offer-modal[open].is-closing{ animation:offer-modal-out .18s ease-in forwards; }
  .offer-modal[open].is-closing::backdrop{ animation:offer-backdrop-out .18s ease-in forwards; }
}
/* Nombres propios: si se reusara offer-modal-in, el navegador la da por
   terminada y no la vuelve a correr. ease-in es el espejo del ease-out de entrada. */
@keyframes offer-modal-out{
  from{ opacity:1; transform:none; }
  to{ opacity:0; transform:translateY(8px) scale(.98); }
}
@keyframes offer-backdrop-out{ from{ opacity:1; } to{ opacity:0; } }

/* Keep the page behind from scrolling while the dialog owns the screen. */
body.has-modal{ overflow:hidden; }

@media (max-width:640px){
  .offer-modal .offer{ padding:20px 16px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer{
  background:#000;
  color:var(--n50);
  padding:64px max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display:flex;
  flex-direction:column;
  gap:48px;
}
.footer__top{ display:flex; gap:48px; align-items:flex-start; }
.footer__brand{ flex:0 0 367px; width:367px; display:flex; flex-direction:column; gap:20px; }
.footer__logo{ width:135px; height:55px; object-fit:contain; }
.footer__brand p{ color:var(--n400); }
.footer__social{ display:flex; gap:10px; }

.footer__col{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:16px; }
.footer__heading{
  font-family:var(--font-head);
  font-weight:700;
  font-size:14px;
  line-height:20px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--n50);
}
.footer__col ul{ display:flex; flex-direction:column; gap:4px; }
.footer__col a{ color:var(--n300); }
.footer__col a:hover{ color:#fff; }

.footer__rule{ margin:0; border:0; height:1px; background:var(--n700); }
.footer__bottom{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer__bottom p{ color:var(--n400); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width:1200px){
  :root{ --gutter:40px; }

  .hero__copy{ flex:1 1 auto; width:auto; padding-right:0; }
  .offer{ flex:0 0 400px; width:400px; }
  .how__aside{ flex:0 0 400px; width:400px; }
  .photo-stack{ flex:0 0 380px; width:380px; height:380px; }
  .why__grid{ gap:32px; }
  .faq{ gap:40px; }
  .faq__aside{ flex:0 0 320px; width:320px; }
  .cta__car{ right:-32%; width:900px; }
}

@media (max-width:1024px){
  .nav__burger{ display:flex; }
  .nav__inner{ flex-wrap:wrap; }
  .nav__brand{ margin-right:auto; }
  .nav__burger{ order:-1; margin-left:0; margin-right:4px; }
  .nav__cta{ order:1; }

  /* Full-screen sheet. The top padding is the burger's own resting offset
     (12px on .nav + 16px on .nav__inner), so the bars morph into the X exactly
     where they already were instead of jumping to a new corner. */
  .nav__links{
    position:fixed;
    inset:0;
    /* inset:0 se resuelve contra el viewport chico del navegador movil. Con la
       barra de URL retrayendose la hoja podia quedar mas baja que la pantalla
       y dejar ver la pagina abajo. 100dvh sigue el alto real en cada momento;
       el 100vh de arriba queda de respaldo para navegadores sin dvh. */
    height:100vh;
    height:100dvh;
    z-index:60;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:32px;
    padding:28px var(--gutter) 64px;
    /* Not quite solid — the page stays faintly readable through the blur. */
    background:rgba(0,0,0,.82);
    backdrop-filter:blur(24px) saturate(120%);
    -webkit-backdrop-filter:blur(24px) saturate(120%);
    overflow-y:auto;
    opacity:0;
    visibility:hidden;
    transition:opacity .24s ease, visibility .24s;
  }
  .nav__links.is-open{ opacity:1; visibility:visible; }

  /* The sheet carries the mark on the row opposite the X, and it links home.
     El posicionamiento vive en el <a> porque es el hijo flex de la hoja; la
     imagen adentro queda neutra. */
  .nav__menu-home{
    display:block;
    align-self:flex-end;
    /* La X vive en la barra de nav, no en la hoja: su centro cae en
       12px (.nav) + 16px (.nav__inner) + 20px (media altura del boton) = 48px.
       La hoja arranca en 28px de padding, asi que con 2px el centro del logo
       (36px de alto) cae tambien en 48 y los dos quedan en la misma linea. */
    margin-top:2px;
    /* Aire entre la fila del encabezado y el primer link. */
    margin-bottom:56px;
    line-height:0;
  }
  .nav__menu-home:hover .nav__menu-logo,
  .nav__menu-home:focus-visible .nav__menu-logo{ opacity:1; }
  /* Mismo tamano que el logo de la barra (.nav__logo, 110x45): con 88x36
     quedaba visiblemente mas chico que el del header. */
  .nav__menu-logo{
    display:block;
    width:110px;
    height:45px;
    margin:0;
    object-fit:contain;
    opacity:.8;
    transition:opacity .2s ease;
  }

  /* Sentence-case body type in the sheet, not the bar's condensed caps. */
  .nav__links .btn--nav{
    justify-content:flex-start;
    min-height:0;
    padding:0;
    font-family:var(--font-body);
    font-weight:400;
    font-size:18px;
    line-height:27px;
    letter-spacing:0;
    text-transform:none;
    color:var(--n300);
    background:none;
  }
  .nav__links .btn--nav:hover,
  .nav__links .btn--nav[aria-current="page"]{ color:#fff; background:none; }
  .nav--light .nav__links .btn--nav{ color:var(--n300); }
  .nav--light .nav__links .btn--nav:hover,
  .nav--light .nav__links .btn--nav[aria-current="page"]{ color:#fff; background:none; }

  /* The links sit as one stack; the CTA is pushed to the foot of the sheet. */
  .nav__links > .btn--nav,
  .nav__links > .nav__drop{ flex:none; }
  .nav__menu-cta{ display:inline-flex; margin-top:auto; width:100%; }

  /* Inside the sheet the marque panel is no longer a popover — it becomes an
     inline block that pushes the rest of the list down. */
  .nav__drop{ position:static; }
  .nav__links .nav__drop{ display:flex; flex-direction:column; gap:16px; }
  .nav__drop-trigger{ justify-content:flex-start; gap:12px; width:auto; }
  .nav__drop-trigger .icon--caret{ width:20px; height:20px; }
  .nav__drop.is-open .nav__drop-trigger{ background:none; color:#fff; }

  .nav__panel::before{ content:none; }
  .nav__panel{
    position:static;
    width:auto;
    max-width:none;
    transform:none;
    margin:0;
    padding:0;
    border:0;
    background:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    box-shadow:none;
  }
  .nav__panel-grid{ grid-template-columns:repeat(2, 1fr); }

  /* The bar's own red CTA is redundant once the sheet has one at its foot. */
  .nav__links.is-open ~ .nav__cta{ visibility:hidden; }

  .nav__burger{ position:relative; z-index:70; }
  /* Three classes so a page stylesheet's .nav--light .nav__burger can't win. */
  .nav .nav__burger[aria-expanded="true"]{ color:#fff; }
  body.has-menu .nav{ z-index:60; }
  /* El bloqueo va tambien en <html>: en iOS Safari el overflow:hidden solo
     en body no siempre frena el scroll y la pagina sigue corriendose por
     detras de la hoja. */
  html:has(body.has-menu),
  body.has-menu{ overflow:hidden; }
  /* En Financing la barra vive DENTRO de <header class="hero">, que tiene
     position:relative + isolation:isolate y por lo tanto crea un contexto de
     apilado propio. El z-index:60 de la hoja solo valia adentro de ese header,
     y el header (z-index auto) quedaba al mismo nivel que .mabout, que al venir
     despues en el DOM se dibujaba encima: la hoja se cortaba a la altura del
     About. Subiendo el header mientras el menu esta abierto, la hoja vuelve a
     tapar toda la pagina. En las brand pages la barra es hermana del hero, por
     eso ahi nunca se vio el problema. */
  body.has-menu .hero{ z-index:70; }

  .hero__body{ flex-direction:column; align-items:stretch; gap:32px; min-height:0; }
  .hero__copy{ padding-right:0; }
  .hero--solo .hero__copy{ max-width:none; }
  .offer{ flex:1 1 auto; width:100%; }

  /* Apilado el orden del diseno es: foto, copy, pasos y recien al final el
     boton a todo el ancho. El boton vive dentro de .how__intro, asi que las
     dos cajas intermedias se disuelven con display:contents y los hijos pasan
     a ser items de .how__inner, donde 'order' ya puede reordenarlos. */
  .how__inner{ flex-direction:column; gap:16px; }
  .how__aside,
  .how__intro{ display:contents; }
  /* La foto tampoco es miniatura apilada: es el fondo sangrado de arriba
     (nodo 2206:673 — caja 772x423 centrada sobre un frame de 400, espejada,
     con el mismo encuadre que en desktop) y el copy arranca a 280/423 de esa
     caja. La altura se acota con clamp para que en tablet no se desmadre. */
  .how{
    --how-h: clamp(300px, 105.75vw, 460px);
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background-color:#000;
    padding-top: calc(var(--how-h) * .662);
  }
  .how::before,
  .how::after{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    height:var(--how-h);
    width:calc(var(--how-h) * 1.8251);   /* 772 / 423 */
    z-index:-1;
  }
  .how::before{
    background:url("/wp-content/uploads/2026/10/wbe-how-phone.jpg") 63.05% 7.25% / 149.04% 145.85% no-repeat;
    transform:translateX(-50%) scaleX(-1);
  }
  .how::after{
    background:linear-gradient(0.552deg, rgb(0,0,0) 15.115%, rgba(0,0,0,0) 75.408%);
    transform:translateX(-50%);
  }
  .how__photo{ display:none; }
  .how__intro > .eyebrow{ order:-2; margin-top:8px; }
  .how__inner .h2{ order:-2; }
  .how__lede{ order:-2; }
  .how__intro > .btn{ order:2; width:100%; justify-content:center; }
  .steps{
    order:1;
    padding-left:0;
    padding-top:24px;
    margin-top:8px;
    border-top:1px solid var(--n700);
  }

  .quote-section__row{ flex-direction:column; align-items:stretch; }
  .photo-stack{ flex:1 1 auto; width:100%; height:340px; order:-1; }

  .why__head{ flex-direction:column; align-items:stretch; }
  .why__lede{ flex:1 1 auto; width:100%; }
  .why__grid{ flex-direction:column; gap:24px; }

  .service__card{ padding:40px; }
  .service__card::before{ background:linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 55%, rgba(0,0,0,.45) 100%); }

  .reviews__track{
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    margin-inline:calc(-1 * max(var(--gutter), 0px));
    padding-inline:max(var(--gutter), 0px);
    /* Without this the snap point ignores the padding above: the rail lands at
       scrollLeft:16 on load and the first card sits flush to the screen edge
       instead of lining up with the heading. */
    scroll-padding-inline:max(var(--gutter), 0px);
  }
  .reviews__track::-webkit-scrollbar{ display:none; }
  .review{ flex:none; width:min(346px, 84vw); scroll-snap-align:start; }
  .reviews__nav{ display:flex; }
  .reviews__head{ flex-direction:column; align-items:stretch; gap:24px; }
  .reviews__score{ align-items:flex-start; }

  .faq{ flex-direction:column; }
  .faq__aside{ flex:1 1 auto; width:100%; }
  .faq__list{ width:100%; }

  /* Once the page stacks, the car stops bleeding off the right and is centred
     and sized to the section so the whole NSX reads. 34.7% is its 1600x554
     aspect ratio, which reserves exactly the room it needs below the buttons. */
  .cta{ min-height:0; padding-bottom:calc(34.7% + 40px); text-align:center; }
  .cta__inner{ margin-inline:auto; }
  .cta__lede{ max-width:none; }
  .cta__actions{ justify-content:center; }
  .cta__car{ left:0; right:auto; top:auto; bottom:0; transform:none; width:100%; }

  .footer__top{ flex-wrap:wrap; }
  .footer__brand{ flex:1 1 100%; width:100%; }
  .footer__col{ flex:1 1 40%; }
}

@media (max-width:640px){
  :root{ --gutter:16px; --pad-y:40px; }

  .h2{ font-size:36px; line-height:36px; }
  .h3{ font-size:24px; line-height:30px; }
  .eyebrow{ font-size:12px; line-height:18px; }

  /* On a phone the bar is just the menu and the offer button — the mark
     is dropped, so the burger takes over as the left-hand anchor. */
  .nav__brand{ display:none; }
  .nav__burger{ margin-right:auto; }
  .nav__cta{ padding:8px 12px; }

  .hero__title{ margin-top:20px; min-height:0; }
  .hero__title-lg{ font-size:42px; letter-spacing:1px; line-height:1.02; }
  .hero__title-sm{ font-size:24px; line-height:34px; letter-spacing:2px; margin-top:5px; }
  .hero__lede{ margin-top:16px; }
  .hero__actions{ margin-top:24px; gap:12px; align-items:stretch; flex-direction:column; }
  .hero__actions .btn{ width:100%; }
  .hero__phone{ text-align:center; }
  .hero__body{ padding:16px 0 24px; }

  .brand{ width:80px; height:74px; }

  .offer__row{ flex-direction:row; gap:8px; }
  .offer__legal{ font-size:13px; }

  .stats{ padding-bottom:24px; }
  /* Without JS there is no clone, so the row stays a plain swipe-scroller. */
  .stats__inner{
    gap:24px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  .stats__inner::-webkit-scrollbar{ display:none; }
  .stat{ flex:none; }

  /* Ticker — two identical tracks slide left in step; when the first has
     fully left the frame the second sits exactly where it started, so the
     reset at 100% is invisible and the numbers loop forever. */
  .stats__inner.is-ticker{
    gap:0;
    overflow:hidden;
    padding-bottom:0;
    /* The row runs edge to edge, so it cancels the section gutter. */
    margin-inline:calc(-1 * var(--gutter));
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image:linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .stats__inner.is-ticker .stats__track{
    display:flex;
    flex:none;
    align-items:center;
    gap:24px;
    padding-right:24px;
    animation:stats-ticker 24s linear infinite;
  }
  /* Las lineas divisorias vienen en el markup SOLO entre stat y stat, asi que
     despues de la tercera no habia ninguna y al enganchar con el clon quedaba
     un hueco sin separador. Este ::after cierra la serie: como el track es
     flex, entra como un item mas y hereda el gap de 24px. */
  .stats__inner.is-ticker .stats__track::after{
    content:"";
    flex:none;
    width:1px;
    height:71px;
    background:var(--stat-rule);
  }
  .stats__inner.is-ticker .stats__track--clone{ display:flex; }
  .stats__inner.is-ticker:hover .stats__track,
  .stats__inner.is-ticker.is-held .stats__track{ animation-play-state:paused; }
  .stat__num{ font-size:40px; line-height:44px; }
  .icon--star-lg{ width:26px; height:26px; }
  .stat__label{ font-size:12px; letter-spacing:1.2px; }

  .steps{ gap:16px; padding-bottom:0; }
  .step{ flex-direction:column; gap:20px; }
  .step + .step{ padding-top:16px; }

  .quote__text{ font-size:22px; line-height:30px; }
  .quote__mark{ display:none; }
  .quote__foot{ flex-direction:column; align-items:flex-start; gap:12px; }
  .quote__who{ flex-direction:column; gap:2px; }
  .photo-stack{ height:260px; }
  /* Short, wide box on phones — bias the crop down onto the car itself. */
  .photo-stack > .quote-section__photo{ object-position:center 60%; }

  .service{ padding-bottom:0; }
  /* La tarjeta se vuelve casi cuadrada y el encuadre centrado corta el
     apreton de manos: se corre a la derecha para que entre la union de las
     dos manos, que es lo que da sentido a la foto. */
  .service__card{ padding:24px; border-radius:var(--r-lg); background-position:72% center; }
  .service__card::before{ background:linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,.55) 100%); }
  .service__actions{ flex-direction:column; align-items:stretch; }
  .service__actions .btn{ width:100%; }

  /* The head dissolves so its two halves can take their own places in the
     column: the copy stays on top, the arrows drop below the progress bar
     where a thumb can reach them. */
  .marques__head{ display:contents; }
  .marques__intro{ order:1; padding-inline:var(--gutter); }
  .marques__track{ order:2; }
  .marques__bar{ order:3; }
  .marques__nav{ order:4; justify-content:center; }

  .marques{ gap:24px; }
  /* La llave mide lo mismo en mobile que en desktop (Figma 2213:797): lo
     unico que cambia es que las flechas pasan debajo y centradas. */

  .reviews{ gap:32px; }
  .review{ min-height:270px; }

  .faq__q button > span:first-child{ font-size:17px; line-height:26px; }

  /* Phone frame keeps the full 48px heading and the 14px eyebrow rather than
     the page-wide mobile step-down, and runs the car large off the right edge
     instead of fitting it to the section. 54.6% is the car's height at 157.7%
     width, so the padding reserves exactly the room it needs. */
  .cta{ padding-bottom:calc(54.6% + 34px); }
  .cta__inner{ max-width:none; gap:16px; }
  .cta .eyebrow{ font-size:14px; line-height:20px; letter-spacing:1.5px; }
  .cta .h2{ font-size:48px; line-height:48px; letter-spacing:-1px; }
  .cta__actions{ flex-direction:column; align-items:stretch; }
  .cta__actions .btn{ width:100%; }
  .cta__car{ left:auto; right:-65.3%; bottom:19px; width:157.7%; }

  .footer{ gap:32px; }
  .footer__top{ gap:32px; }
  .footer__col{ flex:1 1 45%; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; gap:16px; }
  .footer__bottom .btn{ width:100%; }
}

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

  /* A halted ticker has no useful still frame, so it reverts to the
     swipe-scrolling row and the duplicate track is dropped. */
  .stats__inner.is-ticker{
    gap:24px;
    overflow-x:auto;
    overflow-y:hidden;
    margin-inline:0;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .stats__inner.is-ticker .stats__track{ animation:none; padding-right:0; }
  .stats__inner.is-ticker .stats__track--clone{ display:none; }
}

/* ==========================================================================
   APARICION AL HACER SCROLL
   Solo se aplica si el script marco las secciones (.wbe-reveal + data-reveal),
   asi que sin JS la pagina se ve completa como siempre.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference){
  /* Se anima el CONTENIDO de la seccion, no la seccion. Si se desvanece la
     seccion entera, mientras esta en opacity:0 se ve el fondo blanco de la
     pagina por debajo — y las secciones oscuras arrancaban en blanco. Asi el
     fondo queda pintado desde el primer frame y solo entra lo de adentro. */
  .wbe-reveal [data-reveal-item]{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .55s cubic-bezier(.22,.61,.36,1),
               transform .55s cubic-bezier(.22,.61,.36,1);
  }
  .wbe-reveal [data-reveal].is-in [data-reveal-item]{
    opacity:1;
    transform:none;
  }
}

/* --------------------------------------------------------------------------
   MENU MOBILE CON LA BARRA DE ADMIN DE WORDPRESS
   -------------------------------------------------------------------------- */

/* Logueado en WP, la barra de admin es fixed y empuja la pagina 46px (32px
   desde 783px). La X vive en la barra de nav, que baja con la pagina; la hoja
   del menu es position:fixed con inset:0 y no se entera, asi que su logo se
   quedaba arriba y los dos dejaban de estar en la misma linea. Bajando la hoja
   lo mismo que la pagina, la geometria vuelve a coincidir — y de paso la hoja
   deja de quedar tapada por la barra. Visitante deslogueado: no cambia nada. */
@media (max-width:1024px){
  body.admin-bar .nav__links{ top:46px; }
}
@media (min-width:783px) and (max-width:1024px){
  body.admin-bar .nav__links{ top:32px; }
}
