
:root{
  --bg:#0b0b0b;
  --bg-soft:#111111;
  --card:#151515;
  --text:#f5f5f5;
  --muted:#b8b8b8;
  --gold:#c9a227;
  --gold-light:#e2bd4d;
  --border:rgba(255,255,255,.09);
  --max:1180px;
  --header:82px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin:0 auto}

/* HEADER */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(11,11,11,.88);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  min-height:var(--header);
  display:flex;align-items:center;gap:28px;
}
.logo-link{display:flex;align-items:center;flex-shrink:0}
.logo{display:block;width:155px;height:auto}
.main-nav{
  display:flex;align-items:center;gap:25px;
  margin-left:auto;
}
.main-nav a{
  color:#eee;font-size:14px;font-weight:600;
  transition:color .25s ease;
}
.main-nav a:hover{color:var(--gold-light)}
.header-actions{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;padding:0 20px;border-radius:3px;
  font-size:13px;font-weight:700;letter-spacing:.2px;
  border:1px solid transparent;transition:all .25s ease;
  cursor:pointer;
}
.btn-gold{background:var(--gold);color:#090909;border-color:var(--gold)}
.btn-gold:hover{background:var(--gold-light);border-color:var(--gold-light);transform:translateY(-2px)}
.btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.btn-outline:hover{border-color:var(--gold);color:var(--gold-light);transform:translateY(-2px)}
.menu-toggle{
  display:none;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.2);
  width:42px;height:38px;border-radius:3px;cursor:pointer;
}

/* HERO / CARRUSEL */
.hero{
  position:relative;
  min-height:clamp(560px,46vw,720px);
  overflow:hidden;
  background:#080808;
  padding-top:var(--header);
}
.hero-slides{
  position:relative;
  width:100%;
  min-height:clamp(560px,46vw,720px);
  overflow:hidden;
}
.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  opacity:0;
  visibility:hidden;
  transition:opacity .7s ease,visibility .7s ease;
  background:#080808;
}
.hero-slide.active{
  opacity:1;
  visibility:visible;
  z-index:1;
}

/* La imagen es un elemento real: no se deforma y no depende de background-image */
.hero-slide-image{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center center;
}
.hero-slide-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.48) 48%,
    rgba(0,0,0,.16) 100%
  );
  pointer-events:none;
}
.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  padding-top:35px;
  padding-bottom:65px;
}
.eyebrow{
  color:var(--gold-light);
  font-size:12px;
  font-weight:800;
  letter-spacing:2.2px;
  margin-bottom:15px;
}
.hero-slide h1,
.hero-slide h2{
  max-width:760px;
  font-size:clamp(38px,5vw,68px);
  line-height:1.04;
  letter-spacing:-1.5px;
  margin-bottom:22px;
}
.hero-text{
  max-width:650px;
  color:#e7e7e7;
  font-size:18px;
  line-height:1.65;
  margin-bottom:28px;
}
.hero-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-dots{
  position:absolute;
  left:50%;
  bottom:25px;
  transform:translateX(-50%);
  z-index:10;
  display:flex;
  gap:9px;
}
.hero-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.75);
  background:transparent;
  padding:0;
  cursor:pointer;
}
.hero-dot.active{
  background:var(--gold);
  border-color:var(--gold);
}

/* SECTIONS */
.section{padding:100px 0}
.section-heading{max-width:760px;margin-bottom:48px}
.section-heading h2{
  font-size:clamp(30px,4vw,48px);line-height:1.1;
  letter-spacing:-.8px;margin-bottom:16px;
}
.section-heading>p:last-child{color:var(--muted);font-size:17px}

/* SERVICES */
.services-section{background:#0b0b0b}
.services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
}
.service-card{
  position:relative;min-height:340px;overflow:hidden;
  background-position:center;background-size:cover;
  background-repeat:no-repeat;border:1px solid var(--border);
  display:flex;align-items:flex-end;
  transition:transform .35s ease,border-color .35s ease;
}
.service-card:hover{transform:translateY(-5px);border-color:rgba(201,162,39,.45)}
.service-content{position:relative;z-index:2;padding:28px;width:100%}
.service-number{color:var(--gold-light);font-size:12px;font-weight:800;letter-spacing:2px}
.service-content h3{font-size:25px;line-height:1.15;margin:8px 0 10px}
.service-content p{color:#ddd;font-size:14px;max-width:390px}

/* EQUIPMENT */
.equipment-section{background:#101010}
.equipment-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.equipment-card{
  background:var(--card);border:1px solid var(--border);
  overflow:hidden;transition:transform .35s ease,border-color .35s ease;
}
.equipment-card:hover{transform:translateY(-5px);border-color:rgba(201,162,39,.4)}
.equipment-image{
  width:100%;overflow:hidden;background:#111;
  display:block;line-height:0;
}
.equipment-image img{
  display:block;width:100%;height:auto;max-width:100%;
  object-fit:initial;object-position:center;
  background:#111;transition:transform .5s ease;
}
.equipment-card:hover .equipment-image img{transform:scale(1.02)}
.equipment-content{padding:22px}
.equipment-content h3{font-size:21px;margin-bottom:7px}
.equipment-content p{color:var(--muted);font-size:14px}

/* ABOUT */
.about-section{background:#0b0b0b}
.about-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:65px;align-items:center;
}
.about-content h2{
  font-size:clamp(32px,4vw,52px);line-height:1.08;
  margin-bottom:22px;
}
.about-content>p:not(.eyebrow){
  color:var(--muted);font-size:16px;margin-bottom:16px;max-width:610px;
}
.about-content .btn{margin-top:12px}
.about-image{overflow:hidden;border:1px solid var(--border)}
.about-image img{display:block;width:100%;height:auto}

/* CTA */
.cta-section{
  min-height:430px;background-size:cover;background-position:center;
  display:flex;align-items:center;
}
.cta-content{padding:75px 0}
.cta-content h2{
  max-width:760px;font-size:clamp(34px,4.5vw,58px);
  line-height:1.08;margin-bottom:17px;
}
.cta-content>p:not(.eyebrow){max-width:620px;color:#ddd;font-size:17px;margin-bottom:25px}

/* CONTACT */
.contact-section{background:#101010}
.contact-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start;
}
.contact-info h2{font-size:clamp(32px,4vw,50px);line-height:1.1;margin-bottom:18px}
.contact-info>p:not(.eyebrow){color:var(--muted);font-size:17px;margin-bottom:30px}
.contact-item{
  padding:18px 0;border-bottom:1px solid var(--border);
  display:flex;flex-direction:column;gap:4px;
}
.contact-item strong{font-size:12px;color:var(--gold-light);text-transform:uppercase;letter-spacing:1.5px}
.contact-item a{font-size:17px}
.contact-item a:hover{color:var(--gold-light)}
.contact-item span{color:#ddd}
.contact-direct-card{
  min-height:320px;padding:42px;
  background:#151515;border:1px solid var(--border);
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
}
.contact-icon{color:var(--gold-light);font-size:25px;margin-bottom:12px}
.contact-direct-card h3{font-size:28px;line-height:1.15;margin-bottom:12px}
.contact-direct-card p{color:var(--muted);margin-bottom:24px}

/* FOOTER */
.site-footer{background:#070707;border-top:1px solid var(--border)}
.footer-inner{
  padding:55px 0 35px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;
}
.footer-logo{width:145px;height:auto;margin-bottom:15px}
.footer-brand p{color:var(--muted);font-size:14px;max-width:330px}
.footer-links{display:flex;flex-direction:column;gap:9px}
.footer-links a,.footer-contact a{color:#ccc;font-size:14px}
.footer-links a:hover,.footer-contact a:hover{color:var(--gold-light)}
.footer-contact{display:flex;flex-direction:column;gap:9px}
.footer-bottom{
  border-top:1px solid var(--border);padding:20px 0;
  display:flex;justify-content:space-between;gap:20px;
  color:#777;font-size:12px;
}

/* WHATSAPP */
.floating-whatsapp{
  position:fixed;right:22px;bottom:22px;z-index:999;
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#25d366;color:#fff;font-size:28px;
  box-shadow:0 8px 25px rgba(0,0,0,.35);
  transition:transform .25s ease;
}
.floating-whatsapp:hover{transform:scale(1.08)}

/* REVEAL */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

/* RESPONSIVE */
@media (max-width:1000px){
  :root{--header:74px}
  .header-inner{gap:16px}
  .logo{width:140px}
  .menu-toggle{display:block;margin-left:auto}
  .main-nav{
    position:absolute;left:20px;right:20px;top:calc(100% + 1px);
    display:none;flex-direction:column;align-items:stretch;gap:0;
    background:#111;border:1px solid var(--border);
    box-shadow:0 18px 40px rgba(0,0,0,.4);
  }
  .main-nav.active{display:flex}
  .main-nav a{padding:14px 18px;border-bottom:1px solid var(--border)}
  .main-nav a:last-child{border-bottom:0}
  .header-actions{display:none}
  .services-grid,.equipment-grid{grid-template-columns:repeat(2,1fr)}
  .about-grid,.contact-grid{gap:40px}
}
@media (max-width:760px){
  .container{width:min(var(--max),calc(100% - 28px))}
  .hero,.hero-slides{min-height:650px}
  .hero-slide{
    background-position:center center;
    background-size:cover;
  }
  .hero-content{padding-top:65px;padding-bottom:80px}
  .hero-slide h1,.hero-slide h2{font-size:clamp(34px,9vw,48px)}
  .hero-text{font-size:16px}
  .section{padding:75px 0}
  .services-grid,.equipment-grid{grid-template-columns:1fr}
  .service-card{min-height:320px}
  .about-grid,.contact-grid{grid-template-columns:1fr}
  .about-image{order:-1}
  .footer-inner{grid-template-columns:1fr;gap:28px}
  .footer-bottom{flex-direction:column;gap:7px}
}
@media (max-width:420px){
  .logo{width:125px}
  .hero,.hero-slides{min-height:620px}
  .hero-buttons{flex-direction:column;align-items:stretch}
  .hero-buttons .btn{width:100%}
  .contact-direct-card{padding:28px}
  .floating-whatsapp{right:15px;bottom:15px}
}


/* ===== AJUSTE FINAL DEL CARRUSEL EN CELULAR ===== */
@media (max-width: 760px){
  .hero,
  .hero-slides{
    min-height: 680px;
  }

  .hero-slide{
    min-height: 680px;
    height: 680px;
    align-items: flex-end;
    background: #080808;
  }

  .hero-slide-image{
    /*
      En celular usamos contain para conservar exactamente la proporción
      de la imagen. Así nunca se estira ni se deforma.
    */
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 390px;
    object-fit: contain;
    object-position: center top;
  }

  .hero-slide-shade{
    top: 0;
    height: 440px;
    bottom: auto;
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.18) 48%,
        rgba(8,8,8,.98) 100%
      );
  }

  .hero-content{
    padding-top: 0;
    padding-bottom: 70px;
    width: 100%;
  }

  .hero-slide h1,
  .hero-slide h2{
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.06;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-text{
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero-buttons{
    gap: 9px;
  }

  .hero-buttons .btn{
    min-height: 43px;
  }

  .hero-dots{
    bottom: 24px;
  }
}

@media (max-width: 420px){
  .hero,
  .hero-slides,
  .hero-slide{
    min-height: 650px;
    height: 650px;
  }

  .hero-slide-image{
    max-height: 350px;
  }

  .hero-slide-shade{
    height: 405px;
  }

  .hero-content{
    padding-bottom: 65px;
  }

  .hero-slide h1,
  .hero-slide h2{
    font-size: 31px;
  }
}
