/* ==========================================================================
   DAZZ CARGO — Logística Internacional de Carga S.A.S
   Sistema visual: "manifiesto de carga" — navy portuario, naranja grúa,
   condensada de transporte (Barlow Condensed) + mono de guía aérea (Plex Mono)
   ========================================================================== */

:root {
  --tinta: #0B1B33;
  --marca: #0425F2; /* azul del logo */
  --marca-viva: #2E4DF5;
  --naranja: #FF7A2F;
  --niebla: #F3F6FB;
  --texto: #23293A;
  --texto-suave: #5B6474;
  --borde: #E3E8F2;
  --blanco: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-oscuro: #1DA851;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

button, a, input, textarea, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 { line-height: 1.15; }

h1, h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--tinta); margin-bottom: 0.5rem; }
h3 { font-size: 1.4rem; font-weight: 600; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

section { padding: 96px 20px; position: relative; }
section[id] { scroll-margin-top: 80px; }
.container { max-width: 1200px; margin: 0 auto; }

.mono { font-family: 'IBM Plex Mono', monospace; }

/* Etiquetas estilo guía aérea ------------------------------------------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--marca);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--naranja);
  vertical-align: middle;
  margin-right: 12px;
}
.eyebrow-claro { color: #9FB6E8; }

.seccion-intro {
  color: var(--texto-suave);
  max-width: 700px;
  margin: 0 0 56px;
  font-size: 1.125rem;
}

/* Accesibilidad ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--marca);
  color: var(--blanco);
  padding: 12px 24px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
}

/* Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06301A;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #2EE374; }

.btn-fantasma {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--blanco);
}
.btn-fantasma:hover { border-color: var(--naranja); color: var(--naranja); }

.btn-grande { padding: 18px 40px; font-size: 1.2rem; }

.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }
.ic-inline { vertical-align: -0.25em; margin-right: 6px; }

/* Header ------------------------------------------------------------------ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled { background: var(--blanco); box-shadow: 0 2px 20px rgba(11, 27, 51, 0.12); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--blanco); transition: color 0.3s ease; }
header.scrolled .logo { color: var(--marca); }

.logo-img { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; }
header:not(.scrolled) .logo-img,
.logo-footer .logo-img { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }

.logo-texto { display: flex; flex-direction: column; line-height: 1.1; }
.logo-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.logo-razon {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
header.scrolled .logo-razon { color: var(--texto-suave); }

nav ul { display: flex; gap: 32px; list-style: none; }
nav a {
  font-weight: 500;
  color: var(--blanco);
  transition: color 0.3s ease;
}
header.scrolled nav a { color: var(--texto); }
nav a:hover { color: var(--naranja); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 25px; height: 3px;
  background: var(--blanco);
  border-radius: 2px;
  transition: background 0.3s ease;
}
header.scrolled .menu-toggle span { background: var(--marca); }

/* Hero -------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 20px 140px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 115%;
  background-image:
    linear-gradient(100deg, rgba(6, 16, 33, 0.88) 20%, rgba(6, 16, 33, 0.45) 60%, rgba(255, 122, 47, 0.18)),
    url('assets/images/hero-puerto.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.hero-content { position: relative; z-index: 1; color: var(--blanco); max-width: 1200px; width: 100%; }

.hero h1 { margin: 0 0 24px; animation: fadeInUp 0.9s ease; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero h1 .acento {
  color: var(--naranja);
  border-bottom: 4px solid var(--naranja);
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0.95;
  animation: fadeInUp 0.9s ease 0.15s backwards;
}

.hero-acciones { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.3s backwards; }

.hero .eyebrow { animation: fadeInUp 0.9s ease; }

/* Franja manifiesto al pie del hero */
.hero-manifiesto {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  background: rgba(6, 16, 33, 0.72);
  backdrop-filter: blur(8px);
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}
.manifiesto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.manifiesto-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  justify-content: center;
  color: var(--blanco);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, color 0.25s ease;
}
.manifiesto-grid a + a { border-left: 1px dashed rgba(255, 255, 255, 0.18); }
.manifiesto-grid a:hover { background: rgba(255, 122, 47, 0.15); color: var(--naranja); }
.manifiesto-grid .mono { font-size: 0.68rem; color: var(--naranja); letter-spacing: 0.1em; }
.manifiesto-grid .material-icons { font-size: 1.3rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animación de aparición: oculto solo cuando hay JS (clase .js en <html>) --- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.active { opacity: 1; transform: translateY(0); }

/* Ventajas ------------------------------------------------------------------ */
#valor { background: var(--niebla); }

.valor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 72px;
}

.valor-card {
  background: var(--blanco);
  padding: 36px 26px;
  border-radius: 10px;
  border: 1px solid var(--borde);
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(11, 27, 51, 0.12);
  border-top-color: var(--naranja);
}
.valor-card .material-icons {
  font-size: 2.6rem;
  color: var(--marca);
  margin-bottom: 16px;
}
.valor-card h3 { margin-bottom: 10px; color: var(--tinta); }
.valor-card p { color: var(--texto-suave); line-height: 1.6; font-size: 0.98rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  border-top: 1px dashed var(--borde);
  padding-top: 48px;
}
.stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 3rem;
  font-weight: 500;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.stat-mas { color: var(--naranja); }
.stat-label {
  font-size: 1.05rem;
  color: var(--texto-suave);
  font-weight: 500;
}

/* Nosotros ------------------------------------------------------------------ */
#historia { background: var(--blanco); }

.historia-content {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.historia-img-wrapper {
  position: relative;
  border-radius: 10px;
}
.historia-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--naranja);
  border-radius: 10px;
  z-index: 0;
}
.historia-img-wrapper img {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(11, 27, 51, 0.18);
}

.historia-text h2 { margin-bottom: 20px; }
.historia-text p { margin-bottom: 16px; color: var(--texto-suave); line-height: 1.8; }
.historia-text strong { color: var(--tinta); }

.historia-chips { display: flex; gap: 12px; margin-top: 24px; }
.chip {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border: 1px dashed var(--marca);
  border-radius: 4px;
  color: var(--marca);
}

/* Servicios ------------------------------------------------------------------ */
#servicios { background: var(--niebla); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servicio-card {
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--borde);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.14);
}

.servicio-img-wrapper { overflow: hidden; height: 210px; position: relative; }
.servicio-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.servicio-card:hover .servicio-img-wrapper img { transform: scale(1.05); }

.chip-modo {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(6, 16, 33, 0.82);
  color: var(--naranja);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 4px;
}

.servicio-content { padding: 28px 24px; display: flex; flex-direction: column; flex: 1; }
.servicio-content h3 { color: var(--tinta); margin-bottom: 10px; }
.servicio-content p { color: var(--texto-suave); margin-bottom: 20px; line-height: 1.6; flex: 1; }

.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--marca);
  transition: color 0.25s ease, gap 0.25s ease;
}
.servicio-link .material-icons { font-size: 1.1rem; transition: transform 0.25s ease; }
.servicio-link:hover { color: var(--naranja); }
.servicio-link:hover .material-icons { transform: translateX(4px); }

/* Instalaciones (sección oscura) ---------------------------------------------- */
#galeria { background: var(--tinta); }
#galeria h2 { color: var(--blanco); }
#galeria .seccion-intro { color: #A9B7CF; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.galeria-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-item:hover img { transform: scale(1.07); }

.galeria-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(6, 16, 33, 0.85));
  color: var(--blanco);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Testimonios ------------------------------------------------------------------ */
#testimonios { background: var(--blanco); }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonio-card {
  background: var(--niebla);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--borde);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 27, 51, 0.1);
}

.comillas {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: -18px;
}
.testimonio-texto { color: var(--texto-suave); line-height: 1.7; margin-bottom: 20px; }

.testimonio-autor { display: flex; align-items: center; gap: 14px; }
.autor-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.autor-info h4 { color: var(--tinta); margin-bottom: 2px; font-size: 1.08rem; }
.autor-info p { color: var(--texto-suave); font-size: 0.88rem; }

.rating { margin-top: 14px; color: #FFB800; }
.rating .material-icons { font-size: 1.2rem; }

/* Contacto ------------------------------------------------------------------ */
#contacto { background: var(--niebla); }

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacto-whatsapp {
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.contacto-whatsapp .ic-grande {
  width: 56px; height: 56px;
  fill: var(--whatsapp);
}
.contacto-whatsapp h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contacto-whatsapp > p { color: #A9B7CF; max-width: 380px; }
.contacto-nota { font-size: 0.75rem; letter-spacing: 0.1em; color: #7F92B3; text-transform: uppercase; }

.contacto-info { background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; padding: 40px; }
.contacto-info h3 { color: var(--tinta); margin-bottom: 24px; }

.info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.info-item .material-icons { color: var(--marca); font-size: 1.5rem; margin-top: 2px; }
.info-item h4 { margin-bottom: 2px; color: var(--tinta); }
.info-item p { color: var(--texto-suave); line-height: 1.6; }
.info-item a:hover { color: var(--marca); }

.mapa { margin-top: 28px; }
.mapa iframe { border-radius: 10px; display: block; }

/* Footer ------------------------------------------------------------------ */
footer {
  background: #071224;
  color: #E8EDF6;
  padding: 64px 20px 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 48px;
}

.logo-footer { color: var(--blanco); margin-bottom: 16px; }

.footer-column h4 {
  color: var(--blanco);
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-column p, .footer-column a {
  color: #97A5BD;
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}
.footer-column a:hover { color: var(--naranja); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  color: #6B7A93;
  font-size: 0.9rem;
}
.footer-bottom p { margin-bottom: 6px; }

/* Botón flotante de WhatsApp -------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-float .ic { width: 30px; height: 30px; fill: var(--blanco); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav-container { padding: 0 20px; }
  .valor-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .historia-content { grid-template-columns: 1fr; gap: 48px; }
  .historia-img-wrapper { max-width: 480px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  .contacto-container { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .manifiesto-grid { grid-template-columns: repeat(2, 1fr); }
  .manifiesto-grid a:nth-child(odd) { border-left: none; }
  .manifiesto-grid a:nth-child(n+3) { border-top: 1px dashed rgba(255, 255, 255, 0.18); }
}

@media (max-width: 768px) {
  section { padding: 64px 20px; }
  .seccion-intro { margin-bottom: 40px; }

  nav ul {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--blanco);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(11, 27, 51, 0.12);
    gap: 4px;
    overscroll-behavior: contain;
  }
  nav ul.active { display: flex; }
  nav a { color: var(--texto) !important; padding: 12px; display: block; }
  .menu-toggle { display: flex; }

  .logo-razon { display: none; }

  .hero { padding-bottom: 200px; }
  .hero-acciones .btn { width: 100%; justify-content: center; }

  .valor-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-number { font-size: 2.4rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }

  .contacto-whatsapp { padding: 36px 24px; }
  .contacto-info { padding: 28px 20px; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
}

/* Movimiento reducido ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
