/* =========================================================
   Inmobiliarte Desarrollos — prototipo de diseño 2026
   Colores de la marca (INMOBILIARTE_LOGO.pdf): marino #04304B + cian #289ECD
   Sin dependencias (no Bootstrap / jQuery), igual que Platinum614
   ========================================================= */

:root {
    --navy: #04304b;
    --navy-2: #0a3d5e;
    --navy-3: #0f4a70;
    --sky: #289ecd;
    --sky-btn: #5cb8df;
    --sky-deep: #1a7aa3;
    --sky-soft: #d6ecf6;
    --paper: #f4f2ee;
    --paper-2: #e9e5dd;
    --white: #ffffff;
    --text: #13212c;
    --muted: #5d6872;
    --muted-dark: #9fb3c3;
    --line: rgba(5, 42, 70, .14);
    --line-dark: rgba(255, 255, 255, .16);

    --ok: #2f9e6a;
    --hold: #d99a2b;
    --taken: #a9b3bb;

    --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 48px);
    --radius: 2px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--sky); color: var(--white); padding: 8px 14px; }
.skip-link:focus { left: 8px; }
.demo-note {
    font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
    background: #fff4d6; color: #6b5310; text-align: center; padding: 6px var(--gutter);
}

/* ---------- Tipografía ---------- */
.label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--sky-deep); margin-bottom: 20px;
}
.label::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.on-dark .label, .label.light { color: var(--sky); }

.display {
    font-weight: 700; font-stretch: 112%;
    font-size: clamp(40px, 6vw, 88px);
    line-height: .98; letter-spacing: -.025em; text-transform: uppercase;
}
.title {
    font-weight: 600; font-stretch: 108%;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.04; letter-spacing: -.02em;
}
.title .accent, .display .accent { color: var(--sky); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.on-dark .lead { color: var(--muted-dark); }
.mono { font-family: var(--mono); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 15px 26px; font-size: 14px; font-weight: 600; letter-spacing: .04em;
    border: 1px solid currentColor; border-radius: var(--radius);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
/* Cian más claro con texto marino: cumple contraste AA (el cian de la marca con texto blanco no) */
.btn-sky { background: var(--sky-btn); border-color: var(--sky-btn); color: var(--navy); }
.btn-sky:hover { background: var(--sky); border-color: var(--sky); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-line { color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--white); border-color: var(--line-dark); }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(244, 242, 238, .92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--navy); }
.brand b { font-weight: 700; font-stretch: 118%; font-size: 23px; letter-spacing: .01em; }
.brand b span { color: var(--sky); }
.brand small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .5em; margin-top: 5px; color: var(--sky-deep); }
.on-dark .brand, .brand.light { color: var(--white); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-group > button {
    padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--navy);
    border-radius: var(--radius); transition: background .2s;
}
.main-nav > a:hover, .nav-group > button:hover, .main-nav > a.active { background: rgba(4,48,75,.06); }
.main-nav > a.active { box-shadow: inset 0 -2px 0 var(--sky); }
.nav-split { display: flex; gap: 2px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.nav-split a { padding: 7px 14px; font-size: 13px; font-weight: 600; }
.nav-split a:first-child { background: var(--navy); color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.menu-toggle span { height: 2px; background: var(--navy); transition: transform .3s; }

/* ---------- Hero de doble puerta ---------- */
.hero-doors { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, calc(100svh - var(--header-h) - 28px), 820px); }
.door { position: relative; overflow: hidden; color: var(--white); display: flex; align-items: flex-end; isolation: isolate; transition: flex .6s var(--ease); }
.door > img, .door > .door-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,48,75,.15) 0%, rgba(4,48,75,.35) 45%, rgba(4,48,75,.92) 100%); }
.door:hover > img, .door:hover > .door-bg { transform: scale(1.04); }
.door-content { padding: clamp(28px, 5vw, 64px); width: 100%; }
.door-index { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; opacity: .8; margin-bottom: 18px; display: block; }
.door h1, .door h2 { font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 70px); line-height: .96; letter-spacing: -.025em; }
.door p { margin: 18px 0 28px; max-width: 440px; color: rgba(255,255,255,.82); font-size: 18px; }
.door-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.door-tags span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-dark); padding: 5px 10px; }
.door-build { background: var(--navy); }
.door-build::after { background: linear-gradient(180deg, rgba(4,48,75,0) 0%, rgba(4,48,75,.6) 60%, rgba(4,48,75,.95) 100%); }

/* placeholder estilo plano */
.blueprint {
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(40,158,205,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40,158,205,.18) 1px, transparent 1px),
        linear-gradient(rgba(40,158,205,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40,158,205,.08) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.ph { position: relative; }
.ph-tag {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--white);
    background: rgba(4,48,75,.7); border: 1px dashed rgba(255,255,255,.4); padding: 4px 8px;
}

/* ---------- Buscador ---------- */
.search-dock { position: relative; z-index: 5; margin-top: -48px; }
.search {
    display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; align-items: stretch;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(4,48,75,.35);
}
.search-op { display: flex; padding: 10px; gap: 4px; border-right: 1px solid var(--line); }
.search-op label { position: relative; }
.search-op input { position: absolute; opacity: 0; }
.search-op span { display: flex; align-items: center; height: 100%; padding: 0 18px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.search-op input:checked + span { background: var(--navy); color: var(--white); }
.search-op input:focus-visible + span { outline: 2px solid var(--sky); }
.field { display: flex; flex-direction: column; justify-content: center; padding: 14px 22px; border-right: 1px solid var(--line); min-width: 0; }
.field span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field select { border: 0; background: none; padding: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--navy); appearance: none; cursor: pointer; width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23052a46' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; }
.search .btn { border-radius: 0; padding: 0 34px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.on-white { background: var(--white); }
.on-paper-2 { background: var(--paper-2); }
.on-dark { background: var(--navy); color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > div { max-width: 720px; }
.section-head .lead { max-width: 440px; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat b { display: block; font-weight: 700; font-stretch: 112%; font-size: clamp(38px, 4.4vw, 62px); line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.stat b sup { font-size: .4em; color: var(--sky); margin-left: 4px; vertical-align: top; position: relative; top: .4em; }
.stat > span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }
.stat .src { font-family: var(--mono); font-size: 10.5px; color: #b07d14; margin-top: 6px; }

/* ---------- Desarrollos ---------- */
.devs { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.dev { position: relative; display: block; overflow: hidden; background: var(--navy); color: var(--white); min-height: 300px; isolation: isolate; }
.dev:first-child { grid-row: span 2; min-height: 620px; }
.dev > img, .dev > .dev-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.dev:hover > img { transform: scale(1.04); }
.dev::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4,48,75,.92)); }
.dev-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.dev-status { position: absolute; top: 20px; left: 20px; display: flex; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; background: var(--white); color: var(--navy); }
.chip.sky { background: var(--sky); color: var(--white); }
.chip.dark { background: var(--navy); color: var(--white); }
.chip.outline { background: transparent; color: var(--white); border: 1px solid var(--line-dark); }
.dev h3 { font-weight: 700; font-stretch: 110%; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.01em; }
.dev p { color: rgba(255,255,255,.78); margin-top: 6px; font-size: 15px; }
.dev-specs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.dev-specs div { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line-dark); }
.dev-specs div:last-child { border: 0; }
.dev-specs b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.dev-specs span { font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------- Tarjetas de unidad ---------- */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.unit { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.unit:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(4,48,75,.4); }
.unit-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-media .chip { position: absolute; left: 14px; top: 14px; }
.unit-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.unit-type { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-deep); }
.unit h3 { font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.unit-loc { font-size: 14px; color: var(--muted); }
.unit-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.unit-specs div { padding: 12px 0 0; }
.unit-specs b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--navy); }
.unit-specs span { font-size: 12px; color: var(--muted); }
.unit-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 16px 22px; border-top: 1px solid var(--line); }
.unit-price b { font-size: 19px; color: var(--navy); }
.unit-price span { font-size: 12.5px; color: var(--muted); }
.unit-foot .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); }
.unit-foot .icon-btn svg { width: 16px; height: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 9px 16px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; background: var(--white); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Constructora ---------- */
.build-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services { border-top: 1px solid var(--line-dark); }
.service { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.service .num { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.service h3 { font-size: 22px; font-weight: 600; }
.service p { color: var(--muted-dark); font-size: 15.5px; margin-top: 6px; max-width: 520px; }
.service .tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted-dark); white-space: nowrap; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 96px); counter-reset: step; }
.step { position: relative; padding: 28px 24px 0 0; border-top: 2px solid var(--line-dark); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -13px; left: 0; background: var(--navy); padding-right: 10px; font-family: var(--mono); font-size: 13px; color: var(--sky); }
.step h4 { font-size: 18px; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--muted-dark); margin-top: 6px; }

/* ---------- Banda de terrenos / inversión ---------- */
.land { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); }
.land > div { padding: clamp(32px, 4.5vw, 64px); }
.land > div + div { border-left: 1px solid var(--line); }
.land h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; font-stretch: 106%; line-height: 1.1; color: var(--navy); margin-bottom: 14px; }
.land ul { margin: 22px 0 30px; display: grid; gap: 10px; }
.land li { display: flex; gap: 12px; font-size: 16px; }
.land li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--sky); margin-top: 13px; }

/* ---------- Contacto segmentado ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact-info dl { margin: 32px 0 0; display: grid; gap: 22px; }
.contact-info dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; color: var(--navy); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.tabs button { padding: 16px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-align: left; border-right: 1px solid var(--line); }
.tabs button:last-child { border-right: 0; }
.tabs button small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tabs button[aria-selected="true"] small { color: var(--sky); }
.form { background: var(--white); border: 1px solid var(--line); border-top: 0; padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { border: 1px solid var(--line); background: var(--paper); padding: 13px 14px; font-size: 15px; font-weight: 400; border-radius: var(--radius); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: transparent; }
.form textarea { min-height: 110px; resize: vertical; }
.form [hidden] { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 360px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 80px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-top h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; font-weight: 500; }
.footer-top li { margin-bottom: 10px; font-size: 15px; }
.footer-top a:hover { color: var(--white); }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #1f9d55; color: var(--white); padding: 12px 18px 12px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); border-radius: 999px; }
.wa-fab svg { width: 22px; height: 22px; }

/* =========================================================
   Ficha de desarrollo
   ========================================================= */
.dev-hero { position: relative; min-height: clamp(480px, 64svh, 640px); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; }
.dev-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,48,75,.1), rgba(4,48,75,.88)); }
.dev-hero .wrap { padding-bottom: clamp(40px, 6vw, 72px); padding-top: 120px; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.75); margin-bottom: 22px; }
.crumbs a:hover { color: var(--white); }
.dev-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.dev-hero .display { font-size: clamp(44px, 7vw, 104px); }
.dev-hero .lead { color: rgba(255,255,255,.82); max-width: 560px; margin-top: 16px; }
.factsheet { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--white); border: 1px solid var(--line); margin-top: -1px; }
.factsheet div { padding: 22px 20px; border-right: 1px solid var(--line); }
.factsheet div:last-child { border-right: 0; }
.factsheet span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.factsheet b { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; color: var(--navy); }
.sticky-sub { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.sticky-sub nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.sticky-sub a { padding: 16px 0; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; }
.sticky-sub a:hover, .sticky-sub a.active { color: var(--navy); border-color: var(--sky); }

/* Plano interactivo */
.plan-shell { display: grid; grid-template-columns: 1fr 360px; background: var(--white); border: 1px solid var(--line); }
.plan-main { padding: 22px; border-right: 1px solid var(--line); min-width: 0; }
.plan-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.levels { display: flex; border: 1px solid var(--line); }
.levels button { padding: 9px 16px; font-family: var(--mono); font-size: 13px; border-right: 1px solid var(--line); }
.levels button:last-child { border-right: 0; }
.levels button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.plan-svg { width: 100%; height: auto; background: #f7f9fb; }
.plan-svg .unit-shape { cursor: pointer; transition: fill .2s, stroke .2s; stroke: #fff; stroke-width: 3; }
.plan-svg .unit-shape[data-s="disponible"] { fill: #cdeedd; }
.plan-svg .unit-shape[data-s="apartado"] { fill: #f6e2b7; }
.plan-svg .unit-shape[data-s="rentado"] { fill: #e1e6ea; }
.plan-svg .unit-shape:hover, .plan-svg .unit-shape:focus { stroke: var(--sky); outline: none; }
.plan-svg .unit-shape.is-selected { stroke: var(--navy); stroke-width: 4; }
.plan-svg .unit-label { font-family: var(--mono); font-size: 13px; fill: var(--navy); pointer-events: none; text-anchor: middle; }
.plan-svg .unit-label.sm { font-size: 10px; fill: var(--muted); }
.plan-svg .common { fill: #eef1f4; }
.plan-svg .common-label { font-family: var(--mono); font-size: 11px; fill: #8a97a3; letter-spacing: .1em; text-anchor: middle; }
.plan-aside { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.plan-aside .empty { color: var(--muted); font-size: 15px; }
.plan-aside h3 { font-size: 30px; font-weight: 700; font-stretch: 110%; color: var(--navy); line-height: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.status-pill i { width: 10px; height: 10px; border-radius: 50%; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list span { display: block; font-size: 12px; color: var(--muted); }
.spec-list b { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--navy); }
.plan-aside .actions { display: grid; gap: 10px; margin-top: auto; }
.unit-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.unit-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.unit-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.unit-table td.num { font-family: var(--mono); }
.unit-table tr:hover td { background: var(--paper); cursor: pointer; }
.table-scroll { overflow-x: auto; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); }
.calc > div { padding: clamp(24px, 3.5vw, 44px); }
.calc > div + div { background: var(--navy); color: var(--white); }
.calc label { display: block; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--navy); }
.calc label output { float: right; font-family: var(--mono); font-weight: 500; }
.calc input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--sky); }
.calc-total span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.calc-total b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 700; font-stretch: 110%; margin: 8px 0 20px; }
.calc-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.calc-rows b { font-family: var(--mono); font-weight: 500; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; background: var(--paper); padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
    .main-nav.open { transform: none; }
    .main-nav > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .menu-toggle { display: flex; }
    .header-cta .btn { display: none; }
    .search { grid-template-columns: 1fr 1fr; }
    .search-op { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
    .search-op label { flex: 1; }
    .search-op span { justify-content: center; padding: 12px; }
    .field { border-bottom: 1px solid var(--line); }
    .search .btn { grid-column: 1 / -1; padding: 18px; }
    .units { grid-template-columns: 1fr 1fr; }
    .build-grid, .contact { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .plan-shell { grid-template-columns: 1fr; }
    .plan-main { border-right: 0; border-bottom: 1px solid var(--line); }
    .factsheet { grid-template-columns: repeat(3, 1fr); }
    .factsheet div:nth-child(3n) { border-right: 0; }
    .factsheet div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero-doors { grid-template-columns: 1fr; min-height: 0; max-height: none; }
    .door { min-height: 520px; }
    .search-dock { margin-top: 24px; }
    .search { grid-template-columns: 1fr; }
    .field { border-right: 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { margin-right: 0; padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
    .devs { grid-template-columns: 1fr; }
    .dev:first-child { grid-row: auto; min-height: 460px; }
    .units { grid-template-columns: 1fr; }
    .service { grid-template-columns: 40px 1fr; }
    .service .tag { grid-column: 2; }
    .process { grid-template-columns: 1fr; }
    .land, .calc { grid-template-columns: 1fr; }
    .land > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .tabs { grid-template-columns: 1fr; }
    .tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
    .form { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .factsheet { grid-template-columns: 1fr 1fr; }
    .factsheet div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
    .factsheet div:nth-child(2n) { border-right: 0 !important; }
    .wa-fab span { display: none; }
    .wa-fab { padding: 14px; }
    .dev-specs div { margin-bottom: 8px; }
}

/* =========================================================
   Agregados para la versión Razor
   ========================================================= */
.tabs a { padding: 16px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.tabs a:last-child { border-right: 0; }
.tabs a small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.tabs a[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tabs a[aria-selected="true"] small { color: var(--sky); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .err { font-style: normal; font-weight: 500; font-size: 12.5px; color: #b42318; }
.form-ref { font-size: 14px; color: var(--muted); background: var(--sky-soft); padding: 10px 14px; }
.form-ref b { color: var(--navy); }
.form-alert { background: #fdecea; color: #8a1c12; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; }
.form-foot a { text-decoration: underline; }
.sent { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.sent .lead a { color: var(--navy); font-weight: 600; }
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 9vw, 120px); }
.page-head .crumbs { color: var(--muted-dark); }
.page-head .lead { margin-top: 16px; max-width: 560px; }
.page-head + .search-dock { margin-top: -40px; }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 20px; letter-spacing: .06em; text-transform: uppercase; }
.empty-state { background: var(--white); border: 1px dashed var(--line); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.devs-1 { grid-template-columns: 1fr; }
.devs-1 .dev:first-child { min-height: clamp(420px, 50vw, 560px); }
.devs-2 { grid-template-columns: 1fr 1fr; }
.devs-2 .dev:first-child { grid-row: auto; min-height: 480px; }
.devs-2 .dev { min-height: 480px; }
.dev .dev-bg.blueprint { position: absolute; inset: 0; z-index: -2; }
.plan-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.unit-table td a { display: inline-flex; padding: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin: 36px 0 10px; }
.prose p { color: var(--text); }
.prose a { color: var(--sky-deep); text-decoration: underline; }
.link-arrow { margin-top: 0; }
@media (max-width: 760px) {
    .tabs a { border-right: 0; border-bottom: 1px solid var(--line); }
    .devs-2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr !important; }
    .factsheet { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 1080px) and (min-width: 761px) {
    .factsheet { grid-template-columns: repeat(3, 1fr) !important; }
}

/* =========================================================
   Fase 1 (recomendaciones de Dirección)
   ========================================================= */
.chip.sky { background: var(--sky-btn); color: var(--navy); }
.chip.pronto { background: var(--white); color: var(--navy); border: 1px solid var(--sky); }
.chip.espera { background: #fbe7bf; color: #6b4a07; }
.chip.cerrado { background: #e1e6ea; color: #46525c; }

/* Logotipo */
.brand-logo { display: block; line-height: 0; }
.brand-logo img { height: 38px; width: auto; }
.site-footer .brand-logo img { height: 56px; }

/* Selector m² / ft² */
.unidades-toggle { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); background: var(--white); color: var(--navy); }

/* Inicio: pasos de «a la medida» */
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.steps5 div { padding: 22px 20px 0 0; }
.steps5 b { display: block; font-family: var(--mono); font-size: 13px; color: var(--sky); margin-bottom: 10px; }
.steps5 p { font-size: 15px; color: rgba(255,255,255,.85); }

/* Ficha de empresa */
.ficha-empresa { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ficha-tabla { width: 100%; border-collapse: collapse; }
.ficha-tabla th, .ficha-tabla td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.ficha-tabla th { width: 38%; font-weight: 400; color: var(--muted); padding-right: 20px; }
.ficha-tabla td { color: var(--navy); font-weight: 500; }

/* Proyectos */
.proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.proyecto { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.proyecto .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.proyecto .media img { width: 100%; height: 100%; object-fit: cover; }
.proyecto .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.proyecto h3 { font-size: 20px; font-weight: 600; color: var(--navy); }
.proyecto p { font-size: 15px; color: var(--muted); }

/* Ficha del espacio */
.esp-head { padding: clamp(32px, 5vw, 56px) 0 24px; }
.esp-head h1 { font-weight: 700; font-stretch: 108%; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.02em; color: var(--navy); margin-top: 14px; }
.esp-sub { margin-top: 10px; color: var(--muted); font-size: 16px; }
.esp-sub .m2 { font-family: var(--mono); color: var(--navy); }
.esp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.galeria { display: grid; gap: 10px; }
.galeria .principal { aspect-ratio: 16/10; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.galeria .principal img { width: 100%; height: 100%; object-fit: cover; }
.galeria .principal img.plano { object-fit: contain; background: #fff; }
.galeria .miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.galeria .miniaturas button { aspect-ratio: 4/3; border: 1px solid var(--line); background: #fff; padding: 0; overflow: hidden; }
.galeria .miniaturas button[aria-current="true"] { outline: 2px solid var(--sky); outline-offset: 1px; }
.galeria .miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.galeria .miniaturas img.plano { object-fit: contain; }
.esp-caja { background: var(--white); border: 1px solid var(--line); padding: 26px; position: sticky; top: calc(var(--header-h) + 16px); }
.esp-precio b { display: block; font-size: 28px; font-weight: 700; font-stretch: 106%; color: var(--navy); line-height: 1.1; }
.esp-precio span { color: var(--muted); font-size: 14px; }
.esp-caja .acciones { display: grid; gap: 10px; margin-top: 22px; }
.asesor { display: flex; gap: 14px; align-items: center; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.asesor .foto { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--sky); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.asesor .foto img { width: 100%; height: 100%; object-fit: cover; }
.asesor b { display: block; color: var(--navy); }
.asesor span { font-size: 13.5px; color: var(--muted); }
.specs-tabla { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.specs-tabla th, .specs-tabla td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.specs-tabla th { width: 40%; font-weight: 400; color: var(--muted); }
.specs-tabla td { color: var(--navy); font-weight: 500; }
.aviso-estado { padding: 18px 22px; margin-bottom: 24px; border-left: 4px solid var(--sky); background: var(--white); }
.aviso-estado.cerrado { border-color: #8a97a3; }
.aviso-estado.espera { border-color: var(--hold); }
.aviso-estado b { color: var(--navy); font-size: 18px; }
.esp-desc { font-size: 17px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.wa-btn { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.wa-btn:hover { background: #17824a; }

/* A la medida: formulario por pasos */
.pasos-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 22px; }
.pasos-nav span { font-size: 12.5px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.pasos-nav span.activo { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.pasos-nav span.hecho { border-color: var(--sky); }
.paso h3 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.paso h3 small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.form .opciones label { flex-direction: row; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; cursor: pointer; }
.form .opciones label:has(input:checked) { border-color: var(--navy); background: var(--sky-soft); }
.form .opciones input { width: auto; }
.paso-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.form label.check-linea { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--text); }
.form label.check-linea input { width: auto; margin-top: 3px; }
.form label.check-linea a { text-decoration: underline; }

.regiones { display: flex; flex-wrap: wrap; gap: 8px; }
.regiones span { padding: 6px 12px; background: var(--sky-btn); color: var(--navy); font-weight: 600; font-size: 14px; }
.lista-guion li { display: flex; gap: 12px; margin-bottom: 10px; }
.lista-guion li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--sky); margin-top: 13px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.cols3 h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }

.orden-barra { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.orden-barra select { border: 1px solid var(--line); background: var(--white); padding: 8px 12px; font-size: 14px; }

@media (max-width: 1080px) {
    .esp-grid, .ficha-empresa { grid-template-columns: 1fr; }
    .esp-caja { position: static; }
    .steps5 { grid-template-columns: 1fr 1fr; row-gap: 24px; }
    .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .steps5, .opciones { grid-template-columns: 1fr; }
    .pasos-nav span { font-size: 0; }
    .brand-logo img { height: 32px; }
    .ficha-tabla th { width: 45%; }
}

@media print {
    .site-header, .site-footer, .wa-fab, .no-print { display: none !important; }
    body { background: #fff; }
}
.plan-svg .unit-shape[data-s="proximo"] { fill: #d6ecf6; }
.door h1, .door h2 { font-size: clamp(30px, 3.5vw, 54px); }
.brand-logo img { height: 44px; }

/* ---------- Ficha: video, cómo llegar, preguntas, vista previa ---------- */
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 24px; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.como-llegar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 20px 22px; background: #fff; }
.como-llegar p { margin: 0; color: var(--muted); }
.como-llegar b { color: var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--sky); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.aviso-previa { background: #fff4d6; border-bottom: 1px solid #e8c766; color: #5b4300; padding: 12px 0; font-size: 14px; }
.aviso-previa a { margin-left: 12px; color: var(--navy); font-weight: 600; }
.folio { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 20px; letter-spacing: .04em; color: var(--navy); background: #fff; border: 1px dashed var(--sky); padding: 8px 14px; margin-top: 10px; }

/* Búsqueda con filtro de disponibilidad */
.search.con-disp { grid-template-columns: auto 1fr 1fr 1fr 1fr auto; }
@media (max-width: 1080px) { .search.con-disp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .search.con-disp { grid-template-columns: 1fr; } }
