
:root{
  --verde:#073B38;
  --verde-2:#021F1D;
  --verde-3:#0E4E47;
  --oro:#C79B45;
  --oro-2:#E4C56D;
  --marfil:#FBF8F0;
  --blanco:#FFFFFF;
  --tinta:#1D1A16;
  --gris:#665F55;
  --linea:rgba(199,155,69,.34);
  --shadow:0 24px 70px rgba(2,31,29,.18);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  color:var(--tinta);
  background:var(--marfil);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 34px));margin:auto}

/* TOP BAR */
.topbar{
  background:var(--verde-2);
  color:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(228,197,109,.20);
  font-size:.84rem;
}
.topbar-inner{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.top-left,.top-right{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.topbar b{color:var(--oro-2)}
.social-mini{display:flex;align-items:center;gap:12px}
.social-mini a{
  color:var(--oro-2);
  width:24px;height:24px;
  display:grid;place-items:center;
  border-radius:50%;
  font-weight:900;
}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(2,31,29,.08);
  box-shadow:0 10px 26px rgba(2,31,29,.06);
}
.nav{
  min-height:98px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{display:flex;align-items:center;gap:14px}
.brand img{
  width:275px;
  max-height:82px;
  object-fit:contain;
}
.menu{
  display:flex;
  align-items:center;
  gap:.2rem;
}
.menu-item{position:relative}
.menu a,.menu button{
  border:0;
  background:transparent;
  color:var(--tinta);
  padding:.88rem .9rem;
  border-radius:999px;
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  cursor:pointer;
}
.menu a:hover,.menu button:hover{color:var(--oro);background:#F8F1E3}
.menu a.active{
  color:var(--oro);
  box-shadow:inset 0 -2px 0 var(--oro);
}
.dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  min-width:300px;
  background:#fff;
  border:1px solid rgba(199,155,69,.22);
  border-radius:20px;
  padding:10px;
  box-shadow:var(--shadow);
}
.menu-item:hover .dropdown{display:block}
.dropdown a{
  display:block;
  color:var(--verde);
  text-transform:none;
  letter-spacing:0;
  padding:13px 14px;
  border-radius:14px;
}
.dropdown a:hover{background:#F5EBD8}
.nav-cta{
  border:0;
  border-radius:9px;
  padding:1rem 1.25rem;
  background:linear-gradient(135deg,var(--oro),var(--oro-2));
  color:var(--verde-2);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(199,155,69,.22);
}
.mobile-toggle{
  display:none;
  width:48px;height:48px;
  border:0;border-radius:14px;
  background:var(--verde);
  color:#fff;
  font-size:1.35rem;
}

/* HERO */
.hero{
  min-height:520px;
  position:relative;
  color:#fff;
  overflow:hidden;
  background:var(--verde-2) url("../img/fallback-hero.jpg") center/cover no-repeat;
}
.hero::before{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(90deg,rgba(2,31,29,.93) 0%,rgba(2,31,29,.78) 38%,rgba(2,31,29,.30) 65%,rgba(2,31,29,.12) 100%),
    url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1800&q=80");
  background-size:cover;
  background-position:center;
}
.hero-inner{
  position:relative;
  z-index:2;
  min-height:520px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
}
.hero-copy{padding:4.2rem 0}
.decor-line{
  width:48px;height:2px;
  background:var(--oro);
  margin-bottom:1.4rem;
}
h1,h2,h3{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  line-height:1;
}
h1{
  font-size:clamp(3rem,5.2vw,5.9rem);
  letter-spacing:.01em;
}
.eyebrow{
  color:var(--oro-2);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:800;
  font-size:.8rem;
  margin:1.1rem 0 1.2rem;
}
.hero p{
  color:rgba(255,255,255,.86);
  max-width:560px;
  font-size:1.03rem;
  line-height:1.72;
}
.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:1.6rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:8px;
  padding:.88rem 1.15rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:.84rem;
  cursor:pointer;
  border:1px solid rgba(228,197,109,.48);
}
.btn.primary{
  background:linear-gradient(135deg,var(--oro),var(--oro-2));
  color:var(--verde-2);
  border:0;
}
.btn.ghost{
  background:rgba(2,31,29,.26);
  color:#fff;
}

/* SECTIONS */
.section{padding:4.4rem 0}
.section-head{
  text-align:center;
  margin-bottom:2.3rem;
}
.section-head .eyebrow{margin:0 0 .45rem;color:var(--oro)}
.section-head h2{
  color:var(--tinta);
  font-size:clamp(2.4rem,4vw,4.4rem);
}
.section-head:after{
  content:"✦";
  color:var(--oro);
  display:block;
  margin:.7rem auto 0;
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.service-card{
  background:#fff;
  border:1px solid rgba(199,155,69,.22);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 14px 32px rgba(2,31,29,.07);
  transition:.25s ease;
}
.service-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}
.service-img{
  height:150px;
  background:#ddd center/cover no-repeat;
}
.service-body{
  padding:18px 18px 20px;
  min-height:104px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.service-body h3{
  color:var(--verde-2);
  font-size:1.3rem;
  line-height:1.25;
}
.arrow{
  color:var(--oro);
  font-size:1.4rem;
  line-height:1;
}

/* WHY */
.why{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  align-items:stretch;
}
.why-photo{
  min-height:330px;
  background:url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=1000&q=80") center/cover no-repeat;
}
.why-content{
  background:#fff;
  padding:3.2rem 4rem;
}
.why-content h2{
  font-size:clamp(2.2rem,3.2vw,3.7rem);
  text-align:center;
}
.reasons{
  margin-top:2.4rem;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
}
.reason{
  text-align:center;
}
.reason-icon{
  width:56px;height:56px;
  display:grid;place-items:center;
  margin:0 auto .8rem;
  border:1px solid var(--linea);
  border-radius:50%;
  color:var(--oro);
  font-size:1.55rem;
}
.reason b{
  display:block;
  color:var(--verde);
  font-size:.9rem;
}
.reason p{
  color:var(--gris);
  font-size:.78rem;
  line-height:1.45;
}

/* LOCATION */
.location{
  display:grid;
  grid-template-columns:.36fr .64fr;
  min-height:265px;
}
.location-card{
  background:var(--verde);
  color:#fff;
  padding:2.5rem 4rem;
  display:grid;
  align-content:center;
}
.location-card h2{
  font-size:2.5rem;
}
.location-card p{
  color:rgba(255,255,255,.82);
  line-height:1.7;
}
.location-card .btn{
  width:max-content;
  margin-top:.8rem;
}
.map iframe{
  width:100%;
  height:100%;
  min-height:265px;
  display:block;
  border:0;
}

/* CONTACT */
.contact-section{
  display:grid;
  grid-template-columns:.35fr .65fr;
  background:#fff;
}
.contact-photo{
  min-height:320px;
  background:url("https://images.unsplash.com/photo-1528605248644-14dd04022da1?auto=format&fit=crop&w=1000&q=80") center/cover no-repeat;
}
.contact-content{
  padding:3rem 5rem;
  display:grid;
  grid-template-columns:.34fr .66fr;
  gap:34px;
  align-items:start;
}
.contact-content h2{
  font-size:clamp(2.3rem,3.5vw,4rem);
}
.contact-content p{
  color:var(--gris);
  line-height:1.7;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.field{margin-bottom:12px}
input,select,textarea{
  width:100%;
  border:1px solid rgba(7,59,56,.13);
  border-radius:4px;
  padding:13px 14px;
  outline:none;
  background:#fff;
}
textarea{
  min-height:116px;
  resize:vertical;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--oro);
  box-shadow:0 0 0 4px rgba(199,155,69,.11);
}
.submit{
  border:0;
  background:var(--verde);
  color:#fff;
  border-radius:4px;
  padding:14px 26px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
}
.form-message{
  margin-top:10px;
  font-weight:800;
  color:var(--verde);
}

/* FOOTER */
.footer{
  background:var(--verde-2);
  color:#fff;
  padding:3rem 0 1.4rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:.9fr .75fr 1.2fr .45fr;
  gap:34px;
  align-items:start;
}
.footer-logo img{
  width:250px;
  max-width:100%;
}
.footer h3{
  color:var(--oro-2);
  font-size:1.2rem;
  font-family:"Montserrat",sans-serif;
  font-weight:800;
  margin-bottom:1rem;
}
.footer a,.footer li,.footer p{
  color:rgba(255,255,255,.75);
  line-height:1.7;
  font-size:.9rem;
}
.footer ul{
  list-style:none;
  padding:0;
  margin:0;
}
.footer li:before{
  content:"✓";
  color:var(--oro);
  margin-right:.45rem;
}
.social-footer{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.social-footer a{
  width:38px;height:38px;
  border:1px solid var(--oro);
  color:var(--oro-2);
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
}
.legal{
  border-top:1px solid rgba(255,255,255,.13);
  margin-top:2rem;
  padding-top:1rem;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  color:rgba(255,255,255,.58);
  font-size:.84rem;
}
.whatsapp{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:150;
  width:58px;height:58px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 15px 34px rgba(0,0,0,.22);
  font-size:1.8rem;
}

/* RESPONSIVE */
@media(max-width:1040px){
  .brand img{width:210px}
  .mobile-toggle{display:block}
  .menu{
    display:none;
    position:absolute;
    left:0;right:0;
    top:98px;
    background:#fff;
    padding:1rem;
    flex-direction:column;
    align-items:stretch;
    border-bottom:1px solid rgba(7,59,56,.10);
  }
  .menu.open{display:flex}
  .dropdown{position:static;display:none;box-shadow:none;margin-top:.4rem}
  .menu-item.open .dropdown{display:block}
  .nav-cta{display:none}
  .services-grid{grid-template-columns:1fr 1fr}
  .why,.location,.contact-section,.contact-content{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .topbar{display:none}
  .nav{min-height:82px}
  .menu{top:82px}
  .brand img{width:180px}
  .hero-inner{grid-template-columns:1fr;min-height:580px}
  h1{font-size:2.8rem}
  .services-grid,.reasons,.form-grid,.footer-grid{grid-template-columns:1fr}
  .why-content,.location-card,.contact-content{padding:2rem 1.25rem}
}


/* Ajustes v5.1 */
.brand img,
.footer-logo img{
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

.footer-logo img{
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.20));
}

/* Reparación de menú desplegable: sin hueco entre botón y opciones */
.menu-item{
  padding-bottom:16px;
  margin-bottom:-16px;
}
.dropdown{
  top:100% !important;
  margin-top:0 !important;
  z-index:999;
}
.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown{
  display:block;
}

/* Carrusel superior */
.hero{
  background:var(--verde-2) !important;
}
.hero::before{
  display:none !important;
}
.hero-slider{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.04);
  background-size:cover;
  background-position:center;
  transition:opacity 1.15s ease;
}
.hero-slide.active{
  opacity:1;
}
.hero-slider::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(2,31,29,.94) 0%,rgba(2,31,29,.76) 38%,rgba(2,31,29,.34) 66%,rgba(2,31,29,.15) 100%),
    radial-gradient(circle at 72% 25%,rgba(199,155,69,.18),transparent 36%);
}
.hero-inner{
  position:relative;
  z-index:2;
}

/* Nosotros */
.about-section{
  background:linear-gradient(180deg,#fff,var(--marfil));
}
.about-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:42px;
  align-items:center;
}
.about-copy h2{
  color:var(--verde);
  font-size:clamp(2.35rem,4vw,4.5rem);
}
.about-copy p{
  color:var(--gris);
  line-height:1.75;
}
.about-cards{
  display:grid;
  gap:16px;
}
.about-cards article{
  background:#fff;
  border:1px solid rgba(199,155,69,.24);
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 32px rgba(2,31,29,.06);
}
.about-cards b{
  display:block;
  color:var(--verde);
  font-size:1.1rem;
  margin-bottom:.45rem;
}
.about-cards span{
  color:var(--gris);
  line-height:1.65;
}

/* Sectores */
.sectors-section{
  background:#fff;
}
.sectors-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.sectors-grid article{
  background:var(--marfil);
  border:1px solid rgba(199,155,69,.24);
  border-radius:20px;
  padding:24px;
  min-height:210px;
  transition:.25s ease;
}
.sectors-grid article:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  background:#fff;
}
.sectors-grid i{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid var(--linea);
  color:var(--oro);
  font-style:normal;
  font-size:1.5rem;
  margin-bottom:14px;
}
.sectors-grid b{
  display:block;
  color:var(--verde);
  font-size:1.05rem;
  margin-bottom:.35rem;
}
.sectors-grid p{
  color:var(--gris);
  font-size:.92rem;
  line-height:1.62;
  margin:0;
}

@media(max-width:1040px){
  .about-grid,
  .sectors-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .about-grid,
  .sectors-grid{
    grid-template-columns:1fr;
  }
}


/* Ajustes v5.3: pie de página sin bloque de enlaces rápidos */
.footer-grid{
  grid-template-columns:1.1fr 1.25fr .55fr;
}
@media(max-width:1040px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .footer-grid{
    grid-template-columns:1fr;
  }
}


/* Ajustes v5.4: logo más visible y legible */
.brand img{
  width: 360px !important;
  max-height: 96px !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.footer-logo img{
  width: 320px !important;
  max-height: 110px !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.nav{
  min-height: 108px !important;
}
.header{
  box-shadow: 0 12px 28px rgba(2,31,29,.08);
}
@media(max-width:1040px){
  .brand img{
    width: 285px !important;
    max-height: 84px !important;
  }
  .nav{
    min-height: 92px !important;
  }
  .menu{
    top: 92px !important;
  }
}
@media(max-width:640px){
  .brand img{
    width: 220px !important;
    max-height: 72px !important;
  }
  .nav{
    min-height: 82px !important;
  }
  .menu{
    top: 82px !important;
  }
}


/* Ajustes v5.5: nuevo logotipo HQ solo para encabezado */
.brand img{
  width: 320px !important;
  max-width: 100%;
  max-height: 82px !important;
  object-fit: contain;
  display: block;
  background: transparent !important;
  image-rendering: -webkit-optimize-contrast;
}
.nav{
  min-height: 96px !important;
}
@media (max-width: 1040px){
  .brand img{
    width: 260px !important;
    max-height: 72px !important;
  }
  .nav{
    min-height: 88px !important;
  }
  .menu{
    top: 88px !important;
  }
}
@media (max-width: 640px){
  .brand img{
    width: 205px !important;
    max-height: 60px !important;
  }
  .nav{
    min-height: 78px !important;
  }
  .menu{
    top: 78px !important;
  }
}


/* Ajustes v5.6: logo del encabezado limpio, sin cuadricula y con máxima nitidez */
.brand img{
  width: 340px !important;
  max-width: 100%;
  max-height: 84px !important;
  object-fit: contain;
  display: block;
  background: #ffffff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
}
.nav{
  min-height: 98px !important;
}
@media (max-width: 1040px){
  .brand img{
    width: 280px !important;
    max-height: 74px !important;
  }
  .nav{
    min-height: 90px !important;
  }
  .menu{
    top: 90px !important;
  }
}
@media (max-width: 640px){
  .brand img{
    width: 218px !important;
    max-height: 62px !important;
  }
  .nav{
    min-height: 80px !important;
  }
  .menu{
    top: 80px !important;
  }
}


/* Ajustes v5.7: logo HQ transparente y cierre correcto de menú móvil */
.brand img{
  width: 340px !important;
  max-width: 100%;
  max-height: 84px !important;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
}
.header .brand{
  display:flex;
  align-items:center;
}
@media (max-width: 1040px){
  .brand img{
    width: 278px !important;
    max-height: 74px !important;
  }
}
@media (max-width: 640px){
  .brand img{
    width: 220px !important;
    max-height: 62px !important;
  }
}

/* Transición ligera del menú móvil */
@media(max-width:1040px){
  .menu{
    z-index: 1200;
  }
  .menu.open{
    display:flex;
  }
}
