/* Los colores --primary y --accent vienen de /theme.css (se cambian desde el panel) */
:root {
  --primary: #6c4dff;
  --accent: #ff7a59;
  --mint: #2ed3a7;
  --sun: #ffd23f;
  --bg: #fbf9ff;
  --surface: #ffffff;
  --text: #17142b;
  --muted: #6e6a85;
  --line: #ebe7f5;
  --ok: #12a66f;
  --warn: #e39b00;
  --bad: #e5484d;
  --radius: 24px;
  --shadow: 0 2px 6px rgba(40, 20, 120, .05), 0 14px 34px rgba(40, 20, 120, .08);
  --shadow-lg: 0 6px 14px rgba(40, 20, 120, .08), 0 30px 60px rgba(40, 20, 120, .14);
  --wa: #25d366;
  --soft: color-mix(in srgb, var(--primary) 9%, #fff);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { letter-spacing: -.025em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.grad-text { background: linear-gradient(90deg, var(--sun), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; padding: 0 10px 0 18px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; color: var(--text); min-width: 0; }
.brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.brand .mark { width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; flex: none; transform: rotate(-6deg); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: .15s; }
.nav a:hover { color: var(--primary); background: var(--soft); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { background: var(--primary); }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--primary); color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 42%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn.ghost { background: #fff; color: var(--primary); border: 2px solid var(--line); box-shadow: none; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
label { font-size: .82rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
textarea { resize: vertical; min-height: 100px; }

/* ---------- Portada ---------- */
.hero { position: relative; color: #fff; margin-top: -76px; padding: 150px 0 150px; overflow: hidden;
  background: linear-gradient(140deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, var(--accent)) 60%, var(--accent) 120%);
  border-radius: 0 0 48px 48px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; pointer-events: none; }
.hero .b1 { width: 420px; height: 420px; background: var(--mint); top: -120px; right: 8%; animation: float 12s ease-in-out infinite; }
.hero .b2 { width: 360px; height: 360px; background: var(--sun); bottom: -160px; left: -80px; opacity: .4; animation: float 14s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; margin-bottom: 18px; backdrop-filter: blur(6px); }
.eyebrow i { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(46,211,167,.3); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(46,211,167,0); } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; margin: 0 0 18px; font-weight: 800; letter-spacing: -.04em; }
.hero p { font-size: 1.15rem; opacity: .92; margin: 0; max-width: 540px; }
.hero-stats { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 10px 18px; backdrop-filter: blur(6px); }
.hero-stats b { display: block; font-size: 1.5rem; line-height: 1.1; }
.hero-stats span { font-size: .82rem; opacity: .85; }
.hero-art { position: relative; height: 380px; }
.hero-art .pc { position: absolute; width: 62%; background: #fff; color: var(--text); border-radius: 22px; padding: 8px 8px 12px; box-shadow: 0 30px 60px rgba(20,10,60,.35); text-decoration: none; transition: transform .3s; }
.hero-art .pc img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-art .pc b { display: block; padding: 8px 6px 0; font-size: 1.05rem; color: var(--primary); }
.hero-art .pc small { display: block; padding: 0 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-art .pc:nth-child(1) { right: 0; top: 0; transform: rotate(5deg); }
.hero-art .pc:nth-child(2) { left: 0; bottom: -10px; transform: rotate(-6deg); }
.hero-art .pc:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.hero-art .sticker { position: absolute; z-index: 3; left: 4%; top: 10%; background: var(--sun); color: var(--text); font-weight: 800; padding: 10px 16px; border-radius: 16px; transform: rotate(-8deg); box-shadow: 0 10px 24px rgba(0,0,0,.2); font-size: .95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } .hero { padding: 130px 0 130px; border-radius: 0 0 32px 32px; } }

.search-box { position: relative; z-index: 2; margin-top: -90px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 20px; border: 1px solid #fff; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 5px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; }
.tabs button.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.search-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.search-grid .go .btn { height: 50px; }
@media (max-width: 1000px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .q { grid-column: 1 / -1; } .search-grid .go { grid-column: 1 / -1; } }

.cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.cat { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: .15s; }
.cat:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat.active { background: var(--text); color: #fff; border-color: var(--text); }
.cat span { font-size: 1.2rem; }

/* ---------- Listado ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2, .title-xl { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .img { position: relative; aspect-ratio: 4 / 3; background: #e9e5f5; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .img img { transform: scale(1.07); }
.card.closed .img img { filter: grayscale(.8); }
.pill { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(255,255,255,.95); color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.pill.feat { left: auto; right: 56px; background: var(--sun); color: var(--text); }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; transition: transform .15s; font-size: 1.15rem; line-height: 1; }
.fav:hover { transform: scale(1.12); }
.fav.on { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.35); } }
.ribbon { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .08em; color: #fff; background: var(--bad); text-transform: uppercase; }
.ribbon.apartada { background: var(--warn); }
.card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-size: 1.45rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 4px; }
.specs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; color: var(--text); font-size: .86rem; font-weight: 600; }
.specs span { display: inline-flex; align-items: center; gap: 5px; background: var(--soft); padding: 6px 10px; border-radius: 999px; }
.specs svg { color: var(--primary); }
.specs svg, .loc svg { width: 16px; height: 16px; flex: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .big { font-size: 3rem; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pager button { min-width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.step .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 14px; }
.step:nth-child(1) .ico { background: color-mix(in srgb, var(--primary) 14%, #fff); }
.step:nth-child(2) .ico { background: color-mix(in srgb, var(--accent) 18%, #fff); }
.step:nth-child(3) .ico { background: color-mix(in srgb, var(--mint) 22%, #fff); }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.step .n { position: absolute; right: 18px; top: 6px; font-size: 4.5rem; font-weight: 800; color: var(--soft); line-height: 1; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bloques informativos ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about .box { background: var(--surface); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); }
.about-text { background: var(--text); color: #fff; border-radius: 28px; padding: 40px; position: relative; overflow: hidden; }
.about-text::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; bottom: -80px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .7; filter: blur(10px); }
.about-text > * { position: relative; z-index: 1; }
.about-text p { font-size: 1.1rem; opacity: .85; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-text { padding: 28px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* ---------- Detalle ---------- */
.breadcrumb { padding: 26px 0 10px; font-size: .9rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--primary); font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(540px, 60vw); border-radius: 28px; overflow: hidden; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; position: relative; background: #e9e5f5; overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .main { grid-row: 1 / 3; }
.gallery .more { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 60%, transparent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.gallery.one { grid-template-columns: 1fr; } .gallery.two { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; } .gallery.two .main { grid-row: auto; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 66vw; border-radius: 22px; } .gallery button:not(.main) { display: none; } .gallery .main { grid-row: auto; } }
.detail { display: grid; grid-template-columns: 1fr 370px; gap: 32px; padding: 30px 0 60px; align-items: start; }
@media (max-width: 950px) { .detail { grid-template-columns: 1fr; } }
.detail h1 { margin: 10px 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.12; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tag.vendida, .tag.rentada { background: #fde6e7; color: var(--bad); }
.tag.apartada { background: #fff2cf; color: #9a6a00; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 1.4rem; font-weight: 800; }
.fact span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.desc { white-space: pre-line; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.amen li { display: flex; gap: 8px; align-items: center; background: var(--soft); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.amen li::before { content: "✓"; color: #fff; background: var(--mint); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; flex: none; }
.sticky { position: sticky; top: 96px; }
@media (max-height: 920px) { .sticky { position: static; } }
.contact-card { border: 2px solid var(--soft); }
.contact-card .price { font-size: 2rem; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-card form { display: grid; gap: 10px; margin-top: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.notice.ok { background: #dcf7ec; color: var(--ok); }
.notice.err { background: #fde6e7; color: var(--bad); }
.sample-banner { background: #fff7d6; border: 2px dashed #f5d565; color: #7a5a00; padding: 10px 16px; border-radius: 16px; font-size: .9rem; margin-bottom: 16px; }

/* ---------- Visor de fotos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16,12,36,.95); display: grid; grid-template-rows: 1fr auto; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lightbox .stage { display: grid; place-items: center; padding: 20px 70px; min-height: 0; }
.lightbox .stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 16px; }
.lightbox .nav-btn, .lightbox .close { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .nav-btn:hover, .lightbox .close:hover { background: var(--primary); }
.lightbox .prev { left: 14px; top: 50%; } .lightbox .next { right: 14px; top: 50%; } .lightbox .close { right: 14px; top: 14px; }
.lightbox .count { color: #fff; text-align: center; padding: 14px; opacity: .8; }

/* ---------- Pie y WhatsApp flotante ---------- */
.site-footer { background: var(--text); color: #bdb8d6; padding: 56px 0 26px; margin-top: 50px; border-radius: 48px 48px 0 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } .nav .hide-sm { display: none; } .site-footer { border-radius: 32px 32px 0 0; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.site-footer a { color: #bdb8d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 22px; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.5); transition: transform .2s; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); animation: none; }
.wa-float svg { width: 32px; height: 32px; }
.skeleton { background: linear-gradient(90deg, #eeeaf8 25%, #f7f5fd 50%, #eeeaf8 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 380px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Detalle: compartir, mapa, video, calculadora ---------- */
.gallery { position: relative; }
.all-photos { position: absolute; right: 14px; bottom: 14px; background: rgba(255,255,255,.95); color: var(--text); font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sh { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: .15s; }
.sh:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.sh svg { width: 17px; height: 17px; }
.sh.wa { color: #128c4b; } .sh.fb { color: #1877f2; }
.hot { display: inline-block; background: #fff1ea; color: #b8431c; border-radius: 999px; padding: 8px 16px; font-size: .92rem; margin: -8px 0 20px; }
.video, .map { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--soft); }
.map { aspect-ratio: 16 / 8; }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }
.btn.sm { padding: 8px 14px; font-size: .88rem; }
.calc-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; align-items: end; }
.calc-grid label b { color: var(--primary); }
input[type=range] { padding: 0; border: 0; accent-color: var(--primary); height: 44px; box-shadow: none; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; margin: 18px 0 10px; }
.calc-out div { background: var(--soft); border-radius: 18px; padding: 14px 16px; }
.calc-out span { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; }
.calc-out b { font-size: 1.15rem; }
.calc-out .big { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); color: #fff; }
.calc-out .big span { color: rgba(255,255,255,.85); }
.calc-out .big b { font-size: 1.4rem; }
.calc .hint { color: var(--muted); font-size: .84rem; margin: 0 0 14px; }
@media (max-width: 640px) { .calc-grid, .calc-out { grid-template-columns: 1fr; } }
.flash { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 120; opacity: 0; pointer-events: none; transition: .25s; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }

/* Barra fija en el celular con precio y WhatsApp */
.mobile-cta { display: none; }
@media (max-width: 950px) {
  .mobile-cta { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; gap: 8px; align-items: center; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-radius: 22px; padding: 8px 8px 8px 16px; box-shadow: 0 10px 40px rgba(30,15,90,.25); }
  .mobile-cta > div { flex: 1; min-width: 0; line-height: 1.15; }
  .mobile-cta small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
  .mobile-cta b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .mobile-cta .btn { padding: 12px 16px; }
  .mobile-cta .btn.ghost { padding: 12px; }
  body.has-cta { padding-bottom: 80px; }
  body.has-cta .wa-float { display: none; }
}

/* Tarjetas: etiquetas */
.pills { position: absolute; top: 12px; left: 12px; right: 56px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.pills .pill { position: static; }
.pill.new { background: var(--mint); color: #053b2c; }
.pill.feat { right: auto; }

/* ---------- Sección para propietarios ---------- */
.sell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, #fff), color-mix(in srgb, var(--accent) 12%, #fff)); border-radius: 36px; padding: clamp(24px, 4vw, 48px); }
.sell p { color: var(--muted); font-size: 1.08rem; }
.sell-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-weight: 600; }
.sell-list li { display: flex; gap: 10px; align-items: center; }
.sell-list li::before { content: "✓"; color: #fff; background: var(--primary); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; flex: none; }
.sell form { background: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.sell form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 800px) { .sell { grid-template-columns: 1fr; } }

/* ---------- Ficha técnica para imprimir o guardar en PDF ---------- */
.print-only { display: none; }
@media print {
  @page { size: letter; margin: 12mm; }
  body { background: #fff; padding: 0 !important; font-size: 11pt; }
  .site-header, .site-footer, .wa-float, .breadcrumb, .share, .no-print, .mobile-cta, #lead, .contact-card .btn, .contact-card .fav-btn, .sample-banner, .hot, .all-photos, .flash, .gallery .more { display: none !important; }
  .print-only { display: block; }
  .print-head { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--primary); padding-bottom: 10px; margin-bottom: 14px; font-size: 10pt; text-align: right; }
  .print-head b { display: block; font-size: 16pt; color: var(--primary); text-align: left; }
  .print-head span { color: var(--muted); }
  .print-price { font-size: 20pt; font-weight: 800; color: var(--primary); margin-top: 6px; }
  .print-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10pt; }
  .container { width: 100%; }
  .gallery { height: 230px; border-radius: 12px; }
  .desc { font-size: 10pt; }
  .panel h2 { font-size: 13pt; margin-bottom: 6px; }
  .gallery button:not(.main) { display: block !important; }
  .detail { grid-template-columns: 1fr; padding: 14px 0 0; gap: 0; }
  .detail h1 { font-size: 20pt; }
  .sticky { display: none; }
  .panel, .fact { box-shadow: none; border: 1px solid #ddd; padding: 12px 16px; margin-bottom: 10px; break-inside: avoid; }
  .facts { margin: 12px 0; grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .fact b { font-size: 12pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 520px) { .nav .hide-xs { display: none; } .site-header .container { padding-left: 12px; } }
@media (max-width: 380px) { .mobile-cta b { font-size: .92rem; } .mobile-cta .btn { padding: 12px; } }
@media (max-width: 480px) { .sell form .row2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .brand span { white-space: normal; line-height: 1.1; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }


/* =====================================================================
   Estilo corporativo: verde petróleo + cobre, foto en portada,
   títulos con serifa y textos en Montserrat.
   Los colores se cambian desde el panel (Configuración).
   ===================================================================== */
:root {
  --navy: var(--primary);
  --navy-dark: color-mix(in srgb, var(--primary) 72%, #000);
  --bg: #f6f8fb; --surface: #fff; --text: #1c2636; --muted: #667085; --line: #e3e8ef;
  --radius: 14px;
  --shadow: 0 4px 16px color-mix(in srgb, var(--primary) 8%, transparent);
  --shadow-lg: 0 14px 34px color-mix(in srgb, var(--primary) 16%, transparent);
  --soft: color-mix(in srgb, var(--primary) 6%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --mint: var(--accent); --sun: var(--accent);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
body { font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; background: var(--bg); color: var(--text); }
h1, h2, .title-xl, .section-head h2, .detail h1, .hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
h3, .card h3 { letter-spacing: 0; font-family: inherit; }
html { scroll-padding-top: 84px; }

/* ---- Encabezado azul marino ---- */
.site-header { position: sticky; top: 0; margin: 0; z-index: 50; background: var(--navy-dark); border-bottom: 2px solid var(--accent); box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.site-header .container { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 0; height: 74px; }
.brand { color: #fff; font-weight: 700; font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase; }
.brand img { height: 46px; max-width: 190px; }
.brand .mark { transform: none; border-radius: 6px; background: transparent; border: 1.5px solid rgba(255,255,255,.7); width: 40px; height: 40px; }
.nav { gap: 4px; }
.nav a { color: rgba(255,255,255,.88); font-weight: 600; font-size: .93rem; border-radius: 6px; padding: 9px 14px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.btn { color: #fff; margin-left: 8px; border-radius: 999px; padding: 10px 20px; }
.nav a.btn:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }

/* ---- Botones y campos ---- */
.btn { border-radius: 999px; box-shadow: none; font-weight: 600; padding: 12px 22px; font-size: .93rem; letter-spacing: .01em; background: var(--navy); }
.btn:hover { transform: translateY(-1px); filter: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 25%, transparent); background: var(--navy-dark); }
.btn.accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.accent:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000), var(--accent)); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.wa { box-shadow: none; } .btn.wa:hover { background: #1ebe5b; }
.btn.ghost { border: 1.5px solid var(--line); background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--soft); border-color: var(--navy); box-shadow: none; }
.btn.outline-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn.outline-light:hover { background: rgba(255,255,255,.18); box-shadow: none; }
.btn.lg { padding: 15px 28px; font-size: 1rem; }
label { color: var(--navy); font-weight: 600; font-size: .82rem; }
input, select, textarea { border-radius: 8px; border: 1.5px solid var(--line); padding: 11px 13px; font-size: .93rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- Portada con fotografía ---- */
.hero { margin-top: 0; border-radius: 0; color: #fff; text-align: center; padding: 120px 0 150px; min-height: 78vh; display: flex; align-items: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--navy-dark) 86%, transparent), color-mix(in srgb, var(--primary) 90%, transparent)),
    var(--hero-img, radial-gradient(ellipse at 70% 10%, color-mix(in srgb, var(--primary) 70%, #fff) 0%, transparent 55%), linear-gradient(160deg, var(--primary), var(--navy-dark)));
  background-size: cover; background-position: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.eyebrow { display: inline-flex; background: color-mix(in srgb, var(--accent) 28%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 70%, #fff); color: #fff;
  padding: 8px 18px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 24px; backdrop-filter: blur(4px); }
.eyebrow i { display: none; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.12; margin: 0 0 20px; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .9; max-width: 640px; margin: 0 auto; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* ---- Barra de cifras ---- */
.stats-bar { position: relative; z-index: 3; margin-top: -70px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--accent);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 26px 10px; }
.stats-bar:empty { display: none; }
.stats-bar div { text-align: center; padding: 4px 14px; border-left: 1px solid var(--line); }
.stats-bar div:first-child { border-left: 0; }
.stats-bar b { display: block; font-family: "Montserrat", sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stats-bar span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---- Títulos de sección ---- */
.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--navy); margin: 0 0 12px; }
.section-title p { margin: 0; font-size: 1.02rem; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .18em; font-size: .75rem; margin-bottom: 12px; }
.title-xl { color: var(--navy); }

/* ---- Catálogo con filtros a un lado ---- */
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters form { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
.filters h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.filters label { margin-bottom: 6px; }
.filters .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .check { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-weight: 500; font-size: .9rem; cursor: pointer; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.filters-toggle { display: none; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 10px; padding: 4px; margin: -6px 0 0; }
.tabs button { border-radius: 8px; font-weight: 600; font-size: .88rem; padding: 9px 6px; color: var(--muted); }
.tabs button.active { background: var(--navy); color: #fff; box-shadow: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px 22px; }
.results-head h3 { margin: 0 0 2px; font-size: 1.15rem; color: var(--navy); }
.results-head #count { font-size: .88rem; font-weight: 600; color: var(--muted); }
.results-head .sort { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-weight: 600; font-size: .88rem; }
.results-head .sort select { width: auto; }
.cats { justify-content: flex-start; gap: 8px; margin: 16px 0 20px; }
.cat { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .85rem; color: var(--navy); background: #fff; }
.cat:hover { transform: none; border-color: var(--navy); }
.cat.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.results .grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ---- Tarjetas de propiedad ---- */
.grid { gap: 24px; }
.card { border-radius: 16px; border: 0; box-shadow: var(--shadow); background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .img { margin: 0; border-radius: 0; background: #dfe5ee; aspect-ratio: 4 / 3; }
.card .img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--navy-dark) 88%, transparent)); pointer-events: none; }
.card:hover .img img { transform: scale(1.04); }
.pills { top: 14px; left: 14px; }
.pill { border-radius: 999px; font-weight: 700; font-size: .68rem; letter-spacing: .1em; padding: 6px 13px; background: #fff; color: var(--navy); }
.pill.op { background: var(--accent); color: #fff; }
.pill.feat, .pill.new { background: #fff; color: var(--accent); }
.pill.status { background: #b42318; color: #fff; } .pill.status.apartada { background: #b54708; }
.fav { width: 36px; height: 36px; color: var(--muted); top: 12px; right: 12px; }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: #c0392b; } .fav.on svg { fill: currentColor; }
.fav-btn svg { width: 18px; height: 18px; } .fav-btn.on svg { fill: #c0392b; stroke: #c0392b; }
.img-foot { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; gap: 8px; color: #fff; }
.img-foot .kind { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.price-tag { background: var(--navy-dark); border: 1px solid rgba(255,255,255,.25); padding: 7px 12px; border-radius: 8px; font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.price-tag small { font-weight: 600; font-size: .72rem; opacity: .8; }
.card .body { padding: 18px 20px 20px; gap: 8px; }
.card h3 { font-size: 1.04rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.loc svg { color: var(--accent); }
.specs { gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.specs span { background: none; padding: 0; color: var(--muted); font-weight: 500; font-size: .84rem; }
.specs svg { color: var(--navy); }
.card-cta { margin-top: 14px; display: block; text-align: center; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 10px; padding: 10px; font-weight: 600; font-size: .9rem; transition: .2s; }
.card:hover .card-cta { background: var(--navy); color: #fff; }
.card.closed .card-cta { border-color: var(--line); color: var(--muted); }
.ribbon { display: none; }
.pager button { border-radius: 10px; border: 1.5px solid var(--line); color: var(--navy); }
.pager button.active { background: var(--navy); border-color: var(--navy); }
.empty { border-radius: 16px; box-shadow: var(--shadow); border: 0; }
.skeleton { background: linear-gradient(90deg, #e9edf3 25%, #f4f6f9 50%, #e9edf3 75%); background-size: 200% 100%; }

/* ---- Sección oscura: por qué elegirnos ---- */
.section.dark { background: linear-gradient(160deg, var(--navy-dark), var(--primary)); color: #fff; }
.section-title.light h2 { color: #fff; }
.section-title.light p { color: rgba(255,255,255,.78); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px 24px; transition: .25s; }
.service:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.service .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 26px; height: 26px; color: #fff; }
.service h3 { margin: 0 0 8px; font-size: 1.05rem; }
.service p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.6; }

/* ---- Propietarios ---- */
.sell { background: #fff; border: 0; border-radius: 20px; box-shadow: var(--shadow); padding: 44px; }
.sell-list li::before { background: var(--accent); border-radius: 50%; }
.sell form { border-radius: 14px; box-shadow: none; border: 1px solid var(--line); background: var(--bg); }

/* ---- Contacto ---- */
.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.contact-info .title-xl { margin: 0 0 12px; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.contact-list { margin-top: 26px; gap: 16px; }
.contact-list li { font-weight: 500; }
.contact-list li svg { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.contact-list a { text-decoration: none; color: var(--navy); font-weight: 600; }
.contact-form { background: var(--bg); border-radius: 18px; padding: 30px; display: grid; gap: 12px; border-top: 4px solid var(--accent); }
.contact-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- Detalle de la propiedad ---- */
.page-detail main { padding-bottom: 20px; }
.breadcrumb { padding: 24px 0 14px; }
.breadcrumb a { color: var(--accent); }
.gallery { border-radius: 18px; }
.gallery .more { background: color-mix(in srgb, var(--navy-dark) 65%, transparent); }
.all-photos { border-radius: 999px; font-weight: 600; }
.detail h1 { color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.tag { border-radius: 999px; font-weight: 700; font-size: .7rem; letter-spacing: .1em; background: var(--soft); color: var(--navy); }
.tags .tag:first-child { background: var(--accent); color: #fff; }
.facts { gap: 14px; }
.fact { border-radius: 14px; box-shadow: var(--shadow); border: 0; border-bottom: 3px solid var(--accent); text-align: center; }
.fact b { font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.panel { border-radius: 16px; box-shadow: var(--shadow); border: 0; }
.panel h2 { font-size: 1.3rem; color: var(--navy); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.amen li { background: var(--bg); border: 0; border-radius: 8px; font-weight: 500; }
.amen li::before { background: var(--accent); border-radius: 50%; }
.contact-card { border: 0; border-top: 4px solid var(--accent); padding: 26px; }
.contact-card .price { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--navy); font-size: 2rem; font-weight: 800; }
.sh { border-radius: 999px; border-width: 1.5px; font-weight: 600; font-size: .85rem; }
.sh:hover { transform: none; border-color: var(--navy); color: var(--navy); }
.video, .map { border-radius: 12px; }
.sample-banner { border-radius: 10px; border-width: 1px; }
.notice { border-radius: 8px; }
.lightbox { background: color-mix(in srgb, var(--navy-dark) 96%, #000); }
.lightbox .nav-btn, .lightbox .close { border-radius: 50%; }
.lightbox .nav-btn:hover, .lightbox .close:hover { background: var(--accent); }
.page-detail .site-footer { margin-top: 40px; }

/* ---- Pie de página ---- */
.site-footer { border-radius: 0; background: var(--navy-dark); color: rgba(255,255,255,.65); margin-top: 0; padding: 64px 0 26px; border-top: 3px solid var(--accent); }
.site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer h4.foot-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; }
.site-footer .foot-logo { height: 52px; width: auto; margin-bottom: 12px; }
.site-footer p { line-height: 1.9; font-size: .92rem; margin: 0; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top-color: rgba(255,255,255,.12); margin-top: 40px; font-size: .82rem; }
.site-footer .legal a { color: rgba(255,255,255,.8); font-weight: 600; }
.wa-float { border-radius: 50%; animation: none; width: 58px; height: 58px; }
.wa-float:hover { transform: scale(1.06); }
.mobile-cta { border-radius: 14px; }
.reveal { transform: translateY(14px); }

/* ---- Celular y tableta ---- */
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 950px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .filters-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: #fff; border: 0; border-radius: 14px; box-shadow: var(--shadow);
    padding: 15px 20px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
  .filters-toggle::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
  .filters.open .filters-toggle::after { content: "–"; }
  .filters form { display: none; margin-top: 10px; }
  .filters.open form { display: grid; }
  .filters form h3 { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav .hide-sm { display: none; }
  .section { padding: 60px 0; }
  .hero { min-height: 0; padding: 90px 0 120px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 18px; margin-top: -56px; padding: 20px 6px; }
  .stats-bar div:nth-child(odd) { border-left: 0; }
  .stats-bar div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats-bar b { font-size: 1.6rem; }
  .sell { padding: 26px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-header .container { height: 64px; }
  .nav a.btn { padding: 10px 14px; font-size: .85rem; margin-left: 0; }
  .brand img { height: 38px; }
  .hero-actions .btn { width: 100%; }
  .contact-form .f2 { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .results-head { padding: 16px; }
}
@media print { .site-header, .site-footer { display: none !important; } }
.card .specs { margin-top: 8px; margin-bottom: 14px; gap: 12px; }
.card .body > .card-cta { margin-top: auto; }

/* =====================================================================
   Marca Costa Nayarit: negro, dorado, naranja atardecer y azul mar
   (tomados del logotipo). Va al final para tener prioridad.
   ===================================================================== */
:root {
  --sunset: #ef8a17;
  --ocean: #1a66b5;
  --gold-ink: color-mix(in srgb, var(--accent) 72%, #000);
  --gold-light: color-mix(in srgb, var(--accent) 65%, #fff);
  --on-accent: #15171b;
  --brand-line: linear-gradient(90deg, var(--sunset), var(--accent) 45%, var(--gold-light) 60%, var(--ocean));
  --navy-dark: color-mix(in srgb, var(--primary) 80%, #000);
  --bg: #f7f5f0; --line: #e7e2d7; --text: #1b1d22; --muted: #6b6f78;
  --soft: color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  --shadow: 0 4px 18px rgba(20, 18, 12, .07);
  --shadow-lg: 0 16px 38px rgba(20, 18, 12, .14);
}

/* Encabezado negro con el logotipo */
.site-header { background: #0d0e11; border-bottom: 0; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--brand-line); }
.site-header .container { height: 92px; }
.brand img { height: 76px; max-width: 220px; width: auto; }
.nav a { color: rgba(255,255,255,.86); }
.nav a:hover { color: var(--gold-light); background: none; }
.nav a.btn, .btn.accent { color: var(--on-accent); background: linear-gradient(135deg, var(--gold-light), var(--accent) 55%, var(--gold-ink)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav a.btn:hover, .btn.accent:hover { color: var(--on-accent); background: linear-gradient(135deg, var(--gold-light), var(--accent)); filter: brightness(1.05); }
.btn { background: var(--primary); }
.btn:hover { background: #000; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn.ghost { color: var(--primary); }
.btn.ghost:hover { border-color: var(--accent); background: var(--soft); }
label { color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Portada */
.hero { background:
    linear-gradient(180deg, rgba(10,11,14,.78), rgba(10,11,14,.9)),
    var(--hero-img, radial-gradient(ellipse 60% 70% at 85% 105%, rgba(239,138,23,.35), transparent 70%), radial-gradient(ellipse 55% 60% at 5% -5%, rgba(26,102,181,.35), transparent 70%), linear-gradient(160deg, #1c1e23, #0b0c0f));
  background-size: cover; background-position: center; }
.eyebrow { background: rgba(0,0,0,.25); border-color: color-mix(in srgb, var(--accent) 80%, transparent); color: var(--gold-light); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1::after { content: ""; display: block; width: 90px; height: 3px; margin: 22px auto 0; background: var(--brand-line); border-radius: 3px; }
.btn.outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Cifras */
.stats-bar { border-bottom: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand-line) border-box; }
.stats-bar b { color: var(--primary); }
.stats-bar div:last-child b { color: var(--gold-ink); }

/* Títulos */
.kicker { color: var(--gold-ink); }
.section-title h2, .title-xl, .results-head h3, .filters h3, .card h3, .detail h1, .panel h2 { color: var(--primary); }
.section-title h2::after { content: ""; display: block; width: 60px; height: 3px; margin: 16px auto 0; background: var(--accent); border-radius: 3px; }

/* Catálogo */
.filters h3 { border-bottom-color: var(--accent); }
.tabs button.active, .cat.active, .pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat { color: var(--text); }
.cat:hover { border-color: var(--accent); }
.filters .check input { accent-color: var(--accent); }

/* Tarjetas */
.card .img::after { background: linear-gradient(180deg, transparent, rgba(8,9,11,.88)); }
.pill.op { background: var(--accent); color: var(--on-accent); }
.pill.feat, .pill.new { color: var(--gold-ink); }
.price-tag { background: rgba(13,14,17,.92); border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent); color: #fff; }
.loc svg, .specs svg { color: var(--gold-ink); }
.card-cta { border-color: var(--primary); color: var(--primary); }
.card:hover .card-cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Sección oscura */
.section.dark { background:
  radial-gradient(ellipse 50% 60% at 100% 100%, rgba(239,138,23,.16), transparent 70%),
  radial-gradient(ellipse 45% 55% at 0% 0%, rgba(26,102,181,.18), transparent 70%),
  linear-gradient(160deg, #17191e, #0b0c0f); }
.section-title.light h2::after { background: var(--brand-line); }
.service { background: rgba(255,255,255,.04); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.service:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.service .ico { background: linear-gradient(135deg, var(--gold-light), var(--accent) 60%, var(--gold-ink)); }
.service .ico svg { color: var(--on-accent); }
.service h3 { color: #fff; }

/* Propietarios y contacto */
.sell-list li::before { background: var(--accent); color: var(--on-accent); }
.contact-list li svg { background: var(--accent-soft); color: var(--gold-ink); }
.contact-list a { color: var(--primary); }
.contact-form, .contact-card { border-top: 4px solid transparent; }
.contact-form { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--brand-line) border-box; }
.contact-card { background: linear-gradient(#fff, #fff) padding-box, var(--brand-line) border-box; }

/* Detalle */
.breadcrumb a { color: var(--gold-ink); }
.tags .tag:first-child { background: var(--accent); color: var(--on-accent); }
.tag { color: var(--primary); }
.fact { border-bottom-color: var(--accent); }
.fact b, .contact-card .price { color: var(--primary); }
.amen li::before { background: var(--accent); color: var(--on-accent); }
.gallery .more { background: rgba(10,11,14,.6); }
.lightbox { background: rgba(8,9,11,.96); }
.lightbox .nav-btn:hover, .lightbox .close:hover { background: var(--accent); color: var(--on-accent); }
.sh:hover { border-color: var(--accent); color: var(--primary); }

/* Pie de página */
.site-footer { background: #0b0c0f; border-top: 0; position: relative; color: rgba(255,255,255,.62); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-line); }
.site-footer .foot-logo { height: 120px; margin-bottom: 14px; }
.site-footer h4 { color: var(--gold-light); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .legal a { color: var(--gold-light); }

@media (max-width: 560px) {
  .site-header .container { height: 74px; }
  .brand img { height: 60px; }
  .site-footer .foot-logo { height: 100px; }
}
@media (min-width: 561px) { .site-header .container { height: 100px; } .brand img { height: 86px; max-width: 240px; } }

/* =====================================================================
   Animaciones (las controla /js/anim.js). Con "menos movimiento"
   activado en el sistema del visitante, todo se muestra quieto.
   ===================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordUp { from { opacity: 0; transform: translateY(105%) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kenburns { 0% { transform: scale(1.04) translate(0, 0); } 100% { transform: scale(1.16) translate(-1.5%, -2%); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 3%) scale(1.08); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes hint { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, 14px); opacity: 0; } }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes logoIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

/* Barra de avance de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand-line); pointer-events: none; }

/* Encabezado: transparente sobre la portada y sólido al bajar */
.site-header, .site-header .container, .brand img { transition: background-color .45s ease, height .35s ease, box-shadow .45s ease, backdrop-filter .45s ease; }
.site-header::after { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--sunset), var(--accent), var(--gold-light), var(--ocean), var(--sunset)); animation: shimmer 8s linear infinite; }
.brand img { animation: logoIn .8s .1s both; }
body.home .site-header { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(8,9,11,.65), rgba(8,9,11,0)); box-shadow: none; }
body.home .site-header::after { opacity: 0; transition: opacity .45s; }
body.scrolled .site-header { background: rgba(12,13,16,.9); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
body.home.scrolled .site-header::after { opacity: 1; }
@media (min-width: 561px) { body.scrolled .site-header .container { height: 78px; } body.scrolled .brand img { height: 64px; } }

/* Portada: foto con acercamiento lento, brillos que se mueven y olas */
.hero { position: relative; overflow: hidden; background: #0b0c0f; }
body.home .hero { padding-top: 190px; padding-bottom: 190px; }
.hero::before { content: ""; position: absolute; inset: -2%; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,11,14,.72), rgba(10,11,14,.88)),
    var(--hero-img, linear-gradient(160deg, #1c1e23, #0b0c0f));
  background-size: cover; background-position: center; animation: kenburns 26s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 35% 40% at 78% 78%, rgba(239,138,23,.32), transparent 70%),
    radial-gradient(ellipse 30% 35% at 18% 22%, rgba(26,102,181,.30), transparent 70%),
    radial-gradient(ellipse 25% 25% at 55% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  animation: drift 18s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow { animation: fadeUp .8s .05s both; }
.hero h1 { animation: fadeIn .4s both; }
.hero h1::after { transform-origin: 50% 50%; animation: lineGrow 1s 1s both cubic-bezier(.2,.8,.2,1); }
.hero h1.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1.split .w > span { display: inline-block; animation: wordUp .9s both cubic-bezier(.2,.8,.2,1); }
.hero p { animation: fadeUp .9s .85s both; }
.hero-actions { animation: fadeUp .9s 1.05s both; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-waves .wv { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero-waves .wv1 { fill: color-mix(in srgb, var(--ocean) 35%, transparent); animation: waveMove 22s linear infinite; height: 100%; }
.hero-waves .wv2 { fill: color-mix(in srgb, var(--accent) 30%, transparent); animation: waveMove 15s linear infinite reverse; height: 85%; }
.hero-waves .wv3 { fill: var(--bg); animation: waveMove 30s linear infinite; height: 70%; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 128px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; transform: translateX(-50%); animation: fadeIn 1s 1.6s both; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--gold-light); animation: hint 1.8s 2s ease-in-out infinite; }
.stats-bar { z-index: 3; }

/* Aparición al bajar */
.anim-on .a-up { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.anim-on .a-up.in { opacity: 1; transform: none; }
.anim-on .card.a-up { transform: translateY(40px) scale(.97); }
.anim-on .card.a-up.in { transform: none; }
.anim-on .card.a-up.in:hover { transform: translateY(-8px); }
.anim-on .service.a-up.in:hover { transform: translateY(-6px); }
.section-title h2::after { transition: transform 1s .35s cubic-bezier(.2,.8,.2,1); }
.anim-on .section-title.a-up h2::after { transform: scaleX(0); }
.anim-on .section-title.a-up.in h2::after { transform: scaleX(1); }

/* Tarjetas: elevación, acercamiento de la foto y destello dorado */
.card { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, opacity .8s; }
.card:hover { box-shadow: 0 22px 48px rgba(20,18,12,.2), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.card .img img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card:hover .img img { transform: scale(1.09); }
.card .img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,240,200,.38) 50%, transparent 65%); transform: translateX(-130%); transition: transform 1s ease; }
.card:hover .img::before { transform: translateX(130%); }
.price-tag { transition: transform .4s ease, background-color .4s; }
.card:hover .price-tag { transform: translateY(-3px); }
.card-cta { position: relative; overflow: hidden; }

/* Botones: brillo que cruza */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.accent::after, .nav a.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; }
.btn.accent:hover::after, .nav a.btn:hover::after { transform: translateX(120%); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s ease; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Servicios */
.service { position: relative; overflow: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .4s, background-color .4s, opacity .8s; }
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brand-line); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s ease; }
.service:hover::before { transform: scaleX(1); }
.service .ico { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.service:hover .ico { transform: rotate(-8deg) scale(1.12); }

/* Contacto y WhatsApp */
.contact-list li { transition: transform .3s ease; }
.contact-list li:hover { transform: translateX(6px); }
.wa-float { animation: waPulse 2.4s 3s infinite; }
.filters form, .results-head { transition: box-shadow .4s; }
.cat, .tabs button { transition: background-color .3s, color .3s, border-color .3s, transform .2s; }
.cat:active, .tabs button:active { transform: scale(.96); }

/* Detalle */
.gallery button img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.fact { transition: transform .35s ease, box-shadow .35s; }
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

@media (max-width: 800px) {
  body.home .hero { padding-top: 140px; padding-bottom: 160px; }
  .scroll-hint { display: none; }
  .hero-waves { height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-waves .wv, .scroll-hint span, .site-header::after { animation: none !important; }
}
body.scrolled .site-header { background: rgba(12,13,16,.96); }
@media (min-width: 801px) { body.home .hero { padding-bottom: 240px; } .scroll-hint { bottom: 120px; } }
.hero::after { opacity: .8; }

/* =====================================================================
   Tipografía: Cormorant Garamond (títulos, estilo editorial de lujo)
   + Jost (textos, geométrica clásica tipo Futura)
   ===================================================================== */
:root { --serif: "Cormorant Garamond", Garamond, Georgia, serif; --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif; }
body, button, input, select, textarea { font-family: var(--sans); }
body { font-size: 16.5px; letter-spacing: .005em; }
h1, h2, .title-xl, .section-title h2, .detail h1, .hero h1, .site-footer h4.foot-name { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; font-weight: 600; }
.section-title h2 { font-size: clamp(2.1rem, 3.8vw, 2.9rem); line-height: 1.1; }
.title-xl, .contact-info .title-xl { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; }
.detail h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; }
.panel h2 { font-size: 1.55rem; }
.stats-bar b { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.stats-bar div:last-child b { font-style: italic; }
.kicker, .eyebrow, .stats-bar span, .pill, .img-foot .kind { letter-spacing: .2em; font-weight: 500; }
.card h3, .results-head h3, .filters h3, .service h3 { font-weight: 600; letter-spacing: .01em; }
.card h3 { font-size: 1.08rem; }
.price-tag, .contact-card .price { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.btn, .nav a { font-weight: 500; letter-spacing: .04em; }
.nav a { font-size: .95rem; }
.btn.lg { font-size: 1.02rem; }
.hero p { font-weight: 400; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }

/* Redes sociales */
.socials { display: flex; gap: 10px; margin-top: 18px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--gold-light) !important; transition: background-color .3s, color .3s, transform .3s; }
.soc svg { width: 18px; height: 18px; }
.soc:hover { background: var(--accent); color: var(--on-accent) !important; transform: translateY(-3px); }
