/* Corrección de enfoque - Implementando solo los estilos necesarios */
/* Archivo style.css - Versión corregida y enfocada */

@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Kanit", sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

p {
  margin: 0;
}

.bg_primario {
  background: #170ad8;
}

.bg_light {
  background: #fafafa;
  margin-top: 15px;
}

.sinPadding {
  padding: 0;
}

/* ==================== HEADER ==================== */
/* Eliminando barra superior según requerimiento */
header .barrasuperior {
  display: none;
}

/* Nueva estructura de header */

.logo-container {
  height: 100%;
  display: flex;
  align-items: left;
}

.logo-container img {
  height: 100%;
  width: auto;
}

/* Contenido del header */
.barracentral__contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 4px;
  align-items: flex-end;
}

.barracentral__buscador__contacto {
  display: flex;
  padding: 0 15px 0 0;
  justify-content: center;
  gap: 1.6rem;
  flex: 1;
}

.barracentral__buscador__contacto a {
  color: black;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
}

.barracentral__buscador__contacto a i {
  color: #170ad8;
}

.barracentral__carrito {
  display: flex;
  align-items: center;
  margin-right: 20px;
  justify-content: flex-end;  
}

.carrito-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #6e69b6;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.carrito-header:hover {
  color: #170ad8 !important;
  transform: scale(1.1);
}

.numerito-header {
  position: absolute;
  top: -1.1rem;
  right: -1.5rem;
  background: #6e69b6;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem; 
}

.numerito-header p {
  color: white;
  margin: 0;
  line-height: 1;
  font-weight: 600;
}

.numerito-header #numeritoHeader.shake {
  animation: shake 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

/* Barra de búsqueda */
.barracentral__buscador__search {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  border: 1px solid #e2e2e2;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.barracentral__buscador__search .campobuscar {
  flex-grow: 1;
  height: 3rem;
  padding: 0 2rem;
  border: 0;
  font-size: 1.4rem;
}

.barracentral__buscador__search .campobuscar::placeholder {
  font-size: 1.4rem;
}

.barracentral__buscador__search .campobuscar:focus-visible {
  outline: 0;
  color: black;
}

.barracentral__buscador__search .botonbuscar {
  background: none;
  border: 0;
  border-left: 1px solid #e2e2e2;
  padding: 0 2rem;
  font-size: 1.6rem;
  color: gray;
  transition: background .3s, color .3s;
  height: 100%;
  cursor: pointer;
}

.barracentral__buscador__search .botonbuscar:hover {
  color: white;
  background: #170ad8;
}

/* Menú de categorías */
.categories-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1.4rem;
}

.categories-menu:hover {
  background: #e0e0e0;
}

.categories-dropdown {
  position: absolute;
  top: 172px;
  left: 0;
  width: 100%;
  max-width: 1280px;
  background: white;
  border: 1px solid #e2e2e2;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
}

.categories-dropdown.active {
  display: block;
}

/* Navegación botones */
.nav-buttons {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}

.nav-button {
  padding: 8px 16px;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1.4rem;
  white-space: nowrap;
}

.nav-button:hover {
  background: #bec8f7d5;
}

/* ==================== CATEGORÍAS Y PRODUCTOS ==================== */
.hero__categorias {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero__categorias .listadoCategoriasPadre {
  position: sticky;
  top: 0;
  width: 100%;
}

.hero__categorias__menu {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  overflow-y: auto;
  max-height: 80vh;
  background: white;
  border: .5rem solid white;
  position: absolute;
  top: 2rem;
  left: 0;
  box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.hero__categorias__menu .titulo {
  font-size: 1.7rem;
  font-weight: 500;
  background: #170ad8;
  color: white;
  padding: 1rem 1.5rem;
}

.hero__categorias__menu .category-item {
  opacity: 1;
  transition: all 1s;
}

.hero__categorias__menu .category-item a {
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e2e2;
  cursor: pointer;
  display: block;
  color: inherit;
  transition: color .3s;
}

.hero__categorias__menu .category-item a.active {
  color: #170ad8;
  font-weight: 600;
}

.hero__categorias__menu .category-item:last-child a {
  margin-bottom: 1rem;
  border-bottom: 0;
}

/* Subcategorías */
.subcategories-container {  
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0;
  display: none;
}

/* Botones de subcategorías en fila */
.subcategories-buttons-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  padding: 5px 0;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subcategories-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 12px 8px;
  flex-wrap: nowrap;
  width: 100%;  
}

.subcategory-btn {
  font-size: clamp(12px, 3vw, 18px);
  display: inline-block;
  outline: 0;
  border: 0;
  cursor: pointer;
  will-change: box-shadow, transform;
  background: radial-gradient(100% 100% at 100% 0%, #89E5FF 0%, #5468FF 100%);
  box-shadow: 0px 0.01em 0.01em rgb(45 35 66 / 40%), 0px 0.3em 0.7em -0.01em rgb(45 35 66 / 30%), inset 0px -0.01em 0px rgb(58 65 111 / 50%);
  padding: 0 2em;
  border-radius: 0.3em;
  color: #fff;
  height: 2.5em;
  text-shadow: 0 1px 0 rgb(0 0 0 / 40%);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.subcategory-btn:hover {
  box-shadow: 0px 0.1em 0.2em rgb(45 35 66 / 40%), 0px 0.4em 0.7em -0.1em rgb(45 35 66 / 30%), inset 0px -0.1em 0px #3c4fe0;
  transform: translateY(-0.1em);
}

.subcategory-btn:active {
  box-shadow: inset 0px 0.1em 0.6em #3c4fe0;
  transform: translateY(0em);
}

.subcategory-btn.active {
  background: radial-gradient(100% 100% at 100% 0%, #1c2885 0%, #0f1861 100%);
  box-shadow: 0px 0.1em 0.2em rgb(66 35 45 / 40%), 0px 0.4em 0.7em -0.1em rgb(66 35 45 / 30%), inset 0px -0.1em 0px #e03c4f;
}

.show-all-btn {
  background: radial-gradient(100% 100% at 100% 0%, #89FF89 0%, #54FF68 100%) !important; 
}

.show-all-btn:hover {
  box-shadow: 0px 0.1em 0.2em rgb(35 66 45 / 40%), 0px 0.4em 0.7em -0.1em rgb(35 66 45 / 30%), inset 0px -0.1em 0px #3ce04f !important;
}

/* Slider */
.hero__slider {
  padding: 2rem 3rem;
}

.hero__slider .slider {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.1);
}

.hero__slider .slider img {
  width: 100%;
}

@media (max-width: 1400px) {
.subcategories-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 10px 8px;  
  width: 100%; 
  max-width: 100%;  
}

.subcategory-btn {
  max-width: 100%;  
  flex-shrink: 1;
  aspect-ratio: initial;
  
}
}

@media (max-width: 1200px) {
.subcategories-buttons { 
  gap: 8px;  
  max-width: 100%;
}

.subcategory-btn {
  font-size: 16px;
  padding: 0 1.2em; 
  height: 2em; 
}
}

@media (max-width: 992px) {
.subcategories-container {  
  margin: 0;
  padding: 0;
  display: none;
 }

.subcategories-buttons-wrapper {
  width: 100%;   
  padding: 2px 0;  
  border-radius: 8px;
 }

.subcategories-buttons { 
  gap: 8px;  
  width: 100%;  
}

.subcategory-btn {
  font-size: 14px;
  padding: 0 0.9em; 
  height: 1.7em; 
  min-width: 60px;  
  flex-shrink: 1; 
}  
}

@media (max-width: 805px) { 
  
  .subcategory-btn {
    padding: 0.2em 0.8em; 
    font-size: 12px;
    height: 1.8em;    
    flex-shrink: 1;
  }
}

@media (max-width: 700px) {  
  .subcategories-buttons {
    max-width: 100%; 
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .subcategory-btn {
   
  }
}

@media (max-width: 575px) {

  .hero__categorias__menu {  
   max-height: none;
   margin-top: 1px;
   overflow-y: hidden;  
   border: 1px solid #e2e2e2;
   border-radius: 1rem;
 }
  
  .hero__categorias__menu .titulo {   
   font-size: 1.3rem;
   padding: 0.8rem 1.1rem;
  }
  
  .hero__categorias__menu .category-item a {
   font-size: 1.2rem;
   padding: 0.8rem 1.1rem;
  }  
}
/* ==================== PRODUCTOS ==================== */
/* Contenedor principal de productos - máximo 1280px */
.products-container {
  width: 100%;
  max-width: 1280px;
  margin: 0;
  padding: 0;
}

.products-grid, .productos {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 1rem; 
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.products-grid .nombreCategoria, .productos .nombreCategoria {
  grid-row: 1;
  grid-column: 1 / span 4;
  font-size: 2rem;
}

.products-grid .producto, .productos .producto {
  border-radius: 10px;
  overflow: hidden;
  border: 0.3rem solid #a8a8af9d;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: .4rem;
  padding-bottom: 1.4rem;
  box-shadow: 0px 0px 10px #b1b1b1;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 297.5px;
  height: auto;
  aspect-ratio: initial;
  position: relative;
}

.products-grid .producto:hover, .productos .producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(23, 10, 216, 0.2);
}

.products-grid .producto__img, .productos .producto__img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  background: white;
}

.products-grid .producto__img img, .productos .producto__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.products-grid .producto__titulo, .productos .producto__titulo {
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: -1px;
  padding: 0 10px;
  line-height: 1.3;
}

/* Cuotas y ofertas */
.producto__precio-cuotas {
  color: #170ad8;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.2;
}

/* Product Badges */
.producto__oferta-badge,
.producto__destacado-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.producto__oferta-badge {
  background: #dc3545;
  color: white;
}

.producto__destacado-badge {
  background: #ffc107;
  color: #212529;
}

.products-grid .producto__agregar, .products-grid .producto__sinStock,
.productos .producto__agregar, .productos .producto__sinStock {
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #797979;
  margin-bottom: .6rem;
  border-radius: .4rem;
  letter-spacing: -1px;
  width: 90%;
  padding: .5rem 0;
  cursor: pointer;
  transition: all .2s;
}

.products-grid .producto__agregar:hover, .products-grid .producto__sinStock:hover,
.productos .producto__agregar:hover, .productos .producto__sinStock:hover {
  color: white;
  border-color: #170ad8;
  background: #170ad8;
}

.products-grid .producto__sinStock, .productos .producto__sinStock {
  background: #c4c4c4;
  color: #686868;
  display: none;
  cursor: not-allowed;
}

.products-grid .producto__sinStock:hover, .productos .producto__sinStock:hover {
  background: #c4c4c4;
  color: #686868;
  border-color: #797979;
}

/* Enhanced Buttons */
.producto__ver-mas {
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #28a745;
  background: #28a745;
  color: white;
  margin-bottom: .6rem;
  border-radius: .4rem;
  letter-spacing: -1px;
  width: 90%;
  padding: .5rem 0;
  cursor: pointer;
  transition: all .2s;
  font-weight: 600;
}

.producto__ver-mas:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.producto__agregar {
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #797979;
  margin-bottom: .6rem;
  border-radius: .4rem;
  letter-spacing: -1px;
  width: 90%;
  padding: .5rem 0;
  cursor: pointer;
  transition: all .2s;
  font-weight: 600;
  background: transparent;
  color: #797979;
}

.producto__agregar:hover {
  color: white;
  border-color: #170ad8;
  background: #170ad8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 10, 216, 0.3);
}

/* ==================== RESPONSIVE PRODUCTOS ==================== */
@media (max-width: 1199px) {
  .products-grid, .productos {
    grid-template-columns: repeat(4, 1fr);    
    padding: 0;
  }
  
  .products-grid .nombreCategoria, .productos .nombreCategoria {
    grid-column: 1 / span 3;
  }
  
  .products-grid .producto__titulo, .productos .producto__titulo {
    font-size: 1.5rem;
  }
  
  .producto__precio-cuotas {
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  .products-grid, .productos {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    padding: 0;
  }

  .products-grid .producto, .productos .producto {
   gap: .2rem;
   padding-bottom: 0.9rem;  
  width: 100%;
  max-width: 297.5px; 
  aspect-ratio: initial;  
}
  
  .products-grid .nombreCategoria, .productos .nombreCategoria {
    grid-column: 1 / span 3;
  }
  
  .products-grid .producto__titulo, .productos .producto__titulo {
    font-size: 1.3rem;
  }
  
  .producto__precio-cuotas {
    font-size: 1.5rem;
  }

}

@media (max-width: 767px) {
  .products-grid, .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    padding: 0;
  }
  
  .products-grid .nombreCategoria, .productos .nombreCategoria {
    grid-column: 1 / span 2;
    font-size: 1.8rem;
  }
  
  .products-grid .producto, .productos .producto {
    gap: 0.3rem;
    padding-bottom: 1.2rem;
  }
  
  .products-grid .producto__titulo, .productos .producto__titulo {
    font-size: 1.4rem;
    padding: 0 8px;
  }
  
  .producto__precio-cuotas {
    font-size: 1.4rem;
  }
  
  .products-grid .producto__agregar, .products-grid .producto__sinStock,
  .productos .producto__agregar, .productos .producto__sinStock {
    font-size: 1.3rem;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
  }
  
  .producto__ver-mas {
    font-size: 1.3rem;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
  }   
}

@media (max-width: 575px) {
   .products-grid, .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0;
  }
  
  .products-grid .nombreCategoria, .productos .nombreCategoria {
    grid-column: 1 / span 2;
    font-size: 1.6rem;
  }
  
  .products-grid .producto, .productos .producto {
    gap: 0.2rem;
    padding-bottom: 1rem;
  }
  
  .products-grid .producto__titulo, .productos .producto__titulo {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  .producto__precio-cuotas {
    font-size: 1.5rem;
  }
  
  .products-grid .producto__agregar, .products-grid .producto__sinStock,
  .productos .producto__agregar, .productos .producto__sinStock {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    margin-bottom: 0.6rem;
  }
  
  .producto__ver-mas {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    margin-bottom: 0.6rem;
  }
  
  .hero__slider {
    padding: 1.5rem 1rem;
  }
   
  .producto__oferta-badge,
  .producto__destacado-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ==================== CARRO ==================== */
.carrito {
  position: fixed;
  z-index: 99;
  bottom: 1rem;
  right: 1rem;
  width: 500px;
  max-height: 600px;
  border-radius: 2rem;
  flex-direction: column;
  box-shadow: 0px 0px 10px #b1b1b1;
  visibility: visible;
  opacity: 1;
  transition: opacity .3s linear;
  overflow: hidden;
  background: white;
}

.carrito.cerrado {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .3s, opacity .3s linear;
}

.carrito__titulo {
  border-bottom: #cccccc solid 1px;
  display: grid;
  align-items: center;
  grid-template-columns: 4fr 2fr 1fr;
  padding: .5rem 2rem .5rem 1rem;
  background: #f8f9fa;
}

.carrito__titulo h4 {
  font-size: 2.2rem;
  color: #170ad8;
  margin: 0;
}

.carrito__titulo .cerrar {
  justify-self: flex-end;
  font-size: 2.2rem;
  cursor: pointer;
  color: #666;
}

.carrito__titulo .vaciar {
  justify-self: flex-end;
  font-size: 1.3rem;
  cursor: pointer;
  color: #dc3545;
}

.carrito__productosTitulos {
  display: flex;
  padding: 2rem;
  padding-bottom: .5rem;
  font-size: 1.4rem;
  gap: 2rem;
  background: #f8f9fa;
}

.carrito__productosTitulos--imagen {
  width: 15%;
  display: flex;
  justify-content: flex-start;
}

.carrito__productosTitulos--titulo {
  width: 40%;
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
}

.carrito__productosTitulos--cantidad {
  width: 15%;
  display: flex;
  justify-content: flex-start;
}

.carrito__productosTitulos--precio {
  width: 20%;
  margin-right: 1rem;
  display: flex;
  justify-content: flex-start;
}

.carrito__productosTitulos--borrar {
  width: 10%;
}

.carrito__productos {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 2rem;
  padding-top: 1rem;
  overflow-y: scroll;
  max-height: 60vh;
}

.carrito__productos .nuevoProducto {
  display: grid;
  grid-template-columns: 2fr 7fr 2fr 4fr 1fr;
  gap: 1rem;
  align-items: center;
}

.carrito__productos .nuevoProducto .carritoImagen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: white;
}

.carrito__productos .nuevoProducto .carritoImagen img {
  max-width: 100%;
  max-height: 100%;
}

.carrito__productos .nuevoProducto .carritoTitulo {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.carrito__productos .nuevoProducto .carritoCantidad {
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.carrito__productos .nuevoProducto .carritoCantidad .menos,
.carrito__productos .nuevoProducto .carritoCantidad .mas {
  font-size: 2.2rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.carrito__productos .nuevoProducto .carritoPrecio {
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.carrito__productos .nuevoProducto .carritoBorrar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrito__productos .nuevoProducto .carritoBorrar i {
  color: #ca1c1c;
  font-size: 1.2rem;
  cursor: pointer;
}

.carrito__footer {
  padding: 1rem;
  background: #170ad8;
  cursor: pointer;
  transition: .3s;
  display: flex;
  justify-content: center;
}

.carrito__footer:hover {
  background: black;
}

.carrito__footer h5 {
  color: white;
  font-size: 2rem;
  transform: translateX(10px);
  transition: all .3s;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.carrito__footer h5 #carritoTotal {
  font-weight: 600;
  font-size: 2.4rem;
}

.carrito__footer h5 .carritoFlecha {
  transform: translateX(-20px);
  opacity: 0;
  transition: all .3s;
  margin-left: 1rem;
}

.carrito__footer:hover h5 {
  transform: translateX(0);
}

.carrito__footer:hover h5 .carritoFlecha {
  transform: translateX(0);
  opacity: 1;
}

/* ==================== RESPONSIVE CARRO ==================== */
@media (max-width: 767px) {
  .carrito {
    max-width: 95%;
    width: 95%;
    right: 2.5%;
    left: 2.5%;
    bottom: 2rem;
    max-height: 80vh;
  }
  
  .carrito__titulo h4 {
    font-size: 1.8rem;
  }
  
  .carrito__titulo .cerrar {
    font-size: 1.8rem;
  }
  
  .carrito__titulo .vaciar {
    font-size: 1.1rem;
  }
  
  .carrito__productosTitulos {
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  
  .carrito__productos .nuevoProducto {
    grid-template-columns: 1fr 3fr 1fr 2fr 1fr;
    gap: 0.5rem;
  }
  
  .carrito__productos .nuevoProducto .carritoTitulo {
    font-size: 1.4rem;
  }
  
  .carrito__productos .nuevoProducto .carritoCantidad {
    font-size: 1.4rem;
  }
  
  .carrito__productos .nuevoProducto .carritoCantidad .menos,
  .carrito__productos .nuevoProducto .carritoCantidad .mas {
    font-size: 1.8rem;
  }
  
  .carrito__productos .nuevoProducto .carritoPrecio {
    font-size: 1.6rem;
  }
  
  .carrito__footer h5 {
    font-size: 1.6rem;
  }
  
  .carrito__footer h5 #carritoTotal {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .carrito {
    max-width: 90%;
    width: 90%;
    right: 5%;
    left: 5%;
    bottom: 1rem;
    max-height: 75vh;
  }
  
  .carrito__titulo {
    grid-template-columns: 3fr 1fr 1fr;
    padding: 0.5rem 1rem;
  }
  
  .carrito__titulo h4 {
    font-size: 1.6rem;
  }
  
  .carrito__titulo .cerrar {
    font-size: 1.6rem;
  }
  
  .carrito__titulo .vaciar {
    font-size: 1rem;
  }
  
  .carrito__productosTitulos {
    display: none;
  }
  
  .carrito__productos {
    padding: 1rem;
    gap: 1rem;
  }
  
  .carrito__productos .nuevoProducto {
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem;
  }
  
  .carrito__productos .nuevoProducto .carritoImagen {
    grid-row: 1 / 3;
    grid-column: 1;
  }
  
  .carrito__productos .nuevoProducto .carritoTitulo {
    grid-row: 1;
    grid-column: 2 / 4;
    font-size: 1.3rem;
  }
  
  .carrito__productos .nuevoProducto .carritoCantidad {
    grid-row: 2;
    grid-column: 2;
    font-size: 1.3rem;
    justify-content: flex-start;
  }
  
  .carrito__productos .nuevoProducto .carritoPrecio {
    grid-row: 2;
    grid-column: 3;
    font-size: 1.4rem;
    justify-content: flex-end;
  }
  
  .carrito__productos .nuevoProducto .carritoBorrar {
    display: none;
  }
  
  .carrito__footer h5 {
    font-size: 1.4rem;
  }
  
  .carrito__footer h5 #carritoTotal {
    font-size: 1.8rem;
  }
}

/* ==================== FOOTER ==================== */
footer {
  padding: 3rem 0;
  border-top: 1px solid #e2e2e2;
  background: #fff;
}

footer .tarjetascorreos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

footer .footerlogo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

footer .footerlogo img {
  width: 150px;
}

footer .accesoalpanel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  gap: 1rem;
}

footer .accesoalpanel a {
  cursor: pointer;
  transition: color .3s;
  color: #6d6d6d;
}

footer .accesoalpanel a:hover {
  color: #170ad8 !important;
}

/* Ícono de administración */
.admin-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  color: #6d6d6d;
}

.admin-icon-footer:hover {
  color: #170ad8;
  transform: scale(1.1);
}

.admin-icon-footer i {
  color: inherit;
}

footer .footerCarpi {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #6d6d6d;
}

/* ==================== RESPONSIVE FOOTER ==================== */
@media (max-width: 767px) {
  footer {
    padding: 2rem 0;
  }
  
  footer .tarjetascorreos {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
  }
  
  footer .accesoalpanel {
    font-size: 2rem;
    gap: 0.8rem;
  }
  
  footer .footerCarpi {
    font-size: 1.2rem;
  }
}

@media (max-width: 575px) {
  footer {
    padding: 1.5rem 0;
  }
  
  footer .footerlogo img {
    width: 120px;
  }
  
  footer .accesoalpanel {
    font-size: 1.8rem;
    gap: 0.6rem;
  }
  
  footer .admin-icon-footer {
    font-size: 18px;
    width: 30px;
    height: 40px;
  }
  
  footer .footerCarpi {
    font-size: 1.1rem;
  }
}

/* ==================== ADMIN PANEL ==================== */
.admin-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: right 0.3s ease;
  border-left: 1px solid #ddd;
}

.admin-panel.active {
  right: 0;
}

.admin-panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin-panel-header {
  padding: 15px 20px;
  background: #170ad8;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-panel-header h3 {
  margin: 0;
  font-size: 18px;
}

.admin-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.admin-panel-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Login */
.admin-login-form .form-group {
  margin-bottom: 15px;
}

.admin-login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.admin-login-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.admin-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.admin-btn-primary {
  background: #170ad8;
  color: white;
}

.admin-btn-primary:hover {
  background: #0f0899;
}

.admin-btn-secondary {
  background: #6c757d;
  color: white;
}

.admin-error {
  color: #dc3545;
  margin-top: 10px;
  font-size: 14px;
}

/* Contenido */
.admin-user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.admin-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.admin-tab-btn {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.admin-tab-btn.active {
  border-bottom: 2px solid #170ad8;
  color: #170ad8;
}

.admin-tab-btn:hover {
  color: #170ad8;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Tablas */
.products-table, .orders-table {
  width: 100%;
  border-collapse: collapse;
}

.products-header, .orders-header {
  background: #f8f9fa;
  font-weight: 600;
}

.products-header div, .orders-header div {
  padding: 10px 0;
  text-align: center;
}

.product-row, .order-row {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.product-row div, .order-row div {
  padding: 10px;
}

.product-image img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.no-products {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* ==================== RESPONSIVE ADMIN PANEL ==================== */
@media (max-width: 767px) {
  .admin-panel {
    width: 300px;
  }
  
  .admin-panel-header h3 {
    font-size: 16px;
  }
  
  .admin-close-btn {
    font-size: 18px;
  }
  
  .admin-panel-body {
    padding: 15px;
  }
  
  .admin-tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .admin-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .products-header div, .orders-header div,
  .product-row div, .order-row div {
    padding: 8px;
    font-size: 13px;
  }
  
  .product-image img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .admin-panel {
    width: 280px;
  }
  
  .admin-panel-header {
    padding: 12px 15px;
  }
  
  .admin-panel-header h3 {
    font-size: 14px;
  }
  
  .admin-close-btn {
    font-size: 16px;
  }
  
  .admin-panel-body {
    padding: 12px;
  }
  
  .admin-tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .admin-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .products-header div, .orders-header div,
  .product-row div, .order-row div {
    padding: 6px;
    font-size: 12px;
  }
  
  .product-image img {
    width: 35px;
    height: 35px;
  }
}

/* ==================== MODAL REFERIDOS ==================== */
.referidos-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.referidos-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  position: relative;
  margin: 20px;
}

.referidos-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #666;
}

.referidos-content h3 {
  margin-top: 0;
  color: #170ad8;
  font-size: 24px;
}

.referidos-content p {
  font-size: 18px;
  color: #666;
  margin: 20px 0 0 0;
}

/* ==================== RESPONSIVE MODAL REFERIDOS ==================== */
@media (max-width: 767px) {
  .referidos-content {
    padding: 20px;
    max-width: 300px;
  }
  
  .referidos-content h3 {
    font-size: 20px;
  }
  
  .referidos-content p {
    font-size: 16px;
    margin: 15px 0 0 0;
  }
  
  .referidos-close {
    font-size: 18px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 575px) {
  .referidos-content {
    padding: 15px;
    max-width: 250px;
  }
  
  .referidos-content h3 {
    font-size: 18px;
  }
  
  .referidos-content p {
    font-size: 14px;
    margin: 10px 0 0 0;
  }
  
  .referidos-close {
    font-size: 16px;
    top: 6px;
    right: 6px;
  }
}

/* ==================== ANIMACIONES ==================== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70% { transform: translateX(-2px); }
  20%, 40%, 60% { transform: translateX(2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-2px); }
}

.swal-footer {
  display: flex;
  justify-content: center;
}

/* ==================== ADMIN PANEL - Mejoras de estilo ==================== */
.admin-edit-form {
  font-family: "Kanit", sans-serif;
}

.admin-edit-form .form-group {
  margin-bottom: 16px;
}

.admin-edit-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.admin-edit-form input[type="text"],
.admin-edit-form input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-edit-form textarea#editDescriptionLarge {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.admin-edit-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-edit-form .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .admin-edit-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==================== ESCALADO RESPONSIVO PARA MÓVILES ==================== */
/* Solo aplica en pantallas pequeñas */
@media screen and (max-width: 768px) {
  /* Aseguramos que el body no tenga scroll horizontal */
  body {
    overflow-x: hidden;
  }

  /* Aplicamos el escalado al contenedor principal */
  .content-wrapper {
    width: 100vw;
    transform: scale(0.6);
    transform-origin: top center;
    padding: 10px 0;
    margin: 0 auto;
    /* Compensamos el scale para que ocupe bien el ancho */
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    -ms-transform: scale(0.6);
    -o-transform: scale(0.6);
  }

  /* Ajustamos el header para que no interfiera */
  header .barracentral {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
  }

  /* Ajustamos el carrito flotante para que no se salga */
  .carrito {
    transform: scale(1.67) translateY(-50px); /* deshace el scale y baja un poco */
    transform-origin: top right;
    right: 10px !important;
    left: auto !important;
    width: 300px !important;
  }

  /* Ajustamos el modal para que entre */
  .product-modal-content {
    transform: scale(1.67);
    transform-origin: top center;
  }
}

@media screen and (max-width: 576px) {
  .content-wrapper {
    transform: scale(0.5);
    transform-origin: top center;
    padding: 5px 0;
  }

  .carrito {
    transform: scale(2) translateY(-60px);
    width: 280px !important;
  }
}
/* En tu style.css, agregar al final: */
.container-selective {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 576px) {
  .container-selective {
    max-width: 540px;
  }
}

@media (max-width: 768px) {
  .container-selective {
    max-width: 720px;
  }
}

@media (max-width: 992px) {
  .container-selective {
    max-width: 960px;
  }
}

@media (max-width: 1200px) {
  .container-selective {
    max-width: 1140px;
  }
}

@media (max-width: 1400px) {
  .container-selective {
    max-width: 1280px;
  }
}

/* Para mantener compatibilidad con Bootstrap en otros elementos */
.d-flex.justify-content-end {
    display: flex !important;
    justify-content: flex-end !important;
}