/* ===================================
   ESTILOS RESPONSIVOS
   =================================== */

/* Breakpoints */
:root {
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
}

/* Reset y estilos base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Espaciados responsivos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Tamaños de fuente responsivos */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

/* Ajustes generales para el body */
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

/* Secciones */
.seccion {
  padding: 5rem 0;
}

.seccion-titulo {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.seccion-titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primario);
}

/* Grid de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Tarjetas de productos */
.producto-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.producto-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.producto-nombre {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-texto);
}

.producto-precio {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primario);
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Imágenes y medios responsivos */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Asegurar que las imágenes en los productos mantengan su relación de aspecto */
.producto-imagen {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen {
  transform: scale(1.03);
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primario);
}

/* Botones */
button, .btn {
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button:focus, .btn:focus {
  outline: 2px solid var(--color-primario);
  outline-offset: 2px;
}

/* Formularios */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-borde);
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-primario);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

/* ====================
   ESTILOS DEL MENÚ MÓVIL
   ==================== */

/* Mostrar botón de menú en móviles */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  .main-nav.active {
    display: block;
  }
  
  /* Ajustes para el banner en diferentes tamaños de pantalla */
  .banner {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    background-color: #f5f5f5;
  }
  
  .banner-contenido {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
  }
  
  .banner-titulo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .banner-descripcion {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .banner-boton {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-primario);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }
  
  .banner-boton:hover {
    background-color: var(--color-secundario);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Ajustes para el banner en móviles */
  .banner {
    height: 60vh;
    min-height: 400px;
  }
  
  .banner-contenido {
    padding: 1.5rem;
  }
  
  .banner-titulo {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .banner-descripcion {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Ajustes para el grid de productos en diferentes tamaños */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Ajustes para el pie de página */
  .footer-contenido {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-seccion {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .footer-redes {
    justify-content: center;
  }
}

/* Botón del menú móvil */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle .fa-bars {
  font-size: 1.5rem;
  color: var(--color-primario);
  transition: transform 0.3s ease;
}

/* Menú de navegación móvil */
.main-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--color-blanco);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  padding: 4rem 1.5rem 2rem;
  overflow-y: auto;
}

.main-nav.active {
  right: 0;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin-bottom: 1rem;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-texto);
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--color-fondo-secundario);
  color: var(--color-primario);
}

/* Overlay para el menú móvil */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Animación del botón de menú cuando está activo */
.menu-toggle.active .fa-bars {
  transform: rotate(90deg);
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */

/* ==================== */
/* ESTILOS PARA DETALLES DE PRODUCTO */
/* ==================== */

.producto-detalle {
  padding: 2rem 0;
}

.producto-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.producto-galeria {
  position: relative;
}

.producto-imagen-principal {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.producto-miniaturas {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.miniatura {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.miniatura:hover,
.miniatura.activa {
  border-color: var(--color-primario);
}

.producto-info {
  padding: 1rem;
}

.producto-titulo {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-texto);
}

.producto-precio {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primario);
  margin-bottom: 1.5rem;
}

.producto-descripcion {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--color-texto-claro);
}

/* Sección de tallas */
.tallas-seccion {
  margin-bottom: 2rem;
}

.tallas-titulo {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-texto);
}

.tallas-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.talla-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-borde);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.talla-option:hover,
.talla-option.activa {
  background-color: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}

/* Contador de cantidad */
.producto-cantidad {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.cantidad-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-fondo-secundario);
  border: 1px solid var(--color-borde);
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cantidad-btn:hover {
  background-color: var(--color-borde);
}

.cantidad-input {
  width: 60px;
  height: 40px;
  text-align: center;
  margin: 0 0.5rem;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cantidad-input::-webkit-outer-spin-button,
.cantidad-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Sección de envío y devoluciones */
.info-envio {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--color-texto-claro);
  font-size: 0.875rem;
}

.info-envio i {
  margin-right: 0.5rem;
  color: var(--color-primario);
}

/* Pestañas de información */
.producto-tabs {
  margin-top: 3rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--color-borde);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--color-texto-claro);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.activo {
  color: var(--color-primario);
  border-bottom-color: var(--color-primario);
}

.tab-contenido {
  display: none;
  padding: 1.5rem 0;
  color: var(--color-texto-claro);
  line-height: 1.6;
}

.tab-contenido.activo {
  display: block;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */

/* Pantallas grandes (desktops) */
/* Pantallas muy grandes (desktops grandes) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* Desktops estándar */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablets en modo apaisado y pantallas pequeñas */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .producto-imagen-principal {
    height: 450px;
  }
  
  .producto-titulo {
    font-size: 1.75rem;
  }
  
  .producto-precio {
    font-size: 1.5rem;
  }
}

/* Tablets en modo vertical */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .producto-contenedor {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .producto-imagen-principal {
    height: 500px;
  }
  
  .producto-info {
    padding: 0;
  }
  
  .tabs-header {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }
  
  .producto-titulo {
    font-size: 1.5rem;
  }
  
  .producto-precio {
    font-size: 1.4rem;
  }
  
  .producto-imagen-principal {
    height: 400px;
  }
  
  .miniatura {
    width: 70px;
    height: 70px;
  }
  
  .tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Móviles medianos */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .producto-imagen-principal {
    height: 350px;
  }
  
  .producto-titulo {
    font-size: 1.4rem;
  }
  
  .producto-precio {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  
  .producto-descripcion {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .talla-option {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  
  .cantidad-btn, .cantidad-input {
    height: 36px;
  }
  
  .miniatura {
    width: 60px;
    height: 60px;
  }
}

/* Móviles pequeños */
@media (max-width: 375px) {
  .producto-imagen-principal {
    height: 300px;
  }
  
  .producto-titulo {
    font-size: 1.3rem;
  }
  
  .producto-precio {
    font-size: 1.2rem;
  }
  
  .talla-option {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .cantidad-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .cantidad-input {
    width: 50px;
    height: 36px;
  }
  
  
  .tab-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .tab-contenido {
    font-size: 0.9rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
  .producto-imagen-principal {
    height: 250px;
  }
  
  .miniatura {
    width: 50px;
    height: 50px;
  }
  
  .talla-option {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  
  .cantidad-btn {
    width: 32px;
    height: 32px;
  }
  
  .cantidad-input {
    width: 40px;
    height: 32px;
  }
}

/* Ajustes de impresión */
@media print {
  .menu-toggle,
  .main-nav,
  .producto-miniaturas {
    display: none !important;
  }
  
  .producto-contenedor {
    display: block;
  }
  
  .producto-imagen-principal {
    max-height: 300px;
    margin: 0 auto 1rem;
  }
  
  .producto-info {
    padding: 0;
  }
  
  .producto-titulo {
    font-size: 1.5rem;
  }
  
  .producto-precio {
    font-size: 1.25rem;
  }
}

/* Ajuste para navegadores WebKit (Safari, Chrome) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .cantidad-input {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
  }
}

/* Ajuste para Firefox */
@-moz-document url-prefix() {
  .cantidad-input {
    -moz-appearance: textfield;
    appearance: textfield;
  }
}

/* Ajuste para Microsoft Edge */
@supports (-ms-ime-align: auto) {
  .cantidad-input {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
  }
}

/* Ajuste para la cuadrícula de productos en tablets */
/* Tablets en modo apaisado y móviles grandes */
@media (min-width: 576px) and (max-width: 991px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .banner-titulo {
    font-size: 2.5rem;
  }
  
  .banner-descripcion {
    font-size: 1.1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .producto-card {
    padding: 1rem;
  }
  
  .producto-nombre {
    font-size: 1rem;
  }
  
  .producto-precio {
    font-size: 1.1rem;
  }
  
  /* Navigation */
  .main-nav {
    width: 300px;
  }
  
  /* Product cards */
  .product-card {
    margin-bottom: 1.5rem;
  }
  /* Mostrar el botón de menú en móviles */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-right: 10px;
  }
  
  /* Estilos del menú desplegable */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    padding: 80px 20px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Estado activo del menú */
  .main-nav.active {
    right: 0;
  }
  
  /* Estilos para la lista de navegación */
  .nav-links {
    flex-direction: column;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    width: 100%;
  }
  
  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .main-nav.active .nav-links li {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Retraso para la animación de los elementos del menú */
  .main-nav.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .main-nav.active .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .main-nav.active .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .main-nav.active .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  
  /* Estilos de los enlaces del menú */
  .nav-link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .nav-link:active,
  .nav-link:hover {
    color: #007bff;
  }
  
  .nav-link.active {
    color: #007bff;
    font-weight: 600;
  }
  
  /* Overlay para cerrar el menú al hacer clic fuera */
  .menu-overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
  }
  
  /* Ajustes para el body cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Ajustes para el logo en móviles */
  .logo {
    z-index: 1002;
  }
}

/* Ajustes generales para móviles */
/* Dispositivos móviles pequeños */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }
  
  .banner {
    height: 50vh;
    min-height: 350px;
  }
  
  .banner-titulo {
    font-size: 1.75rem;
  }
  
  .banner-descripcion {
    font-size: 0.95rem;
  }
  
  .banner-boton {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .producto-card {
    margin-bottom: 1rem;
  }
  
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-derechos {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-enlaces {
    justify-content: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Ajustes generales */
  .container {
    padding: 0 15px;
  }
  
  /* Ajustes del encabezado */
  .navbar {
    padding: 10px 15px;
    height: 70px;
  }
  
  .logo img {
    max-height: 40px;
  }
  
  /* Ajustes del contenido principal */
  .main-content {
    padding: 20px 0;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  /* Filtros */
  .filters-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  /* Productos */
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card {
    margin-bottom: 15px;
  }
  
  /* Banner principal */
  .banner-hero {
    height: 70vh;
    min-height: 400px;
  }
  
  .banner-contenido {
    padding: 0 20px;
  }
  
  .titulo-banner {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .subtitulo-banner {
    font-size: 1.2rem;
  }
  
  /* Galería de inspiración */
  .galeria-inspiracion {
    padding: 2rem 1rem;
  }
  
  .galeria-item, 
  .galeria-item.inverso {
    flex-direction: column;
    margin-bottom: 2rem;
  }
  
  .galeria-texto, 
  .galeria-imagen {
    width: 100%;
    padding: 1.5rem;
  }
  
  .galeria-imagen {
    height: 300px;
  }
  
  /* Productos destacados */
  .productos-destacados {
    padding: 2rem 1rem;
  }
  
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Frase inspiradora */
  .frase-inspiradora {
    padding: 3rem 1rem;
  }
  
  .coco-card {
    padding: 2rem 1.5rem;
  }
  
  .quote-text {
    font-size: 1.2rem;
  }
  
  /* Newsletter */
  .newsletter {
    padding: 2rem 1rem;
  }
  
  .newsletter-contenido {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-input {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .newsletter-btn {
    width: 100%;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Móviles medianos */
@media (max-width: 575px) {
  .container {
    max-width: 540px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  
  .btn {
    width: 100%;
    margin: 5px 0;
  }
  /* Product grid adjustments */
  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 0 10px;
  }
  
  .product-card {
    width: 100%;
    margin: 0 auto;
  }
  
  /* Main content adjustments */
  .main-content {
    padding: 20px 0;
  }
  
  /* Filter section */
  .filters-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  /* Buttons */
  .btn {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
  
  .frase-inspiradora {
    padding: 2rem 1rem;
  }
  
  .quote-text {
    font-size: 1.1rem;
  }
  
  .footer-content {
    padding: 2rem 1rem;
  }
}

/* Ajustes para la página de productos */
@media (max-width: 767px) {
  .filtros {
    position: static;
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .productos-container {
    flex-direction: column;
  }
  
  .productos-grid {
    width: 100%;
    padding: 0 1rem;
  }
  
  .filtro-toggle {
    display: block;
    margin-bottom: 1rem;
  }
  
  .filtros {
    display: none;
  }
  
  .filtros.activo {
    display: block;
  }
}

/* Ajustes para la página de detalle de producto */
@media (max-width: 767px) {
  .producto-detalle {
    flex-direction: column;
  }
  
  .producto-galeria, 
  .producto-info {
    width: 100%;
    padding: 1rem;
  }
  
  .producto-precio {
    font-size: 1.5rem;
  }
  
  .producto-acciones {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-comprar-ahora {
    width: 100%;
    text-align: center;
  }
  
  .producto-detalles-tabs {
    flex-direction: column;
  }
  
  .producto-detalles-tab {
    padding: 0.75rem 1rem;
  }
}

/* Mejoras de accesibilidad en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  button, 
  a, 
  input[type="button"], 
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  .producto-card {
    padding: 1rem;
  }
  
  .producto-imagen {
    margin-bottom: 1rem;
  }
}

/* Ajustes para modo oscuro en dispositivos móviles */
/* Modo oscuro para móviles */
@media (prefers-color-scheme: dark) and (max-width: 767px) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }
  
  .banner-titulo,
  .banner-descripcion,
  .seccion-titulo {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .producto-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
  }
  
  .producto-nombre,
  .producto-precio {
    color: #e0e0e0;
  }
  
  .producto-card,
  .coco-card,
  .newsletter {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  .galeria-texto {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
}
