@charset "UTF-8";
/* --- FUENTES --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Open+Sans:wght@300;400;700&family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&display=swap"); /* Fuente Gamer */
/* --- VARIABLES CSS (EL NÚCLEO TEMÁTICO) --- */
:root {
  /* Tema Base / Default (colores pastel, moderno) */
  --font-primary: "Open Sans", sans-serif;
  --font-headings: "Montserrat", sans-serif;
  --font-display: "Poppins", sans-serif;
  --color-bg: #F0F4F8;
  --color-surface: #FFFFFF;
  --color-surface-transparent: rgba(255, 255, 255, 0.4);
  --color-surface-hover: #F8FBFD;
  --color-text: #334155;
  --color-text-rgb: 51, 65, 85;
  --color-text-muted: #64748B;
  --color-accent: #6EE7B7;
  --color-accent-hover: #34D399;
  --color-primary-light: #A7F3D0;
  --color-link: #4A90E2;
  --card-accent-1: #A7F3D0;
  --card-accent-2: #B799FF;
  --card-accent-3: #FFB7B2;
  --card-accent-4: #AEEEEE;
  --header-height: 80px;
  --nav-pill-bg: rgba(var(--color-text-rgb), 0.05);
  --nav-pill-bg-hover: hsla(160, 60%, 80%, 0.6);
  --nav-pill-border-radius: 999px;
  --nav-font-size-desktop: 0.9rem;
  --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition-speed: 0.3s ease-in-out;
}

/* --- TEMA: HOGAR --- */
.theme-hogar {
  --color-bg: #FDF9F6;
  --color-surface: #FFFFFF;
  --color-surface-transparent: rgba(255, 255, 255, 0.4);
  --color-surface-hover: #FFFDFB;
  --color-text: #5A4E4E;
  --color-text-rgb: 90, 78, 78;
  --color-text-muted: #8A7F7F;
  --color-accent: #FFD166;
  --color-accent-hover: #FFBF00;
  --color-primary-light: #FFECA3;
  --color-link: #C07040;
  --nav-pill-bg-hover: hsla(45, 100%, 85%, 0.6);
}

/* --- TEMA: TECNOLOGÍA --- */
.theme-tecnologia {
  --font-primary: "Open Sans", sans-serif;
  --font-headings: "Montserrat", sans-serif;
  --font-display: "Poppins", sans-serif;
  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-surface-transparent: rgba(255, 255, 255, 0.5);
  --color-surface-hover: #FFFFFF;
  --color-text: #2C3E50;
  --color-text-rgb: 44, 62, 80;
  --color-text-muted: #566573;
  --color-accent: #0062FF;
  --color-accent-hover: #004ECC;
  --color-primary-light: #E6F0FF;
  --color-link: #0062FF;
  --nav-pill-bg-hover: hsla(217, 100%, 95%, 0.7);
}

/* --- TEMA: LIMPIEZA --- */
.theme-limpieza {
  --font-primary: "Open Sans", sans-serif;
  --font-headings: "Montserrat", sans-serif;
  --font-display: "Poppins", sans-serif;
  --color-bg: #F0FDFB;
  --color-surface: #FFFFFF;
  --color-surface-transparent: rgba(255, 255, 255, 0.6);
  --color-surface-hover: #F0FBFD;
  --color-text: #042F2E;
  --color-text-rgb: 4, 47, 46;
  --color-text-muted: #3D6463;
  --color-accent: #10B981;
  --color-accent-hover: #059669;
  --color-primary-light: #D1FAE5;
  --color-link: #10B981;
  --color-accent-secondary: #F59E0B;
  --nav-pill-bg-hover: hsla(158, 80%, 90%, 0.7);
}

/* --- TEMA: DECORACIÓN --- */
.theme-decoracion {
  --font-primary: "Open Sans", sans-serif;
  --font-headings: "Montserrat", sans-serif;
  --font-display: "Poppins", sans-serif;
  --color-bg: #FFFBF7;
  --color-surface: #FFFFFF;
  --color-surface-transparent: rgba(255, 255, 255, 0.5);
  --color-surface-hover: #FFFBF7;
  --color-text: #4E423F;
  --color-text-rgb: 78, 66, 63;
  --color-text-muted: #7A6C68;
  --color-accent: #E57373;
  --color-accent-hover: #D35D5D;
  --color-primary-light: #FCEBEB;
  --color-link: #E57373;
  --color-accent-secondary: #D4AF37;
  --nav-pill-bg-hover: hsla(0, 50%, 92%, 0.7);
}

/* --- ¡TEMA: GAMER (Corregido) --- */
/* --- ¡TEMA: GAMER (Actualizado con todas las variables) --- */
.theme-gamer {
  --font-primary: "Open Sans", sans-serif;
  --font-headings: "Chakra Petch", sans-serif; /* Fuente Gamer */
  --font-display: "Chakra Petch", sans-serif; /* Fuente Gamer */
  --color-bg: #0A0A10; /* Fondo base (fuera de los tabs) */
  --color-surface: #1A1A2B; /* Superficie de tarjeta */
  --color-surface-transparent: rgba(26, 26, 43, 0.7); /* Glassmorphism oscuro */
  --color-surface-hover: #2A2A3F;
  --color-text: #E0E0FF; /* Texto blanco/azulado */
  --color-text-rgb: 224, 224, 255;
  --color-text-muted: #8A8AAF; /* Texto gris/azulado */
  /* Variables de acento globales (usadas por el hero y el modal) */
  --color-accent: #00FFFF; /* Cian Eléctrico (Default) */
  --color-accent-secondary: #FF00FF; /* Magenta Vibrante (Default) */
  --color-link: #00FFFF;
  --nav-pill-bg-hover: hsla(180, 100%, 50%, 0.2); /* Cian semi-transparente */
  /* === ¡AQUÍ ESTÁN LAS VARIABLES QUE FALTABAN! === */
  /* PC (Cian) */
  --gamer-accent-pc: #00FFFF;
  --gamer-accent-pc-rgb: 0, 255, 255;
  --gamer-bg-pc: #0A101A; /* Fondo tintado Cian */
  /* Periféricos (Magenta) */
  --gamer-accent-perifericos: #FF00FF;
  --gamer-accent-perifericos-rgb: 255, 0, 255;
  --gamer-bg-perifericos: #100A1A; /* Fondo tintado Magenta */
  /* Consolas (Verde) */
  --gamer-accent-consolas: #00FF00;
  --gamer-accent-consolas-rgb: 0, 255, 0;
  --gamer-bg-consolas: #0A1A0A; /* Fondo tintado Verde */
  /* Streaming (Naranja) */
  --gamer-accent-streaming: #FF9900;
  --gamer-accent-streaming-rgb: 255, 153, 0;
  --gamer-bg-streaming: #1A100A; /* Fondo tintado Naranja */
  /* VR (Morado) */
  --gamer-accent-vr: #9900FF;
  --gamer-accent-vr-rgb: 153, 0, 255;
  --gamer-bg-vr: #100A1F; /* Fondo tintado Morado */
  /* Variable para el glitch (puedes cambiarla si quieres) */
  --gamer-accent-alt-glitch: var(--gamer-accent-perifericos);
}

/* --- Tema de Festividades (Navidad) --- */
/* --- TEMA: FESTIVIDADES (NAVIDAD) --- */
/* --- TEMA: FESTIVIDADES (Brillante y Mágico) --- */
.theme-festividades {
  /* Fondo degradado sutil (Blanco a Gris muy claro) */
  --color-bg: linear-gradient(175deg, #fdfbfb 0%, #ebedee 100%);
  --color-surface: #FFFFFF;
  --color-surface-hover: #F0F0F0;
  --color-surface-transparent: rgba(255, 255, 255, 0.7); /* "Liquid Glass" */
  --color-text: #333333; /* Texto oscuro */
  --color-text-muted: #666666;
  --color-text-light: #F8F8F8; /* Para texto sobre el Hero oscuro */
  /* Acentos Navideños */
  --color-primary: #C1272D; /* Rojo vibrante */
  --color-primary-dark: #9B1D21;
  --color-secondary: #FFD700; /* Dorado brillante */
  --color-secondary-dark: #CCAA00;
  --festividades-color-red: var(--color-primary);
  --festividades-color-red-rgb: 193, 39, 45;
  --festividades-color-gold: var(--color-secondary);
  --festividades-color-gold-rgb: 255, 215, 0;
  --festividades-color-silver: #C0C0C0;
  --festividades-color-silver-rgb: 192, 192, 192;
  /* Imagen personalizable para el Hero */
  --hero-bg-image: url("../img/festividades/navidad/portada.webp");
}

/* --- Override de Fondo Global --- */
body.theme-hogar {
  background-image: none;
  background-color: var(--color-bg);
}

/* --- Estructura de la Historia (Scrolling Story) --- */
.scrolling-story {
  overflow-x: hidden;
}

.story-block {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.story-block:first-child {
  padding-top: calc(var(--header-height) + 4rem);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.story-block:last-child {
  padding-bottom: 5rem;
  -webkit-mask-image: linear-gradient(to top, black 90%, transparent 100%);
  mask-image: linear-gradient(to top, black 90%, transparent 100%);
}

/* --- Fondos de Sección (Imagen vs Color) --- */
.story-image-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #FFFFFF;
}
.story-image-bg h1, .story-image-bg h2, .story-image-bg h3, .story-image-bg p, .story-image-bg .featurette-tag {
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.story-image-bg .grid-divider {
  color: rgba(255, 255, 255, 0.8);
}
.story-image-bg .cta-button.secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.story-image-bg .cta-button.secondary:hover {
  background-color: #FFFFFF;
  color: var(--color-text);
}

.story-color-bg {
  background-color: var(--color-bg);
  color: var(--color-text);
}
.story-color-bg h1, .story-color-bg h2, .story-color-bg h3 {
  color: var(--color-text);
  text-shadow: none;
}
.story-color-bg p {
  color: var(--color-text-muted);
  text-shadow: none;
}
.story-color-bg .featurette-tag {
  color: var(--color-accent-hover);
  text-shadow: none;
}
.story-color-bg .grid-divider {
  color: var(--color-text-muted);
}
.story-color-bg .cta-button.secondary {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: none;
}
.story-color-bg .cta-button.secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* --- Contenido de Introducción y Secciones --- */
.story-intro, .story-outro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.story-intro h1, .story-outro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
}
.story-intro .subtitle, .story-outro .subtitle {
  font-size: 1.5rem;
  font-family: var(--font-headings);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.story-intro p, .story-outro p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.story-outro {
  padding: 5rem 0;
}
.story-outro h2 {
  text-shadow: none;
  color: var(--color-text);
}
.story-outro p {
  text-shadow: none;
  color: var(--color-text-muted);
}
.story-outro .cta-button {
  margin-top: 2rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

/* --- Layout de Producto (Featurette) --- */
.product-featurette {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.featurette-image {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-speed);
}
.featurette-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.featurette-image:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-medium);
}

.featurette-content h3 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.featurette-content .featurette-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.featurette-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 1rem 0 2rem 0;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ======================================================= */
/* --- ¡AQUÍ COMIENZAN LOS AJUSTES! --- */
/* ======================================================= */
/* --- ESTILOS ACTUALIZADOS: Cuadrícula Pequeña Interactiva --- */
.grid-divider {
  text-align: center;
  font-family: var(--font-headings);
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 6rem 0 2.5rem 0;
  position: relative;
  z-index: 1; /* Detrás de las tarjetas activas */
}
.grid-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--color-accent) 50%, transparent 100%);
  opacity: 0.3;
  z-index: -1;
}
.grid-divider span {
  background-color: var(--color-bg);
  padding: 0 1rem;
}
.story-image-bg .grid-divider span {
  background: none;
}
.story-image-bg .grid-divider::before {
  background: linear-gradient(to right, transparent 0%, #FFF 50%, transparent 100%);
  opacity: 0.4;
}

.product-grid-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 3; /* Por encima del divisor */
}

.product-card-small {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  /* AJUSTE: Overflow: hidden es clave para la expansión vertical */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  cursor: pointer;
  z-index: 5; /* Nivel base de las tarjetas */
}
.product-card-small .card-image {
  height: 180px;
}
.product-card-small .card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card-small .card-content {
  padding: 1.25rem;
  /* AJUSTE: Aseguramos que siempre sea visible */
  opacity: 1;
  visibility: visible;
}
.product-card-small .card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  text-shadow: none;
}
.product-card-small .card-content .card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-hover);
  text-transform: uppercase;
}

/* --- AJUSTE: Panel de Descripción (Expansión Vertical) --- */
.card-reveal-content {
  /* 1. ELIMINAMOS position: absolute y el fondo glassmorphism */
  /* 2. AÑADIMOS max-height para la animación */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden; /* Ayuda a la accesibilidad */
  /* 3. AÑADIMOS la transición */
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  /* 4. Estilos del contenido (se mantienen) */
  padding: 0 1.25rem; /* Solo padding lateral, el vertical se da con la expansión */
  background-color: var(--color-surface); /* Fondo sólido */
  /* AJUSTE: Botones en columna para que quepan */
}
.card-reveal-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-shadow: none;
  line-height: 1.6;
}
.card-reveal-content p strong {
  color: var(--color-text);
  font-weight: 700;
}
.card-reveal-content .button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Espacio inferior al abrir */
  margin-bottom: 1.25rem;
}
.card-reveal-content .cta-button.small {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* --- AJUSTE: Estilos de la Cuadrícula Activa --- */
.product-grid-small.grid-is-active .product-card-small:not(.is-active) {
  transform: scale(0.95); /* Atenuado más sutil */
  opacity: 0.5;
  filter: blur(2px);
  z-index: 4;
}

.product-card-small.is-active {
  transform: scale(1.03); /* Resaltado más sutil */
  box-shadow: var(--shadow-medium);
  z-index: 10;
  /* AJUSTE: Animamos el max-height */
}
.product-card-small.is-active .card-reveal-content {
  opacity: 1;
  visibility: visible;
  max-height: 500px; /* Alto máximo para la expansión */
  padding-top: 1rem; /* Espacio superior */
  /* Línea sutil de separación */
  border-top: 1px solid rgba(var(--color-text-rgb), 0.1);
}

/* Estilo de las tarjetas pequeñas sobre fondos de imagen */
.story-image-bg .product-card-small {
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* AJUSTE: El contenido revelado ahora también necesita fondo */
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .story-image-bg .product-card-small {
    background-color: var(--color-surface-hover);
  }
}
.story-image-bg .product-card-small .card-content h3 {
  color: var(--color-text);
}
.story-image-bg .product-card-small .card-content .card-tag {
  color: var(--color-accent-hover);
}
.story-image-bg .product-card-small .card-reveal-content {
  background-color: rgba(255, 255, 255, 0.8);
}
.story-image-bg .product-card-small .card-reveal-content p {
  color: var(--color-text);
}
.story-image-bg .product-card-small .card-reveal-content .cta-button {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: none;
}
.story-image-bg .product-card-small .card-reveal-content .cta-button:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* --- Media Query (Desktop) --- */
@media (min-width: 768px) {
  .product-featurette {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .product-featurette:nth-child(even) .featurette-image {
    order: 2;
  }
  .product-featurette:nth-child(even) .featurette-content {
    order: 1;
  }
}
@media (min-width: 992px) {
  /* Cuadrícula pequeña de 4 columnas en desktop */
  .product-grid-small {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-card-small .card-image {
    height: 220px;
  }
}/*# sourceMappingURL=hogar.css.map */