/*STYLE.CSS*/
/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-yellow: #ffd700;
  --primary-blue: #4a90e2;
  --primary-green: #7ed321;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  --black: #000000;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ENCABEZADO ===== */
/* Franja superior */
.topbar {
  background: linear-gradient(90deg, #ffd700, #ffef8a);
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}
.topbar a:hover {
  color: #000;
  font-weight: 600;
}

/* Header principal */
/* ====== HEADER NUEVO HOGAR SOL ====== */
.header {
  background: linear-gradient(90deg, #ffed4a 0%, #fff3b0 100%);
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Caja central blanca tipo "Prolimso" */
.header-inner {
  background: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1300px;
  padding: 10px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Logo y texto */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  width: 65px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  margin-right: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.store-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #46b92f;
  letter-spacing: 1px;
}

/* Menú */
.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ffd700;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: #46b92f;
}

/* Carrito */
.cart-icon {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.cart-icon:hover {
  transform: scale(1.1);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #46b92f;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    padding: 12px 25px;
    gap: 10px;
  }
  .nav-list {
    gap: 15px;
  }
  .store-name {
    font-size: 1.5rem;
  }
  .topbar {
    display: none; /* ocultamos franja superior en móvil */
  }
}

.header {
  box-shadow: none !important;
  border-bottom: none !important;
}

/* ===== FONDO DEL CARRUSEL ===== */
.hero-background {
  background: linear-gradient(180deg, #FFD200 0%, #FFF8D1 100%);
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  padding: 50px 0 60px 0;
  margin-top: 0 !important;   /* 🔧 ANTES ERA 80px */
}

/* ===== CARRUSEL ===== */
.carousel-container {
  width: 85%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
  background: var(--white);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: var(--white);
}

/* Botones laterales */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.5rem;
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--primary-yellow);
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Dots modernos */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  border: 2px solid #fff;
  transition: 0.3s;
}
.dot.active {
  background: var(--primary-yellow);
  transform: scale(1.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0.6rem;
    padding: 10px 20px;
  }

  .nav-list {
    gap: 1rem;
  }

  .carousel-slide img {
    height: 320px;
  }

  .hero-background {
    border-radius: 0;
    padding: 30px 0 40px 0;
  }
}

/* Secciones */
.bestsellers,
.catalog,
.offers {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

/* Filtros de Categoría */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-blue);
  background: var(--white);
  color: var(--primary-blue);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #2563eb;  /* azul */
  color: white;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.product-card {
  width: 300px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.product-image {
  width: 100%;
  height: 180px;        
  object-fit: contain;  
  border-radius: 4px;
  background-color: #f9f9f9; 

}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.product-name {
  min-height: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem; 
}

.price-original {
  text-decoration: line-through;
  color: #888;
  margin-right: 6px;
}
.price-offer {
  color: #e11d48; /* rojo atractivo */
  font-weight: bold;
}
.price-current {
  color: #111;
  font-weight: 600;
}


.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-green);
  color: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: bold;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-yellow);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.cart-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content {
  background: var(--white);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-medium);
}

.cart-items {
  padding: 1rem;
  min-height: 200px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.cart-total {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-btn:hover {
  background: #6bc91a;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #fffce1 0%, #fff4b3 100%);
  color: #333;
  padding: 3rem 0 1.5rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  width: 90%;
  margin: auto;
}

.footer-logo {
  width: 90px;
  margin-bottom: 10px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer-column h4 {
  color: #2d7d2d;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #46b92f;
}

.social-icons a {
  font-size: 1.4rem;
  margin-right: 12px;
  color: #46b92f;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 0.9rem;
}

.libro-img {
  width: 120px;
  margin-top: 10px;
}


/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .carousel-section {
    margin-top: 40px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .category-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .cart-content {
    width: 95%;
  }
}

/* boton */
.product-detail-modal {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.product-detail-modal.active {
  display: flex;
}

.product-detail-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh; /* Que nunca se pase del 90% del alto de la pantalla */
  overflow-y: auto;
}


.product-detail-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-height: 100%;
  overflow: auto;
}


@media (max-width: 768px) {
  .product-detail-body {
    flex-direction: column;
    align-items: center;
  }

  .product-images {
    flex-direction: row;  /* miniaturas abajo de la imagen */
    justify-content: center;
  }

  .main-image {
    max-width: 90%;  /* imagen más flexible */
    height: auto;
  }

  .product-info {
    max-width: 90%;
    padding: 1rem;
    text-align: center;
  }

  .close-detail {
    top: 10px;
    right: 10px;
  }
}

.product-images {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-image {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  border: 6px solid #ccc;         /* Grosor y color del marco */
  padding: 10px;                  /* Espacio entre imagen y borde */
  background-color: #fff;        /* Fondo blanco detrás de la imagen */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra suave */
  border-radius: 20px;            /* Bordes redondeados (opcional) */
}

.main-image:hover {
  transform: scale(1.02);
}

.thumbnails {
    display: flex;
    flex-direction: column; /* Para que se vean vertical */
    gap: 8px;
    max-height: 400px;
    overflow-y: auto; /* scroll vertical si hay muchas miniaturas */
    padding-right: 5px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: contain; /* ajusta sin recortar */
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnails img.active {
  border-color: #007bff;
}

.product-detail-body .product-info {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  padding: 2rem;
}

.view-detail-btn {
  background-color: #FFD700;   /* Amarillo dorado */
  color: #333;                 /* Texto oscuro */
  border: none;
  padding: 0.75rem 1.5rem;     /* Botón más ancho */
  border-radius: 6px;          /* Bordes redondeados */
  cursor: pointer;
  font-weight: bold;
  width: 100%;                 /* Que ocupe todo el ancho de la card */
  transition: background 0.3s ease;
}

.view-detail-btn:hover {
  background-color: #FFC107;   /* Amarillo más intenso al pasar el mouse */
}

/* Botón de cerrar (X) */
.close-detail {
  background: none;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}
.close-detail:hover {
  color: #e63946;
  transform: scale(1.1);
}

/* Input de cantidad */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-selector button {
  background-color: #07c5ff; /* Amarillo suave */
  border: none;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quantity-selector button:hover {
  background-color: #e0a800; /* Amarillo más oscuro al pasar */
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  font-size: 16px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}


/* Botón añadir al carrito */
#detailAddToCart {
  background: #f4c542; /* Amarillo */
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
#detailAddToCart:hover {
  background: #4CAF50; /* Verde */
  color: white;
}

.thumbnails img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 5px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.thumbnails img.active {
  border-color: #007bff;
}

/*BARRA DE BUSQUEDAD*/
.search-bar-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  width: 60%;
}

#searchInput {
  width: 100%;
  padding: 12px 45px 12px 20px;
  font-size: 16px;
  border: 2px solid #1a73e8;
  border-radius: 30px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #1a73e8;
  pointer-events: none;
}

/*COLORES CIRCULOS*/
.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 5px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;;
  box-sizing: border-box;
}
.color-circle.active{
  border: 2px solid black;
}
.color-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  display: none;
}

.color-circle:hover .color-label {
  display: block;
}

/*LINEAS*/
.lineas-section {
  text-align: center;
  padding: 140px;
  background-color: #f9f9f9;
}
/* Este estilo arregla el espacio debajo del header */
.linea-section {
  padding-top: 140px; /* Asegura que no quede detrás del header */
}

/* Asegura que la barra de búsqueda y el título tengan espacio visual */
.linea-section .search-bar-container,
.linea-section .category-filters {
  margin-top: 20px;
}

/* Ajusta el título de línea */
.titulo-linea {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #4385f5;
  margin-bottom: 10px;
  text-decoration: none;
}

.lineas-section .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lineas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.linea-btn {
  padding: 1rem 2rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.linea-btn:hover {
  background-color: #0056b3;
}

.logo-link {
  display: flex;
  align-items: center;   /* 🔥 centra logo y texto verticalmente */
  text-decoration: none;
  gap: 12px;             /* espacio entre logo y nombre */
}

.logo-link:visited,
.logo-link:hover {
  text-decoration: none;
}

/*para las cartas de lineas*/
.linea-card {
    width: 220px;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.linea-card:hover {
    transform: translateY(-5px);
}
.linea-img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    object-fit: contain;
}
.lineas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/*ver productos*/
.ver-productos-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ver-productos-btn:hover {
    background-color: #0056b3;
}

/* Evita que el header tape el carrusel al hacer scroll hacia #inicio */
#inicio {
  scroll-margin-top: 120px; /* deja margen para que el header no lo tape */
}

/**/
/* ==== Encabezado de línea ==== */
.brand-header {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fef8c0 100%);
  padding: 60px 20px 40px;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.brand-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.brand-title {
  font-size: 2.4rem;
  color: #1a73e8;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.brand-desc {
  color: #444;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
/* 🔹 Oculta el título duplicado sin afectar el JS */
#tituloLinea {
  font-size: 0;       /* elimina el texto visible */
  margin: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.linea-section {
  margin-top: -40px;
  padding-top: 0;
}

/*BOTON PARA REGRESAR ATRAS*/
/* --- BOTÓN VOLVER AL INICIO --- */
.back-home-btn {
  position: fixed;
  top: 110px;
  left: 30px;
  background-color: #ffffff;
  border: 2px solid #FFD700;
  color: #4385f5;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* efecto hover */
.back-home-btn:hover {
  background-color: #FFD700;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ===== Botón Flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}
/* ===== PAGINACIÓN ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 12px;
}

.page-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: #003366;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.page-btn.active {
  background-color: #003366;
  color: #fff;
}

.page-btn:hover {
  background-color: #ffcc00;
  color: #003366;
}
  

/* AJUSTES PARA EL MOVIL HEADER Y MENU */
html, body { overflow-x: hidden; }

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  border: none;
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 42px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
}

/* Afinar caja del header para que no desborde */
.header-inner {
  padding: 10px 18px;
  gap: 14px;
}

/* ===== MÓVIL ===== */
@media (max-width: 768px) {
  .logo-img { width: 52px; }
  .store-name { font-size: 1.2rem; }

  /* mostrar botón ☰ y acomodar layout */
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; top: 68px; right: 14px; background:#fff; border-radius: 12px;
          box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px; display: none; z-index: 1100; }
  .nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
  }

  /* evita que el menú horizontal empuje el header */
  .nav-list > li a { display: block; padding: 8px 6px; }

  /* el carrito se queda a la vista sin romper el layout */
  .cart-icon { order: 3; }

  /* header más compacto */
  .header-inner { width: 94%; padding: 8px 12px; }
}

/*AJUSTES PARA QUE SE VEA MEJOR*/
/* Search más angosto en móvil */
@media (max-width: 768px) {
  .search-bar-container { width: 92%; }
}

/* Sección de marcas: el padding es enorme en móvil */
.lineas-section {
  text-align: center;
  padding: 80px 20px;   /* antes 140px */
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .lineas-section { padding: 36px 16px; }
}

/* WhatsApp: más chico y más pegado a los bordes en móvil */
@media (max-width: 768px) {
  .whatsapp-float { width: 52px; height: 52px; right: 12px; bottom: 12px; }
  .whatsapp-icon { width: 30px; height: 30px; }
}

/* Carrusel un poco más bajo en móvil (ya tienes 320px, lo dejamos OK) */
/* Footer: mejor separación en móvil */
@media (max-width: 768px) {
  .footer { padding: 2rem 0 1rem; }
  .footer-container { width: 92%; gap: 1.4rem; }
}

/*para el titulo*/
@media (max-width: 768px) {
  .store-name {
    white-space: nowrap; /* evita salto de línea */
  }
}

/*HEADER FIJO EN CEL*/
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* deja espacio debajo para que el contenido no quede oculto */
body {
  padding-top: 90px; /* ajusta según el alto del header */
}

/*PARA QUE LAS MARCAS SE VEAN MEJOR*/
@media (max-width: 768px) {
  .lineas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 por fila */
    gap: 15px;
  }

  .linea-card {
    width: 100%;
    padding: 0.8rem;
  }

  .linea-img {
    width: 90px;
    height: 90px;
  }

  .ver-productos-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/*PARA EL CARRUSEL*/
@media (max-width: 768px) {
  .carousel-container {
    width: 92%;              /* más estrecho */
    border-radius: 18px;     /* bordes suaves */
  }

  .carousel-slide img {
    height: 230px;           /* antes 320px */
    object-fit: contain;     /* que no se deforme */
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .carousel-dots {
    bottom: 8px;
  }
}

/*FOOTER PARTE FINAL MOVIL*/
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 90%;
  }

  .footer-column h4 {
    margin-bottom: 0.4rem;
  }

  .footer-column p,
  .footer-column a,
  .footer-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .libro-img {
    width: 100px;
    margin-top: 8px;
  }
}
/*LOGO / PRESENTACION DE CADA LINEA*/
@media (max-width: 768px) {
  .brand-header {
    padding: 30px 15px 25px;
    border-radius: 0 0 30px 30px;
  }

  .brand-logo {
    width: 90px;
    margin-bottom: 6px;
  }

  .brand-title {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }

  .brand-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 320px;
  }
}
/*BOTON DE ATRAS*/
@media (max-width: 768px) {
  .back-home-btn {
    position: fixed;
    top: 105px; /* 🔽 un poco debajo del header */
    left: 15px; /* ⬅ pegado al borde izquierdo */
    transform: none;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: #ffffff;
    border: 1.5px solid #FFD700;
    color: #1a73e8;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    z-index: 1200;
  }

  .back-home-btn:hover {
    background-color: #FFD700;
    color: #fff;
  }
}
/*FILTROS PARA LAS LINEAS*/
@media (max-width: 768px) {
  .category-filters {
    gap: 0.4rem;
    margin-top: 10px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  #searchInput {
    font-size: 0.9rem;
    padding: 10px 35px 10px 15px;
  }

  .search-bar-container {
    width: 90%;
  }
}
/*AJUSTE PARA PRODCUTOS CEL*/
@media (max-width: 600px) {

  /* 1. Usamos .products-grid (el nombre que SÍ usas) */
  .products-grid {
    width: 100%; 
    grid-template-columns: 1fr 1fr !important; /* DOS columnas (forzado) */
    gap: 0.75rem; 
    padding: 0.75rem; 
    box-sizing: border-box;
  }

  /* 2. Arreglamos la tarjeta (anulando el width: 300px) */
  .product-card {
    display: flex;
    flex-direction: column; 
    width: 100% !important; /* ¡FORZAMOS el ancho al 100%! */
    min-width: 0; 
    overflow: hidden; 
  }

  /* 3. Arreglamos la Imagen (altura fija) */
  .product-card .product-image {
    width: 100%; 
    height: 140px; 
    object-fit: contain; 
  }
  
  /* 4. Contenedor de Info */
  .product-card .product-info {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    flex-grow: 1; 
    text-align: center;
  }

  /* === 5. ¡¡LA BOMBA ATÓMICA (CON EL NOMBRE CORRECTO)!! === */
  /* ¡¡Usamos .products-grid para ganar la guerra!! */
  
  .products-grid .product-card .product-name {
    
    /* --- ¡FORZAR EL SALTO DE LÍNEA! --- */
    white-space: normal !important;  
    overflow-wrap: break-word !important; 
    
    /* --- ¡ANULAR EL "..." Y EL CORTE! --- */
    overflow: visible !important;    
    text-overflow: clip !important;  
    
    /* --- ALTURA Y FUENTE (como antes) --- */
    height: auto;         
    min-height: 2.8em;  /* 2 líneas */
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  /* ========================================= */


  /* 6. El resto (no necesita ser tan específico) */
  .product-card .product-price {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .product-card .product-stock {
    font-size: 0.8rem;
    margin-bottom: 0.75rem; 
  }

  .product-card .view-detail-btn {
    width: 100%; 
    padding: 0.6rem 0.25rem; 
    font-size: 0.8rem; 
    margin-top: auto; /* Empuja al fondo */
  }
  
}
/* 📱 ARREGLO FINAL DEL MODAL DE DETALLE EN CELULAR */
@media (max-width: 768px) {
  .product-detail-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 95%;
    max-width: 420px;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 16px;
  }

  .product-detail-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    text-align: center;
    width: 100%;
    overflow: visible;
  }

  .product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  /* Imagen principal centrada */
  .main-image {
    width: 85%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }

  /* Miniaturas: horizontales y con scroll si hay muchas */
  .thumbnails {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 6px 0;
  }

  .thumbnails img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid transparent;
    flex-shrink: 0;
  }

  .thumbnails img.active {
    border-color: #1a73e8;
  }

  /* Información del producto */
  .product-info {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  .product-info h2 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .product-info p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
  }

  .price-current {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .quantity-selector {
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .quantity-selector button {
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
  }

  .quantity-selector input {
    width: 45px;
    font-size: 0.9rem;
  }

  .color-circle {
    width: 26px;
    height: 26px;
  }

  #detailAddToCart {
    width: 90%;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 10px;
  }

  /* Evita que se oculte parte del modal */
  .product-detail-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 60px;
  }
}
#offersGrid, #offersGrid * { pointer-events: auto; }

/* === ESTILO PARA PRODUCTOS SIN STOCK === */
.product-card.out-of-stock {
    /* Efecto "plomo y transparente" que pediste */
    opacity: 0.65;
    background: #f8f9fa; /* Fondo plomo suave */
}

/* Opcional: poner la imagen en blanco y negro */
.product-card.out-of-stock .product-image {
    filter: grayscale(100%);
}

/* Poner el texto "SIN STOCK" en rojo */
.product-card.out-of-stock .product-stock {
    color: #dc3545; /* Rojo de "peligro" */
    font-weight: 700;
}

/* Cambiar el botón a gris */
.product-card.out-of-stock .view-detail-btn {
    background-color: #6c757d; /* Gris */
    cursor: not-allowed; /* Pone el mouse de "prohibido" */
}
.product-card.out-of-stock .view-detail-btn:hover {
    background-color: #5a6268; /* Gris oscuro */
}