/* responsive.css - Estilos adicionales para responsividad */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .header-actions .search-container {
        display: none;
    }
    
    .products-grid,
    .categories-grid,
    .testimonials-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .products-grid,
    .categories-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .promo-text h2 {
        font-size: 28px;
    }
    
    .collection-card {
        min-height: 250px;
        padding: 30px 20px;
    }
    
    .collection-card h3 {
        font-size: 24px;
    }
}

/* Estilos para el menú móvil */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: var(--transition);
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 15px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

.mobile-nav-list a.active {
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}










/* ================================
   FORZAR MENÚ COMPLETO EN MÓVIL
   ================================ */
@media (max-width: 768px) {

  /* Ocultar botón hamburguesa */
  .mobile-menu-btn {
    display: none !important;
  }

  /* Mostrar menú normal */
  .main-nav {
    display: block !important;
  }

  .main-nav .nav-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .main-nav .nav-list li {
    display: inline-block;
  }

  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    margin-bottom: 10px;
  }
}




/* ===============================
   MEGA MENU CATEGORÍAS EN MÓVIL
   =============================== */
@media (max-width: 768px) {



  .open {
    display: block;
  }

  .cat-left,
  .cat-right {
    width: 100%;
  }

  .cat-right {
    display: none; /* en móvil solo lista */
  }
}






/* ==== FIX CATEGORÍAS MÓVIL ==== */
@media (max-width: 768px) {

  .cat-trigger {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
  }

  .cat-mega {
    position: relative;
    z-index: 9998;
  }

  /* Asegura que el menú móvil no bloquee */
  #mobileMenu,
  .mobile-menu,
  .nav-overlay {
    pointer-events:all;
  }

  #mobileMenu.active {
    pointer-events: auto;
  }
}




/* ==============================
   MEGA MENÚ CATEGORÍAS – MÓVIL
================================ */
.cat-mega {
  display: none;
}

.cat-mega.open {
  display: block;
}

/* Ajustes solo en móvil */
@media (max-width: 768px) {

  .cat-mega {
    position: fixed;
    top: 70px; /* debajo del header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    overflow-y: auto;
    z-index: 9999;
    padding: 15px;
  }

  .cat-left {
    width: 100%;
  }

  .cat-item {
    width: 100%;
    text-align: left;
  }
}




/* ===============================
   GRID GENERAL DE PRODUCTOS
================================ */
.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:24px;
  align-items:stretch;
  width:100%;
}

/* ===============================
   TARJETA DE PRODUCTO
================================ */
.product-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.08);

  display:flex;
  flex-direction:column;

  width:100%;
  max-width:100%;
}

/* ===============================
   IMAGEN
================================ */
.product-image{
  width:100%;
  height:230px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#f7f7f7;
}

.product-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

/* ===============================
   INFO
================================ */
.product-info{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.product-title{
  font-size:16px;
  font-weight:600;
  line-height:1.3;
}

.product-description{
  font-size:13px;
  color:#666;
}

.product-price{
  margin-top:auto;
  font-weight:700;
  font-size:15px;
}

/* ===============================
   BOTÓN
================================ */
.btn-product{
  margin-top:10px;
  padding:10px;
  border-radius:8px;
  border:none;
  background:#111;
  color:#fff;
  cursor:pointer;
}





@media (max-width:1200px){
  .products-grid{
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width:992px){
  .products-grid{
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width:576px){
  .products-grid{
    grid-template-columns: 1fr;
  }

  .product-image{
    height:200px;
  }
}
