/* =========================================================
   PETRA Inmobiliaria — Mockup landing + fichas
   ========================================================= */
:root {
  --navy: #10253a;
  --navy-900: #0a1826;
  --navy-700: #1b3550;
  --gold: #b9a77f;
  --gold-600: #9c8a62;
  --cream: #f6f3ee;
  --sand: #ece6db;
  --ink: #1d2430;
  --muted: #6b7280;
  --line: #e3ded4;
  --white: #fff;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 37, 58, .10);
  --shadow-lg: 0 20px 50px rgba(16, 37, 58, .18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); }
h2.section-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: .4rem 0 1rem; }
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.divider { width: 60px; height: 2px; background: var(--gold); margin: 14px auto 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #cbbb95; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid currentColor; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--navy-900); color: #c9d2dc; font-size: .78rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(16, 37, 58, .97); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.brand img { width: 54px; height: 54px; border-radius: 50%; }
.brand .brand-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .08em; line-height: 1; }
.brand .brand-sub { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: #dfe5ec; font-size: .88rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; color: #fff; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,24,38,.92) 0%, rgba(16,37,58,.75) 45%, rgba(16,37,58,.35) 100%); }
.hero .container { position: relative; z-index: 2; padding: 80px 0; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 760px; font-weight: 500; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p.lead { max-width: 560px; margin: 1.2rem 0 2rem; color: #d6dde5; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.search-box { margin-top: 3rem; background: #fff; border-radius: 18px; padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .8rem; max-width: 860px; box-shadow: var(--shadow-lg); }
.search-box label { display: flex; flex-direction: column; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; padding: .3rem .8rem; border-right: 1px solid var(--line); }
.search-box label:nth-of-type(3) { border-right: 0; }
.search-box select { border: 0; font: 600 .95rem var(--sans); color: var(--navy); padding: .3rem 0; background: transparent; outline: none; cursor: pointer; }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 34px 0; }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.trust-item .ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; color: var(--navy); font-size: .95rem; }
.trust-item span { font-size: .8rem; color: var(--muted); }

/* ---------- Filtros + grilla propiedades ---------- */
.filters { display: flex; justify-content: center; gap: .6rem; margin-bottom: 36px; flex-wrap: wrap; }
.chip { padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy); transition: .2s; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.grid-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, opacity .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card.hide { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.07); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 6px; }
.badge.gold { background: var(--gold); color: var(--navy-900); }
.badge.light { background: rgba(255,255,255,.92); color: var(--navy); }
.card-photos { position: absolute; right: 14px; bottom: 14px; background: rgba(10,24,38,.75); color: #fff; font-size: .72rem; padding: .3rem .6rem; border-radius: 6px; display: flex; gap: 4px; align-items: center; }
.card-photos svg { width: 14px; height: 14px; }
.card-body { padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.card-price small { font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.card-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: .3rem 0 .4rem; line-height: 1.35; }
.card-loc { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-loc svg { width: 15px; height: 15px; color: var(--gold-600); flex: none; }
.card-specs { display: flex; gap: 1.1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--navy); font-weight: 600; flex-wrap: wrap; }
.card-specs span { display: flex; align-items: center; gap: 5px; }
.card-specs svg { width: 17px; height: 17px; color: var(--gold-600); }
.card-body .card-specs { margin-top: 1rem; }
.card-cta { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; color: var(--navy); }
.card-cta .arrow { transition: transform .25s; }
.card:hover .card-cta .arrow { transform: translateX(5px); }

/* Slot vacío */
.card.slot { border: 2px dashed #cfc6b4; background: repeating-linear-gradient(135deg, #faf8f4 0 14px, #f4f0e8 14px 28px); box-shadow: none; align-items: center; justify-content: center; text-align: center; min-height: 430px; padding: 2rem; }
.card.slot:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.slot .slot-ic { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--gold-600); margin: 0 auto 1rem; box-shadow: var(--shadow); }
.slot .slot-ic svg { width: 30px; height: 30px; }
.slot h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.slot p { color: var(--muted); font-size: .88rem; max-width: 240px; margin: 0 auto 1.2rem; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 2rem; grid-column: 1 / -1; }

/* ---------- Servicios ---------- */
.services { background: var(--cream); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { background: #fff; padding: 2.2rem 1.6rem; border-radius: var(--radius); text-align: center; transition: .3s; border-bottom: 3px solid transparent; }
.service:hover { transform: translateY(-6px); border-bottom-color: var(--gold); box-shadow: var(--shadow); }
.service .ic { width: 66px; height: 66px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.service .ic svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.service p { font-size: .9rem; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-visual .photo { border-radius: var(--radius); aspect-ratio: 4/5; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); background-color: var(--sand); }
.about-visual .seal { position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.about p { color: #4b5563; margin-bottom: 1rem; }
.about-list { list-style: none; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.about-list li { display: flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--navy); font-size: .9rem; }
.about-list svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }
.agent { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--cream); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.agent .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; flex: none; }
.agent strong { color: var(--navy); display: block; }
.agent span { font-size: .82rem; color: var(--muted); }

/* ---------- CTA tasación ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 2px solid rgba(185,167,127,.25); right: -140px; top: -160px; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 2px solid rgba(185,167,127,.18); right: -50px; top: -70px; }
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 70px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 620px; }
.cta-band p { color: #c9d2dc; margin-top: .6rem; max-width: 560px; }

/* ---------- Contacto ---------- */
.contact .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { background: var(--navy); color: #dfe5ec; border-radius: var(--radius); padding: 2.4rem; }
.contact-info h3 { color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.contact-info > p { color: #aab6c3; margin-bottom: 1.6rem; font-size: .92rem; }
.ci-item { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.ci-item .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(185,167,127,.15); color: var(--gold); display: grid; place-items: center; flex: none; }
.ci-item .ic svg { width: 20px; height: 20px; }
.ci-item small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ci-item a:hover { color: #fff; text-decoration: underline; }
.map { margin-top: 1.4rem; border-radius: 10px; overflow: hidden; height: 190px; background: var(--navy-700); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.form h3 { font-size: 2rem; margin-bottom: .3rem; }
.form > p { color: var(--muted); margin-bottom: 1.6rem; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .78rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem 1rem; font: .95rem var(--sans); color: var(--ink); background: #fcfbf9; transition: .2s; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(185,167,127,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .75rem; color: var(--muted); margin-top: .8rem; text-align: center; }
.form-ok { display: none; background: #ecfdf3; color: #166534; padding: .9rem 1rem; border-radius: 10px; font-size: .88rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aab6c3; padding: 60px 0 0; font-size: .88rem; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .78rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; grid-template-columns: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animaciones reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Imagen fallback ---------- */
.img-fallback { background: linear-gradient(135deg, var(--navy-700), var(--navy)) !important; position: relative; }

/* =========================================================
   FICHA DE PROPIEDAD
   ========================================================= */
.ficha-top { background: var(--cream); border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.ficha-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.ficha-head .badges { position: static; margin-bottom: .8rem; }
.ficha-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 780px; }
.ficha-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: .5rem; }
.ficha-loc svg { width: 18px; height: 18px; color: var(--gold-600); }
.ficha-price { text-align: right; }
.ficha-price .op { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.ficha-price .amount { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.ficha-price .code { font-size: .78rem; color: var(--muted); }

/* Galería */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 520px; margin: 30px 0 10px; }
.gallery .g-item { position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--sand); }
.gallery .g-item:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .more { position: absolute; inset: 0; background: rgba(10,24,38,.6); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; pointer-events: none; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 96px; height: 70px; border-radius: 8px; overflow: hidden; opacity: .65; transition: .2s; border: 2px solid transparent; background: var(--sand); }
.thumbs button:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Layout ficha */
.ficha-body { display: grid; grid-template-columns: 1fr 360px; gap: 44px; padding: 40px 0 80px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-bottom: 24px; }
.panel h2 { font-size: 1.8rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.panel h2::before { content: ""; width: 4px; height: 26px; background: var(--gold); border-radius: 2px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec { background: var(--cream); border-radius: 12px; padding: 1.1rem .9rem; text-align: center; }
.spec svg { width: 26px; height: 26px; color: var(--gold-600); margin: 0 auto .5rem; }
.spec strong { display: block; font-size: 1.15rem; color: var(--navy); }
.spec span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.desc p { color: #4b5563; margin-bottom: 1rem; }
.amenities { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.amenities li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.amenities svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; padding: .75rem .4rem; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 500; width: 45%; }
.data-table td { color: var(--navy); font-weight: 600; }
.ficha-map { height: 320px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.ficha-map iframe { width: 100%; height: 100%; border: 0; }
.note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.side-card { background: var(--navy); color: #dfe5ec; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.side-card .op { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.side-card .amount { font-family: var(--serif); font-size: 2.5rem; color: #fff; font-weight: 700; line-height: 1.1; margin: .2rem 0; }
.side-card .alt { font-size: .82rem; color: #aab6c3; margin-bottom: 1.2rem; }
.side-card .btn { margin-bottom: .7rem; }
.side-agent { display: flex; gap: .8rem; align-items: center; padding-top: 1.2rem; margin-top: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.side-agent img { width: 52px; height: 52px; border-radius: 50%; }
.side-agent strong { color: #fff; display: block; font-size: .95rem; }
.side-agent span { font-size: .76rem; color: #aab6c3; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.side-actions button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; font-size: .82rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: .4rem; transition: .2s; }
.side-actions button:hover { border-color: var(--gold); }
.side-actions svg { width: 16px; height: 16px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(30px); background: var(--navy); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-size: .88rem; opacity: 0; transition: .3s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6,14,23,.96); z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lb-btn { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: .2s; }
.lb-btn:hover { background: var(--gold); color: var(--navy-900); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; } .lb-close { top: 20px; right: 20px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: .85rem; letter-spacing: .1em; }

/* Encabezado solo impresión */
.print-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-props { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .ficha-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .specs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 78px 0 auto 0; background: var(--navy); flex-direction: column; padding: 1.5rem; gap: 1.2rem; transform: translateY(-120%); transition: transform .35s; box-shadow: 0 20px 30px rgba(0,0,0,.3); }
  .nav.open { transform: none; }
  .header { z-index: 70; }
  .search-box { grid-template-columns: 1fr; }
  .search-box label { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
  .about .container, .contact .container { grid-template-columns: 1fr; gap: 50px; }
  .about-visual .seal { right: 10px; bottom: -30px; width: 120px; height: 120px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery .g-item { aspect-ratio: 4/3; }
  .gallery .g-item:first-child { grid-row: auto; }
  .gallery .g-item:nth-child(n+2) { display: none; }
  .ficha-price { text-align: left; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-props, .grid-4 { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .form-row, .amenities, .about-list { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .topbar .tb-right { display: none; }
  .brand .brand-name { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión de ficha (A4) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { font-size: 11pt; }
  .topbar, .header, .footer, .wa-float, .sidebar .btn, .side-actions, .thumbs, .breadcrumb, .lightbox, .toast, .related, .ficha-map, .no-print { display: none !important; }
  .print-only { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 12px; }
  .print-only img { width: 60px; height: 60px; border-radius: 50%; }
  .print-only div { text-align: right; font-size: 9pt; color: var(--muted); }
  .ficha-top { background: none; padding: 0; border: 0; }
  .gallery { height: 300px; margin: 12px 0; }
  .gallery .more { display: none; }
  .ficha-body { grid-template-columns: 1fr; padding: 10px 0; gap: 0; }
  .sidebar { position: static; }
  .side-card { box-shadow: none; background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .side-card .amount, .side-agent strong { color: var(--navy); }
  .panel { break-inside: avoid; padding: 1rem; margin-bottom: 10px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Evita desbordes horizontales en grillas con textos largos (emails) */
.contact .container > *, .about .container > *, .ficha-body > * { min-width: 0; }
.ci-item a, .footer a, .topbar a { overflow-wrap: anywhere; }
