/* ===== Tokens ===== */
:root{
  --green: #5cae3c;
  --green-dark: #3f8c2a;
  --green-light: #e9f5e3;
  --navy: #16324a;
  --navy-light: #1f4661;
  --ink: #1c2b26;
  --muted: #5b6b66;
  --bg: #ffffff;
  --bg-alt: #f4f8f3;
  --border: #e3ebe1;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(22,50,74,.18);
  --ff-head: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--ff-head); margin:0 0 .5em; color:var(--navy); font-weight:700; line-height:1.15; }
p{ margin:0 0 1em; color:var(--muted); }
.container{ width:min(1180px, 92%); margin-inline:auto; }

/* ===== Reveal animation ===== */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.9em 1.7em; border-radius:999px; font-weight:600; font-size:.95rem;
  border:2px solid transparent; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--green); color:#fff; box-shadow:0 8px 20px -6px rgba(92,174,60,.55); }
.btn-primary:hover{ background:var(--green-dark); transform:translateY(-2px); }
.btn-outline{ border-color:rgba(255,255,255,.7); color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }
.btn-outline-light{ border-color:rgba(255,255,255,.35); color:#fff; margin-top:1.5rem; }
.btn-outline-light:hover{ background:rgba(255,255,255,.1); }
.btn-block{ width:100%; }
.btn-sm{ padding:.6em 1.1em; font-size:.85rem; }

/* ===== Header ===== */
.site-header{
  position:fixed; inset-block-start:0; inset-inline:0; z-index:100;
  background:rgba(255,255,255,0); transition:background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block:18px;
}
.site-header.scrolled{
  background:rgba(255,255,255,.94); backdrop-filter:blur(10px);
  box-shadow:0 6px 24px -12px rgba(22,50,74,.25); padding-block:10px;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; }
.logo{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.logo-badge{
  display:flex; align-items:center; justify-content:center;
  background:#fff; border-radius:12px; padding:4px 10px;
  box-shadow:0 4px 14px -6px rgba(0,0,0,.25);
}
.logo-badge img{ height:44px; width:auto; display:block; }
.footer-inner .logo-badge img{ height:56px; }

.main-nav{ display:flex; gap:1.9rem; margin-inline:auto; }
.main-nav a{
  font-size:.92rem; font-weight:600; color:#fff; position:relative; padding-block:4px;
  transition:color .25s ease;
}
.site-header.scrolled .main-nav a{ color:var(--navy); }
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--green);
  transition:width .25s ease;
}
.main-nav a:hover::after{ width:100%; }
.main-nav a:hover{ color:var(--green); }

.header-actions .header-cta{ box-shadow:none; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
.site-header.scrolled .nav-toggle span{ background:var(--navy); }

/* ===== Hero ===== */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center;
  color:#fff; overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video, .hero-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero-media video{ z-index:2; }
.hero-fallback-img{ z-index:1; }
.hero-overlay{
  position:absolute; inset:0; z-index:3;
  background:linear-gradient(180deg, rgba(16,30,24,.55) 0%, rgba(16,30,24,.45) 45%, rgba(11,22,17,.85) 100%);
}
.hero-content{ position:relative; z-index:4; padding-block:140px 80px; }
.eyebrow{
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--green); background:rgba(92,174,60,.15); border:1px solid rgba(92,174,60,.4);
  padding:.4em 1em; border-radius:999px; margin-bottom:1.1rem;
}
.hero h1{ color:#fff; font-size:clamp(2.4rem, 5.4vw, 4.1rem); max-width:16ch; margin-bottom:.4em; }
.hero h1 span{ color:var(--green); }
.hero-lead{ color:rgba(255,255,255,.88); font-size:1.15rem; max-width:52ch; margin-bottom:2rem; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:3rem; }
.hero-stats{ display:flex; gap:2.5rem; flex-wrap:wrap; }
.hero-stats .stat{ display:flex; flex-direction:column; }
.hero-stats strong{ font-family:var(--ff-head); font-size:1.6rem; color:#fff; }
.hero-stats span{ font-size:.82rem; color:rgba(255,255,255,.7); max-width:16ch; }

.scroll-cue{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%); z-index:4;
  width:28px; height:44px; border:2px solid rgba(255,255,255,.6); border-radius:20px;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:#fff; animation:scrollcue 1.8s infinite;
}
@keyframes scrollcue{ 0%{ opacity:1; top:8px;} 70%{ opacity:0; top:22px;} 100%{ opacity:0; top:22px;} }

/* ===== Sections ===== */
.section{ padding-block:100px; }
.section-alt{ background:var(--bg-alt); }
.section-head{ max-width:760px; margin-bottom:3.2rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head h2 small{ display:block; font-size:.5em; color:var(--green); font-weight:600; letter-spacing:.04em; margin-top:.3em; }

/* Pillars (nosotros) */
.pillars{ display:grid; grid-template-columns:repeat(3, 1fr); gap:2rem; }
.pillar{
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:2.2rem 1.8rem; transition:transform .25s ease, box-shadow .25s ease;
}
.pillar:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.pillar-icon{
  width:56px; height:56px; border-radius:14px; background:var(--green-light); color:var(--green-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.2rem;
}
.pillar-icon svg{ width:28px; height:28px; }
.pillar h3{ font-size:1.15rem; }
.pillar p{ font-size:.94rem; margin:0; }

/* Proyecto */
.project-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:3.2rem; align-items:center; }
.project-media img{ border-radius:var(--radius); box-shadow:var(--shadow); }
.price-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem; margin-bottom:1.8rem; }
.price-card{
  background:var(--navy); color:#fff; border-radius:12px; padding:1.1rem .8rem; text-align:center;
}
.price-label{ display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.65); margin-bottom:.35em; }
.price-value{ display:block; font-family:var(--ff-head); font-weight:700; font-size:1.25rem; color:var(--green); }
.check-list{ margin-bottom:1.8rem; }
.check-list li{
  position:relative; padding-left:1.9rem; margin-bottom:.7rem; font-size:.98rem; color:var(--ink);
}
.check-list li::before{
  content:''; position:absolute; left:0; top:.2em; width:20px; height:20px; border-radius:50%;
  background:var(--green-light);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f8c2a' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:11px;
}

/* Beneficios */
.benefits-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1.4rem; margin-bottom:3.5rem;
}
.benefit{
  position:relative; overflow:hidden;
  border-radius:14px; padding:1.6rem 1rem; min-height:170px;
  text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:.7rem;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 4px 14px -8px rgba(22,50,74,.3);
  background:var(--navy);
}
.benefit-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1;
  transition:transform .5s ease;
}
.benefit::after{
  content:''; position:absolute; inset:0; z-index:2;
  background:linear-gradient(180deg, rgba(16,50,74,.15) 0%, rgba(12,26,20,.78) 100%);
}
.benefit:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.benefit:hover .benefit-bg{ transform:scale(1.08); }
.benefit-icon{
  position:relative; z-index:3;
  width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.14);
  backdrop-filter:blur(3px); border:1px solid rgba(255,255,255,.35); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.benefit-icon svg{ width:22px; height:22px; }
.benefit span{ position:relative; z-index:3; font-size:.9rem; font-weight:600; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.4); }

.why-invest{ display:grid; grid-template-columns:repeat(4, 1fr); gap:1.4rem; }
.why-card{
  border-left:3px solid var(--green); padding:.3rem 0 .3rem 1.2rem;
}
.why-card h4{ font-size:1rem; margin-bottom:.3em; }
.why-card p{ font-size:.88rem; margin:0; }

/* Galeria */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:220px; gap:1rem;
}
.gallery-item{
  position:relative; border:0; padding:0; border-radius:var(--radius); overflow:hidden; cursor:zoom-in;
  background:var(--navy);
}
.gallery-item.span-2{ grid-column:span 2; grid-row:span 2; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.gallery-item:hover img{ transform:scale(1.08); }
.gallery-item::after{
  content:'\002B'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:2rem; color:#fff; background:rgba(22,50,74,0); opacity:0; transition:opacity .25s ease, background .25s ease;
}
.gallery-item:hover::after{ opacity:1; background:rgba(22,50,74,.35); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(10,18,15,.94); z-index:1000;
  display:none; align-items:center; justify-content:center; padding:5vh 4vw;
}
.lightbox.open{ display:flex; }
.lightbox-img{ max-width:100%; max-height:88vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:22px; right:28px; background:none; border:0; color:#fff; font-size:2.2rem;
  cursor:pointer; line-height:1;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.1); border:0;
  color:#fff; width:48px; height:48px; border-radius:50%; font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease;
}
.lightbox-nav:hover{ background:rgba(255,255,255,.2); }
.lightbox-prev{ left:20px; }
.lightbox-next{ right:20px; }

/* Ubicacion */
.map-wrap{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.map-wrap iframe{ width:100%; height:420px; border:0; display:block; }
.btn-outline-dark{ border-color:var(--navy); color:var(--navy); }
.btn-outline-dark:hover{ background:var(--navy); color:#fff; }
.map-link{ margin-top:1.6rem; }

/* Contacto */
.section-dark{ background:var(--navy); color:#fff; }
.section-dark .eyebrow{ color:var(--green); }
.section-dark h2{ color:#fff; }
.section-dark p{ color:rgba(255,255,255,.72); }
.contact-grid{ display:grid; grid-template-columns:1fr .95fr; gap:3.5rem; align-items:start; }
.contact-list{ margin:2rem 0 0; display:flex; flex-direction:column; gap:1.3rem; }
.contact-list li{ display:flex; align-items:flex-start; gap:1rem; }
.contact-list svg{ width:22px; height:22px; flex-shrink:0; color:var(--green); margin-top:2px; }
.contact-list strong{ display:block; font-size:1rem; }
.contact-list span{ font-size:.82rem; color:rgba(255,255,255,.6); }

.contact-form{
  background:#fff; color:var(--ink); border-radius:var(--radius); padding:2.2rem; box-shadow:var(--shadow);
}
.contact-form h3{ margin-bottom:1.2rem; }
.form-row{ margin-bottom:1.1rem; }
.form-row label{ display:flex; flex-direction:column; gap:.4rem; font-size:.85rem; font-weight:600; color:var(--navy); }
.form-row input, .form-row textarea{
  font-family:var(--ff-body); font-size:.95rem; padding:.8em 1em; border-radius:10px; border:1.5px solid var(--border);
  outline:none; transition:border-color .2s ease; resize:vertical; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--green); }

/* Footer */
.site-footer{ background:#0f2436; color:rgba(255,255,255,.7); padding-block:2.6rem; }
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap:.6rem; text-align:center; }
.footer-tag{ margin:0; font-size:.85rem; color:rgba(255,255,255,.55); }
.footer-copy{ margin:0; font-size:.78rem; color:rgba(255,255,255,.4); }

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed; bottom:24px; right:24px; z-index:90; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -6px rgba(37,211,102,.6); transition:transform .2s ease;
}
.whatsapp-float:hover{ transform:scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .main-nav{ position:fixed; top:0; right:0; height:100vh; width:min(320px, 80vw); background:#fff;
    flex-direction:column; padding:110px 2rem 2rem; gap:1.6rem; box-shadow:-10px 0 30px rgba(0,0,0,.15);
    transform:translateX(100%); transition:transform .35s ease; }
  .main-nav.open{ transform:translateX(0); }
  .main-nav a{ color:var(--navy); font-size:1.05rem; }
  .nav-toggle{ display:flex; }
  .header-actions{ display:none; }
  .pillars{ grid-template-columns:1fr; }
  .project-grid{ grid-template-columns:1fr; }
  .benefits-grid{ grid-template-columns:repeat(2, 1fr); }
  .why-invest{ grid-template-columns:repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); grid-auto-rows:180px; }
  .gallery-item.span-2{ grid-column:span 2; grid-row:span 1; }
  .contact-grid{ grid-template-columns:1fr; }
  .hero-stats{ gap:1.6rem; }
}
@media (max-width: 560px){
  .section{ padding-block:70px; }
  .benefits-grid{ grid-template-columns:repeat(2, 1fr); }
  .price-cards{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:flex-start; }
  .hero-actions .btn{ width:100%; justify-content:center; }
}
