/* ============================================================
   craft-heroes.css
   Todos los heroes del sitio Craft Multimodal
   - Video hero (aereo, fcl, lcl, trucking, noticias, nuestro-negocio)
   - Image hero (acerca-de-craft, nuestras-oficinas, tracker, turnos, contacto)
   - Slide-in image sections (aereo, fcl, lcl, depositos, trucking)
   - Stats bars
   ============================================================ */

/* ── VIDEO HERO ─────────────────────────────────────────────
   Usado en: aereo, fcl, lcl, trucking, noticias, nuestro-negocio
   HTML: <div class="video-hero"> <video> ... </video> <div class="video-hero-overlay"> <div class="vho-content"> */

.video-hero {
  position: relative;
  height: 620px;
  overflow: hidden;
}
.video-hero video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,50,61,0.92) 45%, rgba(34,50,61,0.3) 100%);
  display: flex;
  align-items: center;
  padding: 0 8%;
  z-index: 1;
}
.vho-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}
.vho-tag {
  display: inline-block;
  background: var(--craft-red);
  color: white;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 20px;
}
.vho-content h1 {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 800; color: white;
  letter-spacing: -4px; line-height: 0.92;
  margin-bottom: 20px;
}
.vho-content h1 em { color: var(--craft-red); font-style: normal; }
.vho-content h1 span { color: var(--craft-red); }
.vho-content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px; line-height: 1.75;
  font-weight: 400; max-width: 560px;
}

/* Badge especial TIACA (aereo) */
.vho-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 24px;
}
.vho-badge strong { color: white; font-weight: 700; }

@media (max-width: 768px) {
  .video-hero { height: 440px; }
  .vho-content h1 { letter-spacing: -2px; }
}


/* ── IMAGE HERO ──────────────────────────────────────────────
   Usado en: acerca-de-craft, nuestras-oficinas, tracker, turnos, contacto, noticias
   HTML: <section class="img-hero"> <img class="img-hero-bg"> <div class="img-hero-overlay"> <div class="img-hero-content"> */

.img-hero {
  position: relative;
  min-height: 520px;
  padding: 160px 8% 120px;
  overflow: hidden;
  background: var(--craft-navy-dark);
}
.img-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.50);
  z-index: 0;
}
.img-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,50,61,0.88) 42%, rgba(34,50,61,0.28) 100%);
  z-index: 1;
}
.img-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}
.img-hero-breadcrumb {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.img-hero-breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 600;
}
.img-hero-breadcrumb .sep {
  color: var(--craft-red);
  margin: 0 6px;
}
.img-hero-tag {
  display: inline-block;
  background: var(--craft-red);
  color: white;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 20px;
}
.img-hero-tag.pill {
  background: rgba(227,6,19,0.15);
  color: #ff4d5a;
  border: 1px solid rgba(227,6,19,0.3);
  border-radius: 100px;
  padding: 6px 16px;
}
.img-hero-content h1 {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 800; color: white;
  letter-spacing: -3px; line-height: 0.95;
  margin-bottom: 20px;
}
.img-hero-content h1 em { color: var(--craft-red); font-style: normal; }
.img-hero-content p {
  color: rgba(255,255,255,0.72);
  font-size: 16px; font-weight: 400;
  line-height: 1.75; max-width: 600px;
}

/* Variante tall: acerca-de-craft (con grid de estadísticas) */
.img-hero.tall {
  min-height: 580px;
  padding: 140px 8% 100px;
}
.img-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 10px;
}
.img-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.hs-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--craft-red);
  padding: 20px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hs-num {
  font-size: 36px; font-weight: 800;
  color: white; line-height: 1;
}
.hs-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px; margin-top: 4px;
}

@media (max-width: 768px) {
  .img-hero { padding: 130px 5% 80px; }
  .img-hero.tall { padding: 130px 5% 80px; }
  .img-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .img-hero-stats { grid-template-columns: 1fr 1fr; }
}


/* ── HOME HERO ───────────────────────────────────────────────
   Usado solo en: index.html */

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--craft-navy-dark);
}
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.85);
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,50,61,0.88) 40%, rgba(34,50,61,0.35) 100%);
}
.home-hero-content {
  position: relative; z-index: 2;
  padding: 0 8%;
  max-width: 1300px; margin: 0 auto; width: 100%;
}
.home-hero-left { padding: 120px 0; max-width: 720px; }
.home-hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(227,6,19,0.15);
  border: 1px solid rgba(227,6,19,0.3);
  color: #ff4d5a;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 28px;
}
.home-hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--craft-red); border-radius: 50%;
  animation: pulse 2s infinite;
}
.home-hero h1 {
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 800; color: white;
  line-height: 1.0; letter-spacing: -2px;
  margin-bottom: 24px;
}
.home-hero h1 .red { color: var(--craft-red); }
.home-hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.7);
  line-height: 1.8; font-weight: 400;
  max-width: 560px; margin-bottom: 40px;
}
.home-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }


/* ── SLIDE-IN IMAGE SECTION ──────────────────────────────────
   Usado en: aereo, fcl, lcl, depositos, trucking
   HTML: <div class="slide-section"> <div class="slide-img"> <img> </div> <div class="slide-content"> */

.slide-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.slide-img {
  overflow: hidden;
  position: relative;
}
.slide-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: translateX(-100%);
  transition: transform 1.1s cubic-bezier(0.4,0,0.2,1);
}
.slide-img.visible img { transform: translateX(0); }
.slide-content {
  background: var(--craft-gray-light);
  padding: 70px 60px;
  display: flex; flex-direction: column; justify-content: center;
}

@media (max-width: 768px) {
  .slide-section { grid-template-columns: 1fr; }
  .slide-img { min-height: 280px; }
  .slide-content { padding: 50px 5%; }
}


/* ── STATS BAR ───────────────────────────────────────────────
   Usado en: lcl (roja), index numbers-section (roja)
   HTML: <div class="stats-hero-bar"> <div class="stats-hero-inner"> */

.stats-bar-red {
  background: var(--craft-red);
  padding: 40px 8%;
}
.stats-bar-red-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.sbar-num {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 800; color: white; line-height: 1;
}
.sbar-label {
  font-size: 11px; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-bar-red-inner { grid-template-columns: repeat(2, 1fr); }
}
