/* ============================================================
   VB LOGÍSTICA INTEGRAL — Sistema de diseño v2
   Corporativo limpio · Azul navy + Rojo del logo · Fondo blanco
   ============================================================ */

:root{
  /* Color */
  --bg:           #ffffff;
  --bg-soft:      #f4f6fa;
  --bg-warm:      #eef2f7;
  --ink:          #0a1a2e;
  --ink-soft:     #3b4a63;
  --ink-mute:     #748094;
  --line:         rgba(10, 26, 46, 0.10);
  --line-soft:    rgba(10, 26, 46, 0.06);

  --navy:         #0a2750;
  --navy-deep:    #061a36;
  --navy-light:   #1d4080;
  --red:          #c93434;
  --red-deep:     #9e1f1f;
  --gold:         #e8b649;

  /* Type */
  --font-sans:  "Montserrat", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-head:  "Montserrat", "Poppins", ui-sans-serif, system-ui, sans-serif;

  /* Radii / shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,26,46,.04), 0 2px 6px rgba(10,26,46,.06);
  --shadow-md: 0 4px 18px rgba(10,26,46,.08), 0 18px 40px -16px rgba(10,26,46,.18);
  --shadow-lg: 0 30px 80px -30px rgba(10,26,46,.35);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection{ background: var(--navy); color: #fff; }

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1{ font-weight: 800; }

p{ margin: 0; text-wrap: pretty; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow{
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(10,26,46,.03);
}
.nav__inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100px;
}
.nav__inner > nav{
  flex: 1;
  display: flex;
  justify-content: center;
}
.brand{
  display: flex; align-items: center;
  flex-shrink: 0;
}
.brand__mark{
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
@media (max-width: 640px){
  .brand__mark{ height: 56px; max-width: 220px; }
  .nav__inner{ height: 84px; }
}

.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__menu a{
  display: inline-block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  position: relative;
}
.nav__menu a:hover{ color: var(--navy); }
.nav__menu a.is-active{ color: var(--navy); }
.nav__menu a.is-active::after{
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
}

/* Pestaña destacada — Servicios Especiales (única en rojo) */
.nav__menu a.nav__special{ color: var(--red); }
.nav__menu a.nav__special:hover{ color: var(--red-deep); }
.nav__menu a.nav__special.is-active{ color: var(--red); }
.nav__menu a.nav__special.is-active::after{ background: var(--red); }

.nav__cta{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav__cta:hover{ background: var(--navy-deep); transform: translateY(-1px); }
.nav__cta svg{ width: 14px; height: 14px; }

.nav__burger{
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.nav__burger span{
  display: block; width: 22px; height: 2px; background: var(--navy); position: relative;
}
.nav__burger span::before,
.nav__burger span::after{
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy);
}
.nav__burger span::before{ top: -7px; }
.nav__burger span::after{ top: 7px; }

@media (max-width: 1040px){
  .nav__menu, .nav__cta{ display: none; }
  .nav__burger{ display: flex; }
  .nav.is-open .nav__menu{
    display: flex;
    position: absolute;
    top: 100px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 14px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__menu a{ padding: 16px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav.is-open .nav__menu a.is-active::after{ display: none; }
  .nav.is-open .nav__cta{
    display: inline-flex;
    margin: 12px var(--gutter) 0;
    align-self: stretch;
    justify-content: center;
  }
}

/* ============================================================
   PAGE HERO — con foto de puerto
   ============================================================ */
.pagehero{
  position: relative;
  color: #fff;
  padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
  background: var(--navy-deep);
}
.pagehero__bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.pagehero__bg img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.pagehero__bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(6,26,54,.92) 0%, rgba(6,26,54,.75) 50%, rgba(6,26,54,.55) 100%);
}
.pagehero .container{ position: relative; z-index: 1; }
.pagehero__crumb{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
  font-weight: 600;
}
.pagehero__crumb a:hover{ color: #fff; }
.pagehero h1{
  color: #fff;
  font-size: clamp(40px, 6.5vw, 78px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 800;
}
.pagehero__lede{
  max-width: 640px;
  margin-top: 26px;
  color: rgba(255,255,255,.85);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}
.pagehero__accent{
  color: var(--gold);
}

/* ============================================================
   Botones
   ============================================================ */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--navy); color: #fff; }
.btn--primary:hover{ background: var(--navy-deep); }
.btn--red{ background: var(--red); color: #fff; }
.btn--red:hover{ background: var(--red-deep); }
.btn--navy{ background: var(--navy); color: #fff; }
.btn--navy:hover{ background: var(--navy-deep); }
.btn--ghost{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover{ background: var(--navy); color: #fff; }
.btn--light{ background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn--light:hover{ background: #fff; color: var(--navy); border-color: #fff; }
.btn svg{ width: 14px; height: 14px; }

/* ============================================================
   Sections
   ============================================================ */
section{ padding: clamp(70px, 10vw, 120px) 0; }
section.tight{ padding: clamp(50px, 7vw, 80px) 0; }

.section-head{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head h2{
  font-size: clamp(32px, 4.5vw, 50px);
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.section-head__intro{
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-top: 18px;
  line-height: 1.6;
}

.section-head--left{ text-align: left; margin-left: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 90px 0 30px;
}
.footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
}
@media (max-width: 880px){ .footer__grid{ grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px){ .footer__grid{ grid-template-columns: 1fr; } }

.footer h4{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.footer ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a{ color: rgba(255,255,255,.7); font-size: 14px; transition: color .2s; }
.footer a:hover{ color: var(--gold); }

.footer__brand{ display: flex; gap: 0; align-items: center; }
.footer__brand img{ height: 86px; width: auto; max-width: 336px; object-fit: contain; background: #fff; padding: 10px 14px; border-radius: var(--r-sm); }

.libro-rec-link{ display: inline-block; margin-top: 6px; padding: 8px 12px; background: #fff; border-radius: var(--r-sm); transition: transform .2s, box-shadow .2s; }
.libro-rec-link:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.libro-rec-link img{ height: 48px; width: auto; display: block; }
.footer__tag{
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 22px;
  max-width: 320px;
}
.footer__socials{ display: flex; gap: 10px; margin-top: 24px; }
.footer__socials a{
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.footer__socials a:hover{ background: var(--red); border-color: var(--red); color: #fff; }
.footer__socials svg{ width: 16px; height: 16px; }

.footer__base{
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.04em;
}

/* ============================================================
   WhatsApp flotante
   ============================================================ */
.wa{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 2px 6px rgba(0,0,0,.1);
  transition: transform .2s;
}
.wa:hover{ transform: translateY(-2px) scale(1.02); }
.wa svg{ width: 24px; height: 24px; }
.wa__label{ display: inline; }
.wa::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 0 rgba(37,211,102,.4);
  animation: waPulse 2.2s infinite;
  pointer-events: none;
}
@keyframes waPulse{
  0%{   box-shadow: 0 0 0 0   rgba(37,211,102,.5); }
  70%{  box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}
@media (max-width: 640px){ .wa__label{ display: none; } .wa{ padding: 16px; } }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in{ opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
.reveal[data-delay="4"]{ transition-delay: .32s; }
.reveal[data-delay="5"]{ transition-delay: .40s; }

/* ============================================================
   Forms
   ============================================================ */
.field{ display: flex; flex-direction: column; gap: 7px; }
.field label{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.field input,
.field select,
.field textarea{
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-sans);
}
.field textarea{ resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10,39,80,.12);
}
.field--err input,
.field--err select,
.field--err textarea{ border-color: var(--red); }
.field__hint{ font-size: 12px; color: var(--ink-mute); }
.field__err{ font-size: 12px; color: var(--red); display: none; font-weight: 600; }
.field--err .field__err{ display: block; }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .field--full{ grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Cards
   ============================================================ */
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.muted{ color: var(--ink-soft); }
hr.div{ border: 0; height: 1px; background: var(--line); margin: 0; }

/* CTA común */
.finalcta{
  position: relative;
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--navy-deep);
  overflow: hidden;
}
.finalcta__bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.finalcta__bg img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.finalcta__bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(6,26,54,.93) 0%, rgba(10,39,80,.82) 100%);
}
.finalcta__inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 820px){ .finalcta__inner{ grid-template-columns: 1fr; } }
.finalcta h2{
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 12px;
}
.finalcta__actions{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px){ .finalcta__actions{ justify-content: flex-start; } }
.finalcta .eyebrow{ color: var(--gold); }
