/**
 * ======================================================
 * ARCHIVO: responsive.css
 * UBICACIÓN: frontend-public/css/
 * VERSIÓN: 2.0 — ORGANIZADO POR COMPONENTES
 * ======================================================
 */

/* ======================================================
 * 1. HEADER Y NAVEGACIÓN
 * ====================================================== */

/* Base - Desktop primero */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Botón hamburguesa - siempre visible a la izquierda */
.nav-toggle {
  display: block !important;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle:hover {
  background: var(--nav-active-bg);
}

/* Botones del header */
.header-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.header-btn:hover {
  background: var(--nav-active-bg);
  color: var(--theme-strong);
}

/* Logo centrado */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Móvil - ocultar botones de texto */
@media (max-width: 879px) {
  .header-container {
    justify-content: center;
    padding: 10px 16px;
  }
  
  .nav-toggle {
    left: 10px;
  }
  
  .header-btn {
    display: none !important;
  }
}

/* Desktop - mostrar botones */
@media (min-width: 880px) {
  .header-btn {
    display: block !important;
  }
}

/* ======================================================
 * 2. GRID DE PRODUCTOS
 * ====================================================== */

/* Móvil */
@media (max-width: 879px) {
  .productos-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* Tablet */
@media (min-width: 880px) and (max-width: 1023px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

/* Desktop pequeño */
@media (min-width: 1024px) and (max-width: 1199px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  .productos-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px;
  }
}

/* ======================================================
 * 3. BOTONES NIÑO / NIÑA
 * ====================================================== */

@media (max-width: 879px) {
  .theme-btn {
    min-width: 70px;
    padding: 6px 10px;
  }
}

@media (max-width: 520px) {
  .theme-btn {
    min-width: 60px;
    padding: 4px 8px;
  }
  
  .theme-btn-media {
    width: 40px;
    height: 30px;
  }
  
  .theme-btn-text {
    font-size: 0.65rem;
  }
}

/* ======================================================
 * 4. SECCIONES Y HERO
 * ====================================================== */

@media (max-width: 879px) {
  .hero-inner {
    margin-top: -60px;
    padding-bottom: 24px;
  }
  
  .hero-bg {
    min-height: 200px;
  }
  
  .section {
    padding: 40px 16px;
  }
}

@media (max-width: 880px) and (orientation: landscape) {
  .hero-bg {
    min-height: 160px;
  }
  
  .hero-inner {
    margin-top: -40px;
  }
  
  .section {
    padding: 30px 16px;
  }
}

/* ======================================================
 * 5. WHATSAPP FLOTANTE
 * ====================================================== */

@media (max-width: 520px) {
  .whatsapp-tooltip {
    display: none;
  }
}