/* ==========================================================================
   VISAGE CATÁLOGO - ESTILOS PRINCIPALES
   Tema: Rosa Nocturna (Fondos oscuros, acentos lila/rosa, micro-animaciones)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. VARIABLES GLOBALES (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de colores - Fondos */
  --bg-primary: #141118;
  --bg-card: #1E1A24;
  --bg-card-hover: #252031;
  
  /* Paleta de colores - Acentos */
  --accent-lila: #B892E0;
  --accent-pink: #E8739A;
  --accent-gold: #D4AF72;
  --success: #25D366; /* Verde WhatsApp */
  
  /* Paleta de colores - Textos de Alta Legibilidad */
  --text-primary: #FFFFFF;
  --text-secondary: #D8D2E2;
  --text-muted: #A89FB5;
  
  /* Bordes y sombras */
  --border-card: #2A2530;
  --border-glow: rgba(184, 146, 224, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(184, 146, 224, 0.15);
  
  /* Radios de borde */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Tipografía */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-mono: 'Space Mono', monospace;
  
  /* Transiciones y animaciones */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   1. RESET Y BASE
   -------------------------------------------------------------------------- */
/* Reset básico para todos los elementos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Scroll suave y escala visual confortable en escritorio */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (min-width: 1024px) {
  html {
    font-size: 17.6px; /* Proporción visual exacta del 110.0% en escritorio (17.6px / 16px = 1.10) */
  }
}

/* Configuración base del cuerpo del documento */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Imágenes responsivas por defecto */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Listas sin viñetas por defecto */
ul, ol {
  list-style: none;
}

/* Enlaces sin subrayado y con transición suave */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

/* Botones sin estilos por defecto */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Estilo para el texto seleccionado */
::selection {
  background-color: var(--accent-lila);
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. TIPOGRAFÍA
   -------------------------------------------------------------------------- */
/* Título Principal (Hero) */
h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
}

/* Títulos de sección */
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Subtítulos o títulos de tarjetas */
h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Tamaños de fuente para pantallas más grandes (Desktop) */
@media (min-width: 768px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 2.5rem; }
}

/* Texto decorativo (estilo firma/cursiva) */
.script-text {
  font-family: var(--font-accent);
  font-weight: 400;
}

/* Texto monoespaciado (SKUs, códigos, contadores) */
.mono-text {
  font-family: var(--font-mono);
}

/* Efecto de texto con gradiente (rosa a lila) */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-lila), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. UTILIDADES GENERALES
   -------------------------------------------------------------------------- */
/* Contenedor principal para limitar el ancho máximo */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .container {
    max-width: 1360px;
    padding: 0 2rem;
  }
}

/* Utilidades de texto */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

/* Título de sección estandarizado */
.section-title {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Subtítulo de sección estandarizado */
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Divisor decorativo debajo de títulos */
.section-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 0 auto 3rem auto;
  border-radius: var(--radius-full);
}

/* Ocultar elementos visualmente pero mantenerlos para lectores de pantalla */
.visually-hidden, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* --------------------------------------------------------------------------
   4. ENCABEZADO (HEADER)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(20, 17, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  height: 64px;
  transition: height var(--transition), background-color var(--transition);
}

@media (min-width: 1024px) {
  .header {
    height: 76px; /* Altura más holgada en escritorio */
  }
}

.header-inner {
  max-width: 1320px; /* Ancho amplio equivalente al 110% de escala */
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .header-inner {
    gap: 32px; /* Separación generosa entre Marca, Menú, Buscador y Carrito */
    padding: 0 2rem;
  }
}

/* Logotipo / Marca en el header */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-logo {
    margin-right: 16px; /* Separación del menú principal */
  }
}

.header-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-lila);
  box-shadow: var(--shadow-glow);
}

.header-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.header-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-tagline {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--accent-lila);
}

/* Barra de búsqueda estilizada en el header */
.search-bar {
  display: none;
  background-color: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.search-bar:focus-within {
  border-color: var(--accent-lila);
  box-shadow: var(--shadow-glow);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar svg {
  color: var(--text-secondary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .search-bar {
    display: flex;
    min-width: 220px;
    max-width: 260px;
  }
}

/* Botón del carrito */
.cart-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: background-color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.cart-toggle:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-lila);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-pink);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(232, 115, 154, 0.5);
}

/* Botón menú hamburguesa (solo móvil) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --------------------------------------------------------------------------
   5. MENÚ MÓVIL (OFF-CANVAS)
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background-color: var(--bg-primary);
  z-index: 1001;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-lila);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.mobile-menu-close:hover {
  background-color: var(--bg-card-hover);
  color: var(--accent-pink);
}

.mobile-menu-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav li {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-nav a {
  display: block;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), padding-left var(--transition);
}

.mobile-menu-nav a:hover, .mobile-menu-nav a:active {
  background-color: rgba(184, 146, 224, 0.12);
  color: var(--accent-lila);
  padding-left: 32px;
}

.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-card);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}

.mobile-footer-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.mobile-footer-whatsapp {
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.mobile-footer-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.25);
}

/* Overlay oscuro cuando el menú está abierto */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Navegación Desktop (Oculta en móvil) */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    margin: 0 auto;
  }
  
  .desktop-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    white-space: nowrap; /* Garantiza que "Cómo comprar" se mantenga en una sola línea */
    flex-shrink: 0; /* Impide la compresión de texto */
    display: inline-block;
    line-height: 1.2;
    transition: color var(--transition);
  }
  
  .desktop-nav a:hover {
    color: var(--text-primary);
  }
  
  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-lila), var(--accent-pink));
    transition: width var(--transition);
    border-radius: 2px;
  }
  
  .desktop-nav a:hover::after {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    gap: 22px; /* Separación holgada y fluida entre ítems en escritorio */
  }
  
  .desktop-nav a {
    font-size: 0.94rem;
  }
}

/* --------------------------------------------------------------------------
   6. SECCIÓN HERO (PORTADA)
   -------------------------------------------------------------------------- */
#hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 90px 1.5rem 40px;
  position: relative;
  background: radial-gradient(circle at center, rgba(184, 146, 224, 0.08) 0%, var(--bg-primary) 70%);
  overflow: hidden;
}

@media (min-width: 768px) {
  #hero {
    min-height: auto;
    padding: 110px 1.5rem 50px;
  }
}

/* Logotipo central del Hero con resplandor (glow) */
.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  border: 2px solid var(--accent-lila);
  box-shadow: 0 0 25px rgba(184, 146, 224, 0.35);
  overflow: hidden;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: var(--accent-lila);
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-tagline { font-size: 2.2rem; }
}

.hero-image-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  max-width: 75vw;
  max-height: 75vw;
  margin: 0 auto 32px auto;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-lila), var(--accent-pink));
  box-shadow: 0 0 30px rgba(232, 115, 154, 0.25);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.7s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    width: 300px;
    height: 300px;
  }
}

/* Botón Call to Action (Ver Catálogo) */
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lila));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(232, 115, 154, 0.3);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 28px rgba(232, 115, 154, 0.4);
}

.hero-cta:active {
  transform: scale(0.98);
}

/* Partículas decorativas animadas en el fondo */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-lila) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(4px);
  z-index: -1;
  animation: float 8s ease-in-out infinite alternate;
}

.p1 { top: 15%; left: 10%; width: 150px; height: 150px; animation-delay: 0s; }
.p2 { top: 60%; right: 5%; width: 200px; height: 200px; animation-delay: -2s; background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%); }
.p3 { bottom: 10%; left: 20%; width: 100px; height: 100px; animation-delay: -4s; }

/* Indicador de scroll animado */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.scroll-indicator svg {
  margin-top: 8px;
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   7. COLECCIONES DESTACADAS
   -------------------------------------------------------------------------- */
#collections {
  padding: 4rem 0;
  position: relative;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  gap: 1rem;
}

@media (min-width: 640px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); } /* 3 en tablet pequeña */
}

@media (min-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(5, 1fr); } /* 5 en desktop */
}

/* Tarjeta individual de colección */
.collection-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lila);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-card-hover);
}

/* Estado activo (colección seleccionada) */
.collection-card.active {
  border-color: var(--accent-lila);
  background-color: rgba(184, 146, 224, 0.05);
  box-shadow: var(--shadow-glow);
}

.collection-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.collection-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.collection-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. CATÁLOGO PRINCIPAL (FILTROS Y GRILLA)
   -------------------------------------------------------------------------- */
#catalog {
  padding: 3rem 0;
  min-height: 50vh; /* Asegurar espacio si hay pocos productos */
}

/* Encabezado del catálogo (Controles) */
.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .catalog-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Filtros por material/tipo */
.catalog-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto; /* Scroll horizontal en móvil */
  gap: 8px;
  padding-bottom: 8px; /* Espacio para la barra de scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-lila) var(--bg-primary);
  -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de scroll en webkit (Chrome/Safari) para un look más limpio */
.catalog-filters::-webkit-scrollbar {
  height: 4px;
}
.catalog-filters::-webkit-scrollbar-track {
  background: transparent;
}
.catalog-filters::-webkit-scrollbar-thumb {
  background-color: var(--border-card);
  border-radius: 4px;
}

.filter-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap; /* Evita que el texto se parta en dos líneas */
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--accent-lila);
  background-color: var(--bg-card-hover);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lila));
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(232, 115, 154, 0.35);
  transform: translateY(-1px);
}

/* Controles de ordenamiento y resultados */
.catalog-controls-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.results-count {
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* Selector estilizado */
.sort-select-wrapper {
  position: relative;
}

.sort-select {
  appearance: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 32px 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.sort-select:focus {
  border-color: var(--accent-lila);
}

.sort-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   9. GRILLA DE PRODUCTOS (TARJETAS)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 columna en móviles muy pequeños */
  gap: 1.25rem;
}

@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Diseño de la tarjeta de producto */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-lila);
  box-shadow: var(--shadow-glow);
}

/* Contenedor de la imagen del producto */
.product-card-image {
  aspect-ratio: 1 / 1; /* Imagen cuadrada perfecta */
  overflow: hidden;
  position: relative;
  background-color: var(--bg-card);
  background-image: radial-gradient(circle at center, #252031 0%, #141118 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el cuadrado */
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05); /* Acercamiento suave sin brincos */
}

@media (prefers-reduced-motion: reduce) {
  .product-card-image img,
  .product-card:hover .product-card-image img {
    transform: none !important;
    transition: none !important;
  }
}

/* Etiqueta flotante (Novedad, Agotado, Oferta) */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(184, 146, 224, 0.9);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Variantes de la etiqueta */
.product-badge.sale { background-color: rgba(232, 115, 154, 0.9); }
.product-badge.sold-out { background-color: rgba(74, 67, 84, 0.9); }

/* Placeholder cuando no hay imagen disponible */
.no-image {
  background-color: var(--bg-primary);
  border: 2px dashed var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* Botón y contenedor Cargar Más */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  width: 100%;
}

.btn-load-more {
  background: linear-gradient(135deg, rgba(184, 146, 224, 0.15), rgba(232, 115, 154, 0.15));
  border: 1px solid var(--accent-lila);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, var(--accent-lila), var(--accent-pink));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.no-image svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Información del producto (Textos) */
.product-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Asegura que el contenido ocupe el espacio restante */
}

.product-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
  /* Limitar a 2 líneas con puntos suspensivos */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fila de precio */
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-pink);
}

/* Botones de acción en la tarjeta (Detalle + 1-Click Agregar al Carrito) */
.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-card-detail {
  flex: 1;
  background: transparent;
  border: 1px solid var(--accent-lila);
  color: var(--accent-lila);
  border-radius: var(--radius-full);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-card-detail:hover {
  background-color: var(--accent-lila);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 146, 224, 0.4);
}

.btn-card-add {
  flex: 1.2;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lila));
  border: none;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(232, 115, 154, 0.3);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.btn-card-add:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(232, 115, 154, 0.45);
}

.btn-card-add:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   10. MODAL DE PRODUCTO (VISTA DETALLADA)
   -------------------------------------------------------------------------- */
/* Fondo oscuro que cubre toda la pantalla */
/* Fondo oscuro que cubre toda la pantalla */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Evita interacciones cuando está oculto */
  transition: opacity 160ms ease-in, visibility 160ms ease-in;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 200ms ease-out, visibility 200ms ease-out;
}

/* Contenedor principal del Modal */
.modal-content {
  position: fixed;
  z-index: 2001;
  background-color: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  
  /* Estilo por defecto (Móvil): Bottom Sheet */
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh;
  max-height: 90dvh;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  transition: opacity 160ms ease-in, transform 160ms ease-in, visibility 160ms ease-in;
  will-change: auto;
}

.modal-overlay.active .modal-content,
.modal-content.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 240ms ease-out, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 240ms ease-out;
  will-change: opacity, transform;
}

/* Estructura interna del modal */
.modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Adaptación del Modal para Desktop: Centrado sin translateY */
@media (min-width: 768px) {
  .modal-content {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 94%;
    max-width: 900px;
    height: 85vh;
    max-height: 580px;
    border-radius: var(--radius-lg);
    transition: opacity 160ms ease-in, transform 160ms ease-in, visibility 160ms ease-in;
    will-change: auto;
  }

  .modal-overlay.active .modal-content,
  .modal-content.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 240ms ease-out, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 240ms ease-out;
    will-change: opacity, transform;
  }

  .modal-inner {
    flex-direction: row;
    overflow-y: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-content,
  .modal-overlay.active .modal-content,
  .modal-content.active {
    transform: none !important;
    transition: opacity 200ms ease !important;
  }
}

/* Botón cerrar modal ('X') */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
  background-color: var(--bg-primary);
  color: var(--accent-pink);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

/* Área de imagen dentro del modal */
.modal-image-container {
  position: relative;
  width: 100%;
  background-color: #141118;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
  .modal-image-container {
    width: 45%;
    height: 100%;
  }
  .modal-image {
    max-height: none;
    height: 100%;
  }
}

/* Área de contenido del modal (Textos, opciones, botones) */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-badge {
  display: inline-block;
  background-color: rgba(184, 146, 224, 0.2);
  color: var(--accent-lila);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal-sku {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

.modal-price-container {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 24px;
}

.modal-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-pink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-packaging {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-packaging svg { width: 16px; height: 16px; color: var(--accent-gold); }

/* Descripción del producto */
.modal-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Variantes (Tallas/Colores) */
.modal-variants-section {
  margin-bottom: 24px;
}

.modal-variants-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.variant-btn:hover { border-color: var(--accent-lila); }
.variant-btn.active {
  background-color: rgba(184, 146, 224, 0.15);
  border-color: var(--accent-lila);
  color: var(--accent-lila);
}

/* Acciones (Cantidad y Botón Agregar) */
.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

/* Selector de cantidad del modal */
.qty-selector {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qty-selector:focus-within {
  border-color: var(--accent-lila);
  box-shadow: 0 0 0 2px rgba(184, 146, 224, 0.25);
}

.qty-btn {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.qty-btn:hover:not(:disabled) {
  background-color: rgba(184, 146, 224, 0.15);
  color: var(--accent-lila);
}

.qty-btn:focus-visible {
  outline: 2px solid var(--accent-lila);
  outline-offset: -2px;
}

.qty-btn:disabled,
.qty-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background-color: transparent;
  color: var(--text-muted);
}

#modal-qty,
.qty-input {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
  width: 44px;
  height: 100%;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  box-shadow: none;
  pointer-events: none;
}

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

/* Botón Añadir al Carrito (Primario) */
.modal-add-btn {
  flex-grow: 1; /* Ocupa el resto del espacio */
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lila));
  color: #fff;
  border-radius: var(--radius-full);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(232, 115, 154, 0.3);
  transition: filter 0.2s, transform 0.1s;
}

.modal-add-btn:hover {
  filter: brightness(1.1);
}

.modal-add-btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   11. PANEL LATERAL DEL CARRITO (SIDEBAR)
   -------------------------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 400px; /* En móvil ocupa 100%, en desktop máximo 400px */
  background-color: var(--bg-primary);
  z-index: 2000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-card);
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}

.cart-panel.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Cabecera del carrito */
.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  background-color: var(--bg-card);
}

.cart-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lista de artículos en el carrito */
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mensaje cuando el carrito está vacío */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  padding: 3rem;
  gap: 16px;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Tarjeta individual de artículo en el carrito (Proporción equilibrada) */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.cart-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.cart-item-image, .cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #000;
  border: 1px solid var(--border-card);
}

.cart-item-image img, .cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details, .cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-details h4, .cart-item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.25;
}

.cart-item-details .mono-text, .cart-item-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-price {
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cart-item-controls button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cart-item-controls button:hover {
  border-color: var(--accent-lila);
  color: var(--accent-lila);
  background-color: rgba(184, 146, 224, 0.12);
}

.cart-item-controls span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 16px;
  text-align: center;
}

.remove-btn, .cart-item-remove {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.remove-btn:hover, .cart-item-remove:hover {
  color: var(--accent-pink);
  background-color: rgba(232, 115, 154, 0.12);
}

/* Pie del carrito (Totales y Botón de compra) */
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-card);
  background-color: var(--bg-card);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-card);
}

.cart-total span:last-child {
  color: var(--accent-pink);
}

/* Botón principal de WhatsApp para finalizar compra */
.cart-whatsapp-btn {
  width: 100%;
  background-color: var(--success);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-whatsapp-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.cart-whatsapp-btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   12. SECCIONES INFORMATIVAS (CÓMO COMPRAR, CUIDADOS, FAQ, CONTACTO)
   -------------------------------------------------------------------------- */
/* Cómo Comprar (Pasos) */
#how-to-buy {
  background-color: var(--bg-card);
  padding: 4rem 0;
  scroll-margin-top: 84px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step-card {
  text-align: center;
  position: relative;
}

/* Línea conectora entre pasos (solo desktop) */
@media (min-width: 1024px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px; /* Mitad del círculo */
    right: -25%;
    width: 50%;
    height: 2px;
    background: dashed 2px var(--border-card);
    z-index: 1;
  }
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-lila), var(--accent-pink));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Cuidados de las Joyas */
#care {
  padding: 4rem 0;
}

.care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }

.care-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 16px;
  transition: transform 0.3s;
}

.care-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lila);
}

.care-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(184, 146, 224, 0.1);
  color: var(--accent-lila);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.care-content h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.care-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Preguntas Frecuentes (FAQ) - Acordeón */
#faq {
  padding: 4rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-question {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s;
}

.faq-question:hover { color: var(--accent-lila); }

.faq-icon, .faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.4s ease, color 0.3s ease;
  flex-shrink: 0;
}

/* Estado abierto */
.faq-item.active .faq-icon,
.faq-item.open .faq-icon,
.faq-item.active .faq-chevron,
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-pink);
}

.faq-item.active .faq-question,
.faq-item.open .faq-question {
  color: var(--accent-pink);
}

.faq-answer {
  max-height: 0; /* Oculto por defecto */
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
  max-height: 400px; /* Espacio holgado para la respuesta */
  opacity: 1;
}

.faq-answer-inner, .faq-answer p {
  padding-bottom: 16px;
  padding-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contacto Directo */
#contact {
  background-color: var(--bg-card);
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-card-interactive {
  cursor: pointer;
}

.contact-card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lila);
  box-shadow: var(--shadow-glow);
}

.contact-card-info {
  cursor: default;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(184, 146, 224, 0.1);
  color: var(--accent-lila);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-card-interactive:hover .contact-icon {
  transform: scale(1.1);
  background: rgba(184, 146, 224, 0.2);
}

.contact-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lila));
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(232, 115, 154, 0.3);
  transition: transform var(--transition), filter var(--transition);
}

.contact-card-interactive:hover .contact-action {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.contact-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.footer {
  padding: 3.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border-card);
  background-color: var(--bg-primary);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-lila);
  box-shadow: var(--shadow-glow);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 1.1rem;
  color: var(--accent-lila);
  margin-top: 2px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   14. BOTÓN FLOTANTE DE WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900; /* Debajo de modales pero encima de todo lo demás */
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, background-color 0.3s;
}

/* Animación de pulso continuo para llamar la atención */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b858;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   15. NOTIFICACIONES TOAST (Ej: "Añadido al carrito")
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* No bloquea clics debajo */
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-lila);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  color: var(--accent-lila);
}

/* --------------------------------------------------------------------------
   16. KEYFRAMES Y ANIMACIONES
   -------------------------------------------------------------------------- */
/* Animación de aparición hacia arriba */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clase utilitaria para activar fadeInUp con JS o IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación de pulso (usada en WhatsApp float) */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Animación flotante suave (usada en Hero) */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Animación de rebote (usada en flecha de scroll) */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Efecto de carga esqueleto (Skeleton Loading) */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: var(--bg-card);
  background-image: linear-gradient(
    90deg, 
    var(--bg-card) 0px, 
    var(--border-card) 40px, 
    var(--bg-card) 80px
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* --------------------------------------------------------------------------
   17. ESTILOS PARA IMPRESIÓN (PRINT)
   -------------------------------------------------------------------------- */
/* 
   Para cuando el usuario decide imprimir el catálogo (Ej. para mayoristas).
   Se eliminan fondos oscuros para ahorrar tinta y se ocultan elementos interactivos.
*/
@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  /* Ocultar elementos UI innecesarios en papel */
  .header, .hero, .whatsapp-float, .cart-panel, .modal-overlay, 
  .catalog-filters, .product-detail-btn, .footer {
    display: none !important;
  }

  /* Adaptar grilla para que entren más productos por página */
  .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px;
  }

  /* Estilos de tarjeta simplificados para papel */
  .product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: none !important;
    page-break-inside: avoid; /* Evita que la tarjeta se parta en dos páginas */
  }

  .product-name, .product-code, .product-price {
    color: #000;
  }

  /* Resetear variables críticas de color */
  :root {
    --text-primary: #000;
    --text-secondary: #333;
    --bg-card: #fff;
    --border-card: #eee;
  }
}

/* --------------------------------------------------------------------------
   18. ACCESIBILIDAD, FOCO VISIBLE Y PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-lila);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-lila);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-particles,
  .hero-particle {
    display: none !important;
    animation: none !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .whatsapp-float {
    animation: none !important;
  }
}
