/* Sitio de CA Development Bahamas (todas las páginas generadas con site/build.mjs). Primero teléfono. Aquí solo van estilos de componentes.
   Los tramos entre [marco] y [/marco] son la base y el marco del sitio (variables, tipografía, botones, encabezado, menú, fichas, secciones, pie, barra):
   site/build.mjs los copia a ca-base.css, que es lo que carga la página de Cool Breeze junto con su site2.css. Se editan aquí, nunca en ca-base.css. */
/* [marco] */
:root { --ink: #23292e; --mute: #5b6168; --teal: #13607e; --teal-d: #0e4c64; --navy: #0f2f4a; --navy-d: #0a2135; --gold: #d7a531; --gold-l: #f1d48a; --soft: #f6f4f1; --line: #e6e2dc; --gut: clamp(18px, 5.5vw, 80px); --r: 16px; --head: Montserrat, Inter, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html.lock { overflow: hidden; }
body { margin: 0; font: 400 17px/1.62 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.14; letter-spacing: -0.022em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.012em; }
p { margin: 0 0 16px; } p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gut))); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2 * var(--gut))); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; font: 600 12px/1.3 Inter, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--mute); max-width: 66ch; }
.note { font-size: 13.5px; color: #6c7177; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--teal); color: #fff; font: 600 16px/1.2 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.btn:hover { background: var(--teal-d); } .btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn.outline { background: transparent; color: var(--teal); border-color: var(--teal); } .btn.outline:hover { background: rgba(19, 96, 126, 0.08); }
.btn.gold { background: var(--gold); color: var(--navy-d); } .btn.gold:hover { background: #e3b440; }
.btn.light { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.65); color: #fff; } .btn.light:hover { background: rgba(255, 255, 255, 0.2); }
.btn.navy { background: var(--navy); } .btn.navy:hover { background: var(--navy-d); }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } .more::after { content: '→'; transition: transform 0.2s; } .more:hover::after { transform: translateX(4px); }

/* encabezado */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background 0.3s, border-color 0.3s; }
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 600 11.5px/1.2 Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; margin-right: auto; }
.brand svg { width: 34px; height: 34px; color: var(--teal); flex: none; }
.nav { display: none; }
.hdr .tel { display: none; }
.burger { width: 46px; height: 46px; border: 0; background: none; padding: 12px 10px; cursor: pointer; display: grid; gap: 5px; align-content: center; margin-right: -10px; }
.burger i { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); } .open .burger i:nth-child(2) { opacity: 0; } .open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hdr .btn { display: none; }
/* panel de teléfono */
.panel { position: fixed; inset: 68px 0 0 0; z-index: 29; background: #fff; padding: 12px var(--gut) 32px; overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s, visibility 0s 0.22s; }
.open .panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.panel a.l { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 19px/1.25 var(--head); letter-spacing: -0.01em; }
.panel a.l.cur { color: var(--teal); }
.panel .grp { margin: 22px 0 2px; font: 600 11.5px Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.panel .acts { margin-top: 24px; } .panel .acts .btn { flex: 1 1 100%; }
@media (min-width: 1100px) {
    .burger, .panel { display: none; }
    .nav { display: flex; align-items: center; gap: 4px; }
    .nav a, .nav button { padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 15px/1.2 Inter, sans-serif; cursor: pointer; white-space: nowrap; }
    .nav a:hover, .nav button:hover, .nav .dd:focus-within > button { background: var(--soft); }
    .nav a.cur, .nav .dd.cur > button { color: var(--teal); font-weight: 600; }
    .nav .dd { position: relative; } .nav .dd > button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
    .nav .dd div { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 47, 74, 0.14); display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s; }
    .nav .dd:hover div, .nav .dd:focus-within div { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .hdr .tel { display: block; color: var(--navy); font: 600 15px Inter, sans-serif; text-decoration: none; white-space: nowrap; }
    .hdr .btn { display: inline-flex; }
}
/* sobre la portada: transparente hasta que se baja */
.hdr.over { position: fixed; left: 0; right: 0; }
.hdr.over:not(.stuck) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr.over:not(.stuck) .brand, .hdr.over:not(.stuck) .brand svg, .hdr.over:not(.stuck) .tel, .hdr.over:not(.stuck) .nav a, .hdr.over:not(.stuck) .nav > .dd > button { color: #fff; }
.hdr.over:not(.stuck) .nav a:hover, .hdr.over:not(.stuck) .nav > .dd > button:hover { background: rgba(255, 255, 255, 0.14); }
.hdr.over:not(.stuck) .nav .dd div a { color: var(--ink); } .hdr.over:not(.stuck) .nav .dd div a:hover { background: var(--soft); }
.hdr.over:not(.stuck) .burger i { background: #fff; }
.open .hdr.over { background: #fff; } .open .hdr.over .brand, .open .hdr.over .brand svg { color: var(--navy); } .open .hdr.over .burger i { background: var(--navy); }
/* [/marco] */

/* portadas */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(72vh, 620px); color: #fff; background: var(--navy); overflow: hidden; }
.hero.tall { min-height: 100vh; min-height: 100svh; }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 28, 46, 0.55), rgba(8, 28, 46, 0) 26%), linear-gradient(to top, rgba(8, 28, 46, 0.92) 4%, rgba(8, 28, 46, 0.62) 38%, rgba(8, 28, 46, 0.05) 74%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 clamp(36px, 6vw, 72px); }
.hero .eyebrow { color: var(--gold-l); }
.hero h1 { max-width: 17ch; }
.hero p.lead { color: rgba(255, 255, 255, 0.9); margin-top: 16px; max-width: 58ch; }
/* [marco] */
.crumb { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.04em; } .crumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(8, 28, 46, 0.35); font-size: 14px; }
.chips.dark li { border-color: var(--line); background: var(--soft); color: var(--ink); }
/* [/marco] */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--navy-d); font: 700 11.5px Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--navy-d); }

/* secciones */
/* [marco] */
.sec { padding: clamp(56px, 7.5vw, 104px) 0; }
.sec.soft { background: var(--soft); }
.sec.navy { background: var(--navy); color: #fff; } .sec.navy .eyebrow { color: var(--gold-l); } .sec.navy .lead, .sec.navy p { color: rgba(255, 255, 255, 0.84); } .sec.navy a:not(.btn) { color: var(--gold-l); }
.sec.tight { padding-top: 0; }
.head { margin-bottom: clamp(28px, 4vw, 48px); } .head.c { text-align: center; } .head.c .lead { margin-inline: auto; } .head h2 + .lead { margin-top: 14px; }
/* [/marco] */
.prose p, .prose .ticks li { color: #3d444b; } .prose h3 { margin: 26px 0 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px; border: solid var(--teal); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.sec.navy .ticks li::before { border-color: var(--gold-l); }
.ticks { display: grid; gap: 10px; margin: 18px 0; }
.legal { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(215, 165, 49, 0.09); font-size: 14px; color: #4f4a3c; border-radius: 0 10px 10px 0; }
.sec.navy .legal { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.8); }

/* imagen + texto */
.split { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--soft); box-shadow: 0 20px 50px rgba(15, 47, 74, 0.13); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.media.plan { background: #fff; border: 1px solid var(--line); box-shadow: none; } .media.plan img { object-fit: contain; aspect-ratio: auto; }
.media.nat img { aspect-ratio: auto; }
.media .badge { position: absolute; left: 14px; top: 14px; z-index: 1; }
.media a.zoom { display: block; height: 100%; }
.duo { display: grid; gap: 12px; } .duo .media { box-shadow: none; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } .split.wide { grid-template-columns: 1.25fr 1fr; } .split.top { align-items: start; } }

/* tarjetas */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card .pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); position: relative; } .card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
a.card { text-decoration: none; color: inherit; transition: box-shadow 0.25s, transform 0.25s; } a.card:hover { box-shadow: 0 18px 40px rgba(15, 47, 74, 0.14); transform: translateY(-3px); } a.card:hover .pic img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card p { color: var(--mute); font-size: 15.5px; margin: 0; }
.card .spec { font: 600 12px Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.card .more { margin-top: auto; padding-top: 8px; }
.card .pic .badge { position: absolute; left: 12px; top: 12px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(19, 96, 126, 0.1); color: var(--teal); display: grid; place-items: center; margin-bottom: 6px; } .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sec.navy .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); } .sec.navy .card p { color: rgba(255, 255, 255, 0.78); } .sec.navy .ico { background: rgba(241, 212, 138, 0.14); color: var(--gold-l); }

/* galería */
.gal { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gal a { display: block; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 2; position: relative; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .gal a:hover img { transform: scale(1.05); }
.gal a.big { grid-column: span 2; }
@media (max-width: 759px) { .gal:has(.big) a:last-child:nth-child(even), .gal:not(:has(.big)) a:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } .gal.four { grid-template-columns: repeat(4, 1fr); } .gal a.big { grid-row: span 2; aspect-ratio: auto; } }
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(6, 18, 30, 0.95); display: grid; place-items: center; padding: 56px 12px 54px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.lb.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; } .lb button:hover { background: rgba(255, 255, 255, 0.25); }
.lb .x { top: 8px; right: 10px; } .lb .p { left: 10px; bottom: 6px; } .lb .n { right: 10px; bottom: 6px; }
.lb figcaption { position: absolute; left: 66px; right: 66px; bottom: 16px; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
@media (min-width: 900px) { .lb { padding: 40px 80px; } .lb .p, .lb .n { top: 50%; bottom: auto; transform: translateY(-50%); } .lb figcaption { bottom: 10px; } }

/* pasos y preguntas */
.steps { display: grid; gap: 14px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 78px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-l); display: grid; place-items: center; font: 600 18px var(--head); }
.steps p { color: var(--mute); margin: 6px 0 0; font-size: 15.5px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); } .faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.3 var(--head); } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 26px Inter, sans-serif; color: var(--teal); transition: transform 0.2s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--mute); }

/* franja de llamada */
.band { position: relative; color: #fff; background: var(--navy-d); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.band .wrap { position: relative; padding: clamp(56px, 8vw, 104px) 0; text-align: center; } .band h2 { max-width: 22ch; margin-inline: auto; } .band p { color: rgba(255, 255, 255, 0.86); max-width: 60ch; margin: 14px auto 0; } .band .acts { justify-content: center; }

/* formulario dentro de la página */
.leadbox { min-width: 0; } .sec.navy .leadbox .ld p, .sec.navy .leadbox .ld-ctx { color: #5b6168; } .sec.navy .leadbox a { color: inherit; }
/* contacto */
.info { display: grid; gap: 16px; } .info li { display: flex; gap: 14px; align-items: flex-start; } .info .ico { margin: 0; flex: none; } .info b { display: block; font: 600 12px Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; } .info a { font-weight: 600; text-decoration: none; }

/* [marco] */
/* pie */
.foot { background: var(--navy-d); color: rgba(255, 255, 255, 0.78); padding: 56px 0 28px; font-size: 15px; }
.foot .cols { display: grid; gap: 34px; } .foot h4 { font: 600 12px Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 14px; }
.foot a { color: rgba(255, 255, 255, 0.86); text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; } .foot li { margin-bottom: 9px; }
.foot .brand { color: #fff; margin-bottom: 14px; } .foot .brand svg { color: var(--gold-l); }
.foot .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.6); display: grid; gap: 8px; }
.foot .adm { margin-left: 14px; color: inherit; opacity: 0.75; text-decoration: none; } .foot .adm:hover { opacity: 1; color: #fff; text-decoration: underline; }   /* acceso del dueño al panel: enlace discreto en la línea legal */
@media (min-width: 860px) { .foot .cols { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

/* lanzador del chat (lead.js) y barra fija en teléfono. El lanzador sale en computadora y tableta; en teléfono el chat se abre desde la barra
   (botón «Chat»), y solo en las páginas sin barra queda el lanzador flotando (.fab.solo). */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24); background: var(--navy); color: #fff; font: 600 15.5px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px rgba(10, 33, 53, 0.34); transition: transform 0.2s, background 0.2s, opacity 0.2s; }
.fab.off, html.js [data-page="home"] .fab:not(.show) { opacity: 0; pointer-events: none; }   /* .off: sobre el formulario de la página (teléfono); portada: aparece al bajar, para no tapar las pestañas de las casas */
.fab:hover { background: var(--teal-d); transform: translateY(-2px); } .fab svg { width: 24px; height: 24px; fill: var(--gold-l); flex: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.3s; }
.mbar.on { transform: none; } .mbar .btn { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; font-size: 15px; text-align: center; } .mbar .btn[data-chat] { flex: 0 0 auto; padding: 10px 16px; } .mbar .btn[data-chat] svg { fill: var(--gold-l); }
@media (max-width: 759px) { .fab:not(.solo) { display: none; } .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; padding: 0; justify-content: center; } .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } 
    /* lugar para la barra (o el lanzador) al final de la página: va dentro del pie, no como franja blanca debajo de él */
    .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 760px) { .mbar { display: none; } }

/* aparición suave */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; } .js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .rv { opacity: 1; transform: none; transition: none; } * { transition-duration: 0.01ms !important; } }
/* [/marco] */

/* ===================== Dinamismo (24-nov-2026) ===================== */
/* carruseles en teléfono: las tarjetas y galerías marcadas «rail» se deslizan de lado, con la siguiente asomándose */
@media (max-width: 759px) {
    .cards.rail, .gal.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 6px; scroll-padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .cards.rail::-webkit-scrollbar, .gal.rail::-webkit-scrollbar { display: none; }
    .cards.rail > * { flex: 0 0 80%; scroll-snap-align: start; }
    .gal.rail > a, .gal.rail > a.big { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 3 / 2; }
    .js .cards.rail > .rv { opacity: 1; transform: none; }
}
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #cfcac2; transition: background 0.2s, width 0.2s; } .dots i.on { background: var(--teal); width: 18px; }
.sec.navy .dots i { background: rgba(255, 255, 255, 0.3); } .sec.navy .dots i.on { background: var(--gold-l); }
@media (min-width: 760px) { .dots { display: none; } }

/* portada con video y fotos con acercamiento lento */
.hero.vid picture img, .hero > video.hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > video.hv { opacity: 0; transition: opacity 0.9s; } .hero > video.hv.on { opacity: 1; }
.hero:not(.vid) > img { animation: kb 22s ease-out both; } @keyframes kb { from { transform: scale(1.09); } to { transform: none; } }
.band > img { animation: drift 34s ease-in-out infinite alternate; } @keyframes drift { from { transform: scale(1); } to { transform: scale(1.09); } }

/* línea de tiempo (guía de compra): la línea se llena al bajar */
.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 62px; counter-reset: t; max-width: 760px; }
.tl::before { content: ''; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--line); }
.tl-f { position: absolute; left: 20px; top: 6px; width: 3px; border-radius: 3px; background: var(--gold); height: var(--f, 0px); }
.tl li { counter-increment: t; position: relative; padding: 0 0 36px; transition: opacity 0.35s; } .tl li:last-child { padding-bottom: 0; }
.tl li::before { content: counter(t); position: absolute; left: -62px; top: -6px; width: 43px; height: 43px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--mute); display: grid; place-items: center; font: 600 17px var(--head); transition: background 0.35s, color 0.35s, border-color 0.35s; }
.tl p { color: var(--mute); margin: 6px 0 0; }
.js .tl li { opacity: 0.5; } .js .tl li.on { opacity: 1; } .tl li.on::before, html:not(.js) .tl li::before { background: var(--navy); border-color: var(--navy); color: var(--gold-l); }

/* catálogo: barra de filtros que acompaña al bajar */
.fbar { position: sticky; top: 69px; z-index: 20; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.fbar .wrap { display: flex; align-items: center; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; } .fbar .wrap::-webkit-scrollbar { display: none; }
.fbar button, .ichips button { flex: none; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.fbar button.on, .ichips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fbar .sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fbar .cnt { margin-left: auto; flex: none; padding-left: 8px; font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.dzs { display: grid; gap: clamp(56px, 8vw, 112px); } .dz { scroll-margin-top: 140px; min-width: 0; } .dz[hidden], .cards > [hidden] { display: none; }
.nores { padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--mute); }

/* inversión: mapa de islas */
.isl { display: grid; gap: 22px; } .isl > * { min-width: 0; }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, #11688a, #0b3d57); aspect-ratio: 720 / 560; box-shadow: 0 20px 50px rgba(15, 47, 74, 0.2); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-14px, -50%); display: flex; align-items: center; gap: 6px; border: 0; background: none; color: #fff; font: 600 12.5px/1 Inter, sans-serif; cursor: pointer; padding: 7px; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.pin.l { flex-direction: row-reverse; transform: translate(calc(-100% + 14px), -50%); }
.pin::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); animation: ping 2.6s infinite; }
.pin.on { color: var(--gold-l); } .pin.on::before { background: var(--gold); border-color: #fff; animation: none; transform: scale(1.25); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(241, 212, 138, 0.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(241, 212, 138, 0); } }
.map .cap { position: absolute; left: 12px; bottom: 9px; font-size: 11px; color: rgba(255, 255, 255, 0.62); }
.map .ctx { position: absolute; transform: translate(-50%, -50%); font: 500 10.5px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); pointer-events: none; }
.ichips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; } .ichips::-webkit-scrollbar { display: none; }
.ipan article + article { margin-top: 44px; } .ipan .media { margin-bottom: 18px; } .ipan h3 { font-size: 23px; }
.js .ipan article { display: none; margin-top: 0; } .js .ipan article.on { display: block; animation: up 0.45s both; } @keyframes up { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 900px) { .isl { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .isl .mapcol { position: sticky; top: 96px; } .pin { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .hero:not(.vid) > img, .band > img, .pin::before, .js .ipan article.on { animation: none; } }

/* ===================== Portada (3-dic-2026) ===================== */
/* portada: las fachadas de las casas con recorrido se turnan (ca.js, [data-hx]); cada pestaña lleva a su casa */
.hx-media { position: absolute; inset: 0; }
.hx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; } .hx-media img.on { opacity: 1; }
.hero.hx h1 { max-width: 16ch; } .hero.hx p.lead { max-width: 54ch; }
.hx-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(30px, 4.5vw, 56px); }
.hx-tabs a { position: relative; display: grid; align-content: start; gap: 4px; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, 0.3); color: #fff; text-decoration: none; opacity: 0.74; transition: opacity 0.3s; }
.hx-tabs a::before { content: ''; position: absolute; left: 0; top: -2px; width: 0; height: 2px; background: var(--gold); }
.hx-tabs a.on, .hx-tabs a:hover { opacity: 1; } .hx-tabs a.on::before { width: 100%; }
.hx.play .hx-tabs a.on::before { animation: hxp 6.5s linear both; } @keyframes hxp { from { width: 0; } to { width: 100%; } }
.hx-tabs b { font: 600 clamp(15.5px, 1.5vw, 19px)/1.2 var(--head); letter-spacing: -0.01em; } .hx-tabs span { font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.82); }
.hx-tabs em { margin-top: 5px; font: 600 11.5px/1.3 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-l); } .hx-tabs em::after { content: ' →'; }
@media (max-width: 759px) {
    /* teléfono: la foto arriba, entera, y el texto debajo sobre azul (a pantalla completa la fachada quedaba recortada a un tercio) */
    .hero.hx { display: block; min-height: 0; }
    .hx-media { position: relative; inset: auto; height: 52vh; height: 52svh; min-height: 300px; max-height: 460px; }
    .hero.hx::after { inset: 0 0 auto; height: 52vh; height: 52svh; min-height: 300px; max-height: 460px; background: linear-gradient(to bottom, rgba(8, 28, 46, 0.6), rgba(8, 28, 46, 0) 30%, rgba(15, 47, 74, 0) 62%, var(--navy) 100%); }
    .hero.hx .wrap { padding: 0 0 34px; margin-top: -34px; }
    .hx-tabs { grid-template-columns: 1fr; margin-top: 28px; }
    .hx-tabs a { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; opacity: 1; border-top-width: 1px; } .hx-tabs a::before { top: -1px; height: 1px; }
    .hx-tabs span { display: none; } .hx-tabs em { margin: 0; }
}
/* las casas con recorrido: fachada grande y dos interiores */
.hfs { display: grid; gap: clamp(52px, 7vw, 96px); }
.hf-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hf-g a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; } .hf-g a.hf-a { grid-column: span 2; }
.hf-g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; } .hf-g a:hover img { transform: scale(1.03); }
.hf-g .badge { position: absolute; left: 14px; top: 14px; z-index: 1; }
.hf-t { display: grid; gap: 12px; margin-top: 20px; } .hf-t > * { min-width: 0; }
.hf-t h3 { font-size: clamp(24px, 2.5vw, 31px); letter-spacing: -0.02em; } .hf-t .spec { margin: 8px 0 0; font: 600 12px/1.4 Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.hf-t > p { margin: 0; color: var(--mute); } .hf-t .acts { margin-top: 6px; }
@media (min-width: 860px) {
    .hf-g { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; } .hf-g a { aspect-ratio: auto; min-height: 0; } .hf-g a.hf-a { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 16 / 9; }
    .hf:nth-child(even) .hf-g { grid-template-columns: 1fr 2fr; } .hf:nth-child(even) .hf-a { grid-column: 2; }
    .hf-t { grid-template-columns: 1fr 1fr; gap: 10px 40px; margin-top: 24px; align-items: start; } .hf-t .acts { grid-column: 1 / -1; }
}
@media (min-width: 1180px) { .hf-t { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) auto; align-items: center; } .hf-t .acts { grid-column: auto; margin: 0; flex-wrap: nowrap; } }
/* catálogo corto: cuatro tarjetas; .top recorta por arriba un folleto que trae la fachada en su mitad superior */
.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); } .cards.four .body { padding: 18px 20px 22px; }
.card .pic .top { display: block; height: 100%; overflow: hidden; } .card .pic .top img { height: 215%; object-position: 50% 0; }
/* por qué acero: tres puntos */
.pts { margin-top: 22px; } .pts li { padding: 18px 0; border-top: 1px solid var(--line); } .pts h3 { font-size: 19px; } .pts p { margin: 6px 0 0; color: var(--mute); font-size: 16px; } .pts + .note { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
/* cómo funciona: pasos numerados */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 30px; }
.flow li { counter-increment: f; } .flow li::before { content: counter(f, decimal-leading-zero); display: block; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); font: 600 15px/1 var(--head); letter-spacing: 0.08em; color: var(--teal); }
.flow p { margin: 8px 0 0; color: var(--mute); font-size: 15.5px; }
@media (min-width: 700px) { .flow { grid-template-columns: 1fr 1fr; gap: 36px 32px; } } @media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, 1fr); } }
/* otras líneas: renglones con miniatura */
.also { display: grid; border-bottom: 1px solid var(--line); }
.also-i { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.also-i img { flex: none; width: 112px; height: 76px; object-fit: cover; border-radius: 10px; } .also-i span { flex: 1; min-width: 0; display: grid; gap: 4px; color: var(--mute); font-size: 15.5px; line-height: 1.45; }
.also-i b { font: 600 18px/1.25 var(--head); letter-spacing: -0.01em; color: var(--ink); } .also-i b, .also-i span { overflow-wrap: anywhere; } @media (max-width: 479px) { .also-i { gap: 14px; } .also-i img { width: 88px; height: 66px; } .also-i b { font-size: 16.5px; } } .also-i::after { content: '→'; flex: none; color: var(--teal); font-weight: 600; transition: transform 0.2s; } .also-i:hover::after { transform: translateX(4px); } .also-i:hover b { color: var(--teal); }
@media (min-width: 860px) { .also { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
/* cierre: contacto y entrada al chat (los botones llevan data-chat="<respuesta>") */
.talk .wrap { display: grid; gap: 40px; } .talk .wrap > * { min-width: 0; } .talk h2 + .lead { margin-top: 16px; }
.talk-i { display: grid; gap: 16px; margin-top: 30px; } .talk-i b { display: block; margin-bottom: 3px; font: 600 11.5px Inter, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.talk-i a, .talk-i span { font-weight: 600; font-size: 17.5px; text-decoration: none; overflow-wrap: anywhere; } .talk-i span { color: #fff; } .talk-i a:hover { text-decoration: underline; }
.talk-c { border-radius: 20px; overflow: hidden; background: var(--soft); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.sec.navy .talk-h { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 20px; background: var(--navy-d); color: #fff; font: 600 15.5px var(--head); } .talk-h svg { width: 22px; height: 22px; fill: var(--gold-l); }
.sec.navy .talk-q { width: fit-content; margin: 22px 18px 16px; padding: 10px 14px; border-radius: 17px 17px 17px 5px; background: #fff; color: var(--ink); font-size: 15.5px; box-shadow: 0 1px 2px rgba(15, 47, 74, 0.1); }
.talk-o { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 0 18px; }
.sec.navy .talk-o a { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 17px; border: 1.5px solid var(--teal); border-radius: 22px; background: #fff; color: var(--teal-d); font: 600 15px/1.25 Inter, sans-serif; text-decoration: none; transition: background 0.15s, color 0.15s; } .sec.navy .talk-o a:hover { background: var(--teal); color: #fff; }
.sec.navy .talk-f { margin: 18px 18px 20px; font-size: 13px; color: #6c7177; text-align: right; }
@media (min-width: 900px) { .talk .wrap { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .hx.play .hx-tabs a.on::before { animation: none; } }

/* ===================== Idiomas (24-nov-2026): selector EN · ES · DE ===================== */
/* [marco] */
.lang { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); flex: none; }
.lang a { min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; color: var(--mute); text-decoration: none; font: 600 12px/1 Inter, sans-serif; letter-spacing: 0.06em; }
.lang a:hover { color: var(--ink); }
html[lang="en"] .lang a[hreflang="en"], html[lang="es"] .lang a[hreflang="es"], html[lang="de"] .lang a[hreflang="de"] { background: var(--navy); color: #fff; }
.panel .lang { display: inline-flex; margin: 6px 0 10px; } .panel .lang a { min-width: 46px; height: 36px; font-size: 13.5px; }
@media (min-width: 1100px) { .hdr .lang { display: flex; } }
.hdr.over:not(.stuck) .lang { border-color: rgba(255, 255, 255, 0.4); background: rgba(8, 28, 46, 0.3); } .hdr.over:not(.stuck) .lang a { color: rgba(255, 255, 255, 0.85); }
.hdr.over:not(.stuck) .lang a:hover { color: #fff; }
html[lang="en"] .hdr.over:not(.stuck) .lang a[hreflang="en"], html[lang="es"] .hdr.over:not(.stuck) .lang a[hreflang="es"], html[lang="de"] .hdr.over:not(.stuck) .lang a[hreflang="de"] { background: #fff; color: var(--navy); }
/* Con el selector de idioma el encabezado completo ya no cabe en los 1240 px de .wrap. Medido por idioma (24-nov-2026):
   va más apretado; el teléfono solo sale donde cabe (inglés, desde 1400 px; sigue en el panel, el pie y los cierres);
   y el menú de escritorio empieza donde cabe en cada idioma (inglés 1240, alemán 1270, español 1330). Antes de eso, hamburguesa.
   Si cambia un texto del menú o se agrega un idioma, volver a medir (el botón de cotización no debe salirse ni partirse en dos líneas). */
.hdr .btn, .hdr .tel { white-space: nowrap; flex: none; }
@media (min-width: 1100px) { .hdr .wrap { gap: 16px; } .nav { gap: 2px; } .nav a, .nav button { padding: 10px 8px; } .hdr .lang a { min-width: 28px; padding: 0 6px; } .hdr .tel { display: none; } }
@media (min-width: 1400px) { html[lang="en"] .hdr .tel { display: block; } }
@media (min-width: 1100px) and (max-width: 1239px) { .hdr .nav, .hdr .btn, .hdr .lang { display: none; } .burger { display: grid; } .panel { display: block; } }
@media (min-width: 1240px) and (max-width: 1269px) { html[lang="de"] .hdr .nav, html[lang="de"] .hdr .btn, html[lang="de"] .hdr .lang { display: none; } html[lang="de"] .burger { display: grid; } html[lang="de"] .panel { display: block; } html[lang="es"] .hdr .nav, html[lang="es"] .hdr .btn, html[lang="es"] .hdr .lang { display: none; } html[lang="es"] .burger { display: grid; } html[lang="es"] .panel { display: block; } }
@media (min-width: 1270px) and (max-width: 1329px) { html[lang="es"] .hdr .nav, html[lang="es"] .hdr .btn, html[lang="es"] .hdr .lang { display: none; } html[lang="es"] .burger { display: grid; } html[lang="es"] .panel { display: block; } }
/* [/marco] */
