:root{
  --blue:#0059f7;
  --deep-blue:#071f58;
  --navy:#061b4d;
  --text:#111d3b;
  --white:#ffffff;
}
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
html{
  scroll-behavior:smooth;
}
body{
  min-height:100vh;
  overflow-x:hidden;
  background:#fff;
  color:var(--text);
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
}
.site-header{
  height:126px;
  display:flex;
  align-items:center;
  gap:34px;
  padding:0 32px;
  background:#fff;
  position:relative;
  z-index:20;
}
.brand{
  width:350px;
  max-width:31vw;
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.brand img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  object-position:left center;
}
.main-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:40px;
}
.main-nav a{
  color:#101c3b;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  padding:13px 0;
  white-space:nowrap;
  position:relative;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:4px;
  height:3px;
  background:var(--blue);
  transform:scaleX(0);
  transition:transform .2s ease;
}
.main-nav a:hover,
.main-nav a.active{
  color:var(--blue);
}
.main-nav a:hover::after,
.main-nav a.active::after{
  transform:scaleX(1);
}
.caret{
  font-size:10px;
  margin-left:5px;
}
.quote-button{
  min-width:194px;
  min-height:58px;
  padding:0 27px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  color:#fff;
  background:linear-gradient(135deg,#073bd7,#005ef8);
  text-decoration:none;
  font-weight:700;
  box-shadow:0 10px 25px rgba(0,89,247,.24);
  transition:transform .2s ease,filter .2s ease;
}
.quote-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
}
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  margin-left:auto;
  border:0;
  background:transparent;
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:27px;
  height:2px;
  margin:6px auto;
  background:var(--navy);
}

/* Hero compuesto por tres imágenes independientes */
.hero{
  position:relative;
  height:calc(100vh - 126px);
  min-height:620px;
  overflow:hidden;
  isolation:isolate;
  background:#dfeafa;
}
.panel{
  position:absolute;
  top:0;
  height:100%;
  margin:0;
  background-repeat:no-repeat;
  background-size:cover;
  overflow:hidden;
}
.panel-box{
  left:0;
  width:46%;
  z-index:1;
  clip-path:polygon(0 0,100% 0,75% 100%,0 100%);
  background-image:url("assets/box.webp");
  background-position:44% center;
}
.panel-cargo{
  left:30%;
  width:47%;
  z-index:2;
  clip-path:polygon(24% 0,100% 0,75% 100%,0 100%);
  background-image:url("assets/cargo.webp");
  background-position:51% center;
}
.panel-cars{
  right:0;
  width:40%;
  z-index:3;
  clip-path:polygon(27% 0,100% 0,100% 100%,0 100%);
  background-image:url("assets/cars.webp");
  background-position:54% center;
}
.panel-box::before,
.panel-cargo::before,
.panel-cars::before{
  content:"";
  position:absolute;
  top:-7%;
  bottom:-7%;
  width:10px;
  background:#fff;
  z-index:5;
  transform:rotate(14deg);
  transform-origin:center;
  box-shadow:0 0 8px rgba(255,255,255,.35);
}
.panel-box::before{
  right:12.5%;
}
.panel-cargo::before{
  right:12.5%;
}
.panel-cars::before{
  display:none;
}
.panel-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(3,26,76,0) 55%,rgba(4,30,88,.34) 100%);
  pointer-events:none;
}
.service-card{
  position:absolute;
  bottom:35px;
  min-height:112px;
  padding:20px 30px;
  display:flex;
  align-items:center;
  gap:22px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(110deg,#061c55 0%,#083f9e 62%,#0060ff 125%);
  box-shadow:0 16px 34px rgba(3,25,74,.38);
  transition:transform .22s ease,filter .22s ease;
}
.panel-box .service-card{
  left:28px;
  right:21%;
  clip-path:polygon(5% 0,100% 0,94% 100%,0 100%);
}
.panel-cargo .service-card{
  left:23%;
  right:18%;
  clip-path:polygon(5% 0,100% 0,94% 100%,0 100%);
}
.panel-cars .service-card{
  left:27%;
  right:28px;
  clip-path:polygon(5% 0,100% 0,94% 100%,0 100%);
}
.service-card:hover{
  transform:translateY(-6px);
  filter:brightness(1.08);
}
.service-icon{
  width:62px;
  height:62px;
  border:3px solid rgba(255,255,255,.93);
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.service-icon svg{
  width:35px;
  height:35px;
  stroke:#fff;
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.service-card strong{
  display:block;
  font-size:23px;
  line-height:1.15;
  margin-bottom:7px;
  white-space:nowrap;
}
.service-card small{
  display:block;
  font-size:15px;
  opacity:.95;
  white-space:nowrap;
}
.anchor-targets{
  height:0;
  overflow:hidden;
}

/* Laptop */
@media(max-width:1180px){
  .site-header{
    height:108px;
    padding:0 22px;
    gap:20px;
  }
  .brand{
    width:285px;
  }
  .main-nav{
    gap:20px;
  }
  .main-nav a{
    font-size:14px;
  }
  .quote-button{
    min-width:165px;
    min-height:52px;
  }
  .hero{
    height:calc(100vh - 108px);
    min-height:560px;
  }
  .service-card{
    padding:17px 18px;
    gap:14px;
  }
  .service-icon{
    width:52px;
    height:52px;
  }
  .service-card strong{
    font-size:17px;
  }
  .service-card small{
    font-size:12px;
  }
}

/* Tablet */
@media(max-width:900px){
  .site-header{
    height:82px;
    padding:0 18px;
  }
  .brand{
    width:230px;
    max-width:72vw;
  }
  .menu-toggle{
    display:block;
  }
  .quote-button{
    display:none;
  }
  .main-nav{
    display:none;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    margin:0;
    padding:12px 20px 20px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:#fff;
    box-shadow:0 16px 30px rgba(6,27,77,.15);
  }
  .main-nav.open{
    display:flex;
  }
  .main-nav a{
    padding:14px 4px;
    font-size:15px;
  }

  .hero{
    height:auto;
    min-height:0;
    overflow:visible;
    background:#eaf1fb;
  }
  .panel{
    position:relative;
    inset:auto;
    width:100%;
    height:430px;
    clip-path:none;
    margin:0;
  }
  .panel::before{
    display:none;
  }
  .panel-box,
  .panel-cargo,
  .panel-cars{
    left:auto;
    right:auto;
    width:100%;
    background-position:center center;
  }
  .panel-box .service-card,
  .panel-cargo .service-card,
  .panel-cars .service-card{
    left:18px;
    right:18px;
    bottom:20px;
    min-height:100px;
    clip-path:none;
    border-radius:13px;
  }
}

/* Teléfonos */
@media(max-width:600px){
  body{
    background:#eef4fb;
  }
  .site-header{
    height:72px;
    padding:0 14px;
    position:sticky;
    top:0;
  }
  .brand{
    width:190px;
    max-width:68vw;
  }
  .menu-toggle{
    width:40px;
    height:40px;
  }
  .main-nav{
    top:72px;
    padding:8px 16px 18px;
  }

  .hero{
    background:#eef4fb;
  }
  .panel{
    height:360px;
    margin-bottom:12px;
    border-radius:0;
  }
  .panel-box{
    background-position:47% center;
  }
  .panel-cargo{
    background-position:50% center;
  }
  .panel-cars{
    background-position:55% center;
  }
  .panel-shade{
    background:linear-gradient(to bottom,rgba(3,26,76,0) 42%,rgba(4,30,88,.48) 100%);
  }
  .panel-box .service-card,
  .panel-cargo .service-card,
  .panel-cars .service-card{
    left:14px;
    right:14px;
    bottom:14px;
    min-height:88px;
    padding:14px 16px;
    gap:14px;
    border-radius:12px;
  }
  .service-icon{
    width:48px;
    height:48px;
    border-width:2px;
  }
  .service-icon svg{
    width:28px;
    height:28px;
  }
  .service-card strong{
    font-size:17px;
    white-space:normal;
  }
  .service-card small{
    font-size:12px;
    white-space:normal;
  }
}

/* Teléfonos pequeños */
@media(max-width:390px){
  .brand{
    width:170px;
  }
  .panel{
    height:320px;
  }
  .panel-box .service-card,
  .panel-cargo .service-card,
  .panel-cars .service-card{
    left:10px;
    right:10px;
    bottom:10px;
    padding:12px 13px;
  }
  .service-icon{
    width:44px;
    height:44px;
  }
  .service-card strong{
    font-size:16px;
  }
}
