/* ==========================================================================
   YEVANA CAMPER · Hoja de estilos
   Estética de la web anterior (antracita y gris claro, titulares finos y
   condensados, iconos de línea, color según el acabado) con la estructura
   y el movimiento de la propuesta nueva.
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* El color de acento es el del acabado elegido y puede animarse */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #44a79b; }

:root {
  --accent: #44a79b;          /* Emerald por defecto */
  --accent-ink: #10201e;      /* texto sobre el acento */
  --ink: #202020;             /* antracita de la web anterior */
  --ink-2: #191919;
  --ink-3: #2b2b2b;
  --pale: #e8e8e8;            /* gris claro de la web anterior */
  --pale-2: #f3f3f3;
  --text: #202020;
  --text-soft: #5b5b5b;
  --light: #f1f1f1;
  --light-soft: #a9a9a9;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(32, 32, 32, .16);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: --accent .7s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--light); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2 { font-family: var(--head); font-weight: 300; letter-spacing: -.005em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 104px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: .005em; }
h1 em { font-style: normal; font-weight: 400; color: var(--accent); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--head); font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--light-soft); margin-bottom: 20px;
}
.kicker::before { content: ""; flex: none; width: 22px; height: 9px; background: var(--accent); transform: skewX(-24deg); }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); color: #cfcfcf; max-width: 36em; }
.sec__sub { font-size: clamp(15.5px, 1.25vw, 17.5px); color: var(--light-soft); max-width: 38em; margin-top: 20px; }
.note { font-size: 13px; color: var(--text-soft); margin-top: 22px; }
.note--dark { color: var(--light-soft); }

/* ---------- Botones y enlaces (rectangulares, como en la web anterior) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn--solid { background: var(--light); color: var(--ink); }
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }
.btn--line { border-color: rgba(255, 255, 255, .5); color: var(--light); }
.btn--line:hover { background: var(--light); color: var(--ink); border-color: var(--light); }
.sec--light .btn--solid { background: var(--ink); color: var(--light); }
.sec--light .btn--solid:hover { background: #000; }
.link { display: inline-flex; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.link span { transition: transform .25s var(--ease); }
.link:hover span, a:hover > div > .link span { transform: translateX(4px); }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.utility { border-bottom: 1px solid var(--line); font-size: 12.5px; transition: margin-top .3s var(--ease), opacity .2s; }
.utility__in { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.utility__tag { font-family: var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--light-soft); font-size: 11px; }
.utility__links { display: flex; align-items: center; gap: 26px; }
.utility__links a { color: #d2d2d2; transition: color .2s; }
.utility__links a:hover, .utility__links a.is-current { color: #fff; }
.utility__nav { display: flex; gap: 22px; padding-right: 26px; border-right: 1px solid var(--line); }
.utility__nav a { font-family: var(--head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.utility__nav a.is-current { box-shadow: 0 1px 0 var(--accent); }
.lang { display: flex; gap: 2px; font-family: var(--head); font-size: 12px; letter-spacing: .1em; }
.lang > * { padding: 2px 6px; color: var(--light-soft); }
.lang [aria-current] { color: #fff; border: 1px solid var(--line); }
.site-header { --bar-h: 72px; }
.site-header.is-stuck { --bar-h: 56px; } /* cabecera compacta al bajar */
.bar { display: flex; align-items: center; gap: 28px; height: var(--bar-h); transition: height .4s var(--ease); }
.brand img, .brand span { transition: transform .4s var(--ease), letter-spacing .4s var(--ease); transform-origin: left center; }
.is-stuck .brand img { transform: scale(.86); }
.is-stuck .brand span { letter-spacing: .36em; }
.is-stuck .bar__cta { min-height: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 54px; height: 30px; }
.brand span { font-family: var(--head); font-weight: 400; letter-spacing: .42em; font-size: 16px; }
.nav { margin-left: auto; } /* sin posición propia: el desplegable y el indicador se colocan respecto a la cabecera */
.nav > ul { display: flex; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px; height: var(--bar-h); padding: 0 12px;
  font-family: var(--head); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: #cfcfcf; transition: color .2s, height .4s var(--ease);
}
.nav__link:hover, .is-open > .nav__link, .nav__link.is-current { color: #fff; }
.nav__link svg { transition: transform .25s var(--ease); }
.is-open > .nav__link svg { transform: rotate(180deg); }
/* Bloque que se desliza detrás del apartado en el que está el visitante */
.nav__ind { position: absolute; left: 0; bottom: calc((var(--bar-h) - 34px) / 2); z-index: -1; height: 34px; width: 0; background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 var(--accent); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s, bottom .4s var(--ease); }
.site-header.is-stuck, .site-header.is-open { background: rgba(22, 22, 22, .74); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
/* El mini menú se recoge al bajar y vuelve en cuanto se sube */
.site-header.is-stuck:not(.is-up):not(.is-open) .utility { margin-top: -37px; opacity: 0; pointer-events: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.is-stuck .progress { opacity: 1; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: 30px 40px; align-items: start; }
.mega__title { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--light-soft); margin-bottom: 6px; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(24px, 4vw, 56px); }
.mega__list a, .drop a { display: block; padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.mega__list strong, .drop strong, .mega__feat strong { display: block; font-family: var(--head); font-weight: 300; font-size: 22px; line-height: 1.2; color: var(--light); transition: color .2s; }
.mega__list span, .drop span, .mega__feat span { display: block; margin-top: 3px; font-size: 13px; color: var(--light-soft); }
.mega__list a:hover strong, .drop a:hover strong, .mega__feat:hover strong { color: var(--accent); }
.mega__feat { display: block; margin-top: 14px; }
.mega__feat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.mega__feat i { font-style: normal; color: var(--accent); }

/* Desplegable pequeño (Taller) */
.has-drop { position: relative; }
.drop {
  position: absolute; left: -10px; top: 100%; width: 300px; padding: 4px 22px 10px;
  background-color: var(--ink); border: 1px solid var(--line); border-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a:last-child { border-bottom: 0; }
.drop strong { font-size: 19px; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--light); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 40; background: var(--ink); padding: 96px 0 40px; overflow-y: auto; }
.mnav nav { display: flex; flex-direction: column; }
.mnav details { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mnav summary, .mnav__top { font-family: var(--head); font-weight: 300; font-size: 27px; padding: 12px 0; }
.mnav summary { cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav details p { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--light-soft); margin: 14px 0 4px; }
.mnav details a { display: block; padding: 6px 0; font-size: 16px; }
.mnav summary::after { content: "+"; float: right; font-weight: 300; color: var(--light-soft); }
.mnav details[open] summary::after { content: "–"; }
.mnav__top { border-bottom: 1px solid var(--line); }
.mnav__minor { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-top: 22px; }
.mnav__minor a { font-family: var(--head); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-soft); padding: 6px 0; }
.mnav .btn { margin-top: 28px; }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { position: relative; padding: clamp(150px, 17vw, 200px) 0 0; overflow: hidden; background: var(--ink); }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 0%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: 6%; width: 62%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 62%);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__text .lead { margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero__photo { position: relative; }
.frame { position: relative; }
.frame__clip { position: relative; overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
/* Pase automático de fotos: la primera marca el tamaño y las demás se apilan encima */
.frame__clip img { opacity: 0; transition: opacity 1.4s ease; }
.frame__clip img.is-on { opacity: 1; }
.frame__clip img + img { position: absolute; inset: 0; height: 100%; }
.frame__dots { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.frame__dots i { display: block; width: 26px; height: 3px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); transition: background .4s, width .4s var(--ease); }
.frame__dots i.is-on { width: 40px; background: var(--accent); }
.frame::before, .frame::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1.5px solid var(--accent); pointer-events: none; }
.frame::before { left: -10px; top: -10px; border-right: 0; border-bottom: 0; }
.frame::after { right: -10px; bottom: -10px; border-left: 0; border-top: 0; }
.hero__photo figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--light-soft); }
.tag { font-family: var(--head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 24px 30px 0; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font-family: var(--head); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
.facts span { font-size: 13.5px; color: var(--light-soft); }

/* ---------- Banda de texto en movimiento ---------- */
.marquee { overflow: hidden; background: var(--ink); border-top: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0; }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 48px); width: max-content; white-space: nowrap; will-change: transform; }
.marquee span { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 78px); letter-spacing: .01em; line-height: 1.1; }
.marquee span.is-out { color: transparent; -webkit-text-stroke: 1.1px rgba(241, 241, 241, .55); }
.marquee i { flex: none; width: clamp(18px, 2.2vw, 32px); height: clamp(9px, 1vw, 14px); background: var(--accent); transform: skewX(-24deg); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.sec { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.sec--dark { background: var(--ink); }
.sec--dark + .sec--dark { border-top: 1px solid var(--line); }
.sec--tight { padding-bottom: clamp(56px, 7vw, 96px); }
.sec--light { background: var(--pale); color: var(--text); }
.sec--light .kicker { color: var(--text-soft); }
.sec--light .sec__sub { color: var(--text-soft); }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.h-sub { font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); }

/* ---------- 01 · Gama ---------- */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; border-bottom: 1px solid var(--line); }
.size { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 16px 22px 0; text-align: left; color: #707070; position: relative; transition: color .25s; }
.size::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.size[aria-selected="true"] { color: var(--light); }
.size[aria-selected="true"]::after { transform: scaleX(1); }
.size:hover { color: #c8c8c8; }
.van { height: auto; overflow: visible; margin-bottom: 12px; }
.van--s { width: 66%; }
.van--m { width: 75%; }
.van--l { width: 90%; }
.van__body { fill: rgba(255, 255, 255, .03); stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.van__glass { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .55; stroke-linejoin: round; }
.van__line { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .35; }
.van__wheel { fill: var(--ink); stroke: currentColor; stroke-width: 2.5; }
.van__hub { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .55; }
.size[aria-selected="true"] .van__body, .size[aria-selected="true"] .van__wheel { stroke: var(--accent); }
.size__dim { font-family: var(--head); font-size: 12.5px; letter-spacing: .16em; opacity: .85; }
.size__name { font-family: var(--head); font-weight: 300; font-size: clamp(19px, 2.4vw, 34px); }

.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 56px); }
.panel[hidden] { display: none; }
html:not(.js) .panel + .panel { margin-top: 48px; }
.js .panel:not([hidden]) { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__media { overflow: hidden; }
.panel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel__media--plan {
  aspect-ratio: 4 / 3; border: 1px dashed rgba(255, 255, 255, .24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  color: #777; font-family: var(--head); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.van--plan { width: 62%; margin: 0; color: var(--accent); }
.panel__body h3 { font-weight: 300; font-size: clamp(28px, 3vw, 40px); }
.panel__body > p { color: var(--light-soft); margin-top: 12px; max-width: 34em; }
.models { margin-top: 26px; border-top: 1px solid var(--line); }
.model { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), color .2s; }
.model__name { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .06em; line-height: 1.1; }
.model__desc { font-size: 14px; color: var(--light-soft); }
.model__desc i { font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 2px 6px; margin-left: 8px; white-space: nowrap; }
.model__go { color: var(--accent); font-size: 20px; transition: transform .3s var(--ease); }
.model:hover { padding-left: 10px; }
.model:hover .model__name { color: var(--accent); }
.model:hover .model__go { transform: translateX(6px); }
.bases { margin: 22px 0 28px; font-size: 15px; color: #d6d6d6; }
.bases span { display: block; font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--light-soft); margin-bottom: 4px; }

/* ---------- Nova · modelo destacado ---------- */
.spot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.spot .specs { margin-top: 34px; }
.spot .specs li { width: 118px; color: #dcdcdc; }
.spot__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.spot__media { position: relative; }
.spot__stack { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--accent); }
.spot__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.spot__stack img.is-on { opacity: 1; transform: none; }
.spot__media figcaption { font-family: var(--head); font-weight: 300; font-size: 14px; letter-spacing: .04em; color: var(--light-soft); margin-top: 12px; }
.toggle { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; background: rgba(32, 32, 32, .82); }
.toggle button { min-height: 40px; padding: 0 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cfcfcf; transition: background .25s, color .25s; }
.toggle button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- 02 · Cómo se define ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.stackimg { position: relative; }
.stackimg img:not(:first-child) { display: none; }
.steps { margin-top: 30px; border-top: 1px solid var(--line-dark); }
.steps li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.steps__n { font-family: var(--head); font-size: 13px; letter-spacing: .14em; color: var(--text-soft); padding-top: 7px; }
.steps h3 { font-weight: 400; font-size: 23px; }
.steps p { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; max-width: 34em; }
.steps p b { font-weight: 700; color: var(--text); }
.cfg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.cfg__label { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-right: 6px; }
.cfg__chip { font-family: var(--head); font-size: 14px; letter-spacing: .04em; padding: 6px 12px; background: var(--ink); color: var(--light); }
.cfg__chip:nth-child(5) { background: var(--accent); color: var(--accent-ink); }

/* ---------- 03 · Acabados ---------- */
.finishes { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.finishes__media { overflow: hidden; border-bottom: 3px solid var(--accent); }
.finishes__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.swatch { display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 300; font-size: 21px; text-align: left; color: #bdbdbd; transition: background .25s, color .25s; }
.swatch i { flex: none; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .35); transition: transform .3s var(--ease); }
.swatch:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.swatch[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .07); font-weight: 400; }
.swatch[aria-pressed="true"] i { transform: scale(1.25); }

/* ---------- 04 · Selector ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.modes { display: flex; border-bottom: 1px solid var(--line-dark); margin-bottom: 24px; }
.mode { position: relative; padding: 0 22px 14px 0; margin-right: 12px; font-family: var(--head); font-weight: 300; font-size: clamp(20px, 2vw, 26px); color: #8a8a8a; transition: color .2s; }
.mode::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mode[aria-selected="true"] { color: var(--text); }
.mode[aria-selected="true"]::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chip { min-height: 46px; padding: 0 18px; border: 1px solid rgba(32, 32, 32, .4); font-size: 14.5px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--light); }
.finder__result { margin-top: 26px; padding: 28px 30px; background: var(--ink); color: var(--light); min-height: 176px; border-left: 3px solid var(--accent); }
.finder__hint { color: var(--light-soft); }
.finder__result h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--light-soft); }
.finder__models { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 12px 0 16px; }
.finder__models li { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .06em; line-height: 1.15; }
.finder__result p { color: var(--light-soft); margin-bottom: 20px; font-size: 15px; }
.finder__result .btn--solid { background: var(--light); color: var(--ink); }
.finder__result .btn--solid:hover { background: var(--accent); color: var(--accent-ink); }
.finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- 05 · Fabricación (damero) ---------- */
.checker { background: var(--ink); }
.checker__head { padding: clamp(72px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.checker__grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin-inline: auto; }
.cell { min-width: 0; }
.cell--img { overflow: hidden; }
.cell--img img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cell--txt { display: flex; align-items: center; padding: clamp(28px, 6vw, 88px); }
.cell--light { background: var(--pale); color: var(--text); }
.cell--dark { background: var(--ink-3); }
.cell--txt h3 { font-weight: 300; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.cell--txt p { margin-top: 16px; font-size: 15px; max-width: 32em; }
.cell--light p { color: var(--text-soft); }
.cell--dark p { color: var(--light-soft); }
.specs { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 30px; }
.specs li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 108px; }
.specs svg, .perks svg, .services svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.specs span { font-family: var(--head); font-size: 13px; letter-spacing: .05em; line-height: 1.3; }
.checker__note { padding-block: 18px 0; font-size: 12.5px; color: #8a8a8a; }
.checker { padding-bottom: clamp(48px, 6vw, 80px); }
.checker__head .sec__sub { max-width: 44em; }
.cell--txt .cell__n { margin: 0 0 12px; font-family: var(--head); font-size: 13px; letter-spacing: .24em; color: inherit; opacity: .55; }
.cell--txt .cell__n::after { content: ""; display: inline-block; vertical-align: middle; width: 34px; height: 2px; margin-left: 12px; background: var(--accent); }
/* Hueco reservado para una fotografía que todavía no tenemos */
.cell--ph {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 0; color: #9b9b9b;
  background-color: var(--ink-2);
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cell--ph svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cell--ph .dash { stroke: var(--accent); stroke-dasharray: 5 6; }
.cell--ph figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 0; padding: 5px 10px; border: 1px dashed rgba(255, 255, 255, .32); font-family: var(--head); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.checker__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: clamp(32px, 4vw, 56px) 0; }
.checker__foot p { font-family: var(--head); font-weight: 300; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.25; max-width: 26em; }

/* ---------- Gama: enlaces al resto de camperizaciones ---------- */
.gama__more { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(32px, 4vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Fondo oscuro con degradado y trama fina, como en la web anterior ---------- */
:root {
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cdefs%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop stop-color='%23fff' stop-opacity='.075'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x2='1' y2='0'%3E%3Cstop stop-color='%23000' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='4' height='4' fill='url(%23a)'/%3E%3Crect x='4' y='4' width='4' height='4' fill='url(%23a)'/%3E%3Crect x='4' width='4' height='4' fill='url(%23b)'/%3E%3Crect y='4' width='4' height='4' fill='url(%23b)'/%3E%3C/svg%3E");
}
.hero, .marquee, .sec--dark, .checker, .footer, .mega, .drop, .mnav, .modules, .path {
  background-color: var(--ink);
  background-image: var(--weave), radial-gradient(135% 115% at 16% 0%, #303030 0%, #222 42%, #171717 100%);
  background-size: 6px 6px, 100% 100%;
}
.footer { background-image: var(--weave), linear-gradient(#1b1b1b, #141414); }

/* ---------- 06 · Taller y módulos ---------- */
.workshop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.workshop__head .btn { margin-top: 30px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.services li { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line-dark); }
.services li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.services svg { margin-bottom: 14px; }
.services h3 { font-size: 21px; }
.services p { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; }
.modules { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 88px); background-color: var(--ink); color: var(--light); overflow: hidden; }
.modules img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .8s var(--ease); }
.modules:hover img { transform: scale(1.04); }
.modules > div { padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0; }
.modules .kicker { color: var(--light-soft); margin-bottom: 12px; }
.modules h3 { font-weight: 300; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; }
.modules p { color: var(--light-soft); margin: 12px 0 24px; max-width: 34em; font-size: 15px; }

/* ---------- 07 · Venta ---------- */
.ways3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ways3 li { padding: 30px 28px 34px 0; }
.ways3 li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.ways3 span { font-family: var(--head); font-size: 13px; letter-spacing: .16em; color: var(--accent); }
.ways3 h3 { font-weight: 300; font-size: clamp(22px, 2.3vw, 30px); margin-top: 8px; }
.ways3 p { color: var(--light-soft); font-size: 14.5px; margin-top: 8px; max-width: 26em; }
.stock__head { margin: clamp(48px, 6vw, 80px) 0 28px; }
.stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.car { display: block; height: 100%; background: var(--tint, #444); color: #fff; transition: transform .35s var(--ease); }
.car:hover { transform: translateY(-5px); }
.car__img { position: relative; overflow: hidden; }
.car__img > img:first-child { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.car:hover .car__img > img:first-child { transform: scale(1.05); }
.car__logo { position: absolute; right: 12px; bottom: 12px; width: 87px; height: 30px; }
.car__body { padding: 20px 22px 24px; text-align: center; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .22)); }
.car__body h3 { font-weight: 400; text-transform: uppercase; font-size: 21px; letter-spacing: .04em; }
.car__body p { font-family: var(--head); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; opacity: .9; }
.car__cta { display: inline-flex; gap: 8px; margin-top: 16px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s; }
.car:hover .car__cta { background: #fff; color: var(--ink); }
.perks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 30px; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.perks li { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1 1 130px; text-align: center; color: #d6d6d6; }
.perks span { font-family: var(--head); font-weight: 300; font-size: 16px; letter-spacing: .03em; }
.ways3__title { margin: clamp(48px, 6vw, 80px) 0 24px; }

/* ---------- 01 · Tres formas de tener tu Yevana ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.path { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(26px, 3vw, 42px); color: var(--light); transition: transform .35s var(--ease); }
.path::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.path:hover { transform: translateY(-5px); }
.path:hover::after { transform: scaleX(1); }
.path__top { display: flex; justify-content: space-between; align-items: flex-start; }
.path__n { font-family: var(--head); font-weight: 300; font-size: clamp(56px, 6vw, 92px); line-height: .9; color: var(--accent); }
.path svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.path h3 { margin-top: clamp(22px, 3vw, 40px); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.path p { margin: 10px 0 28px; font-size: 15px; color: var(--light-soft); }
.path .link { margin-top: auto; align-self: flex-start; }
#vendidas { background: var(--pale-2); }

/* ---------- Halo de color detrás de las tarjetas (se aviva al pasar el ratón) ---------- */
.path { overflow: hidden; }
.path::before { content: ""; position: absolute; left: -120px; top: -140px; z-index: 0; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 68%); opacity: .3; pointer-events: none; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.path:hover::before { opacity: .7; transform: translate(26px, 22px) scale(1.12); }
.path > * { position: relative; z-index: 1; }
.car:not(.car--ask) { box-shadow: 0 22px 60px -30px var(--tint, transparent); transition: transform .35s var(--ease), box-shadow .5s var(--ease); }
.car:not(.car--ask):hover { box-shadow: 0 30px 80px -22px var(--tint, transparent); }
/* Tarjeta "avísame": no es un vehículo, es la puerta para quien no encuentra el suyo */
.car--ask { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 32px 26px; text-align: center; background: transparent; border: 1px dashed rgba(255, 255, 255, .34); }
.car--ask h3 { font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.car--ask p { margin-top: 10px; max-width: 22em; font-size: 14.5px; color: var(--light-soft); }

/* ---------- Vendidas: muro de unidades entregadas ---------- */
.soldwall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px) clamp(10px, 1.2vw, 16px); }
.sold { margin: 0; }
.sold__img { position: relative; overflow: hidden; background: #cfcfcf; }
.sold img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.sold:hover img { transform: scale(1.05); }
.sold__tag { position: absolute; left: 0; top: 10px; padding: 3px 9px; background: var(--ink); color: var(--light); font-family: var(--head); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.sold figcaption { padding-top: 10px; }
.sold strong { display: block; font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; line-height: 1.25; }
.sold figcaption span { font-size: 12.5px; color: var(--text-soft); }
.soldwall__cta a { display: flex; flex-direction: column; justify-content: center; gap: 8px; aspect-ratio: 3 / 2; padding: 16px 18px; background: var(--ink); color: var(--light); transition: background .25s; }
.soldwall__cta a:hover { background: #000; }
.soldwall__cta strong { font-family: var(--head); font-weight: 300; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.2; }
.soldwall__cta span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- 08 · Trabajos (galería horizontal) ---------- */
.reel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.reel figure { flex: none; scroll-snap-align: center; }
.reel img { height: clamp(260px, 34vw, 440px); width: auto; }
.reel figcaption { font-family: var(--head); font-weight: 300; font-size: 14px; letter-spacing: .04em; color: var(--light-soft); margin-top: 10px; }
.hscroll__bar { display: none; }

/* ---------- Alquiler ---------- */
.rent { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; background: var(--ink); isolation: isolate; }
.rent__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(32, 32, 32, .95) 0%, rgba(32, 32, 32, .8) 55%, rgba(32, 32, 32, .55) 100%); }
.rent__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rent h2 { font-size: clamp(30px, 3.8vw, 52px); }
.rent__in > div > p:not(.kicker) { color: #d2d2d2; margin: 18px 0 28px; max-width: 32em; }
.rent blockquote { border-left: 2px solid var(--accent); padding-left: 24px; }
.rent blockquote p { font-family: var(--head); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; }
.rent blockquote footer { margin-top: 14px; font-size: 13px; color: var(--light-soft); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.post { display: block; background: var(--pale-2); height: 100%; padding-bottom: 22px; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; transition: opacity .2s; }
.post:hover img { opacity: .88; }
.post time { display: block; padding-inline: 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.post h3 { padding-inline: 20px; font-weight: 300; font-size: 25px; line-height: 1.2; margin-top: 6px; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Contacto ---------- */
.contact__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ways { margin-top: 36px; border-top: 1px solid var(--line); }
.ways li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ways span { grid-row: span 2; font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--light-soft); padding-top: 6px; }
.ways a, .ways p { grid-column: 2; font-family: var(--head); font-weight: 300; font-size: 21px; line-height: 1.35; }
.ways a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--ink-3); padding: clamp(22px, 3.4vw, 40px); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #cfcfcf; }
.field small { color: var(--light-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--ink); color: var(--light);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: #777; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .is-bad { border-color: #e2725b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #cfcfcf; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pie ---------- */
.footer { background-color: var(--ink-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 0; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--light-soft); margin-top: 18px; max-width: 26em; }
.footer__title { font-family: var(--head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer nav a { display: block; padding: 4px 0; color: var(--light-soft); }
.footer a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--light-soft); }
.funding { background: var(--pale); color: var(--text-soft); padding: 22px 0 26px; text-align: center; font-size: 12.5px; }
.funding img { width: min(560px, 100%); margin: 14px auto 0; }

/* ---------- Aviso flotante ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--light); color: var(--ink); padding: 13px 20px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); max-width: calc(100vw - 40px); text-align: center; }

/* ==========================================================================
   Movimiento
   .js      → hay JavaScript
   .motion  → el visitante no ha pedido reducir animaciones
   .pinning → pantalla grande: se activan las secciones fijadas y el parallax
   ========================================================================== */

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.is-failsafe [data-reveal], .is-failsafe [data-stagger] > * { opacity: 1; transform: none; }
/* En el damero las fotos se descubren con una cortina */
.motion .cell--img[data-reveal] { position: relative; opacity: 1; transform: none; }
.motion .cell--img[data-reveal]::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.motion .cell--img[data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.motion .cell--img[data-reveal].is-in::after { transform: scaleY(0); }
.motion .cell--img[data-reveal].is-in img { transform: none; }

/* ---------- Titulares: las palabras suben desde una máscara ---------- */
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .16em .03em .2em; margin: -.16em -.03em -.2em; }
.motion [data-split] .wi { display: inline-block; transform: translateY(120%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0ms)); }
.motion [data-split].is-in .wi, .is-failsafe [data-split] .wi { transform: none; }
.hero h1 { --d: 150ms; }

/* ---------- Portada: entrada al cargar ---------- */
.motion .hero [data-enter] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, .1s), transform .9s var(--ease) var(--d, .1s); }
.motion.is-loaded .hero [data-enter] { opacity: 1; transform: none; }
.motion .frame__clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) .3s; }
.motion .frame__clip img { transform: scale(1.1); transition: opacity 1.4s ease, transform 7s linear; }
.motion.is-loaded .frame__clip { clip-path: inset(0); }
.motion.is-loaded .frame__clip img.is-on { transform: none; }

/* Entradas con desenfoque: además de subir, cada bloque pasa de borroso a nítido */
.motion [data-reveal]:not(.cell--img) { transform: translateY(28px); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.motion [data-reveal]:not(.cell--img).is-in { transform: none; filter: none; }
.motion [data-stagger] > * { filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-stagger].is-in > * { filter: none; }
.is-failsafe [data-reveal], .is-failsafe [data-stagger] > * { filter: none; }
.motion .frame::before, .motion .frame::after { opacity: 0; transform: scale(.4); transition: opacity .5s 1.2s, transform .7s var(--ease) 1.2s; }
.motion.is-loaded .frame::before, .motion.is-loaded .frame::after { opacity: 1; transform: none; }

/* ---------- Portada: profundidad al bajar ---------- */
.pinning .hero__text { transform: translate3d(0, calc(var(--p, 0) * -70px), 0); opacity: calc(1 - var(--p, 0) * .9); }
.pinning .hero__photo { transform: translate3d(0, calc(var(--p, 0) * 80px), 0); }
.pinning .hero__grid-bg { transform: translate3d(0, calc(var(--p, 0) * 180px), 0); }

/* ---------- Gama: las siluetas se dibujan ---------- */
.motion .sizes .van > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s var(--ease), stroke .25s; }
.motion .sizes .size:nth-child(2) .van > * { transition-delay: .2s, 0s; }
.motion .sizes .size:nth-child(3) .van > * { transition-delay: .4s, 0s; }
.motion .sizes.is-in .van > * { stroke-dashoffset: 0; }
.motion .panel:not([hidden]) .panel__media img { animation: wipe 1s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); transform: scale(1.1); } to { clip-path: inset(0); transform: none; } }

/* ---------- Cómo se define: sección fijada, los pasos se activan con el scroll ---------- */
.pinning .sec--pin { padding-block: 0; }
.pinning .pin { height: 380vh; }
.pinning .pin__stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 72px; }
.pinning .stackimg { aspect-ratio: 5 / 4; overflow: hidden; }
.pinning .stackimg img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .7s var(--ease), transform 1.3s var(--ease); }
.pinning .stackimg img.is-on { opacity: 1; transform: none; }
.pinning .steps li { transition: opacity .45s; }
.pinning .steps li:not(.is-on) { opacity: .34; }
.pinning .steps li p { overflow: hidden; margin-top: 0; opacity: 0; max-height: 0; transition: max-height .6s var(--ease), opacity .45s, margin-top .45s; }
.pinning .steps li.is-on p { max-height: 6.5em; opacity: 1; margin-top: 4px; }
.pinning .steps li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pinning .steps li.is-on::after { transform: scaleX(1); }
.pinning .cfg__chip { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pinning .cfg__chip.is-on { opacity: 1; transform: none; }

/* ---------- Acabados: cambio de imagen ---------- */
.motion .finishes__media img.is-swap { animation: swap .7s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- Trabajos: la galería avanza en horizontal al bajar ---------- */
.pinning .sec--hscroll { padding-block: 0; }
.pinning .hscroll__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.pinning .hscroll .sec__head { margin-bottom: clamp(24px, 3vw, 40px); }
.pinning .reel { overflow: visible; width: max-content; scroll-snap-type: none; padding-bottom: 0; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.pinning .reel img { height: min(54vh, 520px); }
.pinning .hscroll__bar { display: block; height: 2px; background: var(--line); margin-top: 34px; }
.pinning .hscroll__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Alquiler: el fondo se mueve más despacio ---------- */
.pinning .rent__bg { top: -12%; height: 124%; transform: translate3d(0, calc(var(--rp, 0) * 9%), 0); }

/* ==========================================================================
   Adaptación a pantallas
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .bar__cta, .utility__nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 920px) {
  .hero__in, .panel, .spot__in, .split, .finishes, .finder, .workshop, .rent__in, .contact__in { grid-template-columns: 1fr; }
  .hero__photo { max-width: 560px; }
  .frame img { aspect-ratio: 4 / 3; }
  .stock, .posts { grid-template-columns: 1fr 1fr; }
  .stock li:last-child, .posts li:last-child { display: none; }
  ul.stock li.stock__ask { display: block; grid-column: 1 / -1; }
  .car--ask { min-height: 0; }
  .soldwall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .soldwall__cta { grid-column: 1 / -1; }
  .soldwall__cta a { aspect-ratio: auto; padding: 24px; }
  .modules { grid-template-columns: 1fr; }
  .modules img { min-height: 0; aspect-ratio: 16 / 9; }
  .modules > div { padding: 4px 24px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .checker__grid { grid-template-columns: 1fr; }
  .checker__grid > :nth-child(1) { order: 1; }
  .checker__grid > :nth-child(2) { order: 2; }
  .checker__grid > :nth-child(3) { order: 4; }
  .checker__grid > :nth-child(4) { order: 3; }
  .checker__grid > :nth-child(5) { order: 5; }
  .checker__grid > :nth-child(6) { order: 6; }
  .cell--img img, .cell--ph { aspect-ratio: 4 / 3; }
  .cell--ph svg { width: 34%; }
  .paths { grid-template-columns: 1fr; }
  .ways3 { grid-template-columns: 1fr; }
  .ways3 li, .ways3 li + li { padding: 22px 0; border-left: 0; }
  .ways3 li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .utility__tag { display: none; }
  .utility__in { justify-content: flex-end; }
  .site-header { --bar-h: 64px; }
  .site-header.is-stuck { --bar-h: 54px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 18px 12px 18px 0; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 16px; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__cta .btn { width: 100%; }
  .size { padding-right: 8px; }
  .size__dim { font-size: 11px; }
  .size__name { font-size: 17px; white-space: nowrap; }
  .model { grid-template-columns: 1fr auto; }
  .model__desc { grid-column: 1; grid-row: 2; }
  .model__go { grid-row: 1 / span 2; align-self: center; }
  .swatches, .services, .stock, .posts, .form { grid-template-columns: 1fr; }
  .services li:nth-child(even) { padding-left: 0; border-left: 0; }
  .stock li:last-child, .posts li:last-child { display: block; }
  .soldwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soldwall__cta { grid-column: auto; }
  .soldwall__cta a { aspect-ratio: 3 / 2; padding: 14px; }
  .ways li { grid-template-columns: 1fr; }
  .ways span { grid-row: auto; }
  .ways a, .ways p { grid-column: 1; }
  .sec__head--row { align-items: flex-start; flex-direction: column; gap: 20px; }
  .link { white-space: normal; }
  .specs li { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
}
