*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#ffffff;
  color:#111827;
  line-height:1.4;
}
a{text-decoration:none;color:inherit}

/* ---------- HEADER BLANCO ---------- */
header{
  position:fixed;
  top:0;left:0;right:0;
  height:70px;
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  z-index:20;
}

/* Logo: texto */
.logo-bar{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:22px;
  font-weight:800;
}
.logo-mark{
  width:32px;
  height:32px;
  border-radius:8px;
  background:#fbbf24;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:18px;
  color:#111827;
}
.logo-text-postal{
  color:#111827;
  font-size:32px;
}
.logo-text-logistics{
  color:#0070ff;
  font-size:38px;
}

nav ul{
  display:flex;
  gap:22px;
  list-style:none;
  font-size:18px;
}
nav a{
  color:#06213f;
}
nav a:hover{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Botón Portal clientes */
.btn-header-outline{
  padding:8px 18px;
  border-radius:999px;
  border:1px solid #06213f;
  background:transparent;
  color:#06213f;
  font-size:14px;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.btn-header-outline:hover{
  background:#eef2ff;
}

/* Botón Login tracking envíos */
.btn-header-solid{
  padding:8px 18px;
  border-radius:999px;
  border:none;
  background:#0070ff;
  color:#ffffff;
  font-size:14px;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

main{margin-top:70px;}

/* ---------- HERO CON VIDEO DE FONDO ---------- */
.hero-video-wrap{
  position:relative;
  width:100%;
  height:85vh;
  overflow:hidden;
}

.hero-video-wrap video{
  position:absolute;
  top:50%;
  left:50%;
  min-width:100%;
  min-height:100%;
  transform:translate(-50%,-55%);
  object-fit:cover;
  z-index:-2;
}

.hero-video-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
      to bottom,
      rgba(0,0,0,0.18),
      rgba(0,0,0,0.35)
  );
  z-index:-1;
}

.hero-center-content{
  position:relative;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding:0 40px 40px;
  color:#ffffff;
}
.hero-center-content h1{
  font-size:32px;
  margin-bottom:6px;
}
.hero-center-content p{
  font-size:15px;
  max-width:420px;
}
.hero-ctas{
  margin-top:10px;
  display:flex;
  gap:10px;
}
.btn-primary{
  padding:10px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#00a4ff,#0070ff);
  color:#111827;
  font-size:14px;
  font-weight:600;
  box-shadow:0 10px 22px rgba(255,165,0,0.15);
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(255,165,0,0.45);
}
.btn-secondary{
  padding:10px 20px;
  border-radius:999px;
  border:1px solid #ffffff;
  color:#ffffff;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.btn-secondary:hover{
  background:rgba(255,255,255,0.08);
}

/* Icono flotante de bot (si lo activas) */
.bot-float{
  position:fixed;
  right:18px;
  bottom:86px;
  width:48px;
  height:48px;
  border-radius:50%;
  background:#0070ff;
  box-shadow:0 10px 25px rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:40;
  color:#ffffff;
  font-size:22px;
  font-weight:700;
}

/* Ventana del bot un poco más arriba */
.bot-window{
  position:fixed;
  right:18px;
  bottom:150px;
  width:320px;
  max-width:90vw;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 18px 45px rgba(15,23,42,0.35);
  display:none;
  flex-direction:column;
  overflow:hidden;
  z-index:41;
  font-size:13px;
}

.bot-header{
  background:#0070ff;
  color:#ffffff;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.bot-header-title{
  font-weight:600;
}
.bot-header small{
  font-size:11px;
  opacity:0.9;
}
.bot-close{
  border:none;
  background:transparent;
  color:#ffffff;
  font-size:18px;
  cursor:pointer;
}

.bot-body{
  padding:10px 12px 12px;
  max-height:320px;
  overflow-y:auto;
}
.bot-question-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}
.bot-question-btn{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  cursor:pointer;
  text-align:left;
}
.bot-question-btn:hover{
  background:#e0ecff;
  border-color:#0070ff;
}
.bot-answer{
  padding:8px 10px;
  border-radius:10px;
  background:#eff6ff;
  color:#1f2937;
  margin-top:4px;
}

/* ---------- SECCIONES ---------- */
section.section{
  padding:70px 20px;
  background:#f9fafb;
  border-top:1px solid #e5e7eb;
}
section.section:nth-of-type(even){background:#eef2ff;}
.section-inner{max-width:1120px;margin:0 auto;}
.section-title{
  font-size:26px;
  margin-bottom:10px;
  color:#111827;
}
.section-sub{
  font-size:14px;
  color:#4b5563;
  margin-bottom:28px;
}

/* ---------- DIAGRAMA / PILLS ---------- */
.services-flow{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  justify-content:center;
}

.service-pill{
  position:relative;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid #d1d5db;
  font-size:13px;
  color:#111827;
  background:#ffffff;
  cursor:pointer;
  transition:.15s ease;
  white-space:nowrap;
}
.service-pill:hover{
  background:#0070ff;
  border-color:#0070ff;
  color:#ffffff;
}

/* Tooltip flotante */
.service-pill::after{
  content:attr(data-desc);
  position:absolute;
  left:50%;
  top:110%;
  transform:translateX(-50%);
  min-width:220px;
  max-width:260px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.4;
  color:#ffffff;
  background:#0070ff;
  border-radius:10px;
  border:1px solid #0047a8;
  box-shadow:0 12px 30px rgba(15,23,42,0.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:25;
  white-space:normal;
}
.service-pill:hover::after{
  opacity:1;
  transform:translate(-50%, 0);
}

/* Para pantallas más pequeñas */
@media(max-width:600px){
  .services-flow{
    gap:8px 12px;
  }
}

.holding-services{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:32px;
}
.holding-box{
  padding:18px;
  background:#ffffff;
  border-radius:14px;
  border:1px solid #e5e7eb;
}
.holding-box h3{
  font-size:18px;
  margin-bottom:6px;
  color:#111827;
}
.holding-box ul{
  list-style:disc;
  margin-left:18px;
  font-size:14px;
  color:#4b5563;
}
.holding-box li{margin-bottom:4px;}

/* ---------- CLIENTES LAYOUT ---------- */
.clients-masonry{
  display:flex;
  flex-wrap:wrap;
  gap:26px 40px;
  align-items:center;
  justify-content:center;
}
.client-item{
  display:flex;
  align-items:center;
  justify-content:center;
}
.client-item img{
  display:block;
  height:auto;
}
.client-lg img{max-width:220px;}
.client-md img{max-width:170px;}
.client-sm img{max-width:130px;}

/* ---------- CONTACTO ---------- */
.contact-wrapper{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:28px;
}
form.contact-form{
  background:#ffffff;
  border-radius:14px;
  padding:20px;
  border:1px solid #e5e7eb;
}
.form-row{
  display:flex;
  gap:12px;
  margin-bottom:10px;
}
.form-field{
  flex:1;
  display:flex;
  flex-direction:column;
  font-size:13px;
  color:#111827;
}
.form-field label{margin-bottom:4px;}
.form-field input,
.form-field textarea,
.form-field select{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #d1d5db;
  font-size:13px;
}
.form-field textarea{min-height:80px;resize:vertical;}
.form-helper{
  font-size:11px;
  color:#6b7280;
  margin-top:2px;
}
.contact-side{
  font-size:14px;
  color:#374151;
}
.contact-side strong{color:#111827;}
.contact-side ul{
  list-style:disc;
  margin-left:18px;
  margin-top:8px;
}
.contact-side li{margin-bottom:4px;}

/* ---------- FOOTER BLANCO ---------- */
footer{
  background:#ffffff;
  color:#111827;
  border-top:1px solid #e5e7eb;
  padding:26px 20px 16px;
  margin-top:40px;
}
.footer-inner{max-width:1120px;margin:0 auto;}
.footer-columns{
  display:grid;
  grid-template-columns:1.2fr repeat(4,minmax(0,1fr));
  gap:24px;
  font-size:13px;
}
.footer-logo{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-logo-main{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:18px;
}
.footer-logo-main span.mark{
  width:32px;
  height:32px;
  border-radius:9px;
  background:#ffa500;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.footer-section-title{
  font-weight:600;
  margin-bottom:8px;
  color:#111827;
}
.footer-links{list-style:none;}
.footer-links li{margin-bottom:4px;}
.footer-links a{
  font-size:13px;
  color:#4b5563;
}
.footer-social{
  display:flex;
  gap:8px;
  margin-top:6px;
}
.footer-social a{
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid #d1d5db;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#4b5563;
}
.footer-bottom{
  margin-top:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:#6b7280;
}

/* Botón flotante de WhatsApp */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:54px;
  height:54px;
  border-radius:50%;
  background:#25D366;
  box-shadow:0 10px 25px rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:40;
}
.whatsapp-float img{
  width:28px;
  height:28px;
}
.whatsapp-tooltip{
  position:fixed;
  right:82px;
  bottom:30px;
  background:#ffffff;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  color:#111827;
  box-shadow:0 10px 25px rgba(15,23,42,0.25);
  z-index:39;
}

/* Logo link */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* Grid logos empresas */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  transition: transform 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
}

.logo-item img {
  max-width: 250px;
  max-height: 140px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0);
}

@media(max-width:900px){
  nav ul{display:none;}
  header{padding:0 18px;}
  .holding-services{grid-template-columns:1fr;}
  .contact-wrapper{grid-template-columns:1fr;}
  .footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
  .hero-center-content{
    align-items:flex-end;
    padding:0 18px 28px;
  }
  .hero-center-content h1{font-size:24px;}
  .hero-center-content p{font-size:13px;}
  .hero-ctas{flex-direction:column;}
  .btn-primary,.btn-secondary{width:100%;justify-content:center;}
  .footer-columns{grid-template-columns:1fr;}
}

/* ---------- LOGIN PAGE ---------- */
.login-video-wrap{
  position:fixed;
  inset:0;
  overflow:hidden;
  z-index:-2;
}
.login-video-wrap video{
  position:absolute;
  top:50%;
  left:50%;
  min-width:100%;
  min-height:100%;
  transform:translate(-50%,-50%);
  object-fit:cover;
}
.login-overlay{
  position:fixed;
  inset:0;
  background:rgba(245,247,251,0.1);
  z-index:-1;
}

.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  color:#111827;
}

.login-card{
  width:100%;
  max-width:520px;
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(15,23,42,0.18);
  padding:32px 40px 26px;
}

.login-logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}
.login-logo{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:26px;
  font-weight:800;
}
.login-logo span.logo-postal{color:#111827;}
.login-logo span.logo-logistics{color:#0070ff;}

.login-title{
  text-align:center;
  font-size:22px;
  font-weight:700;
  margin-bottom:4px;
}
.login-title span.emoji{margin-left:4px;}
.login-sub{
  text-align:center;
  font-size:13px;
  color:#4b5563;
  margin-bottom:22px;
}

.login-page form{margin-top:4px;}

.login-page .form-field{
  display:flex;
  flex-direction:column;
  margin-bottom:14px;
  font-size:13px;
}
.login-page .form-field label{
  margin-bottom:4px;
  color:#111827;
}
.login-page .form-field input{
  padding:10px 12px;
  border-radius:9px;
  border:1px solid #cbd5e1;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.login-page .form-field input:focus{
  border-color:#0070ff;
  box-shadow:0 0 0 1px #0070ff;
}

.form-helper-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:4px 0 16px;
  font-size:12px;
  color:#64748b;
}
.form-helper-row a{
  color:#0070ff;
}
.form-helper-row a:hover{text-decoration:underline;}

.remember-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:16px;
  font-size:13px;
  color:#111827;
}

.btn-login{
  width:100%;
  padding:11px 18px;
  border-radius:9px;
  border:none;
  cursor:pointer;
  background:#0070ff;
  color:#ffffff;
  font-size:15px;
  font-weight:600;
  box-shadow:0 12px 26px rgba(0,112,255,0.35);
}
.btn-login:hover{
  filter:brightness(1.05);
}

.btn-back{
  margin-top:8px;
  background:#e5e7eb;
  color:#111827;
  box-shadow:none;
}
.btn-back:hover{
  background:#d1d5db;
}

.login-footer{
  margin-top:18px;
  font-size:12px;
  color:#4b5563;
  text-align:center;
}
.login-footer a{
  color:#0070ff;
}
.login-footer a:hover{text-decoration:underline;}

@media(max-width:600px){
  .login-card{
    padding:24px 18px 20px;
  }
}

