:root{
  --bg:#0B0C0F;--panel:#111827;--panel2:#0F172A;
  --text:#E5E7EB;--muted:#9CA3AF;
  --gold:#F7F096;--gold2:#DCC364;--orange:#C0863A;--red:#440B08;
  --ring:rgba(247,240,150,.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1100px,92vw);margin:0 auto}
.topbar{position:sticky;top:0;z-index:50;backdrop-filter:blur(10px);
  background:rgba(11,12,15,.7);border-bottom:1px solid rgba(255,255,255,.06)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:44px;height:44px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.brand .title{font-weight:900;letter-spacing:.5px}
.brand .subtitle{color:var(--muted);font-size:12px;margin-top:2px}
.navlinks{display:flex;align-items:center;gap:18px}
.navlinks a{color:var(--muted);font-weight:600;font-size:14px}
.navlinks a:hover{color:#fff}
.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:14px;
  background:linear-gradient(135deg,rgba(247,240,150,.16),rgba(192,134,58,.14));
  border:1px solid rgba(247,240,150,.28);box-shadow:0 10px 30px rgba(0,0,0,.25);
  font-weight:800}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,rgba(247,240,150,.95),rgba(192,134,58,.95));
  color:#111;border-color:rgba(255,255,255,.25)}
.btn-ghost{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.10)}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
  color:var(--muted);font-weight:700;font-size:12px}
.hero{padding:44px 0 26px}
.heroGrid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:stretch}
@media(max-width:900px){.heroGrid{grid-template-columns:1fr}.navlinks{display:none}}
.card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);border-radius:22px;overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.35)}
.heroLeft{padding:26px;position:relative}
.kicker{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.hero h1{margin:0;font-size:clamp(28px,4vw,46px);line-height:1.05;letter-spacing:-.5px}
.hero p{color:var(--muted);font-size:16px;line-height:1.6;margin:12px 0 0}
.heroActions{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}
.heroRight{position:relative;min-height:340px}
.heroRight .img{height:100%;background-size:cover;background-position:center;filter:saturate(1.1) contrast(1.05)}
.heroRight .overlay{position:absolute;inset:0;
  background:radial-gradient(80% 60% at 20% 20%,rgba(247,240,150,.25),transparent 60%),
             radial-gradient(80% 60% at 80% 80%,rgba(68,11,8,.25),transparent 65%),
             linear-gradient(180deg,rgba(11,12,15,.25),rgba(11,12,15,.85))}
.section{padding:26px 0 44px}
.h2{font-size:22px;margin:0 0 12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:900px){.grid3{grid-template-columns:1fr}}
.feature{padding:18px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.feature .icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:rgba(247,240,150,.12);border:1px solid rgba(247,240,150,.22);margin-bottom:12px}
.feature h3{margin:0 0 6px;font-size:16px}
.feature p{margin:0;color:var(--muted);line-height:1.6;font-size:14px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
@media(max-width:900px){.split{grid-template-columns:1fr}}
.photoCard{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  position:relative;min-height:320px;background-size:cover;background-position:center}
.photoCard::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,12,15,.15),rgba(11,12,15,.92))}
.photoCard .caption{position:absolute;left:18px;right:18px;bottom:18px;z-index:1}
.photoCard .caption .big{font-weight:900;font-size:18px}
.photoCard .caption .small{color:var(--muted);margin-top:6px;line-height:1.5}
.inventoryGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:1000px){.inventoryGrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.inventoryGrid{grid-template-columns:1fr}}

/* ===== INVENTARIO ===== */
.unit{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  min-height:100%;
  display:flex;
  flex-direction:column;
}
.unit .cover{
  position:relative;
  overflow:hidden;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  aspect-ratio:4 / 3;
  min-height:190px;
}
.unit .cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.16) 35%,rgba(11,12,15,.82) 100%);
}
.pill{
  position:absolute;
  left:12px;
  top:12px;
  z-index:2;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
}
.pill.disponible{border-color:rgba(247,240,150,.35)}
.pill.apartado{border-color:rgba(192,134,58,.35)}
.unit .body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.unit .title{
  font-weight:900;
  font-size:17px;
  line-height:1.15;
}
.unit .meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.unit .price{
  margin-top:6px;
  font-weight:900;
  font-size:18px;
  color:var(--gold);
}
.unit .actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.smallbtn{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  font-weight:800;
  font-size:13px;
}
.smallbtn.primary{
  background:linear-gradient(135deg,rgba(247,240,150,.95),rgba(192,134,58,.95));
  color:#111;
  border-color:rgba(255,255,255,.18)
}

/* ===== FOOTER ===== */
.footer{border-top:1px solid rgba(255,255,255,.06);padding:26px 0;color:var(--muted)}
.footergrid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}
@media(max-width:900px){.footergrid{grid-template-columns:1fr}}
.footer a{color:var(--text);opacity:.85}
.footer a:hover{opacity:1}
hr.sep{border:0;border-top:1px solid rgba(255,255,255,.06);margin:18px 0}
.fab{position:fixed;right:18px;bottom:18px;z-index:80;display:flex;flex-direction:column;gap:10px}
.fab a{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 45px rgba(0,0,0,.35)}
.fab a.primary{background:linear-gradient(135deg,rgba(37,211,102,.95),rgba(0,0,0,.20));
  border-color:rgba(37,211,102,.35)}
.fab a:hover{transform:translateY(-1px)}

.kicker{align-items:center}
.badge{min-height:34px}
.badge.big{
  font-size:13px;
  padding:10px 14px;
  color:#111;
  background:linear-gradient(135deg,rgba(247,240,150,.95),rgba(192,134,58,.95));
  border-color:rgba(255,255,255,.18);
}

/* ===== GM Gallery ===== */
.gm-gallery{
  padding:14px;
}
.gm-gallery__main{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  cursor:pointer;
}
.gm-gallery__main img{
  width:100%;
  height:420px;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.gm-gallery__thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
  padding-bottom:4px;
}
.gm-gallery__thumb{
  flex:0 0 auto;
  width:96px;
  height:72px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  cursor:pointer;
}
.gm-gallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

/* ===== Lightbox ===== */
.gm-no-scroll{overflow:hidden}
.gm-lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.gm-lightbox.is-open{display:block}
.gm-lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(10px);
}
.gm-lightbox__panel{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.gm-lightbox__img{
  max-width:min(1100px,92vw);
  max-height:86vh;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.gm-lightbox__close{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(20,20,20,.55);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.gm-lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(20,20,20,.55);
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}
.gm-lightbox__nav--prev{left:18px}
.gm-lightbox__nav--next{right:18px}
.gm-lightbox__counter{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(20,20,20,.55);
  color:rgba(255,255,255,.9);
  font-size:13px;
}

/* ===== MÓVIL MÁS AGRESIVO ===== */
@media (max-width: 768px){
  .container{width:min(94vw,94vw)}
  .topbar{
    backdrop-filter:blur(14px);
    background:rgba(11,12,15,.82);
  }
  .nav{
    padding:12px 0;
    gap:12px;
    align-items:flex-start;
  }
  .brand{
    gap:10px;
    min-width:0;
    flex:1;
  }
  .brand img{
    width:52px;
    height:52px;
    border-radius:14px;
  }
  .brand .title{
    font-size:18px;
    line-height:1.05;
  }
  .brand .subtitle{
    font-size:11px;
    line-height:1.25;
  }
  .btn{
    padding:10px 14px;
    border-radius:18px;
    font-size:13px;
    text-align:center;
    justify-content:center;
  }
  .nav .btn{
    min-width:168px;
    min-height:72px;
    line-height:1.15;
    padding:12px 16px;
  }

  .section{
    padding:20px 0 34px;
  }

  .inventoryGrid{
    gap:18px;
  }

  .unit{
    border-radius:26px;
  }

  .unit .cover{
    aspect-ratio:16 / 10;
    min-height:0;
    background-position:center center;
  }

  .pill{
    left:14px;
    top:14px;
    padding:8px 12px;
    font-size:12px;
    border-width:1px;
  }

  .unit .body{
    padding:16px 16px 18px;
    gap:8px;
  }

  .unit .title{
    font-size:20px;
    line-height:1.1;
  }

  .unit .meta{
    font-size:12px;
    line-height:1.45;
  }

  .unit .price{
    font-size:26px;
    margin-top:4px;
  }

  .unit .actions{
    margin-top:12px;
    gap:12px;
  }

  .smallbtn{
    min-height:56px;
    padding:14px 16px;
    font-size:14px;
    border-radius:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .gm-gallery{
    padding:10px;
  }

  .gm-gallery__main{
    border-radius:18px;
  }

  .gm-gallery__main img{
    height:300px;
    object-position:center center;
  }

  .gm-gallery__thumbs{
    gap:8px;
    margin-top:10px;
  }

  .gm-gallery__thumb{
    width:92px;
    height:68px;
    border-radius:14px;
  }

  .heroLeft{
    padding:18px;
  }

  .hero h1,
  .heroLeft h1{
    font-size:22px !important;
    line-height:1.08;
  }

  .badge{
    min-height:30px;
    font-size:11px;
    padding:7px 10px;
  }

  .heroActions{
    gap:10px;
  }

  .heroActions .btn{
    width:100%;
    justify-content:center;
    min-height:52px;
  }

  .split{
    gap:14px;
  }

  .fab{
    right:14px;
    bottom:14px;
  }

  .fab a{
    width:58px;
    height:58px;
    border-radius:20px;
  }
}

/* ===== MÓVIL CHICO TODAVÍA MÁS UNIFORME ===== */
@media (max-width: 430px){
  .brand img{
    width:48px;
    height:48px;
  }

  .brand .title{
    font-size:17px;
  }

  .nav .btn{
    min-width:150px;
    min-height:68px;
    font-size:12px;
  }

  .unit .cover{
    aspect-ratio:16 / 11;
  }

  .unit .title{
    font-size:18px;
  }

  .unit .price{
    font-size:24px;
  }

  .smallbtn{
    font-size:13px;
    min-height:54px;
    padding:13px 14px;
  }

  .gm-gallery__main img{
    height:260px;
  }

  .gm-gallery__thumb{
    width:84px;
    height:62px;
  }
}