/* KM Mattress Atlanta. Azul marino, dorado y blanco.
   Titulares: Archivo (variable, ancho 115). Texto: Atkinson Hyperlegible Next. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 115%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Atkinson dibuja el cero con barra (se lee "θ" en medidas y teléfonos): solo el dígito 0 sale de Archivo */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0030;
}

:root {
  --navy-900: #0B1F3A;
  --navy-700: #16345C;
  --gold-400: #E3B341;
  --gold-700: #8A6514;
  --white: #FFFFFF;
  --mist: #F4F6FA;
  --line: #C9D3E3;
  --slate: #5B6B82;
  --wa: #25D366;

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --fs-small: .875rem;
  --fs-h1: clamp(2rem, 1.25rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);

  --maxw: 1200px;
  --r-btn: 999px;
  --r-tag: 6px;
  --r-photo: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--navy-900);
  background: var(--white);
  overflow-x: hidden;
  touch-action: manipulation;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.center { text-align: center; max-width: none; }
.center .btn { margin-inline: auto; }

:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.hero :focus-visible, .videos :focus-visible, .zone :focus-visible, .final :focus-visible, .footer :focus-visible, .lightbox :focus-visible, .sticky-bar :focus-visible { outline-color: var(--gold-400); }

.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--gold-400); color: var(--navy-900); padding: 12px 16px; border-radius: var(--r-btn); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 52px; height: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { display: block; font-weight: 600; font-stretch: 100%; font-size: .8125rem; color: var(--slate); margin-top: 2px; letter-spacing: 0; }
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--navy-900); border-radius: var(--r-btn); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.lang-switch:hover { background: var(--navy-900); color: var(--white); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); text-decoration: none; }
.icon-btn svg { fill: currentColor; }

.langprompt { background: var(--navy-700); color: var(--white); font-size: var(--fs-small); }
.langprompt-in { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 4px; }
.langprompt button { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 2px solid var(--gold-400); background: var(--gold-400); color: var(--navy-900); font-weight: 700; }
.langprompt button.ghost { background: transparent; color: var(--white); border-color: transparent; padding: 0; font-size: 1.5rem; line-height: 1; }
.langprompt :focus-visible { outline-color: var(--white); }
.langprompt[hidden] { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: var(--r-btn);
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; transition: transform 120ms var(--ease), background-color 120ms var(--ease);
}
.btn .ico { flex: none; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-400); color: var(--navy-900); }
.btn-gold:hover { background: #ECC25E; }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-lg { min-height: 60px; padding-inline: 32px; font-size: 1.1875rem; }
.link-under { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  color: var(--white);
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.5'/%3E%3Ccircle cx='28' cy='28' r='2.2' fill='%23ffffff' fill-opacity='.09'/%3E%3Ccircle cx='0' cy='0' r='2.2' fill='%23ffffff' fill-opacity='.09'/%3E%3Ccircle cx='56' cy='0' r='2.2' fill='%23ffffff' fill-opacity='.09'/%3E%3Ccircle cx='0' cy='56' r='2.2' fill='%23ffffff' fill-opacity='.09'/%3E%3Ccircle cx='56' cy='56' r='2.2' fill='%23ffffff' fill-opacity='.09'/%3E%3C/svg%3E");
  padding-bottom: 36px;
}
.hero-grid { display: grid; gap: 24px; }
.hero-media { order: -1; position: relative; margin: 0 -16px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-700); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media .hero-tag { position: absolute; left: 16px; bottom: 16px; width: max-content; max-width: calc(100% - 32px); }
.hero-copy { display: grid; gap: 16px; justify-items: start; }
.hero-copy h1 { max-width: 14ch; }
.lead { font-size: 1.1875rem; line-height: 1.5; max-width: 40ch; margin: 0; color: #DCE5F2; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.hero .link-under { color: var(--white); }

/* La etiqueta cosida de los colchones nuevos */
.tag { position: relative; background: var(--white); border-radius: var(--r-tag); padding: 22px 18px 18px; }
.tag::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--gold-700); border-radius: 3px; pointer-events: none; opacity: .75; }
.tag--flat { display: grid; gap: 2px; padding: 14px 18px; color: var(--navy-900); }
.tag--flat strong { font-family: var(--font-head); font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; line-height: 1.15; }
.tag--flat span { font-size: .875rem; color: var(--slate); }

/* ---------- Promesas ---------- */
.promises { background: var(--white); border-bottom: 1px solid var(--line); }
.promises-in { display: grid; }
.promises li { display: flex; align-items: center; gap: 14px; min-height: 60px; padding-block: 8px; font-weight: 700; border-top: 1px solid var(--line); }
.promises li:first-child { border-top: 0; }
.pi { flex: none; fill: none; stroke: var(--gold-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.sec-head { display: grid; gap: 12px; margin-bottom: 28px; }
.sec-head p { margin: 0; color: var(--slate); }
.sec-head--light p { color: #C5D2E6; }
.fine { font-size: var(--fs-small); color: var(--slate); line-height: 1.45; margin: 12px 0 0; }
.fine--light { color: #B7C6DC; }

/* ---------- Catálogo ---------- */
.catalog { background: var(--mist); padding-block: 48px 56px; --outside: var(--mist); }
.cat-grid { display: grid; gap: 32px; }

.picker { display: grid; gap: 20px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-photo); padding: 18px 16px 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips--set { grid-template-columns: repeat(2, 1fr); }
.chips[hidden] { display: none; }
.chips label { position: relative; display: block; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span {
  display: grid; place-items: center; text-align: center; min-height: 48px; padding: 6px 8px;
  border: 2px solid var(--navy-900); border-radius: var(--r-btn); background: var(--white);
  font-weight: 700; font-size: 1rem; line-height: 1.15;
  transition: transform 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease);
}
.chips input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); box-shadow: inset 0 0 0 2px var(--gold-400); }
.chips input:active + span { transform: scale(.97); }
.chips input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 3px; }
@media (hover: hover) { .chips input:not(:checked):hover + span { background: var(--mist); } }

.room-wrap { margin: 0; }
.room { width: 100%; height: auto; border-radius: 8px; overflow: hidden; }
.room * { transition: transform 380ms var(--ease), opacity 150ms linear; }
.r-floor { fill: #E4E9F2; }
.r-rug { fill: #D3DBE9; }
.r-wall { fill: none; stroke: var(--navy-900); stroke-width: 3; }
.r-window { fill: #fff; stroke: var(--navy-900); stroke-width: 1; }
.r-window-l { stroke: var(--navy-900); stroke-width: .8; fill: none; }
.r-door-gap { stroke: #E4E9F2; stroke-width: 4; }
.r-door { fill: none; stroke: var(--slate); stroke-width: 1; stroke-dasharray: 2 2; }
.r-ns { fill: var(--white); stroke: var(--navy-900); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.r-head { fill: var(--gold-700); }
.r-bed { fill: var(--white); stroke: var(--navy-900); stroke-width: 2; vector-effect: non-scaling-stroke; }
.r-blanket { fill: var(--navy-700); }
.r-fold { fill: var(--gold-400); }
.r-pillow { fill: var(--white); stroke: var(--navy-900); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.r-scale { stroke: var(--navy-900); stroke-width: 1; fill: none; }
.r-scale-t { font: 600 6px var(--font-body); fill: var(--navy-900); }
.room-cap { font-size: .8125rem; color: var(--slate); margin: 8px 0 0; }

.readout { display: grid; gap: 2px; }
.readout p { margin: 0; }
.ro-size { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ro-size strong { font-family: var(--font-head); font-weight: 800; font-stretch: 115%; font-size: 2rem; line-height: 1; }
.ro-size span { font-weight: 700; color: var(--navy-700); }
.ro-line { color: var(--slate); font-size: 1rem; }
.readout.is-changing .ro-size, .readout.is-changing .ro-line { animation: fadeval 150ms linear; }
@keyframes fadeval { from { opacity: 0; } to { opacity: 1; } }

.models { display: grid; gap: 28px; align-content: start; }
.model { display: flex; flex-direction: column; min-width: 0; }
.shot { position: relative; border-radius: var(--r-photo); overflow: hidden; background: var(--navy-900); z-index: 1; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 1 / 1; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 4px solid var(--gold-400); outline-offset: -4px; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; background: var(--navy-900); overflow: hidden; }
/* --bg lo pone app.js con el mismo archivo que el <img> ya cargó: no hay segunda descarga */
.slide::before { content: ""; position: absolute; inset: -28px; background: var(--bg, none) center / cover no-repeat; filter: blur(22px) brightness(.72); }
.slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.note { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; font-size: .8125rem; line-height: 1.3; font-weight: 700; }
.note--ai { background: rgba(11, 31, 58, .82); color: #fff; }
.note--real { background: var(--gold-400); color: var(--navy-900); }
.nav-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--navy-900); display: grid; place-items: center; }
.nav-btn svg { fill: none; stroke: currentColor; }
.nav-prev { left: 8px; } .nav-prev svg { transform: scaleX(-1); }
.nav-next { right: 8px; }
.nav-btn[disabled] { opacity: 0; pointer-events: none; }
.dots { position: absolute; right: 10px; bottom: 12px; display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(11,31,58,.5); }
.dots span.on { background: var(--gold-400); }

.model .tag { padding: 22px 18px 24px; display: grid; gap: 8px; flex: 1; align-content: start; border-radius: 0 0 var(--r-tag) var(--r-tag); border: 1px solid var(--line); border-top: 0; }
/* esquina cortada de la etiqueta: abajo a la derecha, donde no la tapa la foto */
.model .tag::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 24px; height: 24px; background: linear-gradient(315deg, var(--outside) 50%, #D5DEEC 50%); border-top-left-radius: 4px; }
.model h3 { margin: 0; }
.model .desc { margin: 0; color: var(--navy-900); }
.model .price { margin: 0; font-size: var(--fs-small); color: var(--slate); }
.model .btn { margin-top: 6px; width: 100%; }
.model .btn-gold, .model .btn-ghost { padding-inline: 16px; }

/* Guía */
.guide { margin-top: 48px; }
.guide h3 { margin-bottom: 16px; }
.size-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; }
.size-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.size-table, .size-table tbody, .size-table tr, .size-table td, .size-table th { display: block; }
.size-table tr { display: grid; grid-template-columns: 76px 1fr; gap: 2px 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.size-table tr:first-child { border-top: 0; }
.size-table tr > th { grid-row: 1 / span 3; font-family: var(--font-head); font-weight: 800; font-stretch: 115%; font-size: 1.25rem; text-align: left; align-self: center; }
.size-table td { font-size: 1rem; }
.size-table td:nth-child(2) { font-weight: 700; }
.size-table td:nth-child(4) { color: var(--slate); font-size: .9375rem; }
.size-table td:nth-child(4)::before { content: attr(data-lbl) " "; }
.size-table tr.is-on { background: #FFF6DC; box-shadow: inset 4px 0 0 var(--gold-400); }

/* ---------- Cómo funciona ---------- */
.how { padding-block: 56px; background: var(--white); }
.how h2 { margin-bottom: 32px; }
.steps { display: grid; gap: 0; position: relative; margin-bottom: 36px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 24px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 2px dashed var(--gold-700); opacity: .7; }
.steps li:last-child::before { display: none; }
.steps .n { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.steps h3 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.steps p { margin: 0; color: var(--slate); grid-column: 2; }

/* ---------- Videos ---------- */
.videos { background: var(--navy-900); color: var(--white); padding-block: 56px; }
.vrow { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
.vcard { flex: 0 0 68%; max-width: 300px; margin: 0; scroll-snap-align: start; }
.vframe { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-photo); overflow: hidden; background: var(--navy-700); }
.vframe video { width: 100%; height: 100%; object-fit: cover; }
.vtoggle { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--navy-900); display: grid; place-items: center; }
.vtoggle svg { fill: currentColor; }
.vcard figcaption { padding-top: 10px; font-weight: 700; }

/* ---------- Galería ---------- */
.gallery { padding-block: 56px; background: var(--white); }
.mosaic { columns: 2; column-gap: 10px; }
.g-item { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--mist); }
.g-item img { width: 100%; height: auto; transition: transform 200ms var(--ease); }
@media (hover: hover) { .g-item:hover img { transform: scale(1.03); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(11, 31, 58, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86dvh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy-900); font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--navy-900); display: grid; place-items: center; }
.lb-nav svg { fill: none; stroke: currentColor; }
.lb-prev { left: 8px; } .lb-prev svg { transform: scaleX(-1); }
.lb-next { right: 8px; }

/* ---------- Zona ---------- */
.zone { background: var(--navy-900); color: var(--white); padding-block: 56px; }
.zone-grid { display: grid; gap: 32px; }
.zone-copy { display: grid; gap: 16px; align-content: start; }
.zone-copy p { margin: 0; color: #DCE5F2; }
.zone-copy .btn { justify-self: start; }
.map { max-width: 420px; margin: 8px 0 0; background: var(--navy-700); border-radius: var(--r-photo); padding: 12px 12px 10px; }
.map svg { width: 100%; height: auto; }
.m-ring { fill: rgba(227,179,65,.07); stroke: var(--gold-400); stroke-width: 1; stroke-dasharray: 3 4; }
.m-line { stroke: #7F95B5; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.m-dot circle { fill: var(--gold-400); stroke: var(--navy-900); stroke-width: 2; }
.m-hub { fill: var(--gold-400); stroke: var(--white); stroke-width: 3; }
.m-text text { font: 700 13px var(--font-body); fill: var(--white); paint-order: stroke; stroke: var(--navy-700); stroke-width: 3px; }
.zone-photo { position: relative; margin: 0; border-radius: var(--r-photo); overflow: hidden; align-self: start; }
.zone-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; }

/* ---------- Facebook ---------- */
.social { background: var(--mist); padding-block: 40px; }
.social-in { display: grid; gap: 20px; align-items: center; justify-items: start; }
.social h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); margin-bottom: 8px; }
.social p { margin: 0; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { padding-block: 56px; background: var(--white); }
.faq-in { display: grid; gap: 24px; }
.faq-list { display: grid; border-top: 1px solid var(--line); max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; font-weight: 700; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--navy-900); border-bottom: 2.5px solid var(--navy-900); transform: rotate(45deg); transition: transform 180ms var(--ease); margin-right: 4px; }
details[open] summary::after { transform: rotate(-135deg); }
details p { margin: 0 0 16px; color: var(--slate); }
.faq-call { margin: 0; font-weight: 700; }
.faq-call a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.fine-inline { font-size: .875rem; color: var(--slate); }

/* ---------- CTA final ---------- */
.final { background: var(--navy-700); color: var(--white); padding-block: 56px; }
.final-in { display: grid; gap: 28px; }
.final-copy { display: grid; gap: 18px; justify-items: start; align-content: center; }
.final-photo { position: relative; margin: 0; border-radius: var(--r-photo); overflow: hidden; max-width: 360px; }
.final-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.final h2 { max-width: 20ch; }
.final .lead { color: #DCE5F2; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: var(--white); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-in { display: grid; gap: 28px; }
.f-brand img { width: 150px; height: auto; border-radius: 8px; margin-bottom: 12px; }
.f-brand p { margin: 0; color: #C5D2E6; }
.f-links { display: grid; gap: 4px; }
.f-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 700; }
.f-links svg { fill: var(--gold-400); flex: none; }
.f-links a:hover span { text-decoration: underline; }
.f-end { display: grid; gap: 12px; justify-items: start; }
.f-end p { margin: 0; color: #B7C6DC; font-size: var(--fs-small); }
.lang-switch--foot { border-color: var(--white); color: var(--white); }
.lang-switch--foot:hover { background: var(--white); color: var(--navy-900); }

/* ---------- Barra fija (móvil) y botón flotante (escritorio) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  min-height: 64px; background: var(--navy-900);
  box-shadow: 0 -6px 20px rgba(11, 31, 58, .28);
  transform: translateY(110%); transition: transform 220ms var(--ease); visibility: hidden;
}
.sticky-bar.is-on { transform: none; visibility: visible; }
.bar-chip { flex: none; display: grid; place-items: center; min-width: 76px; min-height: 48px; padding: 0 14px; border-radius: var(--r-btn); border: 2px solid var(--gold-400); color: var(--white); font-weight: 700; text-decoration: none; }
.btn-bar { flex: 1; min-height: 48px; padding-block: 8px; }
.wa-float { display: none; }

/* ---------- Tablet y escritorio ---------- */
@media (max-width: 899px) {
  html { scroll-padding-bottom: 88px; }
}

@media (min-width: 600px) {
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .model--beds { grid-column: 1 / -1; }
  .room-wrap { max-width: 420px; }
  .model--beds .track { aspect-ratio: 16 / 9; }
  .mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; columns: auto; }
  .g-item { margin: 0; aspect-ratio: 4 / 5; }
  .g-item img { width: 100%; height: 100%; object-fit: cover; }
  .promises-in { grid-template-columns: repeat(3, 1fr); }
  .promises li { border-top: 0; border-left: 1px solid var(--line); padding-inline: 20px; }
  .promises li:first-child { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps li { grid-template-columns: 1fr; padding-bottom: 0; row-gap: 12px; align-content: start; }
  .steps li::before { left: 56px; right: -20px; top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed var(--gold-700); }
  .steps .n { grid-row: auto; }
  .steps h3 { min-height: 0; align-self: start; }
  .steps p { grid-column: 1; }
}

@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: flex; gap: 4px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 700; text-decoration: none; border-radius: var(--r-btn); }
  .nav a:hover { background: var(--mist); }
  .brand-mark { width: 60px; }
  .brand-name { font-size: 1.1875rem; }

  .hero { padding-block: 56px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 56px; }
  .hero-media { order: 0; margin: 0; aspect-ratio: 5 / 4; border-radius: var(--r-photo); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
  .hero-media img { object-position: 50% 55%; }
  .hero-media .hero-tag { left: 20px; bottom: 20px; }
  .hero-copy { gap: 22px; }
  .hero-copy h1 { max-width: 17ch; }
  .lead { font-size: 1.25rem; }

  .catalog { padding-block: 72px 80px; }
  .cat-grid { grid-template-columns: 410px minmax(0, 1fr); gap: 40px; align-items: start; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .model--beds { flex-direction: row; }
  .model--beds .shot { flex: 0 0 50%; }
  .model--beds .track { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .model--beds .tag { padding: 28px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-tag) var(--r-tag) 0; align-content: center; }
  .model--beds .btn { width: auto; justify-self: start; }

  .size-table, .size-table tbody, .size-table tr, .size-table td, .size-table th { display: revert; }
  .size-table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .size-table tr { padding: 0; }
  .size-table th, .size-table td { padding: 14px 20px; text-align: left; vertical-align: middle; }
  .size-table thead th { font-family: var(--font-body); font-size: .9375rem; font-weight: 700; color: var(--slate); background: var(--mist); }
  .size-table tbody th { font-size: 1.25rem; width: 120px; grid-row: auto; }
  .size-table tr.is-on { box-shadow: none; }
  .size-table tr.is-on th:first-child { box-shadow: inset 4px 0 0 var(--gold-400); }
  .size-table td:nth-child(4)::before { content: none; }
  .size-table td:nth-child(4) { font-size: 1rem; }
  .size-table tbody tr { border-top: 1px solid var(--line); }

  .how, .videos, .gallery, .zone, .faq, .final { padding-block: 80px; }
  .how h2 { margin-bottom: 44px; }
  .vrow { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .vcard { max-width: none; }
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .g-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .zone-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .zone-photo img { aspect-ratio: 5 / 6; }
  .final-in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; }
  .final-photo { max-width: none; }
  .final-photo img { aspect-ratio: 4 / 5; }
  .social-in { grid-template-columns: 1fr auto; gap: 40px; justify-items: stretch; }
  .faq-in { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px 56px; align-items: start; }
  .faq-in h2 { grid-column: 1; grid-row: 1; }
  .faq-list { grid-column: 2; grid-row: 1 / span 2; }
  .faq-call { grid-column: 1; grid-row: 2; align-self: start; }
  .footer-in { grid-template-columns: 1.1fr 1fr auto; align-items: start; gap: 48px; }
  .f-end { justify-items: end; text-align: right; }

  .sticky-bar { display: none; }
  .wa-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
    min-height: 56px; padding: 0 22px; border-radius: var(--r-btn); background: var(--wa); color: var(--navy-900);
    font-weight: 700; text-decoration: none; box-shadow: 0 6px 22px rgba(11, 31, 58, .3);
    transform: translateY(140%); transition: transform 220ms var(--ease); visibility: hidden;
  }
  .wa-float svg { fill: var(--navy-900); }
  .wa-float.is-on { transform: none; visibility: visible; }
}

@media (min-width: 900px) and (min-height: 860px) {
  .picker { position: sticky; top: calc(var(--header-h) + 16px); }
}

@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: 440px minmax(0, 1fr); gap: 48px; }
}

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