/* ================================================
   MOBILE.CSS — Solo afecta pantallas <= 768px
   No modifica nada del diseño escritorio
   ================================================ */

@media (max-width: 768px) {
    .modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  font-size: 18px;
}

  /* ===== HAMBURGUESA ===== */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1100;
  }
  .hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  /* Animación X al abrir */
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ===== MENÚ NAV MÓVIL ===== */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    padding: 90px 30px 40px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    height: 100vh;
  }
  .nav-links.nav-open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 22px;
    font-family: var(--font-d);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 2px;
  }

  /* ===== HERO ===== */
  .hero { height: 85vh; }
  .hero-title { font-size: 42px; }
  .hero-desc { font-size: 14px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-ghost { width: 220px; text-align: center; }

  /* ===== STATS ===== */
  .stats-bar { flex-direction: column; gap: 20px; padding: 36px 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .stat-item strong { font-size: 36px; }

  /* ===== CATÁLOGO ===== */
  .section-catalogo { padding: 50px 16px; }
  .catalogo-grid { grid-template-columns:  1fr; gap: 12px; }
  .productos-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card-img { height: 450px; }
  .prod-card-img { height: 450px; }

  /* ===== MODAL PRODUCTO — FICHA TÉCNICA ===== */
  .modal-producto-detail {
    max-width: 100% !important;
    padding: 20px 16px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    max-height: 92vh;
  }
  .prod-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .galeria-main {
    height: 550px;
  }
  .galeria-thumbs .thumb {
    width: 60px; height: 50px;
  }
  .prod-detail-nombre { font-size: 22px; }
  .prod-detail-precio { font-size: 26px; }
  .specs-table td { font-size: 12px; padding: 6px 8px; }

  /* ===== DESTACADOS ===== */
  .section-destacados { padding: 50px 16px; }
  .destacados-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest-card img { height: 150px; }

  /* ===== CONTACTO ===== */
  .section-contacto { padding: 50px 16px; }
  .asesores-row { gap: 12px; }
  .asesor-card { width: 100%; max-width: 280px; }
  .sede-card { flex-direction: column; padding: 20px; }
  .sede-mapa { height: 200px; min-width: unset; }

  /* ===== INSTALACIONES ===== */
  .section-instalaciones { padding: 36px 16px; }
  .instalaciones-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-inst { height: 35vh; margin-top: 62px; }
  .lightbox-box { width: 98vw; padding: 16px; }
  .lightbox-media { max-height: 55vh; }

  /* ===== FOOTER ===== */
  .footer { padding: 44px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* ===== WHATSAPP ===== */
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 24px; }
  .wa-tooltip { display: none; }

  /* ===== BANNER ===== */
  .banner-calidad { padding: 50px 20px; }
  .banner-calidad h2 { font-size: 28px; }
}

/* Ocultar hamburguesa en escritorio */
@media (min-width: 769px) {
  .hamburger { display: none; }
}


@media (max-width: 768px) {
  .hero-slide:nth-child(1) {
    background-image: url('../imagenes/mobile/1.jpg') !important;
  }
  .hero-slide:nth-child(2) {
    background-image: url('../imagenes/mobile/2.png') !important;
  }
  .hero-slide:nth-child(3) {
    background-image: url('../imagenes/mobile/3.png') !important;
  }
}
