/* Secuencia Gráfica estándar - Terrenos Gigantes En México */
:root{
  --bg:#071b17;
  --bg2:#0d2a24;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --brand: #8fe6c8;
  --brand2:#e7c46a;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, #113a31 0%, var(--bg) 55%, #040d0b 100%);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%; display:block}

.container{width:min(1100px, calc(100% - 40px)); margin:0 auto}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:12px; z-index:9999}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(7,27,23,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:16px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand-mark{
  width:40px; height:40px; border-radius:14px;
  background: conic-gradient(from 190deg, var(--brand), var(--brand2), var(--brand));
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.brand-text strong{display:block; font-size:15px; letter-spacing:.2px}
.brand-text small{display:block; font-size:12px; color:var(--muted); margin-top:1px}

.nav{display:flex; gap:16px; align-items:center}
.nav a{font-size:14px; color:var(--muted)}
.nav a:hover{color:var(--text)}

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  border-radius:14px;
  align-items:center; justify-content:center;
  gap:5px; padding:0;
}
.nav-toggle span{display:block; width:18px; height:2px; background:rgba(255,255,255,.85); border-radius:2px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#061512;
  font-weight:700;
  border:0;
  box-shadow: var(--shadow);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}
.btn-sm{padding:10px 12px; border-radius:14px; font-size:13px}
.btn-ghost{
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:none;
}

.hero{
  position:relative;
  min-height: calc(100vh - 70px);
  display:flex; align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(4,13,11,.15) 0%, rgba(4,13,11,.82) 70%, rgba(4,13,11,.96) 100%);
}
.hero-inner{position:relative; padding:70px 0 40px}

.kicker{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.86);
  font-size:13px;
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height:1.05;
  letter-spacing:-.5px;
}
.lead{
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}

.hero-cards{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

.section{padding:68px 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01))}
.section-head{margin-bottom:18px}
.section-head h2{margin:0 0 6px; font-size:26px}
.section-head p{margin:0; color:var(--muted)}

.grid-2{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:start;
}

.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

.about .media img{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.checks{margin:14px 0 0; padding:0; list-style:none}
.checks li{
  padding-left:28px;
  position:relative;
  margin:10px 0;
  color:var(--muted);
}
.checks li:before{
  content:"✓";
  position:absolute; left:0; top:0;
  width:20px; height:20px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px;
  background: rgba(143,230,200,.15);
  border:1px solid rgba(143,230,200,.35);
  color: var(--brand);
  font-weight:800;
}

.mini-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.gitem{
  padding:0; border:0; background:none; cursor:pointer;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
.gitem img{width:100%; height:170px; object-fit:cover; transition: transform .35s ease}
.gitem:hover img{transform: scale(1.04)}

.lightbox{
  position:fixed; inset:0;
  background: rgba(0,0,0,.8);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:120;
}
.lightbox[hidden]{display:none}
.lightbox-img{
  max-width:min(1000px, 96vw);
  max-height: 86vh;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close{
  position:absolute; top:16px; right:16px;
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.video .ratio, .embed .ratio, .map .ratio{border-radius:22px; overflow:hidden; border:1px solid rgba(255,255,255,.12); box-shadow: var(--shadow)}
.ratio{position:relative; padding-top:56.25%}
.ratio iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
  font-size:12px;
}

.social-links{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 6px}
.slink{
  display:inline-flex;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  font-weight:700;
  font-size:13px;
}

.contact .info{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px;
  margin-bottom:14px;
}
.contact .info h3{margin:0 0 10px}
.contact .info p{margin:8px 0; color:var(--muted)}
.contact a{color:var(--text); text-decoration:underline; text-underline-offset:3px}

.form{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px;
}
.form h3{margin:0 0 10px}
label{display:block; margin:12px 0 0; color:rgba(255,255,255,.85); font-size:13px}
input, select, textarea{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.2);
  color: var(--text);
  outline:none;
}
textarea{resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(143,230,200,.55);
  box-shadow: 0 0 0 4px rgba(143,230,200,.12);
}

.muted{color:var(--muted); font-size:12px; margin:12px 0 0}

.footer{
  padding:28px 0 44px;
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.footer .small{color:var(--muted); margin:0 0 10px; font-size:12px}
.footer a{text-decoration:underline; text-underline-offset:3px}

.wa-float{
  position:fixed;
  right:16px;
  bottom:16px;
  width:58px; height:58px;
  border-radius:20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  z-index:90;
  border:1px solid rgba(255,255,255,.18);
}
.wa-float svg{width:30px; height:30px; fill:#fff}

.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .grid-2{grid-template-columns: 1fr; gap:16px}
  .cards{grid-template-columns: repeat(2, minmax(0,1fr))}
  .hero-cards{grid-template-columns: 1fr; gap:12px}
  .gallery{grid-template-columns: repeat(2, minmax(0,1fr))}
  .gitem img{height:160px}
  .topbar .container{padding:10px 0}
  .nav{position:fixed; right:18px; top:68px; display:none; flex-direction:column; gap:10px;
       padding:14px; border-radius:20px; background: rgba(7,27,23,.94); border:1px solid rgba(255,255,255,.12); box-shadow: var(--shadow);}
  .nav.is-open{display:flex}
  .nav-toggle{display:flex}
}
