
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#061611;color:#fff}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
:root{--green:#78c82f;--dark:#061611;--deep:#03110d;--muted:#d8e5dc;--line:rgba(120,200,47,.32);--ink:#07170f}
.header{position:sticky;top:0;z-index:1000;height:86px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;background:rgba(6,22,17,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)}
.brand-logo{height:58px;width:auto;object-fit:contain}
.nav{display:flex;align-items:center;gap:24px;font-weight:800}
.nav a{color:#eaf4ec;font-size:15px}
.nav a:hover{color:var(--green)}
.nav-cta{padding:12px 18px;border-radius:999px;background:var(--green);color:#07170f!important}
.menu-btn{display:none;background:none;border:0;color:#bdf2ce;font-size:38px}

.hero{position:relative;min-height:calc(100vh - 86px);display:flex;align-items:center;padding:90px 7%;overflow:hidden}
.hero-bg{position:absolute;inset:0;background:url("../img/pv351-hero.jpeg") center/cover no-repeat;transform:scale(1.02)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,10,8,.91),rgba(1,10,8,.68),rgba(1,10,8,.25))}
.hero-content{position:relative;z-index:1;max-width:980px}
.eyebrow{color:var(--green);letter-spacing:3px;text-transform:uppercase;font-weight:900;font-size:14px;margin:0 0 14px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(42px,7vw,90px);line-height:.96;letter-spacing:-4px;margin-bottom:28px}
h2{font-size:clamp(34px,5vw,60px);line-height:1;letter-spacing:-2px;margin-bottom:22px}
.hero-text{max-width:760px;font-size:22px;line-height:1.65;color:#edf7f0;border-left:6px solid var(--green);padding-left:26px}
.hero-actions{display:flex;gap:18px;margin:36px 0;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:18px 28px;border-radius:14px;font-weight:900}
.btn.primary{background:linear-gradient(135deg,#a5ef48,#78c82f);color:#061611;box-shadow:0 18px 45px rgba(120,200,47,.32)}
.btn.secondary{border:1px solid rgba(255,255,255,.55);color:#fff}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px}
.hero-badges span{padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.06)}

.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#09281f;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats div{padding:30px;text-align:center;border-right:1px solid rgba(255,255,255,.08)}
.stats strong{display:block;color:var(--green);font-size:38px;line-height:1;font-weight:950}
.stats span{display:block;margin-top:8px;color:#dceee4;font-weight:700}

.intro{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;padding:95px 7%;background:#f5f7f3;color:var(--ink)}
.intro p:last-child{font-size:20px;line-height:1.75;color:#26372d}

.section{padding:100px 7%}
.section-title{max-width:900px;margin:0 auto 54px;text-align:center}
.section-title p:not(.eyebrow){color:#dbe9de;font-size:19px;line-height:1.7}

.services{background:#f6f8f5;color:var(--ink)}
.services .section-title p:not(.eyebrow){color:#38483f}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.service-card{overflow:hidden;border:1px solid rgba(5,64,44,.15);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.1)}
.service-card img{height:220px;width:100%;object-fit:cover}
.service-card img.focus-center{object-position:center 58%}
.service-card div{padding:26px}
.service-card span{color:#0b6f3b;font-weight:950;font-size:34px}
.service-card h3{font-size:24px;margin:12px 0}
.service-card p{color:#39473f;line-height:1.65}
.service-card strong{color:#0b5b37}

.projects-section{background:#061611}
.project-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:24px}
.project-card{overflow:hidden;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border:1px solid var(--line);box-shadow:0 24px 70px rgba(0,0,0,.22)}
.project-card img{height:280px;width:100%;object-fit:cover}
.project-card.featured img{height:360px}
.project-card div{padding:28px}
.project-type{display:inline-block;margin-bottom:12px;color:var(--green);font-weight:950;text-transform:uppercase;font-size:12px;letter-spacing:2px}
.project-card h3{font-size:27px;margin-bottom:14px}
.project-card p{color:#dceee4;line-height:1.7}
.project-card ul{padding-left:18px;color:#e8f4ed;line-height:1.8}

.case-strip{position:relative;min-height:620px;display:flex;align-items:center;padding:7%;overflow:hidden}
.case-strip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.42)}
.case-strip div{position:relative;max-width:760px}
.case-strip h2{font-size:clamp(42px,6vw,76px)}
.case-strip p{font-size:21px;line-height:1.7;color:#edf7f0}
.drone-strip img{object-position:center}
.pointcloud-strip img{object-position:center}

.technology{background:#061611}
.tech-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tech-grid article{border-radius:22px;overflow:hidden;background:rgba(255,255,255,.055);border:1px solid var(--line)}
.tech-grid img{height:210px;width:100%;object-fit:cover}
.tech-grid h3{padding:24px 24px 0;font-size:24px}
.tech-grid p{padding:0 24px 24px;color:#dceee4;line-height:1.6}

.workflow{background:#09281f}
.workflow-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.workflow-grid article{border:1px solid var(--line);border-radius:22px;padding:26px;background:rgba(255,255,255,.045)}
.workflow-grid span{color:var(--green);font-size:42px;font-weight:950}
.workflow-grid p{color:#dceee4;line-height:1.65}

.gallery-section{background:#f5f7f3;color:var(--ink)}
.gallery-section .eyebrow{color:#0b6f3b}
.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.gallery img{height:205px;width:100%;object-fit:cover;border-radius:16px;transition:.28s ease;box-shadow:0 20px 40px rgba(0,0,0,.12)}
.gallery img:hover{transform:scale(1.025)}

.why{padding:100px 7%;background:#061611}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.why-grid article{padding:34px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));border:1px solid var(--line)}
.why-grid h3{font-size:26px}
.why-grid p{color:#dceee4;line-height:1.7}

.contact{padding:100px 7%;background:radial-gradient(circle at 50% 30%,rgba(120,200,47,.18),transparent 36%),linear-gradient(135deg,#02130f,#062f24,#02130f)}
.contact-card{max-width:1100px;margin:0 auto;text-align:center;border:1px solid rgba(120,200,47,.42);border-radius:30px;padding:70px;background:rgba(255,255,255,.045);box-shadow:0 28px 80px rgba(0,0,0,.32)}
.contact-card p:not(.eyebrow){color:#eaf6ef;font-size:19px;line-height:1.7;max-width:720px;margin:0 auto 32px}
.contact-info{margin-top:36px;display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.contact-info span{padding:13px 16px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.05)}

.float-wa{position:fixed;right:24px;bottom:24px;width:66px;height:66px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#176b12;color:#fff;font-size:35px;z-index:999;box-shadow:0 18px 42px rgba(0,0,0,.3)}
.footer{padding:34px 7%;background:#020b08;text-align:center;color:#dceee4}
.footer img{height:54px;margin:0 auto 12px}

@media(max-width:1150px){
  .project-grid,.service-grid,.tech-grid{grid-template-columns:1fr 1fr}
  .workflow-grid{grid-template-columns:1fr 1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:760px){
  .header{height:90px;padding:0 18px}
  .brand-logo{height:auto;max-height:58px;max-width:265px}
  .menu-btn{display:block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#07100d;padding:20px;flex-direction:column;align-items:flex-start;border-top:1px solid var(--line)}
  .nav.is-open{display:flex}
  .nav a{width:100%;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .nav-cta{text-align:center}
  .hero{min-height:auto;padding:86px 22px}
  h1{letter-spacing:-2px}
  .hero-text{font-size:18px}
  .btn{width:100%}
  .stats{grid-template-columns:1fr 1fr}
  .intro,.project-grid,.service-grid,.tech-grid,.workflow-grid,.why-grid{grid-template-columns:1fr}
  .intro,.section,.why,.contact{padding:70px 22px}
  .case-strip{min-height:540px;padding:70px 22px}
  .gallery{grid-template-columns:1fr}
  .gallery img{height:250px}
  .contact-card{padding:44px 22px}
}


/* V13 - Ajustes visuales */
.intro{
  align-items:center;
}

.intro h2{
  max-width:720px;
}

.intro p:last-child{
  padding-top:8px;
}

.service-card img.focus-top{
  object-fit:cover;
  object-position:center 28%;
}

/* Para la foto vertical del GNSS, evitar que el receptor quede cortado */
.service-card img.gnss-card-img{
  object-fit:cover;
  object-position:center 18%;
}

/* Entregables con checks */
.deliverables{
  list-style:none;
  padding:0;
  margin:14px 0 0;
}

.deliverables li{
  position:relative;
  padding:7px 0 7px 26px;
  color:#26372d;
  line-height:1.45;
  font-weight:600;
}

.deliverables li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:7px;
  color:#0b7b42;
  font-weight:950;
}

/* Dar más aire a tarjetas de servicios */
.service-card div{
  min-height:390px;
}

/* Ajuste móvil */
@media(max-width:760px){
  .intro{
    align-items:flex-start;
  }

  .intro p:last-child{
    padding-top:0;
  }

  .service-card img.gnss-card-img{
    object-position:center 12%;
  }

  .service-card div{
    min-height:auto;
  }
}


/* V13.1 - Ajuste final tarjeta Topografía y Geomática */
.service-card img.gnss-service-img{
  height:300px;
  width:100%;
  object-fit:cover;
  object-position:58% 42%;
}

/* Un poco más de aire para que el receptor GNSS no se sienta cortado */
@media(max-width:760px){
  .service-card img.gnss-service-img{
    height:280px;
    object-position:58% 40%;
  }
}


/* V13.2 - Alineación visual de tarjetas */

/* Servicios: todas las tarjetas quedan con imagen del mismo alto y contenido alineado */
.service-grid{
  align-items:stretch;
}

.service-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.service-card > img{
  height:260px !important;
  min-height:260px;
  max-height:260px;
  width:100%;
  object-fit:cover;
  flex:0 0 260px;
}

.service-card div{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0 !important;
  padding-top:28px;
}

.service-card span{
  display:block;
  min-height:42px;
  line-height:1;
  margin-bottom:10px;
}

.service-card h3{
  min-height:64px;
  display:flex;
  align-items:flex-start;
  margin-top:0;
  margin-bottom:14px;
}

.service-card p:first-of-type{
  min-height:96px;
}

.service-card strong{
  display:block;
  margin-top:6px;
  margin-bottom:8px;
}

.deliverables{
  margin-top:0 !important;
}

/* Encadres individuales de servicios */
.service-card img.gnss-service-img{
  object-position:58% 38% !important;
}

.service-card:nth-child(2) > img{
  object-position:center 48%;
}

.service-card:nth-child(3) > img{
  object-position:center 48%;
}

.service-card:nth-child(4) > img{
  object-position:center 12%;
  background:#fff;
}

/* Proyectos destacados: todas las imágenes y encabezados parten igual */
.project-grid{
  align-items:stretch;
}

.project-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.project-card img,
.project-card.featured img{
  height:310px !important;
  min-height:310px;
  max-height:310px;
  width:100%;
  object-fit:cover;
  flex:0 0 310px;
}

.project-card div{
  display:flex;
  flex-direction:column;
  flex:1;
  padding-top:30px;
}

.project-type{
  display:block;
  min-height:18px;
  margin-bottom:16px;
}

.project-card h3{
  min-height:78px;
  display:flex;
  align-items:flex-start;
  margin-top:0;
  margin-bottom:14px;
}

.project-card p{
  min-height:118px;
}

.project-card ul{
  margin-top:0;
}

/* Encadres individuales de proyectos */
.project-card:nth-child(1) img{
  object-position:center 45%;
}

.project-card:nth-child(2) img{
  object-position:center 12%;
  background:#fff;
}

.project-card:nth-child(3) img{
  object-position:center center;
}

/* Ajuste móvil: priorizar lectura y no forzar alturas excesivas */
@media(max-width:760px){
  .service-card > img{
    height:240px !important;
    min-height:240px;
    max-height:240px;
    flex-basis:240px;
  }

  .service-card h3,
  .service-card p:first-of-type,
  .project-card h3,
  .project-card p{
    min-height:auto;
  }

  .project-card img,
  .project-card.featured img{
    height:260px !important;
    min-height:260px;
    max-height:260px;
    flex-basis:260px;
  }

  .project-type{
    min-height:auto;
  }
}

/* V14.1 - Nuevo logo MECGEO V2 */
.brand-logo{
  height:62px !important;
  max-width:360px;
  width:auto;
  object-fit:contain;
  background:transparent !important;
}

.header{
  background:rgba(3,17,13,.96);
}

.footer img{
  height:58px !important;
  width:auto;
  object-fit:contain;
}

@media(max-width:760px){
  .brand-logo{
    max-width:285px;
    height:auto !important;
    max-height:58px;
  }
}
