/* ============================================================
   SC01 Chile — styles.css
   Dirección: cinematográfica / automotriz. Dark + rojo de carrera.
   Paleta y tipografía editables vía variables (:root).
   ============================================================ */

:root {
  /* --- Marca: dark cálido-hacia-el-rojo (no gris clínico) --- */
  --bg:        #0a090b;
  --bg-soft:   #100d11;
  --surface:   #17131a;
  --surface-2: #1f1a23;
  --line:      #2c2630;
  --line-soft: #201b26;
  --text:      #f4f2f5;
  --text-dim:  #ada7b3;
  --muted:     #918b97; /* ~6:1 sobre --bg (AA); antes #756f7c daba ~4.1:1 */
  --accent:    #d51028; /* rojo de carrera */
  --accent-2:  #ff3b52;
  --accent-ink:#ff5c70;

  /* --- Tipografía --- */
  --font-body: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', 'Sora', system-ui, sans-serif;

  /* --- Forma --- */
  --radius: 14px;
  --radius-lg: 22px;
  /* Contenedor fluido: 1200px hasta ~1460px de viewport; de ahí crece con la
     pantalla (82vw) hasta 1560px. En monitores grandes el contenido respira
     sin estirarse al 100% (referencia: lamborghini.com). */
  --maxw: clamp(1200px, 82vw, 1560px);
  /* Ancho para medios protagonistas (foto chasis, video): más ancho que el
     texto, crece con el contenedor. */
  --media-w: min(1280px, 100%);
  --header-h: 68px;

  /* --- Curvas de easing (Emil): las nativas son demasiado débiles --- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: var(--ease-out); /* alias legacy */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(24px, 3vw, 48px); }

::selection { background: var(--accent); color: #fff; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
  font-stretch: 115%;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 110%; }
.section-lead {
  color: var(--text-dim); max-width: 56ch; margin-top: 20px;
  font-weight: 300; font-size: 1.06rem; text-wrap: pretty;
}
em { font-style: normal; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .2s var(--ease-out),
              border-color .2s, box-shadow .25s var(--ease-out), color .2s;
  white-space: nowrap; position: relative;
}
.btn:active { transform: scale(.97); }          /* feedback al presionar (Emil) */
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 30px -12px rgba(213,16,40,.7);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 40px -10px rgba(255,59,82,.6); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost:hover { transform: translateY(-2px); }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center;
  background: transparent; transition: background .3s var(--ease-out), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,9,11,.78); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  letter-spacing: -.02em; font-stretch: 125%;
  display: inline-flex; align-items: center;
}
.brand-mark { color: var(--text); }
.brand-mark-accent { color: var(--accent-2); }
/* Logo oficial SC-01 (imagen blanca sobre transparente) */
.brand-logo { height: 18px; width: auto; display: block; }
.brand-logo-footer { height: 24px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); font-size: .92rem; font-weight: 400;
  transition: color .2s var(--ease-out); position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-inner .btn-primary { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s var(--ease-out); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #0a090b; }

/* El visor 360° como fondo a pantalla completa del hero */
.hero-stage {
  position: absolute; inset: 0; z-index: 1;
  border: 0; border-radius: 0; max-width: none; aspect-ratio: auto;
  background: radial-gradient(115% 85% at 68% 42%, #221a22 0%, #0a090b 70%);
}
.hero-stage img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }

/* Scrim: oscuro a la izquierda/abajo para el texto, deja el auto a la derecha */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,7,9,.95) 0%, rgba(8,7,9,.62) 40%, rgba(8,7,9,0) 70%),
    linear-gradient(0deg, rgba(8,7,9,.9) 0%, rgba(8,7,9,0) 34%),
    radial-gradient(72% 52% at 16% 44%, rgba(213,16,40,.16), transparent 70%);
}
/* Viñeta sutil en los bordes para foco cinematográfico */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,.55);
}

.hero-content { position: relative; z-index: 3; pointer-events: none; padding-top: var(--header-h); max-width: 780px; }
.hero-content .btn, .hero-content a { pointer-events: auto; }
.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 14vw, 9rem);
  line-height: .84; font-weight: 900; letter-spacing: -.035em; font-stretch: 125%;
  margin: 6px 0 10px; color: var(--text);
  text-shadow: 0 24px 70px rgba(0,0,0,.65);
}
.hero-logo span { color: var(--accent-2); }
/* Logo oficial como imagen en el hero */
.hero-logo img {
  width: clamp(240px, 39vw, 520px); height: auto; display: block;
  margin: 14px 0 18px;
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.65));
}
.hero-title { font-size: clamp(1.25rem, 2.7vw, 1.9rem); font-weight: 600; margin: 8px 0 0; max-width: 22ch; color: var(--text); font-family: var(--font-body); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Pista y controles del giro dentro del hero */
.hero-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255,255,255,.06); pointer-events: none; }
.hero .spin-arrow { z-index: 4; }

/* --- Coreografía de carga del hero (Emil: stagger, ease-out) --- */
html.js .hero-content > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js .hero.is-loaded .hero-content > * { opacity: 1; transform: none; }
.hero.is-loaded .hero-content > *:nth-child(1) { transition-delay: .05s; }
.hero.is-loaded .hero-content > *:nth-child(2) { transition-delay: .14s; }
.hero.is-loaded .hero-content > *:nth-child(3) { transition-delay: .24s; }
.hero.is-loaded .hero-content > *:nth-child(4) { transition-delay: .34s; }
html.js .hero-hint, html.js .hero-progress, html.js .spin-arrow {
  opacity: 0; transition: opacity .6s var(--ease-out) .6s;
}
html.js .hero.is-loaded .hero-hint { opacity: 1; }
html.js .hero.is-loaded .hero-progress { opacity: 1; }

/* ============================================================
   STATEMENT / MARQUEE
   ============================================================ */
.statement { background: var(--accent); overflow: hidden; padding: 16px 0; }
.marquee {
  display: flex; white-space: nowrap; will-change: transform; animation: scroll-x 28s linear infinite;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee span { font-family: var(--font-display); font-weight: 800; font-stretch: 120%; letter-spacing: .1em; font-size: clamp(.92rem, 1vw, 1.1rem); color: #fff; padding-left: 1ch; }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============================================================
   VISTA 360 (integrado en el hero)
   ============================================================ */
.spin-stage { cursor: grab; touch-action: pan-y; user-select: none; }
.spin-stage.dragging { cursor: grabbing; }
.spin-stage img { pointer-events: none; -webkit-user-drag: none; }
/* Capas del visor: se superponen y hacen crossfade al cambiar de foto */
.spin-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  transition: opacity .24s var(--ease-out); will-change: opacity;
}

.spin-hint {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,9,11,.5); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-size: .84rem; color: var(--text-dim); transition: opacity .4s var(--ease-out); pointer-events: none;
}
.spin-hint-ic { font-size: 1.1rem; color: var(--accent-2); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100%{ transform: translateX(-4px);} 50%{ transform: translateX(4px);} }
.spin-stage.touched ~ .spin-hint { opacity: 0 !important; }

.spin-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .05s linear; }

.spin-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(10,9,11,.45); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--text);
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease-out), border-color .2s, transform .15s var(--ease-out), opacity .3s; opacity: .4;
}
.hero:hover .spin-arrow { opacity: 1; }
.spin-arrow:hover { background: var(--accent); border-color: var(--accent); }
.spin-arrow:active { transform: translateY(-50%) scale(.92); }
.spin-arrow-l { left: 18px; }
.spin-arrow-r { right: 18px; }
@media (hover: none) { .spin-arrow { opacity: .8; } }

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { margin-bottom: 56px; max-width: 760px; }

/* ============================================================
   ESPECIFICACIONES — banda editorial de números (sin cards)
   ============================================================ */
.specs { background: var(--bg-soft); position: relative; }
/* Banda de specs: divisores hairline perfectos vía gap (1px) + fondo.
   Las celdas pintan su propio fondo; solo los huecos de 1px quedan a la vista. */
.spec-band {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 8px;
}
.spec-band .spec-cell {
  background: var(--bg-soft);
  padding: clamp(40px, 2.9vw, 56px) clamp(26px, 1.9vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: background .35s var(--ease-out);
}
.spec-band .spec-cell::before {
  content: ""; position: absolute; top: 0; left: 26px; width: 26px; height: 2px;
  background: var(--accent); opacity: 0; transition: opacity .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .spec-band .spec-cell:hover { background: var(--surface); }
  .spec-band .spec-cell:hover::before { opacity: 1; }
}
.spec-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.1rem); font-weight: 900;
  letter-spacing: -.04em; font-stretch: 120%; line-height: .92; color: var(--text);
}
.spec-num small { font-size: .82rem; color: var(--accent-ink); font-weight: 700; margin-left: 3px; font-stretch: normal; vertical-align: .35em; }
.spec-label {
  color: var(--text-dim); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.spec-label em { color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.spec-prose { margin-top: 56px; max-width: 66ch; }
.spec-prose p { color: var(--text-dim); font-weight: 300; font-size: 1.12rem; line-height: 1.7; }
.spec-prose strong { color: var(--text); font-weight: 600; }

/* Banda de specs: 6 → 3 → 2 columnas (los divisores hairline se generan solos al envolver) */
@media (max-width: 860px) {
  .spec-band { grid-template-columns: repeat(3, 1fr); }
  .spec-band .spec-cell { padding: 32px 22px; }
}
@media (max-width: 520px) {
  .spec-band { grid-template-columns: repeat(2, 1fr); }
  .spec-band .spec-cell { padding: 26px 18px; }
}

/* ============================================================
   ESTRUCTURA / CHASIS
   ============================================================ */
.structure { background: var(--bg); }
/* Foto protagonista: auto + chasis lado a lado */
.mecanica-hero { max-width: var(--media-w); margin: 0 auto 22px; }
.mecanica-hero img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block;
}
.mecanica-hero figcaption {
  color: var(--text-dim); font-size: .9rem; font-weight: 300; margin-top: 14px; text-align: center;
}
.mecanica-hero figcaption em { color: var(--accent-2); }
.structure-stage {
  max-width: var(--media-w); margin: 0 auto; aspect-ratio: 1.9 / 1;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: #000; position: relative;
}
.structure-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px 10px rgba(0,0,0,.5); border-radius: inherit;
}
.structure-stage img,
.structure-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.structure-points {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--media-w); margin: 0 auto; border-top: 1px solid var(--line); margin-top: 36px;
}
.structure-points li {
  padding: 26px 26px 26px 0; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid transparent;
}
.structure-points li + li { border-left: 0; }
.structure-points strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; font-stretch: 110%; }
.structure-points strong em { color: var(--accent-2); }
.structure-points span { color: var(--text-dim); font-size: .92rem; font-weight: 300; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { background: var(--bg-soft); }
/* Filas fluidas: las fotos crecen con el monitor (230px a 1280w → 330px en 4K) */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(230px, 17vw, 330px); gap: clamp(14px, 1.2vw, 20px); }
.gallery-item { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.06); }
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ============================================================
   INTERIOR
   ============================================================ */
.interior { background: var(--bg); }
.interior-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; grid-auto-rows: 1fr; gap: clamp(14px, 1.2vw, 20px);
  min-height: clamp(460px, 36vw, 640px);
}
.interior-grid figure {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); position: relative; min-height: 220px;
}
.interior-main { grid-row: span 2; }
.interior-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .interior-grid figure:hover img { transform: scale(1.05); }
}
@media (max-width: 760px) {
  .interior-grid { grid-template-columns: 1fr; min-height: 0; }
  .interior-main { grid-row: auto; }
  .interior-grid figure { min-height: 220px; }
}
/* Detalle: controles físicos */
.interior-sub { color: var(--text-dim); font-weight: 300; max-width: 64ch; margin: 40px 0 18px; }
.interior-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.2vw, 20px); }
.interior-details figure {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); aspect-ratio: 4/3; position: relative;
}
.interior-details img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .interior-details figure:hover img { transform: scale(1.05); }
}
@media (max-width: 680px) { .interior-details { grid-template-columns: 1fr 1fr; } }

/* Foto ampliable: cursor + ícono de expandir al pasar el mouse */
.gallery-item img, .interior-grid img, .interior-details img { cursor: zoom-in; }
.gallery-item::after, .interior-grid figure::after, .interior-details figure::after {
  content: "⤢"; position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: rgba(10,9,11,.6); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: 9px; color: #fff; font-size: 1rem; pointer-events: none;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover::after, .interior-grid figure:hover::after, .interior-details figure:hover::after {
    opacity: 1; transform: none;
  }
}

/* ============================================================
   CONFIGURADOR
   ============================================================ */
.configurator { background: var(--bg); }
.config-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.config-visual { position: relative; }
.config-stage {
  position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 18%, #221a22, #0c0a0d);
}
.config-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease-out), transform .9s var(--ease-out); }
.config-stage.swapping img { opacity: 0; transform: scale(1.03); }
.config-summary { margin-top: 20px; }
.config-summary-title { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.config-summary ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.config-summary li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; display: flex; gap: 8px; align-items: center;
}
.config-summary li span { color: var(--muted); }
.config-summary li strong { font-weight: 600; }

.config-controls h2 { margin-bottom: 4px; }
.config-group { margin-top: 30px; }
.config-group-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.config-group-spec { letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400; margin-left: 8px; }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; background: var(--sw);
  border: 2px solid var(--line); position: relative;
  transition: transform .18s var(--ease-out), border-color .2s, box-shadow .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .swatch:hover { transform: scale(1.1); } }
.swatch:active { transform: scale(.96); }
.swatch.is-active { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,59,82,.3); }
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.option {
  font-family: var(--font-body); cursor: pointer; padding: 11px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); font-size: .9rem;
  transition: color .2s var(--ease-out), border-color .2s, background .2s, transform .15s var(--ease-out);
}
.option:hover { color: var(--text); border-color: var(--text-dim); }
.option:active { transform: scale(.97); }
.option.is-active { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.opt-tag { margin-left: 7px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; font-weight: 500; }
.option.is-active .opt-tag { opacity: .7; }
.config-controls .btn-block { margin-top: 36px; }

/* ============================================================
   CONFIGURADOR — teaser en la página principal
   ============================================================ */
.config-teaser { background: var(--bg); }
.config-teaser-inner {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.config-teaser-text .btn { margin-top: 28px; }
.config-teaser-visual {
  position: relative; display: block; aspect-ratio: 16/10;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 18%, #221a22, #0c0a0d);
}
.config-teaser-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .config-teaser-visual:hover img { transform: scale(1.05); }
}
.config-teaser-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,9,11,.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: .82rem; color: var(--text); font-weight: 500;
}
@media (max-width: 860px) {
  .config-teaser-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   PUNTOS DE CARGA (mapa interactivo)
   ============================================================ */
.carga { background: var(--bg-soft); }

.carga-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.carga-stats { display: flex; gap: 40px; }
.carga-stat { display: flex; flex-direction: column; gap: 2px; }
.carga-stat-num {
  font-family: var(--font-display); font-weight: 900; font-stretch: 120%;
  font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1;
  color: var(--text);
}
.carga-stat-label {
  color: var(--text-dim); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.carga-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.carga-filters { display: flex; gap: 8px; }
.carga-filters .option { padding: 9px 16px; font-size: .85rem; }

/* Contenedor del mapa: z-index:0 crea stacking context y contiene
   los z-index internos de Leaflet (no pisan el header fijo). */
.carga-stage {
  position: relative; z-index: 0;
  height: clamp(420px, 62vh, 760px);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #0c0b0e;
}
.carga-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 500; pointer-events: none;
  box-shadow: inset 0 0 90px 6px rgba(0,0,0,.45); border-radius: inherit;
}
.carga-map { width: 100%; height: 100%; }
.carga-fallback {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-weight: 300; padding: 24px; text-align: center;
}
.carga-fine { color: var(--muted); font-size: .8rem; margin-top: 16px; max-width: 78ch; }

/* --- Leaflet: tema oscuro del sitio --- */
.carga-map.leaflet-container { background: #0c0b0e; font-family: var(--font-body); }
.carga-map .leaflet-control-zoom { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.carga-map .leaflet-control-zoom a {
  background: rgba(16,13,17,.9); color: var(--text); border-bottom: 1px solid var(--line);
  width: 34px; height: 34px; line-height: 34px; font-size: 1.1rem;
}
.carga-map .leaflet-control-zoom a:hover { background: var(--surface-2); color: #fff; }
.carga-map .leaflet-control-attribution {
  background: rgba(10,9,11,.75); color: var(--muted); font-size: .62rem;
}
.carga-map .leaflet-control-attribution a { color: var(--text-dim); }

/* Pin de punto de carga (rayo) */
.carga-pin {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #2a1116; border: 1.5px solid var(--accent-2); color: var(--accent-ink);
  box-shadow: 0 0 0 2px rgba(213,16,40,.18), 0 4px 14px rgba(0,0,0,.5);
}
.carga-pin.is-dc {
  background: var(--accent); color: #fff; border-color: #ff7080;
  box-shadow: 0 0 0 3px rgba(213,16,40,.22), 0 0 18px rgba(255,59,82,.5);
}
.carga-pin svg { display: block; }

/* Cluster (grupo de puntos) */
.carga-cluster {
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,13,17,.92); border: 1.5px solid var(--accent-2);
  border-radius: 50%; color: #fff;
  box-shadow: 0 0 0 4px rgba(213,16,40,.15), 0 6px 18px rgba(0,0,0,.5);
  font-family: var(--font-display); font-weight: 800; font-size: .88rem;
}
.carga-cluster span { line-height: 1; }

/* Posición del usuario */
.carga-user {
  background: #fff; border: 3px solid var(--accent-2); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,59,82,.25);
}

/* Popup */
.carga-map .leaflet-popup-content-wrapper {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.7);
}
.carga-map .leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line); }
.carga-map .leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.carga-map .leaflet-popup-close-button { color: var(--muted); }
.carga-map .leaflet-popup-close-button:hover { color: var(--text); }
.carga-pop-name { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: .98rem; }
.carga-pop-net { color: var(--text-dim); font-size: .78rem; margin-top: 1px; }
.carga-pop-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.carga-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-dim); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.carga-tag.dc { background: rgba(213,16,40,.16); border-color: rgba(255,59,82,.4); color: var(--accent-ink); }
.carga-pop-addr { color: var(--text-dim); font-size: .8rem; margin-top: 8px; }
.carga-pop-link {
  display: inline-block; margin-top: 10px; color: var(--accent-ink);
  font-size: .84rem; font-weight: 600; transition: color .2s var(--ease-out);
}
.carga-pop-link:hover { color: #fff; }

@media (max-width: 700px) {
  .carga-bar { align-items: flex-start; flex-direction: column; }
  .carga-stats { gap: 28px; }
  .carga-stage { height: 66svh; }
}

/* ============================================================
   PÁGINA CONFIGURADOR (configurador.html)
   ============================================================ */
.config-page { min-height: 100svh; background: var(--bg); }
.cfg-header {
  position: sticky; background: rgba(10,9,11,.82);
  backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line-soft);
}
.cfg-back {
  margin-left: auto; color: var(--text-dim); font-size: .92rem;
  transition: color .2s var(--ease-out);
}
.cfg-back:hover { color: var(--text); }

.cfg-main {
  /* Panel con ancho acotado: en monitores anchos el visor 360° absorbe el
     espacio extra y los controles no se estiran de forma absurda. */
  display: grid; grid-template-columns: 1fr clamp(380px, 30vw, 540px);
  min-height: calc(100svh - var(--header-h));
}

/* Visor 360° del configurador */
.cfg-stage {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 40%, #1d1722 0%, #0a090b 72%);
}
.cfg-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 200px 30px rgba(0,0,0,.5);
}
.cfg-stage .spin-stage { position: absolute; inset: 0; }
.cfg-stage .spin-layer { object-fit: contain; object-position: center; padding: 3% 5%; }
.cfg-stage .spin-arrow { opacity: .55; }
.cfg-stage:hover .spin-arrow { opacity: 1; }
/* Estado mientras se recolorea el set de fotos */
.cfg-stage.recoloring .spin-layer { opacity: 0 !important; transition: opacity .15s ease; }
.cfg-stage.recoloring .spin-arrow,
.cfg-stage.recoloring .spin-hint,
.cfg-stage.recoloring .spin-progress { opacity: 0 !important; pointer-events: none; }
.cfg-stage.recoloring::before {
  content: ""; position: absolute; z-index: 5;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: rgba(255,255,255,.85);
  animation: cfg-spin 700ms linear infinite;
}
@keyframes cfg-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cfg-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; }
.cfg-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.06); z-index: 4; pointer-events: none;
}

/* Panel de opciones */
.cfg-panel {
  padding: clamp(28px, 4vw, 54px); border-left: 1px solid var(--line);
  background: var(--bg-soft); display: flex; flex-direction: column;
  overflow-y: auto;
}
.cfg-panel h1 {
  font-family: var(--font-display); font-weight: 900; font-stretch: 120%;
  font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 6px;
}
.cfg-lead { color: var(--text-dim); font-weight: 300; margin-bottom: 8px; }
.cfg-note { font-size: .78rem; color: var(--muted); margin-top: 12px; min-height: 1em; }
.cfg-summary { margin-top: 30px; }
.cfg-cta { margin-top: 30px; }

@media (max-width: 880px) {
  .cfg-main { grid-template-columns: 1fr; }
  .cfg-stage { min-height: 54svh; }
  .cfg-panel { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============================================================
   MURO: locked / unlocked
   ============================================================ */
.price { background: var(--bg-soft); }
.schedule { background: var(--bg); }
.locked-card, .unlocked-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px); text-align: center;
}
.locked-card { position: relative; overflow: hidden; }
.locked-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(213,16,40,.16), transparent 70%);
}
.locked-card > * { position: relative; z-index: 1; }
.lock-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(213,16,40,.12); border: 1px solid rgba(255,59,82,.3);
  color: var(--accent-2); margin-bottom: 22px;
}
.lock-icon svg { width: 24px; height: 24px; display: block; }
.locked-card h3 { margin-bottom: 12px; font-size: 1.5rem; }
.locked-card p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 28px; font-weight: 300; }

/* Precio desbloqueado */
.price-block { text-align: center; }
.price-label { color: var(--text-dim); font-size: .95rem; }
.price-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4rem); font-weight: 900; font-stretch: 120%;
  letter-spacing: -.03em; margin: 10px 0; color: #fff;
}
.price-fine { color: var(--muted); font-size: .8rem; }
.price-config {
  margin: 28px auto 0; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.price-config .chip {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem;
}
.price-config .chip span { color: var(--muted); margin-right: 6px; }

/* Precio + agendar lado a lado (sección unificada) */
.unlocked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.unlocked-grid .unlocked-card { padding: clamp(28px, 4vw, 44px); }
.price-card { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.price-more { margin-top: 26px; font-size: .9rem; }
.price-more a { color: var(--accent-ink); transition: color .2s var(--ease-out); }
.price-more a:hover { color: var(--text); }
.schedule-card { text-align: left; }
.schedule-title { grid-column: 1 / -1; font-size: 1.3rem; margin-bottom: 14px; }
@media (max-width: 760px) {
  .unlocked-grid { grid-template-columns: 1fr; }
}

/* ---------- Formularios ---------- */
.schedule-form { text-align: left; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--text-dim); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 40px 13px 15px; width: 100%; cursor: pointer;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ada7b3' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select option, .field select optgroup { background: var(--surface); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,59,82,.18);
}
.field textarea { resize: vertical; }
.schedule-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.form-msg { font-size: .88rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: var(--accent-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand .brand-mark, .footer-brand .brand-mark-accent { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; font-stretch: 125%; }
.footer-brand p { color: var(--text-dim); margin-top: 14px; max-width: 36ch; font-weight: 300; }
.footer-h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a, .footer-col .muted { display: block; color: var(--text-dim); font-size: .9rem; margin-bottom: 10px; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); font-size: .82rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(7px); animation: fade .25s var(--ease-out); }
.modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px); animation: pop .32s var(--ease-out);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--text-dim);
  font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color .2s var(--ease-out), transform .15s var(--ease-out);
}
.modal-close:hover { color: var(--text); }
.modal-close:active { transform: scale(.9); }
.modal-lead { color: var(--text-dim); font-weight: 300; margin: 12px 0 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-dim); margin: 6px 0 20px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--text); }

/* Alternar entre registro completo y "ya estoy registrado" (solo correo) */
.modal-switch {
  display: block; background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: .88rem; color: var(--text-dim);
  margin-top: 18px; text-align: left; transition: color .2s var(--ease-out);
}
.modal-switch strong { color: var(--accent-ink); font-weight: 600; }
.modal-switch:hover strong { color: var(--text); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ============================================================
   LIGHTBOX (foto ampliada)
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,4,6,.92); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s var(--ease-out); }
.lightbox.open .lightbox-backdrop { opacity: 1; }
.lightbox-figure {
  position: relative; z-index: 1; max-width: min(1440px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transform: scale(.96); transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.lightbox.open .lightbox-figure { opacity: 1; transform: none; }
.lightbox-figure img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox-figure figcaption { color: var(--text-dim); font-size: .9rem; text-align: center; max-width: 60ch; }
.lightbox-count { position: absolute; top: 22px; left: 26px; z-index: 2; color: var(--text-dim); font-size: .85rem; letter-spacing: .04em; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text);
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease-out), transform .15s var(--ease-out);
}
.lightbox-close:hover { background: rgba(255,255,255,.14); }
.lightbox-close:active { transform: scale(.92); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text);
  font-size: 2rem; line-height: 1; display: none; align-items: center; justify-content: center;
  transition: background .2s var(--ease-out), transform .15s var(--ease-out);
}
.lightbox.has-nav .lightbox-arrow { display: flex; }
.lightbox-arrow:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-arrow:active { transform: translateY(-50%) scale(.92); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 560px) {
  .lightbox-arrow { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-figure { transition: opacity .2s ease; transform: none; }
  .lightbox.open .lightbox-figure { transform: none; }
}

/* ============================================================
   Imagen fallback (cuando no existe el archivo aún)
   ============================================================ */
.img-fallback { visibility: hidden; position: relative; }
.img-fallback::after {
  content: "Imagen de referencia"; visibility: visible;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #1a1620, #1a1620 12px, #16121b 12px, #16121b 24px);
  color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-radius: inherit;
}

/* ============================================================
   Disuasión de robo de imágenes (acompaña a js/protect.js)
   Desactiva arrastrar/seleccionar imágenes y el menú "Guardar
   imagen" al mantener pulsado en móvil. NO impide capturas de
   pantalla — para eso se necesita marca de agua (ver SECURITY.md).
   ============================================================ */
img, video, .spin-stage, .cfg-stage {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none; /* iOS: sin menú "Guardar imagen" al mantener pulsado */
}

/* ============================================================
   REVEAL ON SCROLL (robusto: visible por defecto; oculto solo con JS)
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }
/* Stagger para hijos de un grupo: el padre queda visible; los hijos entran escalonados.
   Usamos TRANSICIONES (no @keyframes): el estado final visible es una propiedad calculada
   robusta — no depende de que una animación llegue a completarse. */
html.js .reveal-group { opacity: 1; transform: none; }
html.js .reveal-group > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
html.js .reveal-group.in > * { opacity: 1; transform: none; }
html.js .reveal-group.in > *:nth-child(2) { transition-delay: .06s; }
html.js .reveal-group.in > *:nth-child(3) { transition-delay: .12s; }
html.js .reveal-group.in > *:nth-child(4) { transition-delay: .18s; }
html.js .reveal-group.in > *:nth-child(5) { transition-delay: .24s; }
html.js .reveal-group.in > *:nth-child(6) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  /* Estos sí animan con transform (translateY) en su entrada: anularlo es correcto. */
  html.js .reveal, html.js .reveal-group > *, html.js .hero-content > * {
    opacity: 1 !important; transform: none !important; transition: none;
  }
  /* Estos solo hacen fade de opacidad; su transform es de POSICIÓN estática
     (centrado con translateX/Y), no de animación — anularlo los descentraba. */
  html.js .hero-hint, html.js .hero-progress, html.js .spin-arrow {
    opacity: 1 !important; transition: none;
  }
  html { scroll-behavior: auto; }
  .marquee, .spin-hint-ic { animation: none; }
  .config-stage img { transition: none; }
}

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

/* --- Monitores grandes (≥1800px): la tipografía base sube un punto para
   que todo el sistema (rem) escale en proporción, y el bloque del hero
   gana algo de aire. Los anchos ya escalan solos vía --maxw/clamp(). --- */
@media (min-width: 1800px) {
  html { font-size: 17px; }
  .hero-content { max-width: 880px; }
  .spin-arrow-l { left: 34px; }
  .spin-arrow-r { right: 34px; }
}
@media (min-width: 2400px) {
  html { font-size: 18px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: rgba(10,9,11,.96); backdrop-filter: blur(14px); }
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a::after { display: none; }

  .config-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
  .structure-points { grid-template-columns: 1fr; }
  .structure-points li { padding-right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-2, .schedule-form { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
