/* ==========================================================================
   Sitio público · Beto El de las Casas
   Mundo visual: el logo manda. Azul marino como campo, verde menta como acción,
   taupe como neutro cálido; los perfiles inclinados de los bloques del logo
   (casa, E, C) reaparecen en las tarjetas destacadas y en los números del proceso.
   ========================================================================== */
:root {
  --navy: #012264; --navy-700: #0b2f7c; --navy-800: #011a4d; --navy-900: #00123a; --navy-50: #eaeffa;
  --green: #3dc38f; --green-600: #2aa676; --green-700: #17754f; --green-50: #e6f7ef; --green-100: #c9eedd;
  --taupe: #b6ab9a; --taupe-50: #f6f4f0; --taupe-100: #ece8e1; --taupe-200: #dcd6cb; --taupe-700: #6b6355;
  --bg: #fbfaf8; --text: #0f1b3d; --text-2: #3f4a66; --text-3: #5f6880; --text-4: #9aa1b5; --border: #e4e0d8;
  --red: #c23a34;
  --shadow-1: 0 1px 2px rgba(1,34,100,.05), 0 2px 6px rgba(1,34,100,.06);
  --shadow-2: 0 10px 30px -10px rgba(1,34,100,.22), 0 4px 10px -4px rgba(1,34,100,.08);
  --shadow-3: 0 30px 70px -20px rgba(0,18,58,.5), 0 12px 24px -12px rgba(0,18,58,.25);
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --nav-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open, body.modal-open { overflow: hidden; }
::selection { background: var(--green-100); color: var(--navy-900); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }
svg.icon { width: 1.1em; height: 1.1em; flex: none; }
[data-icon] { display: inline-flex; vertical-align: middle; }
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: var(--taupe-200); border-radius: 8px; border: 3px solid var(--bg); }

/* Botones ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.btn-wa:hover { background: var(--green-600); border-color: var(--green-600); color: var(--navy-900); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy-50); }
.btn-ghost-light { background: transparent; border-color: transparent; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { text-decoration-color: #fff; }
.btn-ghost-nav { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost-nav:hover { background: var(--taupe-50); color: var(--text); }

/* Navegación -------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: box-shadow 200ms ease, border-color 200ms ease; }
/* El fondo translúcido vive en un pseudoelemento: un backdrop-filter sobre .nav convierte al header en bloque
   contenedor del menú móvil (position: fixed) y lo deja sin fondo, con los enlaces encima de la portada. */
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -12px rgba(1,34,100,.18); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--text-2); font-size: 15px; transition: background-color 120ms ease, color 120ms ease; }
.nav-links a:hover { background: var(--taupe-50); color: var(--navy); }
.nav-links .only-m { display: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 220ms var(--ease-out), opacity 150ms ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Portada ------------------------------------------------------------------ */
.hero { position: relative; background: var(--navy); color: #fff; padding: calc(var(--nav-h) + 72px) 0 120px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 0%, rgba(61,195,143,.14), transparent 60%); pointer-events: none; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; z-index: 0; pointer-events: none; }
.skyline .sky-fill path { fill: var(--navy-700); opacity: .55; }
.skyline .sky-line path { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .55; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s var(--ease-out) .3s forwards; }
.skyline .sky-line path:nth-child(2n) { animation-delay: .5s; }
.skyline .sky-line path:nth-child(3n) { animation-delay: .7s; }
.skyline .sky-line path:nth-child(n+13) { stroke-dasharray: 200; stroke-dashoffset: 200; animation-delay: 1.4s; opacity: .35; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; line-height: 1.04; color: #fff; max-width: 14ch; }
.hero .lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 52ch; }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.72); }
.hero-facts b { color: var(--green); font-weight: 700; }
.hero-facts .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
.h-el { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; }
.h-el:nth-child(1) { animation-delay: .05s; } .h-el:nth-child(2) { animation-delay: .15s; } .h-el:nth-child(3) { animation-delay: .25s; } .h-el:nth-child(4) { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; height: 470px; }
.sky-card { position: absolute; display: block; width: 43%; background: #fff; color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-3); opacity: 0; transform: translateY(44px); animation: rise 1000ms var(--ease-out) forwards; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.sky-1 { left: 0; bottom: 0; z-index: 3; animation-delay: .35s; clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%); }
.sky-2 { left: 27%; top: 0; width: 46%; z-index: 1; animation-delay: .5s; clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 100%); }
.sky-3 { right: 0; bottom: 34px; width: 40%; z-index: 2; animation-delay: .65s; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
.sky-1 .sky-media { padding-top: 12%; } .sky-2 .sky-media { padding-top: 9%; } .sky-3 .sky-media { padding-top: 10%; }
.sky-media { position: relative; background: var(--taupe-100); }
.sky-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sky-media .nophoto { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--taupe); font-size: 40px; }
.sky-media .tag { position: absolute; left: 10px; bottom: 10px; }
.sky-body { padding: 12px 14px 14px; }
.sky-body .price { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--navy); }
.sky-body .price small { font-family: var(--font); font-size: 12px; color: var(--text-3); font-weight: 500; }
.sky-body .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; margin-top: 2px; }
.sky-body .z { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.sky-empty { position: relative; width: 60%; left: 20%; top: 30%; clip-path: none; }
@media (hover: hover) and (pointer: fine) {
  .sky-card:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -18px rgba(0,18,58,.6); z-index: 3; }
}
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.tag.feat { background: var(--green); color: var(--navy-900); }

/* Marquesina ------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--taupe-50); border-bottom: 1px solid var(--border); padding: 13px 0; }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: marquee 48s linear infinite; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Secciones ---------------------------------------------------------------- */
.section { padding: 100px 0; }
.section-alt { background: var(--taupe-50); }
.sec-head { max-width: 62ch; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy); }
.sec-head p { margin-top: 12px; font-size: 17px; color: var(--text-2); line-height: 1.6; }

/* Revelado al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Inmuebles ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--text-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 160ms var(--ease-out); }
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill:active { transform: scale(.97); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill .n { font-size: 11.5px; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 999px; }
.pill:not(.active) .n { background: var(--taupe-100); color: var(--text-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.pcard { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: box-shadow 220ms ease, transform 220ms var(--ease-out); }
.pcard[hidden] { display: none; }
.pcard-link { color: var(--text); display: block; }
.pcard .media { position: relative; aspect-ratio: 4 / 3; background: var(--taupe-100); overflow: hidden; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.pcard .media .nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--taupe); font-size: 44px; }
.pcard .media .tag { position: absolute; left: 12px; top: 12px; }
.pcard .media .tag.feat { left: auto; right: 12px; }
.pcard .body { padding: 16px 18px 12px; }
.pcard .price { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pcard .price small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--text-3); }
.pcard h3 { font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.3; letter-spacing: -.01em; }
.pcard .loc { margin-top: 6px; font-size: 13.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs svg { width: 15px; height: 15px; color: var(--text-3); }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 14px; border-top: 1px solid var(--border); }
.pcard-foot .code { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.wa-mini { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--green-700); padding: 6px 10px; border-radius: 8px; transition: background-color 120ms ease; }
.wa-mini:hover { background: var(--green-50); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
  .pcard:hover .media img { transform: scale(1.05); }
}
.grid-empty { padding: 36px 24px; background: #fff; border-radius: 16px; text-align: center; color: var(--text-2); box-shadow: var(--shadow-1); margin-top: 8px; }
.grid-empty a { font-weight: 600; color: var(--green-700); }

/* Proceso ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .num { width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 26px/1 var(--font-display); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); padding-top: 6px; }
.step:nth-child(2) .num { background: var(--green); color: var(--navy-900); clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%); }
.step:nth-child(3) .num { background: var(--taupe); color: var(--navy-900); }
.step:nth-child(4) .num { clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); }
.step h3 { font-size: 19px; color: var(--navy); }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

/* Servicios ---------------------------------------------------------------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin: 0; }
.service { border-top: 2px solid var(--navy-50); padding-top: 22px; }
.service dt { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--navy); letter-spacing: -.01em; }
.service dd { margin: 10px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 48ch; }
.service dd a { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--green-700); }
.service dd a svg { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .service dd a:hover svg { transform: translateX(4px); } }

/* Sobre Beto --------------------------------------------------------------- */
.section-navy { background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 100%); padding: calc(100px + 3.5vw) 0 100px; }
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.about-visual { display: grid; place-items: center; }
.about-mark { width: min(100%, 360px); aspect-ratio: 1; background: #fff; border-radius: 28px; display: grid; place-items: center; padding: 36px; box-shadow: var(--shadow-3); }
.about-photo { width: min(100%, 420px); border-radius: 28px; object-fit: cover; aspect-ratio: 5 / 6; box-shadow: var(--shadow-3); }
.about-copy h2 { font-size: clamp(30px, 3.8vw, 46px); color: #fff; }
.about-copy p { margin-top: 18px; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.85); max-width: 52ch; }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Contacto ----------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy); }
.contact-copy > p { margin-top: 12px; font-size: 17px; color: var(--text-2); line-height: 1.6; }
.contact-wa { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; background: var(--green-50); border-radius: 18px; color: var(--navy); font-size: 17px; line-height: 1.35; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.contact-wa .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--navy-900); display: grid; place-items: center; font-size: 26px; flex: none; }
@media (hover: hover) and (pointer: fine) { .contact-wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.contact-notes { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 15px; }
.contact-notes li { display: flex; gap: 10px; align-items: flex-start; }
.contact-notes svg { color: var(--green-700); margin-top: 3px; width: 18px; height: 18px; }
.contact-form { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d768f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-about { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--navy-50); color: var(--navy); border-radius: 10px; font-size: 14px; }
.form-about button { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 16px; line-height: 1; }
.form-error { background: #fcebea; color: var(--red); padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.form-note { font-size: 13px; color: var(--text-3); text-align: center; }
.contact-ok { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: 44px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact-ok h3 { font-size: 26px; color: var(--navy); }
.contact-ok p { color: var(--text-2); max-width: 40ch; }
.contact-ok .btn { margin-top: 10px; }
.check { width: 72px; height: 72px; }
.check circle { fill: var(--green-50); stroke: var(--green); stroke-width: 2; }
.check path { fill: none; stroke: var(--green-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 600ms var(--ease-out) 200ms forwards; }

/* Pie ---------------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand img { width: 170px; }
.foot-brand p { margin-top: 10px; font-size: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a, .foot-contact a { color: rgba(255,255,255,.8); font-weight: 500; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; }
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 8px; }
.foot-crm { font-size: 13.5px; color: rgba(255,255,255,.55) !important; }
.foot-copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

/* WhatsApp flotante --------------------------------------------------------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--navy-900); display: grid; place-items: center; font-size: 30px; box-shadow: 0 14px 30px -8px rgba(31,138,96,.6); opacity: 0; transform: scale(.9); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), background-color 150ms ease; }
.wa-float.show { opacity: 1; transform: scale(1); }
.wa-float:hover { background: var(--green-600); color: var(--navy-900); }
.wa-float:active { transform: scale(.95); }
.wa-float .lbl { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px); background: var(--navy-900); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover .lbl { opacity: 1; transform: translateY(-50%) translateX(0); } }

/* Modal de inmueble --------------------------------------------------------- */
.pmodal { border: 0; padding: 0; width: min(980px, 94vw); max-width: 94vw; max-height: 92vh; border-radius: 22px; background: #fff; box-shadow: var(--shadow-3); overflow: hidden; opacity: 1; transform: scale(1); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.pmodal::backdrop { background: rgba(0,18,58,.62); backdrop-filter: blur(3px); transition: opacity 240ms ease; }
@starting-style { .pmodal[open] { opacity: 0; transform: scale(.96); } .pmodal[open]::backdrop { opacity: 0; } }
.pmodal.closing { opacity: 0; transform: scale(.97); }
.pmodal.closing::backdrop { opacity: 0; }
.pm-in { display: grid; grid-template-columns: 1.1fr 1fr; max-height: 92vh; }
.pm-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform 160ms var(--ease-out); }
.pm-close:active { transform: scale(.94); }
.pm-gallery { background: var(--navy-900); display: flex; flex-direction: column; min-height: 0; }
.pm-main { position: relative; flex: 1; min-height: 320px; background: var(--navy-900); }
.pm-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pm-main .nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--taupe); font-size: 56px; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy); display: grid; place-items: center; }
.pm-nav.prev { left: 12px; } .pm-nav.next { right: 12px; }
.pm-nav:hover { background: #fff; }
.pm-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.pm-thumbs::-webkit-scrollbar { display: none; }
.pm-thumbs button { flex: none; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--navy-800); opacity: .7; transition: opacity 120ms ease, border-color 120ms ease; }
.pm-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs button.on, .pm-thumbs button:hover { opacity: 1; border-color: var(--green); }
.pm-body { padding: 28px 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.pm-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-right: 36px; }
.pm-head h2 { font-size: 22px; color: var(--text); margin-top: 8px; }
.pm-head .loc { margin-top: 6px; font-size: 14px; color: var(--text-3); }
.pm-head .price { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--navy); white-space: nowrap; text-align: right; }
.pm-head .price small { display: block; font-family: var(--font); font-size: 12px; color: var(--text-3); font-weight: 500; }
.pm-specs { margin-top: 0; font-size: 14px; }
.pm-desc { color: var(--text-2); line-height: 1.65; white-space: pre-wrap; font-size: 15px; }
.pm-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pm-code { font-size: 12px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .hero-visual { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
  .hero-visual::-webkit-scrollbar { display: none; }
  .sky-card, .sky-2, .sky-3 { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 72%; max-width: 300px; flex: none; scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { order: -1; }
  .about-mark { width: min(100%, 260px); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .pm-in { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .pm-main { min-height: 240px; aspect-ratio: 4/3; flex: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .brand img { height: 46px; }
  .burger { display: flex; }
  .nav-right .btn-wa span:last-child { display: none; }
  .nav-right .btn-wa { width: 44px; padding: 0; border-radius: 12px; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 4px; margin: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); border-top: 1px solid var(--border); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 18px; padding: 14px 12px; }
  .nav-links .only-m { display: inline-flex; margin-top: 12px; justify-content: center; color: var(--navy-900); }
  .nav-links .only-m:hover { background: var(--green-600); color: var(--navy-900); }
  .hero { padding: calc(var(--nav-h) + 44px) 0 72px; }
  .hero .lead { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .skyline { height: 30%; }
  .section { padding: 64px 0; }
  .section-navy { padding: calc(64px + 5vw) 0 64px; clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); }
  .steps, .services { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 22px 18px; }
  .contact-form .f2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .wa-float { right: 16px; bottom: 16px; }
  .pm-body { padding: 20px 18px; }
  .pm-head { flex-direction: column; }
  .pm-head .price { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-el, .sky-card { animation: fade 400ms ease forwards; transform: none; }
  @keyframes fade { to { opacity: 1; } }
  .skyline .sky-line path { animation: none; stroke-dashoffset: 0; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .pcard, .pcard .media img, .sky-card, .contact-wa, .wa-float { transition: none; }
  .nav-links, .pmodal, .pmodal.closing { transform: none; }
  .check path { animation: none; stroke-dashoffset: 0; }
}

/* Redes sociales y acceso al CRM ------------------------------------------- */
.social { display: flex; align-items: center; gap: 4px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text-2); font-size: 20px; transition: background-color 120ms ease, color 120ms ease, transform 160ms var(--ease-out); }
.social a:hover { background: var(--taupe-50); color: var(--navy); }
.social a:active { transform: scale(.94); }
.social .crm-link { width: auto; display: inline-flex; gap: 8px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--navy); }
.btn-crm { background: transparent; border-color: var(--navy-100, #d6dff5); color: var(--navy); }
.btn-crm:hover { background: var(--navy-50); border-color: var(--navy); }
.only-d { display: flex; }
.about-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 15px; color: rgba(255,255,255,.7); }
.about-social a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color 120ms ease; }
.about-social a:hover { border-color: var(--green); }
.about-social svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .only-d { display: none; }
  .nav-links .social { display: flex; margin-top: 10px; justify-content: center; gap: 10px; }
  .nav-links .social a { width: 48px; height: 48px; font-size: 24px; background: var(--taupe-50); }
  .nav-links .social .crm-link { width: auto; padding: 0 18px; }
}

/* Página de inmueble (/inmuebles/ID/slug) --------------------------------- */
.page { padding: calc(var(--nav-h) + 28px) 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); font-weight: 500; }
.crumbs a:hover { color: var(--navy); }
.prop-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.prop-head .row-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-soft { background: var(--taupe-100); color: var(--taupe-700); box-shadow: none; }
.prop-head h1 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); }
.prop-head .loc { margin-top: 10px; color: var(--text-3); display: flex; align-items: center; gap: 6px; font-size: 15px; }
.gal { margin-top: 22px; border-radius: 18px; overflow: hidden; background: var(--navy-900); }
.gal-main { position: relative; aspect-ratio: 4 / 3; background: #000; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-main.gal-empty { display: grid; place-items: center; color: var(--taupe); font-size: 64px; background: var(--taupe-100); }
.gal-count { position: absolute; left: 12px; bottom: 12px; background: rgba(0,18,58,.75); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.gal-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; background: var(--navy-900); }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: none; width: 84px; height: 63px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--navy-800); opacity: .7; transition: opacity 120ms ease, border-color 120ms ease; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumbs button.on, .gal-thumbs button:hover { opacity: 1; border-color: var(--green); }
.prop-section { margin-top: 36px; }
.prop-section h2 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.prop-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; }
.prop-facts div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.prop-facts dt { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.prop-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.prop-desc { color: var(--text-2); line-height: 1.7; font-size: 16px; max-width: 70ch; }
.prop-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.prop-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-2); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.prop-card .price { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--navy); line-height: 1.1; }
.prop-card .price small { font-family: var(--font); font-size: 14px; color: var(--text-3); font-weight: 500; }
.prop-card .muted { color: var(--text-3); font-size: 14px; margin-bottom: 6px; }
.agent-mini { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.agent-mini img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.agent-mini img[height="28"] { border-radius: 0; height: auto; }
.related { margin-top: 64px; }
.related h2 { font-size: 24px; color: var(--navy); margin-bottom: 20px; }
.notfound { text-align: center; padding: 60px 0; max-width: 60ch; margin: 0 auto; }
.notfound h1 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); }
.notfound p { margin: 14px 0 24px; color: var(--text-2); font-size: 17px; }
.prop-section .contact-form { padding: 24px; }
@media (max-width: 1000px) { .prop-page { grid-template-columns: 1fr; gap: 24px; } .prop-aside { position: static; } }

/* Catálogo y enlaces internos ------------------------------------------------ */
.cat-head h1 { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy); }
.cat-head p { margin-top: 12px; font-size: 17px; color: var(--text-2); max-width: 64ch; line-height: 1.6; }
.cat-filters { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.cat-filters .filters { margin: 0; }
.cat-filters .pill { text-decoration: none; }
.cat-cta { margin-top: 56px; padding: 28px 30px; background: var(--navy); color: #fff; border-radius: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%); padding-top: 38px; }
.cat-cta h2 { color: #fff; font-size: 22px; }
.cat-cta p { margin-top: 6px; color: rgba(255,255,255,.8); max-width: 54ch; }
.cat-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--text-3); }
.cat-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-weight: 500; transition: border-color 120ms ease, color 120ms ease; }
.cat-links a b { font-weight: 700; color: var(--text-3); }
.cat-links a:hover { border-color: var(--navy); color: var(--navy); }
.cat-links a:last-child { background: var(--navy-50); color: var(--navy); border-color: transparent; font-weight: 600; }
.foot-in { grid-template-columns: 1.1fr 1fr 1.2fr 1fr; }
@media (max-width: 1000px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
