:root {
  /* Paleta de Colores - Opción 1: Logística Industrial & Conversión */
  --primario: #0F2043;
  --acento: #F26419;
  --acento-h: #D95315; /* Versión hover del acento */
  --secundario: #2C5282;
  --fondo-claro: #F8F9FA;
  --texto-principal: #212529;
  
  --blanco: #FFFFFF;
  --line: #E2E8F0;
  --muted: #64748B;
  
  /* Tipografía - Clarity City */
  --sans: 'Clarity City', system-ui, -apple-system, sans-serif;
  --head: 'Clarity City', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--texto-principal);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ajustes Clave Tipografía */
h1, h2, h3 {
  font-family: var(--head);
  letter-spacing: -0.02em; /* Títulos más compactos */
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ==========================================
   ANIMACIONES SCROLL REVEAL
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.del-1 { transition-delay: 0.1s; }
.del-2 { transition-delay: 0.2s; }
.del-3 { transition-delay: 0.3s; }
.del-4 { transition-delay: 0.4s; }

/* Botones con autoridad */
.btn {
  display: inline-block;
  background: var(--acento);
  color: #fff;
  font: 700 14px var(--sans);
  padding: 14px 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn:hover { background: var(--acento-h); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }

/* Navbar */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(15, 32, 67, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, .08);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; height: 54px; overflow: hidden; }
.logo img { width: 155px; height: 155px; object-fit: cover; object-position: center; mix-blend-mode: screen; filter: contrast(1.15) brightness(1.05); display: block; }
.nav-r { display: flex; align-items: center; gap: 36px; }
.links { display: flex; gap: 32px; }
.links a { color: #E2E8F0; font-size: 14.5px; font-weight: 600; opacity: .85; transition: opacity .2s; }
.links a:hover { opacity: 1; color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--primario);
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(15, 32, 67, .8) 0%, rgba(15, 32, 67, .4) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; background: linear-gradient(to bottom, transparent, var(--blanco)); }
.hero-in { position: relative; z-index: 2; padding: 160px 28px 200px; width: 100%; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; font-weight: 800; max-width: 12ch; }
.hero p { margin-top: 24px; max-width: 560px; font-size: 18px; color: #E2E8F0; font-weight: 400; }
.hero .acts { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Secciones Generales */
section { padding: 100px 0; }

/* Mayúsculas en microtextos */
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--acento); 
  margin-bottom: 16px;
}
.sec-tag::before { content: ""; width: 24px; height: 2px; background: var(--acento); display: inline-block; }

.how-sec { background: var(--blanco); }
.about-sec { background: var(--fondo-claro); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-sec { background: var(--blanco); }
.fleet-sec { background: var(--fondo-claro); border-top: 1px solid var(--line); }

/* SECCIÓN: CÓMO FUNCIONA */
.how-head { max-width: 640px; margin-bottom: 64px; }
.how-head h2 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.15; color: var(--primario); font-weight: 800; }
.how-head h2 em { font-style: normal; color: var(--acento); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps-grid::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: var(--line); z-index: 1; }
.step-card { position: relative; z-index: 2; background: transparent; padding: 0 16px 16px 0; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--secundario); color: var(--secundario); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 24px; box-shadow: 0 0 0 8px var(--blanco); }
.step-card h3 { font-size: 20px; font-weight: 700; color: var(--primario); margin-bottom: 12px; }
.step-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Cuadro Azul CTA */
.how-cta { margin-top: 56px; background: var(--primario); border-radius: 16px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; box-shadow: 0 20px 40px rgba(15, 32, 67, .15); }
.how-cta-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #fff;}
.how-cta-text p { color: #CBD5E1; font-size: 15px; }
.btn-cta-box { background: var(--acento); color: #fff; padding: 14px 28px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 6px; white-space: nowrap; transition: background .2s, transform .2s; }
.btn-cta-box:hover { background: var(--acento-h); transform: translateY(-2px); }

/* SECCIÓN: NOSOTROS */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-text h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1.15; color: var(--primario); font-weight: 800; margin-bottom: 24px; }
.about-text h2 em { font-style: normal; color: var(--secundario); }
.about-text p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.about-img { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 45px rgba(15, 32, 67, .1); }
.about-img img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; display: block; }

/* SECCIÓN: SERVICIOS */
.sec-center-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.sec-center-head .sec-tag { justify-content: center; }
.sec-center-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; color: var(--primario); font-weight: 800; }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.srv-card { background: #fff; border-radius: 16px; padding: 48px 36px 40px; text-align: left; box-shadow: 0 4px 20px rgba(15, 32, 67, .04); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; transition: transform .3s ease, box-shadow .3s ease; }
.srv-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 32, 67, .08); }
.srv-icon { width: 64px; height: 64px; border-radius: 12px; background: rgba(242, 100, 25, 0.1); color: var(--acento); display: grid; place-items: center; margin-bottom: 24px; }
.srv-icon svg { width: 32px; height: 32px; }
.srv-card h3 { font-size: 22px; font-weight: 700; color: var(--primario); margin-bottom: 12px; }
.srv-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.srv-list { list-style: none; width: 100%; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 32px; margin-top: auto; }
.srv-list li { font-size: 14.5px; color: var(--texto-principal); padding: 6px 0 6px 26px; position: relative; font-weight: 500; }
.srv-list li::before { content: "→"; position: absolute; left: 0; top: 6px; color: var(--acento); font-weight: 700; }
.srv-btn { width: 100%; padding: 14px 20px; border-radius: 6px; border: 2px solid var(--line); background: transparent; color: var(--primario); font-weight: 700; font-size: 14px; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; transition: all .2s; }
.srv-card:hover .srv-btn { background: var(--primario); border-color: var(--primario); color: #fff; }

/* SECCIÓN: NUESTRA FLOTA */
.fleet-sec {
  position: relative;
  padding: 100px 0 110px;
  background: #FAFCFE;
  overflow: hidden;
}

.fleet-wrap {
  position: relative;
}

/* Decoraciones de fondo similares al mockup */
.fleet-decor-dots {
  position: absolute;
  top: 10px;
  left: -20px;
  width: 110px;
  height: 140px;
  background-image: radial-gradient(#CBD5E1 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.fleet-decor-stripes {
  position: absolute;
  top: 0;
  right: -30px;
  width: 160px;
  height: 180px;
  background: repeating-linear-gradient(
    -58deg,
    rgba(44, 82, 130, 0.05),
    rgba(44, 82, 130, 0.05) 24px,
    transparent 24px,
    transparent 48px
  );
  pointer-events: none;
  z-index: 0;
}

.fleet-tag-line {
  display: inline-block;
  color: var(--acento);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fleet-head-desc {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.fleet-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 32, 67, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}

.fleet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 32, 67, 0.1);
  border-color: rgba(44, 82, 130, 0.25);
}

.fleet-media {
  position: relative;
  height: 215px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--primario);
}

.fleet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fleet-card:hover .fleet-media img {
  transform: scale(1.05);
}

.fleet-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(15, 32, 67, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.fleet-badge-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.fleet-body {
  padding: 24px 18px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fleet-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primario);
  margin-bottom: 8px;
  line-height: 1.2;
  min-height: 24px;
  display: flex;
  align-items: center;
}

.fleet-intro {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
}

/* Grilla estricta de 3 filas uniformes para alineación horizontal perfecta entre las 4 tarjetas */
.fleet-specs {
  list-style: none;
  display: grid;
  grid-template-rows: repeat(3, 40px);
  row-gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

/* Grilla interna de 2 columnas (22px icono + 1fr texto) con centrado vertical absoluto */
.fleet-specs li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.spec-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acento);
  flex-shrink: 0;
}

.spec-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--acento);
  stroke-width: 2;
  display: block;
}

.spec-label {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: #334155;
  letter-spacing: -0.01em;
}

.spec-label strong {
  color: var(--primario);
  font-weight: 700;
  margin-right: 3px;
}

/* SECCIÓN: COTIZAR */
.quote-sec { position: relative; background: linear-gradient(135deg, rgba(15, 32, 67, .95), rgba(44, 82, 130, .9)), url('../fotos/bg-cotizar.jpg') center/cover no-repeat; padding: 120px 0; }
.quote-card { background: #fff; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.quote-info { background: var(--fondo-claro); padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.quote-info h2 { font-size: clamp(28px, 3.2vw, 36px); color: var(--primario); font-weight: 800; margin-bottom: 16px; }
.quote-info > p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 48px; }
.contact-list { list-style: none; display: grid; gap: 28px; }
.contact-list li { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; color: var(--primario); }
.contact-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(15, 32, 67, .06); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; color: var(--acento); }

.quote-form { padding: 64px 48px; background: #fff; }
.f-group { margin-bottom: 24px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form label { display: block; font-size: 14px; font-weight: 700; color: var(--primario); margin-bottom: 8px; }
.quote-form input, .quote-form textarea { width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 8px; font: 400 15px var(--sans); color: var(--texto-principal); background: var(--fondo-claro); transition: border-color .2s, box-shadow .2s; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--secundario); background: #fff; box-shadow: 0 0 0 3px rgba(44, 82, 130, .1); }
.quote-form textarea { min-height: 140px; resize: vertical; }
.btn-submit { width: 100%; background: var(--acento); color: #fff; border: 0; border-radius: 8px; padding: 18px 24px; font: 700 15px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; margin-top: 8px; transition: background .2s, transform .2s; }
.btn-submit:hover { background: var(--acento-h); transform: translateY(-2px); }
.c-ok { display: none; margin-top: 20px; padding: 16px; border: 1px solid rgba(44, 82, 130, .3); background: var(--fondo-claro); color: var(--primario); font-weight: 600; font-size: 15px; border-radius: 8px; text-align: center; }

/* Footer */
footer { background: var(--primario); color: #AEB6C2; padding: 80px 0 32px; font-size: 15px; }
.f-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 700; }
footer li { list-style: none; margin-bottom: 12px; }
footer a { transition: color .2s; }
footer a:hover { color: var(--acento); }
.cert { display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font: 500 13px var(--sans); color: #E2E8F0; }
.copy { display: flex; justify-content: space-between; padding-top: 32px; font-size: 14px; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media(max-width: 960px){
  .nav-r { display: contents; }
  .links, nav .btn { display: none; }
  .burger { display: block; }
  nav.open { background: rgba(15, 32, 67, .98); }
  nav.open .links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; padding: 24px 28px; gap: 20px; background: rgba(15, 32, 67, .98); border-bottom: 1px solid rgba(255,255,255,0.1); }
  .steps-grid, .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .how-cta { flex-direction: column; text-align: center; padding: 32px 24px; }
  .about-grid, .quote-card { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr; }
  .f-g { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 560px){
  .steps-grid, .fleet-grid, .f-row, .f-g { grid-template-columns: 1fr; }
  .quote-info, .quote-form { padding: 40px 24px; }
  .hero p { font-size: 16px; }
}
