/* Estilos Globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #fffafc;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #ffd1e8;
  position: relative;
  z-index: 900;
}

.logo img {
  max-width: 150px;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Filtros de Productos */
.filters {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: #ff80ab;
  border: none;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background: #ff5e90;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active-filter {
  background: #cc0052;
}

/* Menú de Navegación Principal */
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.main-menu li a:hover {
  color: white;
  background: #ff80ab;
  transform: translateY(-2px);
}

/* --- NUEVO: Estilos del Menú Hamburguesa (oculto en escritorio) --- */
.hamburger-menu, .mobile-nav-overlay {
  display: none;
}

/* Sección de Carrusel */
.carousel-section {
  width: 100%;
  overflow: hidden;
}

.carousel {
  display: flex;
}

.carousel-image {
  width: 100%;
  height: auto; /* Altura automática para mantener la proporción */
  max-height: 450px; /* Altura máxima para que no sea gigante en desktop */
  object-fit: cover;
  display: none;
}

.carousel-image.active {
  display: block;
}

/* Galería de Productos */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 2rem;
}

.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0;
    color: #555;
    font-size: 1rem;
    height: 40px; /* Altura fija para alinear los títulos */
    overflow: hidden;
}

.view-details {
  margin-top: 10px;
  background: #ff80ab;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.view-details:hover {
    background: #ff5e90;
}

/* Modales */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 50%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#mainImageModal {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.modal .close:hover {
  color: #333;
}


footer {
    background: #ffd1e8;
    padding: 1rem;
    text-align: center;
    margin-top: 20px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.social-icons img {
    width: 35px; /* Ajusta según necesites */
    height: auto;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    z-index: 1000;
}
.whatsapp-float img {
    width: 100%;
}
/* ... Fin de estilos existentes ... */


/* ======================================================= */
/* === MEDIA QUERIES PARA REDISEÑO MÓVIL (768px o menos) === */
/* ======================================================= */
@media (max-width: 768px) {
  /* Ocultar el menú de escritorio y mostrar el de hamburguesa */
  .desktop-nav {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    background: none;
    border: none;
    font-size: 2rem;
    color: #cc0052;
    cursor: pointer;
  }

  /* Estilos para el overlay del menú móvil */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 100%; /* Inicia fuera de la pantalla */
    width: 100%;
    height: 100%;
    background: rgba(255, 209, 232, 0.98); /* Fondo rosa semi-transparente */
    backdrop-filter: blur(5px);
    z-index: 1100;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
  }
  
  .mobile-nav-overlay.active {
    left: 0; /* Lo trae a la pantalla */
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #333;
    cursor: pointer;
  }
  
  /* Menús dentro del overlay */
  .mobile-nav-overlay .filters, .mobile-nav-overlay .main-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
  }
  .mobile-nav-overlay .main-menu ul li a, .mobile-nav-overlay .filter-btn {
    font-size: 1.5rem;
    justify-content: center;
  }

  /* Carrusel optimizado */
  .carousel-image {
    max-height: 45vh; /* Usa el 45% de la altura de la pantalla */
    object-fit: cover;
  }

  /* Galería de productos a 2 columnas */
  .product-gallery {
    grid-template-columns: repeat(2, 1fr); /* Siempre 2 columnas */
    padding: 1rem;
    gap: 15px;
  }
  .product-card h3 {
    font-size: 0.9rem;
    height: 45px; /* Un poco más de altura para textos más largos */
  }

  /* Modal más grande en móviles */
  .modal-content {
    max-width: 90vw; /* Usa el 90% del ancho de la pantalla */
    padding: 1.5rem;
  }
}