/* ════════════════════════════════════════════════════════════════════
   MUNDO DRONE · ARQUITECTURA MODULAR v4.1
   
   CAPA ADICIONAL sobre mundodrone-mock.css (sin eliminar nada del original)
   Corrige los errores visuales identificados en producción:
   - Hero: texto enorme en mobile, contenido no centrado
   - Section-header: label y título solapados
   - Hero-stats: desbordamiento horizontal
   - Botones: sin centrado ni full-width en mobile
   - Nav: sin menú hamburger funcional
════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   1. HERO — CENTRADO Y TAMAÑO CORRECTO
════════════════════════════════════════════════════════ */

/* El original tiene align-items: flex-start — lo centramos */
.hero {
  align-items: center;
  text-align: center;
}

.hero-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  justify-content: center;
}

.hero-terminal {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero-eyebrow {
  justify-content: center;
}

.hero-eyebrow::before {
  display: none; /* la línea lateral no tiene sentido centrado */
}

/* Stats centradas */
.hero-stats {
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════
   2. SECTION HEADER — COLUMNA CENTRADA
════════════════════════════════════════════════════════ */

/* El original tiene flex-row + space-between → lo cambiamos a columna centrada */
.section-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.section-label {
  text-align: center;
}

.section-title {
  text-align: center;
}

/* El ch (títulos metálicos) también centrado */
.ch {
  text-align: center;
  display: block;
  width: 100%;
}

/* ════════════════════════════════════════════════════════
   3. NAV — HAMBURGER MENU RESPONSIVE
════════════════════════════════════════════════════════ */

/* Botón hamburger — oculto en desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(0, 212, 255, 0.2);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  z-index: 102;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--plata-a);
  transition: all 0.3s ease;
}

/* Animación hamburger → X */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════
   4. FOOTER — ESTRUCTURA
════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(to bottom, rgba(11,10,9,0.98), #020303);
  border-top: 1px solid rgba(0,212,255,0.12);
  padding: 60px 5vw 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-section-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plata-b);
  opacity: 0.7;
  margin-bottom: 4px;
}

/* Definir .nav-logo-emblem que faltaba */
.nav-logo-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.nav-logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ════════════════════════════════════════════════════════
   5. RESPONSIVE — TABLET (max 768px)
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* NAV: altura reducida + hamburger visible */
  .nav {
    height: 70px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Logo: sólo emblem en mobile, sin texto */
  .nav-logo-text {
    display: none;
  }

  .nav-logo-emblem {
    width: 52px;
    height: 52px;
  }

  /* Links ocultos por defecto → despliegan con .open */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    backdrop-filter: blur(16px);
    z-index: 99;
  }

  .nav-links.open {
    max-height: 420px;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    height: auto;
    line-height: 1.4;
    font-size: 12px;
  }

  .nav-cta {
    display: none;
  }

  /* HERO: contenido centrado */
  .hero {
    padding: 90px 20px 60px;
    align-items: center;
    text-align: center;
    min-height: auto;
  }

  /* Título enorme → manejable */
  .hero-title {
    font-size: clamp(26px, 8vw, 42px) !important;
    letter-spacing: -1px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
  }

  /* Botones: columna, full width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Stats: columna centrada, sin dividers */
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .hero-divider {
    display: none;
  }

  .hero-stat-item {
    align-items: center;
    text-align: center;
  }

  /* Section header: columna centrada */
  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 30px);
    text-align: center;
  }

  .ch {
    font-size: clamp(20px, 6vw, 30px) !important;
    text-align: center;
  }

  .section-link {
    margin-top: 8px;
  }

  /* Sections: padding mobile */
  .section,
  .comparador-section,
  .guia-section {
    padding: 50px 20px;
  }

  /* Filter bar: scroll horizontal */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
    justify-content: flex-start;
  }

  .filter-label {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Footer: columna */
  .footer {
    padding: 40px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ════════════════════════════════════════════════════════
   6. RESPONSIVE — MOBILE PEQUEÑO (max 480px)
════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .hero {
    padding: 80px 16px 50px;
  }

  .hero-title {
    font-size: clamp(22px, 7vw, 34px) !important;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-actions {
    max-width: 100%;
  }

  .section,
  .comparador-section,
  .guia-section {
    padding: 40px 16px;
  }

  .section-title,
  .ch {
    font-size: clamp(18px, 5.5vw, 26px) !important;
  }

  .hero-stat-val {
    font-size: 22px;
  }

  /* Esquinas decorativas: más pequeñas */
  .hero-corner-tr,
  .hero-corner-bl {
    width: 24px;
    height: 24px;
  }
}


/* ════════════════════════════════════════════════════════
   7. CLASES FALTANTES EN EL CSS ORIGINAL
════════════════════════════════════════════════════════ */

/* Badge RECOMENDADO (no existía en mock.css) */
.card-badge.dbr { 
  color: var(--orange); 
  border-color: rgba(255,122,0,0.4); 
  background: rgba(255,122,0,0.08); 
}

/* nav-logo-emblem (no existía en mock.css) */
.nav-logo-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}
.nav-logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
