/* ============================================================
   m17.css — Landing del proyecto M17 (Casa Esquina + Casa Medio)
   Depende de: variables.css, main.css, components.css
   Concepto: "hora dorada" — los renders son de atardecer, así que
   la página usa el rojo/dorado de la marca sobre papel cálido y
   deja que las fotos hagan el trabajo.
   ============================================================ */

.m17 {
  --m17-paper: oklch(97.8% 0.012 75);
  --m17-paper-deep: oklch(94.5% 0.02 70);
  --m17-ink: oklch(20% 0.012 30);
  --m17-ink-soft: oklch(38% 0.012 30);
  --m17-night: oklch(17% 0.03 20);
  --m17-night-2: oklch(22% 0.045 20);
  --m17-gold: var(--color-accent);
  --m17-gold-deep: oklch(52% 0.09 75);
  --m17-red: var(--color-primary);
  --m17-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m17-sub-h: 56px;
  --m17-header-h: 80px;
  background: var(--m17-paper);
  color: var(--m17-ink);
}

.m17 .container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Tipos compartidos ─────────────────────────────────────── */
.m17-kicker {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m17-gold-deep);
  margin-bottom: var(--space-sm);
}
.m17-kicker--light { color: var(--m17-gold); }
.m17 h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em; }
.m17-lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--m17-ink-soft); max-width: 58ch; line-height: 1.65; margin-bottom: 0; }
.m17-note { font-size: var(--font-size-sm); color: var(--m17-ink-soft); margin: var(--space-lg) 0 0; max-width: 52ch; }

.m17-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.m17-actions--center { justify-content: center; }
.btn-lg-cta { min-height: 52px; padding: var(--spacing-3) var(--spacing-8); font-size: 1.05rem; }
.m17-btn-ghost { border: 1.5px solid currentColor; color: #fff; background: transparent; }
.m17-btn-ghost:hover { background: #fff; color: var(--m17-night); transform: translateY(-2px); }

/* Entradas */
.m17-js .m17-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--m17-ease), transform 0.8s var(--m17-ease); }
.m17-js .m17-reveal.is-in { opacity: 1; transform: none; }

/* ── HERO partido ───────────────────────────────────────────── */
.m17-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(560px, 92svh, 900px);
  background: var(--m17-night);
  overflow: hidden;
}
.m17-hero__half { position: relative; display: block; overflow: hidden; isolation: isolate; }
.m17-hero__half img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07);
  transition: transform 1.6s var(--m17-ease);
}
.m17-hero__half--a img { object-position: 55% 50%; }
.m17-hero__half--b img { object-position: 45% 50%; }
.m17-hero__half::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, oklch(12% 0.03 20 / 0.82) 0%, oklch(12% 0.03 20 / 0) 42%),
    linear-gradient(to bottom, oklch(12% 0.03 20 / 0.7) 0%, oklch(12% 0.03 20 / 0.15) 55%, oklch(12% 0.03 20 / 0) 75%);
  transition: opacity 0.5s var(--m17-ease);
}
.m17-hero__half--b { border-left: 1px solid oklch(98% 0.01 80 / 0.55); }
.m17-hero__half:hover img, .m17-hero__half:focus-visible img { transform: scale(1.0); }
.m17-hero__half:focus-visible { outline: 3px solid var(--m17-gold); outline-offset: -6px; }
.m17-hero__label {
  position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 4vw, 2.75rem);
  display: grid; gap: 2px; color: #fff;
}
.m17-hero__label small { font-size: var(--font-size-sm); letter-spacing: 0.16em; text-transform: uppercase; color: var(--m17-gold); font-weight: 600; }
.m17-hero__label strong { font-family: var(--font-family-serif); font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); line-height: 1; font-weight: 800; }
.m17-hero__label em { font-style: normal; font-size: var(--font-size-sm); margin-top: var(--space-sm); opacity: 0.9; border-bottom: 1px solid var(--m17-gold); width: fit-content; transition: transform var(--transition-normal); }
.m17-hero__half:hover .m17-hero__label em { transform: translateY(3px); }

.m17-hero__intro {
  position: absolute; z-index: 3; inset: 0 0 auto 0;
  padding-block: clamp(1rem, 3vw, 2rem) 0;
  pointer-events: none; color: #fff;
}
.m17-hero__intro > .container { display: grid; gap: var(--space-md); justify-items: start; max-width: var(--max-width); }
.m17-hero__intro a, .m17-hero__intro button { pointer-events: auto; }
.m17-crumbs { padding: 0; background: none; border: 0; margin: 0 0 var(--space-sm); }
.m17-crumbs .breadcrumbs__list, .m17-crumbs a, .m17-crumbs [aria-current] { color: oklch(96% 0.01 80 / 0.88); }
.m17-crumbs .breadcrumbs__list li + li::before { color: oklch(96% 0.01 80 / 0.55); }
.m17-eyebrow { font-size: var(--font-size-sm); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--m17-gold); margin: 0; }
.m17-hero h1 {
  color: #fff; font-family: var(--font-family-serif); font-weight: 800;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0; max-width: 14ch; text-shadow: 0 2px 24px oklch(12% 0.03 20 / 0.45);
}
.m17-hero h1 em { font-style: italic; font-weight: 600; color: oklch(90% 0.07 80); }
.m17-h1__mark {
  display: inline-block; font-size: 0.34em; letter-spacing: 0.22em; font-weight: 700;
  padding: 0.35em 0.85em; margin-bottom: 0.7em; background: var(--m17-red); color: #fff; border-radius: 2px;
  vertical-align: top; text-shadow: none; display: block; width: fit-content;
}
.m17-hero__sub { color: oklch(97% 0.01 80 / 0.94); font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem); max-width: 46ch; margin: 0; text-shadow: 0 1px 14px oklch(12% 0.03 20 / 0.6); }
.m17-hero__intro .m17-actions { margin-top: var(--space-sm); }

/* ── Subnav sticky ──────────────────────────────────────────── */
.m17-subnav {
  position: sticky; top: var(--m17-header-h); z-index: 900;
  background: oklch(98.5% 0.01 75 / 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.m17-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--m17-sub-h); }
.m17-subnav__links { display: flex; gap: clamp(0.75rem, 2.5vw, 2rem); overflow-x: auto; scrollbar-width: none; }
.m17-subnav__links::-webkit-scrollbar { display: none; }
.m17-subnav__links a { display: block; padding: 0.4rem 0; font-size: var(--font-size-sm); font-weight: 600; white-space: nowrap; color: var(--m17-ink-soft); border-bottom: 2px solid transparent; }
.m17-subnav__links a:hover, .m17-subnav__links a.is-current { color: var(--m17-red); border-bottom-color: var(--m17-gold); }
.m17-subnav__cta { min-height: 40px; padding: 0.35rem 1rem; font-size: var(--font-size-sm); flex-shrink: 0; }
.m17-subnav__cta svg { width: 18px; height: 18px; }
.m17 section[id] { scroll-margin-top: calc(var(--m17-header-h) + var(--m17-sub-h) + 8px); }

/* ── Intro + comparativa ───────────────────────────────────── */
.m17-intro { padding-block: clamp(3.5rem, 8vw, 7rem); }
.m17-intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.m17-intro__copy p:not(.m17-kicker):not(.m17-note) { font-size: 1.1rem; color: var(--m17-ink-soft); max-width: 52ch; }
.m17-intro__copy h2 { margin-bottom: var(--space-lg); max-width: 16ch; }
.m17-compare { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.m17-compare__row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; gap: var(--space-md); padding: 0.9rem 1.1rem; font-size: var(--font-size-sm); border-top: 1px solid var(--color-border); align-items: center; }
.m17-compare__row:first-child { border-top: 0; }
.m17-compare__row [role="rowheader"] { color: var(--m17-ink-soft); font-weight: 600; font-size: var(--font-size-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.m17-compare__row--head { background: var(--m17-night); color: #fff; padding-block: 1rem; }
.m17-compare__row--head a { font-family: var(--font-family-serif); font-size: 1.35rem; font-weight: 800; color: #fff; }
.m17-compare__row--head a:hover { color: var(--m17-gold); }

/* ── Casas ──────────────────────────────────────────────────── */
.m17-house { padding-block: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--color-border); }
.m17-house:nth-of-type(even) { background: var(--m17-paper-deep); }
.m17-house__head { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); margin-bottom: clamp(1.75rem, 4vw, 3rem); position: relative; }
.m17-house__num {
  font-family: var(--font-family-serif); font-weight: 800; line-height: 0.8;
  font-size: clamp(5rem, 3rem + 11vw, 11rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--m17-gold); user-select: none;
}
.m17-house__intro h2 { margin-bottom: var(--space-md); }
.m17-facts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.m17-facts li { font-size: var(--font-size-sm); font-weight: 600; padding: 0.45rem 0.9rem; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; color: var(--m17-ink); }

/* Visor */
.m17-viewer { display: grid; gap: var(--space-md); }
.m17-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.m17-chips { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.m17-chip { padding: 0.5rem 1.05rem; min-height: 40px; font-size: var(--font-size-sm); font-weight: 600; border: 1.5px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--m17-ink); transition: all var(--transition-fast); }
.m17-chip:hover { border-color: var(--m17-red); }
.m17-chip.is-active { background: var(--m17-red); border-color: var(--m17-red); color: #fff; }
.m17-chip:focus-visible, .m17-thumb:focus-visible, .m17-stage button:focus-visible { outline: 3px solid var(--m17-gold); outline-offset: 2px; }
.m17-viewer__count { font-size: var(--font-size-sm); color: var(--m17-ink-soft); font-variant-numeric: tabular-nums; }

.m17-stage { position: relative; aspect-ratio: 3 / 2; background: var(--m17-night); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); touch-action: pan-y; }
.m17-stage__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity 0.28s ease; }
.m17-stage__img.is-swapping { opacity: 0; }
.m17-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, oklch(12% 0.03 20 / 0.72), transparent); pointer-events: none; }
.m17-stage__caption { position: absolute; z-index: 2; left: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(0.9rem, 2.2vw, 1.5rem); right: 4.5rem; margin: 0; color: #fff; font-family: var(--font-family-serif); font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.65rem); line-height: 1.15; text-shadow: 0 1px 12px oklch(12% 0.03 20 / 0.5); }
.m17-stage button { position: absolute; z-index: 3; display: grid; place-items: center; color: #fff; background: oklch(14% 0.03 20 / 0.55); backdrop-filter: blur(6px); border-radius: 50%; transition: background var(--transition-fast), transform var(--transition-fast); }
.m17-stage button:hover { background: var(--m17-red); }
.m17-stage__nav { top: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; transform: translateY(-50%); padding-bottom: 4px; }
.m17-stage__nav--prev { left: clamp(0.5rem, 1.5vw, 1rem); }
.m17-stage__nav--next { right: clamp(0.5rem, 1.5vw, 1rem); }
.m17-stage__zoom { right: clamp(0.6rem, 1.5vw, 1rem); bottom: clamp(0.6rem, 1.5vw, 1rem); width: 40px; height: 40px; }

.m17-strip { display: flex; gap: var(--space-sm); overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--m17-gold) transparent; }
.m17-thumb { flex: 0 0 auto; width: clamp(92px, 14vw, 128px); aspect-ratio: 3 / 2; padding: 0; border-radius: var(--radius-md); overflow: hidden; scroll-snap-align: start; opacity: 0.62; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--transition-fast), outline-color var(--transition-fast); }
.m17-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m17-thumb:hover { opacity: 1; }
.m17-thumb.is-active { opacity: 1; outline-color: var(--m17-red); }
.m17-thumb[hidden] { display: none; }

/* Escenas */
.m17-scenes { display: grid; gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(3rem, 7vw, 6rem); }
.m17-scene { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
.m17-scene__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; }
.m17-scene__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--m17-ease); }
.m17-scene:hover .m17-scene__media img { transform: scale(1.04); }
.m17-scene__body h3 { font-family: var(--font-family-serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; margin-bottom: var(--space-md); }
.m17-scene__body p { font-size: 1.1rem; color: var(--m17-ink-soft); max-width: 44ch; margin: 0; }

.m17-house__cta { margin-top: clamp(3rem, 7vw, 5.5rem); padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--m17-night); color: #fff; border-radius: var(--radius-lg); display: grid; gap: var(--space-lg); align-items: center; }
.m17-house__cta p { margin: 0; font-family: var(--font-family-serif); font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.2; max-width: 28ch; }
.m17-house__cta .btn-outline { border-color: oklch(96% 0.01 80 / 0.7); color: #fff; }
.m17-house__cta .btn-outline:hover { background: #fff; color: var(--m17-night); }

/* ── Financiación ───────────────────────────────────────────── */
.m17-fin { background: var(--m17-red); color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.m17-fin::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 100% 0%, oklch(40% 0.14 20 / 0.55), transparent 70%); pointer-events: none; }
.m17-fin__inner { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); }
.m17-fin h2 { color: #fff; max-width: 15ch; }
.m17-fin p { color: oklch(96% 0.015 20 / 0.92); font-size: 1.1rem; max-width: 46ch; }
.m17-fin__steps ol { counter-reset: s; display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.m17-fin__steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid oklch(96% 0.01 80 / 0.25); }
.m17-fin__steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-family-serif); font-size: 2rem; font-weight: 800; color: var(--m17-gold); line-height: 1; }
.m17-fin__steps strong { font-size: 1.1rem; }
.m17-fin__steps span { color: oklch(96% 0.015 20 / 0.85); font-size: var(--font-size-sm); }

/* ── Video (tarjeta lista para el enlace) ───────────────────── */
.m17-video { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--m17-paper); }
.m17-video__head { margin-bottom: var(--space-xl); }
.m17-ytcard { position: relative; aspect-ratio: 16 / 9; background: var(--m17-night); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.m17-ytcard__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m17-ytcard__veil { position: absolute; inset: 0; background: linear-gradient(to top, oklch(12% 0.03 20 / 0.7), oklch(12% 0.03 20 / 0.28)); }
.m17-ytcard__play { position: absolute; inset: 0; margin: auto; width: clamp(68px, 10vw, 96px); height: clamp(68px, 10vw, 96px); border-radius: 50%; display: grid; place-items: center; background: var(--m17-red); color: #fff; box-shadow: 0 0 0 10px oklch(98% 0.01 80 / 0.18); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.m17-ytcard__play svg { margin-left: 4px; width: 40%; height: 40%; }
.m17-ytcard__play:disabled { background: oklch(98% 0.01 80 / 0.22); color: oklch(98% 0.01 80 / 0.8); cursor: not-allowed; box-shadow: 0 0 0 10px oklch(98% 0.01 80 / 0.1); }
.m17-ytcard:not(.is-empty) .m17-ytcard__play:hover { transform: scale(1.07); box-shadow: 0 0 0 14px oklch(98% 0.01 80 / 0.25); }
.m17-ytcard__play:focus-visible { outline: 3px solid var(--m17-gold); outline-offset: 6px; }
.m17-ytcard__status { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.75rem); margin: 0; color: #fff; font-family: var(--font-family-serif); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1.2vw, 2rem); }
.m17-ytcard.is-empty .m17-ytcard__ready, .m17-ytcard:not(.is-empty) .m17-ytcard__soon { display: none; }
.m17-ytcard__link { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.75rem); color: #fff; font-size: var(--font-size-sm); font-weight: 600; border-bottom: 1px solid var(--m17-gold); padding-bottom: 2px; }
.m17-ytcard__link:hover { color: var(--m17-gold); }
.m17-ytcard.is-playing .m17-ytcard__poster, .m17-ytcard.is-playing .m17-ytcard__veil, .m17-ytcard.is-playing .m17-ytcard__play, .m17-ytcard.is-playing .m17-ytcard__status { display: none; }
.m17-ytcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Mapa ───────────────────────────────────────────────────── */
.m17-map { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--m17-paper-deep); }
.m17-map__head { margin-bottom: var(--space-xl); }
.m17-map__head p:not(.m17-kicker) { color: var(--m17-ink-soft); font-size: 1.1rem; max-width: 50ch; }
.m17-map__frame { aspect-ratio: 4 / 3; max-height: 560px; width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--color-border); }
.m17-map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── FAQ ────────────────────────────────────────────────────── */
.m17-faq { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.m17-faq__inner { display: grid; gap: var(--space-xl); }
.m17 .faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); }

/* ── CTA final ──────────────────────────────────────────────── */
.m17-final { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(4.5rem, 11vw, 9rem); isolation: isolate; background: var(--m17-night); }
.m17-final__bg { position: absolute; inset: 0; z-index: -1; background: url('../img/proyectos/m17/esquina-fachada-3-de-febrero.webp') center 40% / cover; }
.m17-final__bg::after { content: ''; position: absolute; inset: 0; background: oklch(13% 0.035 20 / 0.74); }
.m17-final h2 { color: #fff; margin-inline: auto; max-width: 16ch; font-size: clamp(2.1rem, 1.2rem + 4vw, 4.2rem); text-shadow: 0 2px 20px oklch(12% 0.03 20 / 0.5); }
.m17-final p { color: oklch(97% 0.01 80 / 0.94); font-size: 1.15rem; max-width: 44ch; margin: 0 auto var(--space-xl); }
.m17-final__more { display: inline-block; margin-top: var(--space-xl); color: #fff; font-size: var(--font-size-sm); border-bottom: 1px solid var(--m17-gold); padding-bottom: 2px; }
.m17-final__more:hover { color: var(--m17-gold); }

/* ── Lightbox ───────────────────────────────────────────────── */
.m17-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-md); padding: clamp(0.75rem, 3vw, 2rem); background: oklch(10% 0.03 20 / 0.94); }
.m17-lightbox[hidden] { display: none; }
.m17-lightbox__fig { margin: 0; display: grid; gap: var(--space-sm); justify-items: center; min-width: 0; }
.m17-lightbox__fig img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-md); }
.m17-lightbox__fig figcaption { color: #fff; font-family: var(--font-family-serif); font-size: 1.15rem; text-align: center; }
.m17-lightbox button { width: 48px; height: 48px; border-radius: 50%; color: #fff; background: oklch(98% 0.01 80 / 0.14); font-size: 2rem; display: grid; place-items: center; padding-bottom: 4px; transition: background var(--transition-fast); }
.m17-lightbox button:hover { background: var(--m17-red); }
.m17-lightbox button:focus-visible { outline: 3px solid var(--m17-gold); outline-offset: 2px; }
.m17-lightbox__close { position: absolute; top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); font-size: 1.25rem !important; z-index: 2; padding-bottom: 0 !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 900px) {
  .m17-intro__grid { grid-template-columns: 0.9fr 1.1fr; }
  .m17-house__head { grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(1.5rem, 4vw, 4rem); }
  .m17-facts { grid-column: 1 / -1; }
  .m17-scene { grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .m17-scene--flip { grid-template-columns: 1fr 1.25fr; }
  .m17-scene--flip .m17-scene__media { order: 2; }
  .m17-house__cta { grid-template-columns: 1fr auto; }
  .m17-fin__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .m17-faq__inner { grid-template-columns: 0.7fr 1.3fr; align-items: start; }
}
@media (max-width: 899px) {
  /* Móvil: titular arriba sobre fondo noche y las dos casas apiladas debajo */
  .m17-hero { grid-template-columns: 1fr; height: auto; grid-template-rows: auto; }
  .m17-hero__intro { position: static; order: -1; background: var(--m17-night); padding: 0.75rem 0 1.75rem; }
  .m17-hero__half { aspect-ratio: 4 / 3; }
  .m17-hero__half--b { border-left: 0; border-top: 1px solid oklch(98% 0.01 80 / 0.55); }
  .m17-hero__half::after { background: linear-gradient(to top, oklch(12% 0.03 20 / 0.78), transparent 55%); }
  .m17-hero h1 { max-width: 16ch; }
  .m17-compare__row { grid-template-columns: 1fr 1fr; row-gap: 0.25rem; }
  .m17-compare__row [role="rowheader"] { grid-column: 1 / -1; }
  .m17-compare__row--head { grid-template-columns: 1fr 1fr; }
  .m17-compare__row--head .sr-only { display: none; }
  .m17-stage { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
  .m17-stage__nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .m17-stage__caption { right: 3.6rem; }
  .m17-viewer__count { display: none; }
  .m17-chips { gap: 6px; }
  .m17-chip { padding: 0.45rem 0.8rem; }
  .m17-ytcard__link { display: none; }
}
@media (max-width: 480px) {
  .m17-subnav__cta span { display: none; }
  .m17-subnav__cta { width: 40px; padding: 0; border-radius: 50%; }
  .m17-actions .btn { width: 100%; }
  .m17-house__num { margin-bottom: -0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .m17-js .m17-reveal { opacity: 1; transform: none; transition: none; }
  .m17-hero__half img, .m17-scene__media img, .m17-stage__img { transition: none; transform: none; }
}
