/* styles.css */
:root{
  --bg:#f4f6f8;
  --panel:#ffffff;
  --panel-2:#eef2f6;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;

  --primary:#0f4c81;
  --primary-2:#f59e0b;
  --dark:#020617;

  --radius:16px;
  --shadow:0 10px 30px rgba(15,23,42,.12);
  --shadow-soft:0 6px 18px rgba(15,23,42,.10);

  --max:1150px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:linear-gradient(180deg,#f8fafc,#eef2f6);
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}
.muted{ color:var(--muted); }
section{ scroll-margin-top:96px; }

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header::after{
  content:"";
  display:block;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--primary),var(--primary-2),transparent);
  opacity:.85;
}
.header__wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__logo{ height:60px; width:auto; object-fit:contain; }
.brand__text{ display:grid; line-height:1.05; }
.brand__text strong{ font-size:15px; letter-spacing:.02em; }
.brand__text small{ font-size:12px; color:var(--muted); font-weight:800; }

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px;
  border-radius:999px;
  background:rgba(15,76,129,.06);
  border:1px solid rgba(15,76,129,.10);
}
.nav__link{
  font-size:16px;
  font-weight:900;
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  transition:transform .12s ease, background .2s ease;
}
.nav__link:hover{
  transform:translateY(-1px);
  background:rgba(245,158,11,.14);
}

.header__cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.menu-btn{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.75);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  cursor:pointer;
  padding:10px;
}
.menu-btn span{
  display:block;
  height:2px;
  background:var(--text);
  border-radius:999px;
  margin:6px 0;
}

/* NAV móvil */
.nav-mobile{
  display:none;
  border-top:1px solid rgba(229,231,235,.75);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
}
.nav-mobile__wrap{
  padding:12px 0 14px;
  display:grid;
  gap:10px;
}
.nav-mobile .nav__link{
  display:block;
  text-align:center;
  border-radius:14px;
  padding:12px 14px;
  background:rgba(15,76,129,.06);
  border:1px solid rgba(15,76,129,.12);
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:48px;
  padding:0 16px;
  border-radius:14px;
  font-weight:900;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .12s ease, filter .12s ease, background .2s ease, box-shadow .2s ease;
  cursor:pointer;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 8px 22px rgba(15,76,129,.22);
}
.btn--dark{ background:#0f172a; color:#fff; }
.btn--ghost{ background:transparent; border-color:var(--line); color:var(--text); }
.btn--ghost:hover{ background:var(--panel-2); }
.btn--full{ width:100%; }

/* HERO BACKGROUND */
.bg-maquinaria{
  position:relative;
  background:url("imagenes/cama baja camion verde.jpg") center/cover no-repeat;
}
.bg-maquinaria::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.70) 0%,rgba(0,0,0,.62) 45%,rgba(0,0,0,.40) 100%);
  z-index:0;
}
.bg-maquinaria > *{ position:relative; z-index:1; }

/* HERO */
.hero{ padding:115px 0 42px; }
.hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-items:center;
}
.hero__content h1{
  font-size:clamp(32px,4vw,54px);
  line-height:1.05;
  margin:0 0 12px;
  letter-spacing:-0.02em;
  color:#fff;
}
.hero__content h1 span{
  background:linear-gradient(135deg,var(--primary-2),#fff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__content p{
  color:rgba(255,255,255,.88);
  margin:0 0 18px;
  font-size:16px;
  max-width:58ch;
}
.hero__buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 18px;
}
.hero__badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  padding:10px 12px;
  border-radius:14px;
  color:rgba(255,255,255,.90);
  font-size:13px;
  box-shadow:var(--shadow-soft);
}

/* SECCIONES */
.section{ padding:62px 0; }
.section--alt{
  background:rgba(255,255,255,.70);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section h2{
  margin:0 0 10px;
  font-size:clamp(22px,2.3vw,34px);
  letter-spacing:-0.02em;
}
.section h2::after{
  content:"";
  display:block;
  width:78px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
  opacity:.95;
}
.section p{ margin:0 0 18px; }

/* Servicios en overlay: letras blancas */
.section--overlay{
  background:transparent;
  padding-top:60px;
}
.section--overlay h2,
.section--overlay p,
.section--overlay .muted{
  color:#fff;
}
.section--overlay h2::after{
  background:linear-gradient(90deg,#fff,rgba(255,255,255,.6));
}

/* GRID + CARDS */
.grid{ display:grid; gap:16px; }
.grid--4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:rgba(15,76,129,.22);
}
.card__img{
  border-radius:14px;
  border:1px solid var(--line);
  height:170px;
  width:100%;
  object-fit:cover;
  margin-bottom:12px;
}
.card h3{ margin:2px 0 8px; font-size:16px; }
.card ul{
  margin:0 0 12px;
  padding-left:18px;
  color:var(--muted);
  font-size:14px;
}
.card li{ margin:4px 0; }

/* ELEGIRNOS */
.cobertura__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:center;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 16px;
}
.chip{
  background:var(--panel);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
  box-shadow:var(--shadow-soft);
}

/* FLOTA SLIDER */
.flota-slider{
  max-width:900px;
  margin:0 auto;
  overflow:hidden;
  border-radius:16px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}
.flota-slider img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
  transition:opacity .6s ease;
}

/* CONTACTO */
.contacto__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}
.contact-cards{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.contact-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  color:var(--muted);
  box-shadow:var(--shadow-soft);
}
.contact-card a{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}

.form{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow-soft);
}
.form label{
  display:grid;
  gap:6px;
  margin-bottom:12px;
  font-size:13px;
  color:var(--muted);
}
.form input, .form select{
  height:46px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:0 12px;
  outline:none;
}
.form input:focus, .form select:focus{
  border-color:rgba(245,158,11,.55);
  box-shadow:0 0 0 4px rgba(245,158,11,.14);
}

/* FOOTER */
.footer{
  padding:28px 0;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.75);
}
.footer__wrap{
  display:flex;
  justify-content:center;
  color:var(--muted);
  text-align:center;
}

/* BOTONES FLOTANTES */
.social-float{
  position:fixed;
  right:20px;
  bottom:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:9999;
}
.social-float a{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:26px;
  text-decoration:none;
  box-shadow:0 12px 24px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.35);
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.social-float a:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 32px rgba(0,0,0,.35);
  filter:brightness(1.02);
}
.whatsapp-float{ background:linear-gradient(135deg,#25d366,#1ebe57); }
.instagram-float{
  background:radial-gradient(circle at 30% 110%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.facebook-float{
  background:#1877f2;
  font-family:Arial,sans-serif;
  font-weight:bold;
}

/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:2000;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(2,6,23,.75);
  cursor:pointer;
}
.lightbox__content{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:min(960px, calc(100% - 28px));
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.25);
  border-radius:18px;
  padding:14px;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
}
.lightbox__stage{
  width:100%;
  max-height:72vh;
  overflow:hidden;
  border-radius:14px;
  background:#0b1220;
  position:relative;
  touch-action:none;
}
.lightbox__img{
  width:100%;
  height:72vh;
  object-fit:contain;
  transform-origin:center center;
  user-select:none;
  -webkit-user-drag:none;
  cursor:grab;
}
.lightbox__img:active{ cursor:grabbing; }
.lightbox__caption{
  margin-top:10px;
  color:#0f172a;
  font-weight:900;
  font-size:14px;
  text-align:center;
}
.lightbox__close{
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.85);
  cursor:pointer;
  font-weight:900;
}
.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(15,23,42,.55);
  color:#fff;
  cursor:pointer;
  font-size:30px;
  display:grid;
  place-items:center;
}
.lightbox__prev{ left:10px; }
.lightbox__next{ right:10px; }

/* RESPONSIVE */
@media (max-width: 980px){
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .cobertura__grid{ grid-template-columns:1fr; }
  .contacto__grid{ grid-template-columns:1fr; }
  .brand__text{ display:none; }
}
@media (max-width: 760px){
  .nav{ display:none; }
  .menu-btn{ display:inline-block; }

  .header__cta .btn.btn--ghost{ display:none; }
  .header__cta .btn.btn--primary{
    height:44px;
    padding:0 12px;
    font-size:14px;
    white-space:nowrap;
  }

  .nav-mobile{
    display:block;
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-mobile.is-open{ max-height:320px; }
  .hero{ padding-top:110px; }
}
@media (max-width: 560px){
  .brand__logo{ height:50px; }
  .btn{ height:44px; padding:0 12px; font-size:14px; }
  .grid--4{ grid-template-columns:1fr; }
  .flota-slider img{ height:320px; }
}
.instagram-float{
  font-family: system-ui, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
}
