/* =============================================================================
   ORIGINA PEDREGAL — Landing V1
   Arquitectura: tokens (:root) → base → utilidades → componentes → secciones →
   responsive. Nomenclatura BEM.
   ============================================================================= */

/* ------------------------------- 1. FUENTES ------------------------------- */
@font-face {
  font-family: "Nexa";
  src: url("fonts/nexa-bold/nexa-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("fonts/nexa-bold/nexa-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------- 2. TOKENS -------------------------------- */
:root {
  /* Colores de marca */
  --color-black: #151515;
  --color-main: #87754F;
  --color-secondary: #786E4F;
  --color-main-light: #DEDCD6;

  /* Neutros derivados */
  --color-white: #FFFFFF;
  --color-surface: #F8F8F8;
  --color-body: rgba(21, 21, 21, .82);
  --color-body-inv: rgba(255, 255, 255, .86);
  --color-line: #E4E3E0;
  --color-line-soft: rgba(21, 21, 21, .12);
  --color-badge-bg: rgba(120, 110, 79, .2);

  /* Tipografía */
  --font-sans: "Nexa", "Century Gothic", "Avenir Next", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --fs-h1: 55px;
  --ls-h1: 5px;
  --fs-h2: 32px;
  --ls-h2: 4px;
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-btn: 14px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 830px;
  --gutter: 24px;
  --header-h: 88px;
  --section-y: 96px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .25s;
  --t-mid: .45s;
  --t-slow: .7s;
}

/* -------------------------------- 3. BASE --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; }

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

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

/* ------------------------------ 4. UTILIDADES ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--muted { background: var(--color-surface); }
.section--tight { padding-block: calc(var(--section-y) * .7); }
.section__actions { margin-top: 48px; text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-black); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Tipografía compartida --------------------------------------------------- */
.t-sans { font-family: var(--font-sans); font-weight: 700; }
.t-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
}
.t-gold { color: var(--color-main); }

.hero__title,
.title { line-height: 1.18; }

.hero__title {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
}
.hero__title .t-sans,
.hero__title .t-serif,
.title .t-sans,
.title .t-serif { display: block; }

.title {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  line-height: 1.35;
}
.title--center { text-align: center; margin-bottom: 52px; }
/* Variante de una sola línea: "Prototipos disponibles." */
.title--inline .t-sans,
.title--inline .t-serif { display: inline; }
.title--inline .t-serif { margin-left: .32em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.72;
  color: var(--color-body);
}

.rule-left {
  border-left: 1px solid rgba(255, 255, 255, .55);
  padding-left: 26px;
}

/* Reveal on scroll -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
/* Redes de seguridad: nunca dejar contenido invisible */
.reveal-off .reveal { opacity: 1 !important; transform: none !important; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------ 5. BOTONES -------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-black);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-btn);
  letter-spacing: .6px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--color-secondary);
  --btn-fg: #fff;
  --btn-bd: var(--color-secondary);
}
.btn--primary:hover { --btn-bg: var(--color-main); --btn-bd: var(--color-main); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-black);
  --btn-bd: var(--color-black);
}
.btn--ghost:hover { --btn-bg: var(--color-black); --btn-fg: #fff; }

.btn--block { display: flex; width: 100%; }

/* --------------------------- 6. ICONOS EN CÍRCULO ------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-badge-bg);
  color: var(--color-secondary);
}
.icon-badge svg { width: 24px; height: 24px; }
/* Los .webp ya traen el círculo dibujado: se muestran sin fondo extra */
.icon-badge--img { background: none; }
.icon-badge--img img { width: 50px; height: 50px; }

/* ------------------------------- 7. HEADER -------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-black);
  transition: height var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.header.is-stuck {
  height: 72px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.header__logo img { width: 138px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  color: rgba(255, 255, 255, .92);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { margin-left: 34px; min-height: 44px; padding: 12px 26px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin-inline: auto;
  background: #fff;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px var(--gutter) 36px;
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  color: #fff;
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* -------------------------------- 8. HERO --------------------------------- */
.hero { padding-block: 92px 104px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
}
.hero__lead {
  margin-top: 24px;
  font-size: var(--fs-lead);
  color: var(--color-black);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin-top: 46px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 14px;
  border-left: 1px solid var(--color-line);
}
.stats__item:first-child { border-left: 0; }
.stats__item--start { align-items: flex-start; text-align: left; padding-left: 0; }
.stats__value {
  order: 2;
  color: var(--color-main);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .5px;
  line-height: 1.2;
}
.stats__item--start .stats__value { order: 0; }
.stats__label {
  order: 1;
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-black);
}

.hero__strip { margin-top: 40px; }
.hero__strip img {
  width: 100%;
  aspect-ratio: 1074 / 306;
  object-fit: cover;
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 592 / 551;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, .72) 62%, rgba(21, 21, 21, .88) 100%);
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  left: 34px; right: 34px; bottom: 34px;
  z-index: 2;
  color: #fff;
}
.hero__caption p {
  font-size: var(--fs-body);
  line-height: 1.75;
}

/* ------------------------------ 9. DESARROLLO ----------------------------- */
.desarrollo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.05fr 1.5fr 1fr;
  grid-template-areas:
    "a b"
    "a d"
    "c d";
  gap: 11px;
  aspect-ratio: 487 / 477;
}
.collage__item { overflow: hidden; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.collage__item:hover img { transform: scale(1.05); }
.collage__item--a { grid-area: a; }
.collage__item--b { grid-area: b; width: 69%; align-self: end; justify-self: start; }
.collage__item--c { grid-area: c; width: 69%; align-self: start; justify-self: end; }
.collage__item--d { grid-area: d; }

.specs { margin-top: 40px; display: grid; gap: 26px; }
.specs__row { display: flex; align-items: center; gap: 20px; }
.specs__text { display: flex; flex-direction: column; gap: 4px; }
.specs__label {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
}
.specs__value { font-size: 19px; font-weight: 700; letter-spacing: .3px; }

/* -------------------------- 10. TARJETAS (VIDA) --------------------------- */
.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; margin-bottom: 22px; }
.card__media img {
  width: 100%;
  aspect-ratio: 354 / 434;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__title {
  font-size: var(--fs-h3);
  letter-spacing: .4px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.card__text { color: var(--color-body); font-size: 15px; line-height: 1.7; }

/* ------------------------- 11. PANELES (PERFILES) ------------------------- */
.panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px 52px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  transition: border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.panel:hover {
  border-color: rgba(135, 117, 79, .45);
  box-shadow: 0 18px 40px rgba(21, 21, 21, .07);
  transform: translateY(-4px);
}
.panel__title {
  font-size: var(--fs-h3);
  letter-spacing: .4px;
  line-height: 1.75;
  margin-top: 8px;
}
.panel__text { color: var(--color-body); font-size: 15px; line-height: 1.7; }

/* --------------------- 12. PROTOTIPOS (REVEAL CARDS) ---------------------- */
.proto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 267 / 318;
  background: var(--color-black);
  cursor: pointer;
  isolation: isolate;
}
.proto__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter var(--t-mid) var(--ease-out);
}
.proto:hover .proto__img,
.proto.is-open .proto__img { transform: scale(1.06); filter: brightness(.9); }

.proto__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  background: var(--color-black);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

.proto__panel {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 46px 16px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, .55) 26%, rgba(21, 21, 21, .93) 62%, #151515 100%);
}
.proto__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .4px;
  border-left: 2px solid var(--color-main);
  padding-left: 12px;
  line-height: 1.2;
}
/* El truco 0fr → 1fr permite animar la altura sin JS */
.proto__specs {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--t-mid) var(--ease-out),
              opacity var(--t-mid) var(--ease-out),
              margin var(--t-mid) var(--ease-out);
  margin-top: 0;
}
.proto__specs > * { overflow: hidden; }
.proto:hover .proto__specs,
.proto:focus-visible .proto__specs,
.proto.is-open .proto__specs {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}
/* Dos columnas fijas, mismo reparto que el diseño: 4 filas + 3 filas */
.proto__specs-inner {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  column-gap: 14px;
  padding-left: 12px;
}
.proto__spec {
  display: flex;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.95;
  color: rgba(255, 255, 255, .88);
}
.proto__spec:nth-child(odd) { grid-column: 1; }
.proto__spec:nth-child(even) { grid-column: 2; }
.proto__spec:nth-child(1), .proto__spec:nth-child(2) { grid-row: 1; }
.proto__spec:nth-child(3), .proto__spec:nth-child(4) { grid-row: 2; }
.proto__spec:nth-child(5), .proto__spec:nth-child(6) { grid-row: 3; }
.proto__spec:nth-child(7) { grid-row: 4; }
.proto__spec dt { font-weight: 300; }
.proto__spec dd { margin: 0; font-weight: 300; }

/* --------------------------- 13. CIERRE / FEATURE ------------------------- */
.cierre__head {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 58px;
  align-items: start;
}
.cierre__aside { padding-top: 6px; }
.cierre__actions { margin-top: 36px; }

.feature-swiper { margin-top: 64px; }
.feature {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature__media { overflow: hidden; }
.feature__media img {
  width: 100%;
  aspect-ratio: 666 / 408;
  object-fit: cover;
}
.feature__body { display: flex; flex-direction: column; gap: 20px; }
.feature__title {
  font-size: 17px;
  letter-spacing: 1.6px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.feature__text { color: var(--color-body); font-size: var(--fs-lead); line-height: 1.72; }

.feature-swiper__pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.feature-swiper__pagination .swiper-pagination-bullet {
  width: 11px; height: 11px;
  margin: 0 !important;
  background: transparent;
  border: 1px solid var(--color-secondary);
  opacity: 1;
  transition: background var(--t-fast) var(--ease-out);
}
.feature-swiper__pagination .swiper-pagination-bullet-active { background: var(--color-secondary); }

/* --------------------------------- 14. FAQ -------------------------------- */
.faq__list { display: grid; }
.faq__item { padding-block: 22px; border-bottom: 1px solid var(--color-line); }
.faq__item:first-child { padding-top: 0; }
.faq__q { font-size: 16px; font-weight: 700; letter-spacing: .2px; margin-bottom: 10px; }
.faq__a { margin: 0; color: var(--color-body); font-size: 15.5px; line-height: 1.75; }

/* ------------------------------ 15. CONTACTO ------------------------------ */
.contacto__box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 56px 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: url("assets/contacto-bg.webp") center / cover no-repeat, var(--color-black);
  isolation: isolate;
}
.contacto__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(21, 21, 21, .78) 0%, rgba(21, 21, 21, .5) 55%, rgba(21, 21, 21, .3) 100%);
}
.contacto__copy {
  position: relative;
  z-index: 1;
  align-self: start;
  color: var(--color-body-inv);
  font-size: var(--fs-lead);
  line-height: 1.85;
  max-width: 460px;
}

.form-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
}
.form-card__title {
  font-size: 27px;
  letter-spacing: 2.5px;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 34px;
}

.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.field { position: relative; }
.field input,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-line-soft);
  background: transparent;
  padding: 10px 26px 12px 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-black);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease-out);
}
.field input::placeholder { color: rgba(21, 21, 21, .62); }
.field select { appearance: none; -webkit-appearance: none; color: rgba(21, 21, 21, .62); cursor: pointer; }
.field select.has-value { color: var(--color-black); }
.field input:focus,
.field select:focus { outline: none; border-bottom-color: var(--color-main); }
.field.has-error input,
.field.has-error select { border-bottom-color: #B4432F; }

.field--select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 46%;
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(21, 21, 21, .55);
  border-bottom: 1.5px solid rgba(21, 21, 21, .55);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.form .btn { margin-top: 8px; }
.form__status { margin: 0; font-size: 13.5px; letter-spacing: .3px; min-height: 1.2em; }
.form__status.is-ok { color: var(--color-secondary); }
.form__status.is-error { color: #B4432F; }

/* ------------------------------- 16. FOOTER ------------------------------- */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, .88);
  padding-block: 62px 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__brand img { width: 170px; height: auto; margin-bottom: 26px; }
.footer__address { font-style: normal; font-size: 15px; line-height: 1.7; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__nav a { transition: color var(--t-fast) var(--ease-out); }
.footer__nav a:hover { color: var(--color-main-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- 17. SWIPER ------------------------------- */
.swiper { width: 100%; overflow: hidden; }
.cards-swiper .swiper-slide,
.proto-swiper .swiper-slide,
.feature-swiper .swiper-slide { height: auto; }
/* Fallback visual antes de que Swiper inicialice */
.swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 32px; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 1 1 0; }
.swiper:not(.swiper-initialized).feature-swiper .swiper-slide:not(:first-child) { display: none; }
.swiper:not(.swiper-initialized).proto-swiper .swiper-wrapper { flex-wrap: wrap; }
.swiper:not(.swiper-initialized).proto-swiper .swiper-slide { flex: 0 0 calc(25% - 24px); }
.proto-swiper .swiper-grid-column > .swiper-wrapper { flex-wrap: wrap; }

/* ============================ 18. RESPONSIVE ============================== */
@media (max-width: 1180px) {
  :root { --fs-h1: 46px; --ls-h1: 4px; }
  .desarrollo__grid { gap: 48px; }
  .feature { gap: 48px; }
  .cierre__head { gap: 48px; }
}

@media (max-width: 1024px) {
  :root { --section-y: 76px; --fs-h1: 40px; --fs-h2: 28px; --ls-h2: 3px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media img { aspect-ratio: 16 / 11; }
  .desarrollo__grid { grid-template-columns: 1fr; gap: 44px; }
  .cierre__head { grid-template-columns: 1fr; gap: 28px; }
  .contacto__box { grid-template-columns: 1fr; gap: 34px; padding: 44px 28px; }
  .contacto__copy { max-width: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --section-y: 62px;
    --fs-h1: 34px;
    --ls-h1: 3px;
    --fs-h2: 24px;
    --ls-h2: 2.5px;
    --fs-lead: 16px;
    --gutter: 20px;
  }
  .hero { padding-block: 56px 68px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stats__item {
    align-items: flex-start;
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--color-line);
    padding: 18px 0 0;
  }
  .stats__item:first-child { border-top: 0; padding-top: 0; }
  .hero__caption { left: 20px; right: 20px; bottom: 22px; }
  .hero__caption p { font-size: 14.5px; line-height: 1.65; }
  .rule-left { padding-left: 18px; }

  .collage { aspect-ratio: 1 / 1; }
  .specs { gap: 20px; }

  .title--center { margin-bottom: 34px; }
  .section__actions { margin-top: 34px; }

  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature-swiper { margin-top: 40px; }
  .feature-swiper__pagination { margin-top: 28px; }

  .form-card { padding: 32px 22px 30px; }
  .form-card__title { font-size: 21px; letter-spacing: 1.6px; }
  .form__row { grid-template-columns: 1fr; gap: 26px; }

  .footer { padding-block: 46px 26px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* En móvil el panel se despliega con tap (clase .is-open desde JS) */
  .proto { aspect-ratio: 4 / 5; }
  .proto__specs-inner { column-gap: 22px; }
  .proto__spec { font-size: 12px; }
}

@media (max-width: 480px) {
  .form-card__title { font-size: 19px; }
  .proto__specs-inner { column-gap: 16px; }
  .proto__spec { font-size: 11.5px; }
}

/* Reduce solo efectos intrusivos, nunca las micro-interacciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collage__item img,
  .card__media img,
  .proto__img { transition: none; }
}
