/* =========================================================
   Propiedades Exclusivas — estilos públicos (mobile-first)
   ========================================================= */
:root {
  --g: #004F49; --g-800: #00433D; --g-900: #00302C; --g-600: #0B6159; --g-100: #DCEBE8; --g-50: #EEF5F3;
  --o: #FF914D; --o-600: #F27A30; --o-50: #FFF1E7;
  --ink: #0F2220; --muted: #5E6E6B; --line: #E4E9E7; --bg: #F7F5F1; --card: #FFFFFF;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(0,48,44,.06), 0 4px 14px rgba(0,48,44,.06);
  --sh-2: 0 10px 30px rgba(0,48,44,.12);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 800; }
h2 em, h1 em { font-style: italic; color: var(--o); font-weight: 800; }
p { margin: 0; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--o) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s ease, background .2s, box-shadow .2s; border: 1.5px solid transparent; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--o); color: #fff; box-shadow: 0 6px 18px rgba(255,145,77,.35); }
.btn-orange:hover { background: var(--o-600); }
.btn-green { background: var(--g); color: #fff; }
.btn-green:hover { background: var(--g-800); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--g); }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--g); transition: background .2s; }
.icon-btn:hover { background: var(--g-50); }
.icon-btn.light { color: #fff; } .icon-btn.light:hover { background: rgba(255,255,255,.15); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--o-600); font-weight: 700; font-size: 14px; }
.link-arrow .i { width: 18px; transition: transform .2s; } .link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,245,241,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,48,44,.05); }
.header-in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--g); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-sep { width: 1.5px; height: 30px; background: currentColor; opacity: .9; }
.brand-text { display: flex; flex-direction: column; line-height: 1; letter-spacing: .02em; }
.brand-text span { font-weight: 500; font-size: 12.5px; }
.brand-text b { font-weight: 800; font-size: 15.5px; margin-top: 2px; }
.brand.light { color: #fff; }
.nav { display: none; gap: 30px; font-weight: 500; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; color: var(--ink); }
.nav a.on { font-weight: 700; }
.nav a.on::after, .nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--o); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .btn-sm { width: 40px; padding: 0; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(0,30,28,.45); animation: fade .2s; }
.mm-panel { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: #fff; padding: calc(var(--header) + 8px) 22px 22px; display: flex; flex-direction: column; gap: 4px; animation: slideIn .25s ease; }
.mm-panel a:not(.btn) { padding: 14px 4px; font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--line); }
.mm-panel .btn { margin-top: 18px; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.hero-card { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--g); color: #fff; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,48,44,.15) 0%, rgba(0,48,44,.45) 38%, rgba(0,58,53,.94) 78%, var(--g) 100%); }
.hero-copy { padding: 28px 22px 44px; }
.eyebrow { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; opacity: .92; margin-bottom: 12px; }
.eyebrow.dark { color: var(--g); opacity: 1; }
.hero h1 { font-size: clamp(36px, 10vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { display: inline-block; }
.hero-sub { margin-top: 14px; font-size: 16px; max-width: 30ch; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-ctas .btn { flex: 1 1 auto; }

/* ---------- Barra de búsqueda ---------- */
.searchbar { position: relative; z-index: 2; margin: -2px 6px 0; transform: translateY(-22px); background: #fff; border-radius: 22px; box-shadow: var(--sh-2); display: flex; align-items: center; gap: 6px; padding: 8px; }
.sb-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 4px 8px 4px 10px; color: var(--g); }
.sb-stack { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-stack small { font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.2; }
.sb-stack input, .sb-stack select { border: 0; outline: 0; background: transparent; padding: 0; font-weight: 600; font-size: 15.5px; color: var(--ink); width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.sb-stack input::placeholder { color: #9AA6A3; font-weight: 500; }
.sb-stack input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb-desk { display: none; }
.sb-filter { position: relative; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--g); background: var(--g-50); font-weight: 600; }
.sb-filter:hover { background: var(--g-100); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--o); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.sb-go { height: 46px; width: 46px; padding: 0; border-radius: 14px; }

/* ---------- Quick filters ---------- */
.quick { display: grid; gap: 16px; margin-top: -4px; }
.seg { display: inline-grid; grid-auto-flow: column; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; justify-self: start; }
.seg button { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--g); color: #fff; }
.cats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; flex: none; width: 108px; height: 92px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 600; transition: background .2s, color .2s, transform .15s; }
.cat .i { width: 28px; height: 28px; color: var(--g); stroke-width: 1.6; }
.cat.on { background: var(--g); color: #fff; } .cat.on .i { color: #fff; }
.cat:active { transform: scale(.96); }
.stats { display: none; }

/* ---------- Secciones ---------- */
.block { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head .muted { margin-top: 6px; font-size: 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.sort select { height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004F49' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; padding: 0 32px 0 12px; font-weight: 600; font-size: 13.5px; color: var(--ink); appearance: none; -webkit-appearance: none; max-width: 170px; }

/* Carrusel de destacadas */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; animation: rise .4s ease both; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--g-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--g); opacity: .35; }
.card-media .noimg .i { width: 48px; height: 48px; }
.tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; background: var(--o); color: #fff; }
.tag.alquiler { background: var(--g); }
.tag.soft { background: rgba(255,255,255,.94); color: var(--g); }
.tag.status { background: #0F2220; color: #fff; }
.tag .i { width: 14px; height: 14px; }
.fav { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,30,28,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s, background .2s; z-index: 2; }
.fav:active { transform: scale(.88); }
.fav.on { color: var(--o); background: #fff; }
.fav.on .i { fill: currentColor; }
.photo-count { position: absolute; right: 12px; bottom: 12px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(0,30,28,.55); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; backdrop-filter: blur(4px); }
.photo-count .i { width: 14px; height: 14px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; }
.card-loc .i { width: 16px; height: 16px; color: var(--o); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink); }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs .i { width: 18px; height: 18px; color: var(--g); stroke-width: 1.6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-size: 21px; font-weight: 800; color: var(--g); letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.go { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--g); transition: background .2s, color .2s, border-color .2s; }
.go .i { width: 18px; height: 18px; }
.card:hover .go { background: var(--g); color: #fff; border-color: var(--g); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card.skeleton .card-media, .card.skeleton .sk { background: linear-gradient(90deg, #EEF2F1 0%, #F7F9F8 50%, #EEF2F1 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk { height: 14px; border-radius: 7px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Filtros activos */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.chip-x { height: 34px; padding: 0 8px 0 14px; border-radius: 99px; background: var(--g-50); color: var(--g); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--g-100); }
.chip-x .i { width: 16px; height: 16px; }
.chip-x.clear { background: transparent; border-color: transparent; color: var(--o-600); text-decoration: underline; padding: 0 6px; }

.empty { text-align: center; padding: 40px 20px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.empty > .i { width: 40px; height: 40px; color: var(--g); opacity: .5; margin: 0 auto 10px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 40ch; margin: 0 auto 18px; }
.row-c { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Servicios */
.services { background: var(--g); color: #fff; border-radius: var(--r-xl); padding: 8px 22px; display: grid; grid-template-columns: 1fr; }
.services > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.services > div:last-child { border: 0; }
.services .i { grid-row: span 2; width: 34px; height: 34px; stroke-width: 1.5; align-self: center; }
.services h3 { font-size: 15.5px; font-weight: 700; }
.services p { font-size: 13px; opacity: .82; }

/* Nosotros + contacto */
.about { display: grid; gap: 22px; }
.about-copy h2 { margin: 6px 0 14px; }
.about-copy > p { color: var(--muted); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--o-50); color: var(--o-600); stroke-width: 2.5; }
.about-cta { background: linear-gradient(160deg, var(--g) 0%, var(--g-900) 100%); color: #fff; border-radius: var(--r-xl); padding: 28px 24px; position: relative; overflow: hidden; }
.about-cta::after { content: ''; position: absolute; width: 260px; height: 260px; border: 2px solid var(--o); border-radius: 50%; right: -120px; top: -120px; opacity: .55; }
.about-cta img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 14px; }
.about-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.about-cta p { opacity: .85; margin-bottom: 20px; }
.contact-links { display: grid; gap: 4px; margin-top: 16px; }
.contact-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; opacity: .92; }
.contact-links .i { width: 18px; height: 18px; color: var(--o); }

/* Footer */
.site-footer { margin-top: 56px; background: var(--g-900); color: #fff; padding: 32px 0 calc(28px + var(--safe-b)); }
.footer-in { display: grid; gap: 20px; justify-items: start; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.socials a:hover { background: var(--o); }
.copy { font-size: 13px; opacity: .65; }

/* ---------- Hoja de filtros ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,30,28,.5); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; background: #fff; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px 22px; }
.sheet-head h3 { font-size: 20px; font-weight: 800; }
.sheet-body { overflow-y: auto; padding: 4px 22px 18px; overscroll-behavior: contain; }
.sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.f-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border: 0; }
.f-group > label, .f-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.pill .i { width: 17px; height: 17px; color: var(--g); }
.pill.on { background: var(--g); border-color: var(--g); color: #fff; } .pill.on .i { color: #fff; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-input { height: 48px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; width: 100%; background: #fff; font-weight: 600; font-size: 16px; outline: 0; }
.f-input:focus { border-color: var(--g); }
select.f-input { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004F49' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 38px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-weight: 600; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--g); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Detalle ---------- */
.detail { padding-bottom: calc(96px + var(--safe-b)); }
.d-gallery { position: relative; margin: 0 0 0; }
.d-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--g-900); }
.d-track::-webkit-scrollbar { display: none; }
.d-track button { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.d-track img { width: 100%; height: 100%; object-fit: cover; }
.d-overlay { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 12px; pointer-events: none; }
.d-overlay > * { pointer-events: auto; }
.round { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--g); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.round.on { color: var(--o); } .round.on .i { fill: currentColor; }
.d-overlay .grp { display: flex; gap: 8px; }
.d-count { position: absolute; right: 12px; bottom: 14px; height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(0,30,28,.6); color: #fff; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.d-count .i { width: 15px; height: 15px; }
.d-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 5px; }
.d-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.d-dots i.on { width: 18px; background: #fff; }
.d-mosaic { display: none; }
.d-main { display: grid; gap: 22px; padding-top: 20px; }
.d-head .tags { position: static; margin-bottom: 12px; }
.d-head h1 { font-size: clamp(25px, 6.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.d-head .card-loc { margin-top: 10px; font-size: 15px; }
.d-price { margin-top: 14px; font-size: 30px; font-weight: 800; color: var(--g); letter-spacing: -.02em; }
.d-price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.d-code { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .06em; margin-top: 4px; }
.d-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.d-spec { background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-1); }
.d-spec .ic { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--g); display: grid; place-items: center; color: var(--g); flex: none; }
.d-spec .ic .i { width: 21px; height: 21px; stroke-width: 1.6; }
.d-spec b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.d-spec span { font-size: 12.5px; color: var(--muted); }
.d-sec { background: #fff; border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--sh-1); }
.d-sec h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.d-sec h2 .i { color: var(--o); }
.d-desc { white-space: pre-line; color: #33423F; font-size: 15.5px; line-height: 1.7; }
.d-desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: 10px; color: var(--o-600); font-weight: 700; font-size: 14px; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; list-style: none; padding: 0; margin: 0; }
.amen li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.amen .i { width: 18px; height: 18px; color: var(--o-600); stroke-width: 2.4; margin-top: 2px; }
.video { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video.vertical { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .playbtn { position: absolute; inset: 0; display: grid; place-items: center; }
.video .playbtn span { width: 72px; height: 72px; border-radius: 50%; background: var(--o); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(255,145,77,.5); transition: transform .2s; }
.video .playbtn .i { width: 30px; height: 30px; margin-left: 4px; }
.video:hover .playbtn span { transform: scale(1.08); }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--g-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 12px; }
.d-aside { display: none; }
.contact-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 22px; display: grid; gap: 10px; }
.contact-card .price { font-size: 26px; color: var(--g); }
.contact-card p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.d-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 10px; animation: up .3s ease; }
.d-bar .p { flex: 1; min-width: 0; }
.d-bar .p b { display: block; font-size: 18px; font-weight: 800; color: var(--g); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-bar .p span { font-size: 12px; color: var(--muted); }
.d-bar .icon-btn { border: 1.5px solid var(--line); }
.similar { margin-top: 36px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #061412; display: flex; flex-direction: column; animation: fade .2s; }
.lb-top { display: flex; align-items: center; justify-content: space-between; color: #fff; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px 20px; font-weight: 600; font-size: 14px; }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 0 0 calc(20px + var(--safe-b)); }
.lb-track img { max-width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; }
.lb-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }

/* Toast */
#toasts { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--sh-2); opacity: 0; transform: translateY(10px); transition: all .25s; }
.toast.in { opacity: 1; transform: none; }
.toast.err { background: #B42318; }

.demo-banner { background: var(--o-50); color: #8A3D0E; font-size: 13px; text-align: center; padding: 8px 12px; font-weight: 500; }
.demo-banner a { text-decoration: underline; font-weight: 700; }

/* ---------- Selector de número ---------- */
.picker { position: fixed; inset: 0; z-index: 85; display: flex; align-items: flex-end; justify-content: center; }
.picker-card { position: relative; width: 100%; background: #fff; border-radius: 26px 26px 0 0; padding: 0 0 calc(18px + var(--safe-b)); animation: up .26s cubic-bezier(.2,.8,.2,1); }
.picker-sub { padding: 0 22px 14px; color: var(--muted); font-size: 14px; }
.picker-list { display: grid; gap: 10px; padding: 0 16px; }
.pk-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 18px; transition: border-color .2s, background .2s; }
.pk-opt:hover, .pk-opt:focus-visible { border-color: var(--g); background: var(--g-50); }
.pk-opt > .i { color: var(--muted); }
.pk-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; flex: none; }
.pk-ic.wa { background: var(--o); }
.pk-txt { flex: 1; display: grid; }
.pk-txt b { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.pk-txt small { font-size: 13px; color: var(--muted); }
.c-line { display: flex; align-items: center; gap: 6px; }
.c-line a:first-child { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; flex: 1; }
.c-line .i { width: 18px; height: 18px; color: var(--o); }
.c-call { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.c-call:hover { background: rgba(255,255,255,.2); }
.cc-nums { text-align: center; font-weight: 600; color: var(--g) !important; margin: 4px 0 0 !important; font-size: 13.5px !important; }

/* =================== Tablet =================== */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .rail { grid-auto-columns: calc(50% - 10px); margin: 0 -24px; padding: 4px 24px 14px; }
  .cats { margin: 0; padding: 2px 0 6px; }
  .header-actions .btn-sm { width: auto; padding: 0 16px; }
  .hero-card { min-height: 520px; }
  .hero-copy { padding: 40px 36px; max-width: 560px; }
  .hero-ctas .btn { flex: none; }
  .searchbar { margin: 0 24px; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .services > div:nth-last-child(2) { border: 0; }
  .d-specs { grid-template-columns: repeat(3, 1fr); }
  .amen { grid-template-columns: repeat(3, 1fr); }
  .d-track { aspect-ratio: 16 / 10; }
  .footer-in { grid-template-columns: 1fr auto; align-items: center; }
  .footer-in .copy { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .hide-sm { display: none !important; } }

/* =================== Desktop =================== */
@media (min-width: 1024px) {
  :root { --header: 84px; }
  body { font-size: 16px; }
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header-in { background: #fff; border-radius: 0 0 26px 26px; padding: 0 28px; box-shadow: var(--sh-1); }
  .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0 !important; box-shadow: none !important; }
  .site-header .wrap { max-width: 1152px; }
  .brand img { width: 44px; height: 44px; }
  .brand-sep { height: 36px; }
  .brand-text span { font-size: 15px; } .brand-text b { font-size: 19px; }
  .hero { padding-top: 22px; }
  .hero-card { min-height: 470px; align-items: stretch; background: var(--g); }
  .hero-media { left: 40%; border-radius: 0; }
  .hero-media::after { background: linear-gradient(90deg, var(--g) 0%, rgba(0,79,73,.5) 22%, rgba(0,79,73,0) 50%); }
  .hero-copy { padding: 56px 56px 90px; max-width: 600px; align-self: center; }
  .hero h1 { font-size: 64px; }
  .hero-sub { font-size: 18px; }
  .searchbar { margin: 0 56px; transform: translateY(-50%); padding: 10px; border-radius: 26px; gap: 4px; }
  .sb-field { padding: 6px 14px; border-radius: 16px; background: transparent; transition: background .2s; }
  .sb-field:hover { background: var(--g-50); }
  .sb-desk { display: flex; flex: .8; position: relative; }
  .sb-desk::before { content: ''; position: absolute; left: -2px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
  .sb-q { flex: 1.3; }
  .sb-filter { height: 54px; padding: 0 16px; }
  .sb-go { width: auto; height: 54px; padding: 0 26px; border-radius: 18px; }
  .quick { grid-template-columns: 1fr auto; align-items: center; margin-top: -10px; gap: 20px 24px; }
  .cats { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; overflow: visible; }
  .cat { width: auto; height: 96px; font-size: 14px; flex-direction: row; gap: 12px; }
  .cat:hover:not(.on) { transform: translateY(-2px); box-shadow: var(--sh-2); }
  .stats { display: flex; gap: 28px; padding-left: 28px; border-left: 1.5px solid var(--line); }
  .stats b { display: block; font-size: 32px; font-weight: 800; color: var(--g); line-height: 1; letter-spacing: -.02em; }
  .stats span { font-size: 13px; color: var(--ink); line-height: 1.3; }
  .stats > div { display: flex; align-items: center; gap: 10px; }
  .block { margin-top: 64px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .services { grid-template-columns: repeat(4, 1fr); padding: 26px 28px; }
  .services > div { border: 0; border-right: 1px solid rgba(255,255,255,.18); padding: 4px 22px 4px 0; margin-right: 22px; }
  .services > div:last-child { border: 0; margin: 0; }
  .about { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .about-cta { padding: 36px; }
  .sheet-panel { left: auto; top: 0; bottom: 0; right: 0; width: 440px; max-height: none; border-radius: 26px 0 0 26px; animation: slideIn .28s cubic-bezier(.2,.8,.2,1); }
  .sheet-grab { display: none; }
  .sheet-head { padding: 22px 16px 10px 28px; }
  .sheet-body { padding: 0 28px 20px; flex: 1; }
  .lb-nav { display: grid; }
  .picker { align-items: center; }
  .picker-card { max-width: 420px; border-radius: 24px; padding-bottom: 18px; }
  .picker-card .sheet-grab { display: none; }
  .picker-card .sheet-head { padding-top: 18px; }
  #toasts { bottom: 32px; }

  /* Detalle desktop */
  .detail { padding-bottom: 20px; padding-top: 24px; }
  .d-gallery { display: none; }
  .d-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 520px; border-radius: var(--r-xl); overflow: hidden; position: relative; }
  .d-mosaic button { position: relative; overflow: hidden; background: var(--g-50); }
  .d-mosaic button:first-child { grid-row: span 2; }
  .d-mosaic.n1 { grid-template-columns: 1fr; } .d-mosaic.n1 button { grid-row: span 2; }
  .d-mosaic.n2 { grid-template-columns: 2fr 1fr; } .d-mosaic.n2 button:nth-child(2) { grid-row: span 2; }
  .d-mosaic.n3 { grid-template-columns: 2fr 1fr; }
  .d-mosaic.n4 button:nth-child(4) { grid-column: span 2; }
  .d-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  .d-mosaic button:hover img { transform: scale(1.03); }
  .d-mosaic .d-all { position: absolute; right: 16px; bottom: 16px; height: 42px; padding: 0 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--sh-2); }
  .d-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .d-topbar .grp { display: flex; gap: 8px; }
  .d-topbar .btn { height: 42px; }
  .d-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
  .d-main { padding-top: 32px; gap: 26px; }
  .d-specs { grid-template-columns: repeat(4, 1fr); }
  .d-aside { display: block; position: sticky; top: calc(var(--header) + 24px); margin-top: 32px; }
  .d-bar { display: none; }
  .d-sec { padding: 28px; }
  .similar .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) { .d-topbar { display: none; } }
@media (max-width: 639px) { .d-topbar { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.contact-links .c-call { display: grid; padding: 0; opacity: 1; }
