/* ===================================================== */
/* VARIABLES GLOBALES Y TEMAS */
/* ===================================================== */
/* Aquí se definen las variables raíz y los temas específicos. */
/* Cada tema redefine las variables para que los estilos se adapten automáticamente al aplicar la clase correspondiente al body. */
/* No se cambian nombres de variables ni selectores. */

:root {
    --bg: #080808;
    --accent: #007bff;
	--primary: #007bff;
    --radius: 30px;
}

/* ============================================================
   INICIO BLOQUE: ANIMACIÓN DE CORAZÓN (LATIDO)
   ============================================================ */

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3); /* Crece un poco */
  }
  30% {
    transform: scale(1); /* Vuelve al tamaño original */
  }
  45% {
    transform: scale(1.3); /* Segundo latido (efecto doble) */
  }
  100% {
    transform: scale(1);
  }
}

/* Aplicamos la animación al icono */
.bi-heart-fill {
  display: inline-block; /* ¡IMPORTANTE! Sin esto, el transform: scale no funciona */
}

/* ============================================================
   FIN BLOQUE: ANIMACIÓN DE CORAZÓN
   ============================================================ */

 /* ============================================================
   INICIO BLOQUE: CLASE DE SOMBRA UNIVERSAL (SHADOW)
   ============================================================ */

/* Esta clase aplica una sombra suave que se nota tanto en
   temas claros como oscuros.
*/
.effect-shadow {
  /* x-offset | y-offset | blur | spread | color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  
  /* Suaviza el cambio si el elemento se mueve o crece */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Efecto al pasar el mouse (opcional, para dar interactividad) */
.effect-shadow:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px); /* Eleva el elemento ligeramente */
}

/* VARIANTE: Sombra de Neón (Ideal para tus temas MidnightBlue o Gold)
   Usa la variable --primary que ya tenemos en tu main.js
*/
.effect-shadow-primary {
  box-shadow: 0 0 15px var(--primary);
  opacity: 0.9;
}

/* ============================================================
   FIN BLOQUE: CLASE DE SOMBRA UNIVERSAL
   ============================================================ */  
   

/* Tema dark */
body.dark {
  --bg: #121212;
  --card: rgba(255,255,255,0.05);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.1);
  --block-bg: rgba(255,255,255,0.08);
  --primary: #e50914; /* rojo Netflix */
   --accent: #e50914; /* rojo Netflix */ 
  --overlay-gradient: linear-gradient(to top, rgba(229,9,20,0.6), rgba(229,9,20,0));
}

/* Tema light */
body.light {
  --bg: #fdfdfd;
  --card: rgba(0,0,0,0.05);
  --text: #222222;
  --text-secondary: rgba(34,34,34,0.7);
  --border: rgba(0,0,0,0.1);
  --block-bg: rgba(0,0,0,0.05);
  --primary: #0078d7; /* azul Microsoft */
  --accent: #0078d7;  
  --overlay-gradient: linear-gradient(to top, rgba(0,120,215,0.4), rgba(0,120,215,0));
}

/* Tema sepia */
body.sepia {
  --bg: #f4ecd8;
  --card: rgba(0,0,0,0.05);
  --text: #3e2f2f;
  --text-secondary: rgba(62,47,47,0.7);
  --border: rgba(62,47,47,0.2);
  --block-bg: rgba(62,47,47,0.05);
  --primary: #a0522d; /* marrón */
  --accent: #a0522d;  
  --overlay-gradient: linear-gradient(to top, rgba(160,82,45,0.4), rgba(160,82,45,0));
}

/* Tema gold */
body.gold {
  --bg: #fff8e1;
  --card: rgba(0,0,0,0.05);
  --text: #2c2c2c;
  --text-secondary: rgba(44,44,44,0.7);
  --border: rgba(201,162,39,0.3);
  --block-bg: rgba(201,162,39,0.08);
  --primary: #c9a227; /* dorado suave */
  --accent-gold: #ffd700; /* dorado brillante */
  --accent: #ffd700; /* dorado brillante */ 
  --overlay-gradient: linear-gradient(to top, rgba(201,162,39,0.6), rgba(201,162,39,0));
}

/* Tema midnightBlue (negro + azul marino) */
body.midnightBlue {
  --bg: #0d0d0d;
  --card: rgba(255,255,255,0.05);
  --text: #e6f0ff;
  --text-secondary: rgba(230,240,255,0.7);
  --border: rgba(41,128,185,0.3);
  --block-bg: rgba(41,128,185,0.08);
  --primary: #2980b9; /* azul eléctrico */
  --accent: #3498db;
  --overlay-gradient: linear-gradient(to top, rgba(41,128,185,0.6), rgba(41,128,185,0));
}

/* Tema graphiteEmerald (gris grafito + verde esmeralda) */
body.graphiteEmerald {
  --bg: #2c2c2c;
  --card: rgba(255,255,255,0.05);
  --text: #ecf0f1;
  --text-secondary: rgba(236,240,241,0.7);
  --border: rgba(46,204,113,0.3);
  --block-bg: rgba(46,204,113,0.08);
  --primary: #2ecc71; /* verde esmeralda */
  --accent: #27ae60;
  --overlay-gradient: linear-gradient(to top, rgba(46,204,113,0.6), rgba(46,204,113,0));
}

/* Tema copperSepia (sepia + cobre) */
body.copperSepia {
  --bg: #3e2f2f;
  --card: rgba(255,255,255,0.05);
  --text: #f5e6d3;
  --text-secondary: rgba(245,230,211,0.7);
  --border: rgba(184,115,51,0.3);
  --block-bg: rgba(184,115,51,0.08);
  --primary: #b87333; /* cobre */
  --accent: #d2691e;
  --overlay-gradient: linear-gradient(to top, rgba(184,115,51,0.6), rgba(184,115,51,0));
}

/* Tema platinumRose (blanco crema + rosa dorado) */
body.platinumRose {
  --bg: #fdf6f0;
  --card: rgba(0,0,0,0.05);
  --text: #2c2c2c;
  --text-secondary: rgba(44,44,44,0.7);
  --border: rgba(199,21,133,0.3);
  --block-bg: rgba(199,21,133,0.08);
  --primary: #c71585; /* rosa intenso */
  --accent: #ff69b4; /* rosa brillante */
  --overlay-gradient: linear-gradient(to top, rgba(199,21,133,0.4), rgba(199,21,133,0));
}

/* Tema onyxGold (negro + dorado) */
body.onyxGold {
  --bg: #0d0d0d;
  --card: rgba(255,255,255,0.05);
  --text: #fdf6e3;
  --text-secondary: rgba(253,246,227,0.7);
  --border: rgba(201,162,39,0.3);
  --block-bg: rgba(201,162,39,0.08);
  --primary: #c9a227; /* dorado suave */
  --accent: #ffd700; /* dorado brillante */
  --overlay-gradient: linear-gradient(to top, rgba(201,162,39,0.6), rgba(201,162,39,0));
}

/* ===================================================== */
/* BASE Y RESET */
/* ===================================================== */
/* Estilos base para el body y reset de elementos. */
/* Integra variables de temas para cambios automáticos en fondo y texto. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

body {
  /* Fondo: degradado claro arriba + color del tema */
  background: var(--overlay-gradient), var(--bg);
  color: white; font-family: 'Outfit', sans-serif; padding: 20px; 
  opacity: 0;
  transition: opacity 0.5s ease;
  background-color: #050505; /* Fondo oscuro para que no haya flash blanco */
}

/* Clase que activaremos con JS */
body.page-loaded {
    opacity: 1;
}

/* Evitar clics dobles durante la transición */
.transitioning {
    pointer-events: none;
}

/* ===================================================== */
/* BENTO GRID Y BLOQUES */
/* ===================================================== */
/* Estilos para la cuadrícula Bento y sus bloques. */
/* Usa variables para que se adapten a los temas (e.g., --bg, --accent). */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 18px;
    max-width: 1300px;
    margin: 0 auto;
}

/* TAMAÑOS */
.hero { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }
.small { grid-column: span 1; grid-row: span 1; }

.bento-block {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #121212;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.bento-block.ready { opacity: 1; transform: translateY(0); }

.block-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; z-index: 1;
    filter: brightness(0.4); transition: 0.5s ease;
}

.bento-block:hover .block-img { filter: brightness(0.25); transform: scale(1.05); }

.block-info {
    position: absolute; inset: 0; padding: 25px; z-index: 2;
    display: flex; flex-direction: column; justify-content: space-between;
    /* Mejora: Agregar sombra negra a todos los textos dentro de bloques con imágenes de fondo para legibilidad */
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Sombra sutil, ajustable; funciona bien con texto blanco/claro */
}

.badge-news {
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    
/* COPIA ESTO DE TU INTERACTION-BAR */
    width: fit-content; 
    display: block; /* O inline-block, ambos funcionan con fit-content */
}

.title { font-family: 'Playfair Display', serif; margin-top: 10px; line-height: 1.1; }
.hero .title { font-size: 2.5rem; }

/* INTERACCIÓN */
.interaction-bar {
    display: flex; gap: 12px; margin-top: 15px;
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px);
    padding: 10px 18px; border-radius: 50px; width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-btn {
    background: none; border: none; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 6px; font-size: 0.9rem;
    transition: 0.3s ease; padding: 2px 5px;
    /* Mejora: Sombra para legibilidad en fondos variables */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.stat-btn:hover { color: white; transform: translateY(-2px); }

/* Estados activos */
.stat-btn.active-like { color: #ff3e3e !important; text-shadow: 0 0 10px rgba(255,62,62,0.5); }
.stat-btn.active-unlike { color: #ffcc00 !important; }

/* Animación de latido */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}
.animate-pop { animation: heartBeat 0.4s ease-out; }

@media (max-width: 600px) {
    .bento-grid { display: flex; flex-direction: column; }
    .bento-block { height: 350px !important; }
}

/* ===================================================== */
/* NAVEGACIÓN (NAV BAR) */
/* ===================================================== */
/* Estilos para la barra de navegación. */
/* Integra variables para temas (e.g., --nav-bg, --nav-accent). */

:root {
    --nav-bg: rgba(8, 8, 8, 0.7);
    --nav-accent: #007bff;
    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-font: 'Outfit', sans-serif;
}

/* --- ESTILO BASE DEL NAV --- */
.custom-nav {
    background-color: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.4s ease;
    padding: 15px 0;
    font-family: var(--nav-font);
}

/* Efecto al hacer scroll */
.custom-nav.scrolled {
    padding: 10px 0;
    background-color: rgba(8, 8, 8, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    /* Mejora: Sombra negra para legibilidad sobre fondos semi-transparentes */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* --- ENLACES --- */
.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 12px;
    position: relative;
    transition: 0.3s;
    /* Mejora: Sombra para texto en nav, especialmente útil en temas oscuros con fondos variables */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.nav-link-custom:hover {
    color: white !important;
}

/* Línea animada inferior */
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* --- BOTONES Y BUSCADOR --- */
.search-trigger {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--nav-border);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: 0.3s;
    /* Mejora: Sombra para texto en botones */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.search-trigger:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

.btn-live {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-red 2s infinite;
    /* Mejora: Sombra para legibilidad */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    color: white;
}

header.text-center {
    /* El nav mide aprox 70px-80px, así que 120px da un aire perfecto */
    margin-top: 100px !important; 
    margin-bottom: 40px;
}

/* Asegura que el Nav siempre esté por encima del contenido al hacer scroll */
.custom-nav {
    z-index: 1100 !important;
}

/* ===================================================== */
/* INFINITE REEL (CARRUSEL INFINITO) */
/* ===================================================== */
/* Estilos para el carrusel infinito de tarjetas. */
/* Usa variables para adaptación temática (e.g., --bg). */

:root {
    --card-width: 350px;
    --card-height: 450px;
    --gap: 20px;
    --speed: 30s; /* Ajusta la velocidad aquí */
}

.bento-infinite-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    /*background: #000;*/
    position: relative;
}

/* El track mide el ancho total de todas las tarjetas */
.bento-infinite-track {
    display: flex;
    width: calc((var(--card-width) + var(--gap)) * 8); /* Ancho x total de cards */
    animation: scroll var(--speed) linear infinite;
}

/* Animación de desplazamiento */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (var(--card-width) + var(--gap)) * 4)); }
}

/* Pausa al pasar el mouse para que el usuario pueda leer */
.bento-infinite-container:hover .bento-infinite-track {
    animation-play-state: paused;
}

.reel-item {
    width: var(--card-width);
    height: var(--card-height);
    margin-right: var(--gap);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s ease;
}

.reel-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: sans-serif;
    /* Mejora: Sombra para texto en reel items con fondos de imagen */
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* ===================================================== */
/* MODAL (VENTANA EMERGENTE PARA VIDEO) */
/* ===================================================== */
/* Estilos para el modal de video. */
/* Adaptado con variables donde aplica (e.g., fondos oscuros). */

.modal {
    display: none; 
    position: fixed;
    z-index: 1200;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); /* Fondo ultra oscuro */
    backdrop-filter: blur(10px); /* Desenfoque elegante */
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 900px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 15px;
}

.close-modal {
    position: absolute;
    top: 30px; right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: #ff0000; }
/* Contenedor del icono Play */
.reel-item-video::after {
    content: '▶'; /* Icono simple, puedes usar una imagen o SVG */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none; /* Para que no interfiera con el clic de la tarjeta */
}

/* Efecto Hover: La tarjeta se oscurece y aparece el Play */
.reel-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reel-item:hover img, 
.reel-item:hover video {
    filter: brightness(0.5); /* Oscurece el fondo para resaltar el Play */
}

/* Cambiar el cursor para que se entienda que es cliqueable */
.reel-item {
    cursor: pointer;
}

/* ===================================================== */
/* POPUP (VENTANA EMERGENTE) */
/* ===================================================== */
/* Estilos para el popup inicial o promocional. */
/* Incluye animaciones y responsive. */

.popup-overlay {
    display: none; /* Inicia oculto */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup-content {
    background: #000;
    width: 90%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad texto */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.popup-image-side {
    background-image: url('https://picsum.photos/800/1200?grayscale'); /* Reemplaza con tu imagen */
    background-size: cover;
    background-position: center;
}

.popup-text-side {
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Arial Black', sans-serif;
    /* Mejora: Sombra para textos en popup con posible fondo de imagen */
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.popup-tag {
    color: #ff0000;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.popup-text-side h1 {
    font-size: 48px;
    line-height: 1;
    margin: 0;
}

.popup-text-side h1 span {
    color: #ff0000;
}

.popup-btn {
    margin-top: 30px;
    background: white;
    color: black;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    /* Mejora: Como es texto negro sobre blanco, no necesita sombra, pero si cambias, agrégala */
}

/* Barra de cierre automático (indicador visual) */
.auto-close-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 4px;
    background: #ff0000;
    width: 100%;
    animation: timer 8s linear forwards;
}

@keyframes timer {
    from { width: 100%; }
    to { width: 0%; }
}

.close-popup-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 30px; cursor: pointer;
}

@media (max-width: 600px) {
    .popup-content { grid-template-columns: 1fr; }
    .popup-image-side { height: 200px; }
    .popup-text-side { padding: 30px; }
}

/* Contenedor de la imagen */
.popup-image-side {
    position: relative;
    overflow: hidden; /* Corta el exceso del zoom */
}

/* La imagen con la animación */
.popup-image-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://picsum.photos/800/1200?grayscale'); /* Tu imagen aquí */
    background-size: cover;
    background-position: center;
    /* Aplicamos la animación */
    animation: kenburns 12s ease-out forwards;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-2%, -2%); /* Crece y se desplaza sutilmente */
    }
}

/* Ajuste del texto para que sea más impactante */
.popup-text-side h1 {
    font-size: 56px;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.popup-text-side p {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 300;
}

/* ===================================================== */
/* FOOTER (PIE DE PÁGINA) */
/* ===================================================== */
/* Estilos para el footer, incluyendo newsletter y enlaces. */
/* Usa variables para temas (e.g., --footer-bg, --footer-accent). */

:root {
    --footer-bg: #050505;
    --footer-accent: #007bff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   INICIO BLOQUE: FOOTER MODERNO CON CONTENEDOR INTEGRADO
   ============================================================ */
footer.modern-footer {
    /* Tus estilos originales */
    background-color: var(--footer-bg);
    color: white;
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--glass-border);
    font-family: 'Outfit', sans-serif;

    /* Propiedades de Container de Bootstrap */
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem; /* Espacio de seguridad lateral */
    padding-left: 1.5rem;
}

/* Anchos máximos responsivos (Breakpoints de Bootstrap 5) */
@media (min-width: 576px)  { footer.modern-footer { max-width: 540px;  } }
@media (min-width: 768px)  { footer.modern-footer { max-width: 720px;  } }
@media (min-width: 992px)  { footer.modern-footer { max-width: 960px;  } }
@media (min-width: 1200px) { footer.modern-footer { max-width: 1140px; } }
@media (min-width: 1400px) { footer.modern-footer { max-width: 1320px; } }

/* ============================================================
   FIN BLOQUE: FOOTER MODERNO CON CONTENEDOR INTEGRADO
   ============================================================ */
 
 /* ============================================================
   INICIO BLOQUE: LÓGICA DE CONTENEDOR PARA EL FOOTER
   ============================================================ */

.footer-limit-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    
    /* Ancho máximo para que no se estire al alejar el zoom (Bootstrap XXL) */
    max-width: 1320px; 
}

/* Ajustes responsivos para que en móviles también se vea bien */
@media (max-width: 1400px) { .footer-limit-container { max-width: 1140px; } }
@media (max-width: 1200px) { .footer-limit-container { max-width: 960px;  } }
@media (max-width: 992px)  { .footer-limit-container { max-width: 720px;  } }
@media (max-width: 768px)  { .footer-limit-container { max-width: 540px;  } }

/* ============================================================
   FIN BLOQUE: LÓGICA DE CONTENEDOR PARA EL FOOTER
   ============================================================ */
   

/* SECCIÓN NEWSLETTER */
.footer-newsletter {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
}

.newsletter-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    width: 100%;
    transition: 0.3s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.btn-subscribe {
    background: var(--accent);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    color: white;
    transition: 0.3s;
    /* Mejora: Sombra para botón en footer */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

/* ENLACES Y CATEGORÍAS */
.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    /* Mejora: Sombra para headings en footer */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
    /* Mejora: Sombra para enlaces */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.footer-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* ICONOS SOCIALES */
.social-circle {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.4s;
}

.social-circle:hover {
    background: var(--accent);
    transform: translateY(-5px) rotate(360deg);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    /* Mejora: Sombra ligera para texto bottom si es necesario */
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* ============================================================
   INICIO BLOQUE: CLASE WRAPPER UNIVERSAL
   ============================================================ */
.bento-wrapper {
    width: 100%;
    max-width: 1320px; /* Limita el ancho máximo */
    margin-right: auto; /* Centra el bloque */
    margin-left: auto;  /* Centra el bloque */
    padding-right: 15px; /* Margen interno de seguridad */
    padding-left: 15px;  /* Margen interno de seguridad */
    overflow: hidden;    /* Evita desbordamientos */
}
/* ============================================================
   FIN BLOQUE: CLASE WRAPPER UNIVERSAL
   ============================================================ */

/* ============================================================
   ESTILOS PARA EFECTO POR SCROLL
   ============================================================ */

/* Estado inicial: oculto y pequeño */
.div-hero-animado {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Estado base antes de la animación */
    filter: blur(20px);
    opacity: 0;
    transform: scale(0.6);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.texto-entrada {
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.8s; /* El 0.8s es el retraso (delay) */
}

/* CLASE QUE ACTIVA EL EFECTO (La pone el JS) */
.div-hero-animado.visible {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.div-hero-animado.visible .texto-entrada {
    opacity: 1;
    transform: translateY(0);
}

/* Sombra de texto suave (Efecto Elevado) */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Sombra de texto fuerte (Para fondos muy claros o brillantes) */
.text-shadow-lg {
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Sombra tipo "Outline" (Borde sutil para máxima legibilidad) */
.text-shadow-outline {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/*truncate*/
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número de líneas que quieres mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   SCROLLBAR: ANCHO NATIVO + BOTONES + FONDO NEGRO
   ============================================================ */

/* 1. Fondo general de la barra (incluye el área de los botones) */
::-webkit-scrollbar {
    background-color: #000000; /* Fondo negro */
}

/* 2. El carril por donde corre la barra */
::-webkit-scrollbar-track {
    background-color: #000000;
}

/* 3. La pieza que se mueve (Thumb) */
::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 50px; /* Un redondeado más leve para que encaje con los botones */
    /* Dejamos un pequeño margen negro alrededor del color primary */
    border: 2px solid #000000;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
    filter: brightness(1.2); /* Se aclara un poco al pasar el mouse */
}

/* 4. LOS BOTONES (Flechas arriba y abajo) */
/* Esto asegura que los botones de desplazamiento sigan siendo visibles y negros */
::-webkit-scrollbar-button:single-button {
    background-color: #000000;
    display: block;
    background-size: 10px;
    background-repeat: no-repeat;
}

/* Flecha Arriba */
::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-position: center bottom;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='50,00 0,50 100,50'/></svg>");
}

/* Flecha Abajo */
::-webkit-scrollbar-button:single-button:vertical:increment {
    background-position: center top;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='0,0 100,0 50,50'/></svg>");
}

/* Firefox (Más limitado, pero respetamos colores) */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--primary);
}


/* ===================================================== */
/* FLOATING DOCK (MENÚ FLOTANTE INFERIOR) */
/* ===================================================== */

.floating-dock {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    /* Nuevo: permite que los elementos hijos se apilen verticalmente */
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 15px;*/
}

.dock-container {
    pointer-events: auto;
    /*background: rgba(20, 20, 20, 0.7);*/
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 15px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative; /* Para posicionar el config-menu */
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ... (Mantenemos tus estilos de dock-icon, label y separator igual) ... */

.dock-icon { font-size: 20px; margin-bottom: 2px; }
.dock-label { font-size: 10px; font-weight: 500; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.dock-separator { width: 1px; height: 30px; background: rgba(255,255,255,0.1); margin: 0 5px; }

/* ===================================================== */
/* NUEVAS INTEGRACIONES (GEAR Y ESTADO) */
/* ===================================================== */

/* 1. Estado del día (Flota arriba) */
.estado-momento {
    pointer-events: auto;
    /*background: rgba(20, 20, 20, 0.8);*/
    /*backdrop-filter: blur(10px);*/
    padding: 6px 14px;
    border-radius: 20px 20px 0 0;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    /*border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);*/
    transition: transform 0.3s ease;
}

/* 2. Menú de Configuración (Paleta/Reset) */
.config-menu {
    display: none; /* Se activa con .active */
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 85px; /* Ajustado para salir arriba del Gear */
    right: 15px;
}

.floating-dock.active .config-menu { display: flex; }

/* 3. Botones (Gear e Items) */
.config-btn, .config-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.config-btn { 
    width: 48px; 
    height: 48px; 
    background: var(--primary, #0d6efd); 
    font-size: 20px;
}

.config-item { 
    background: var(--primary, #0d6efd); 
}

/* Animación cuando el menú está abierto */
.floating-dock.active .config-btn i { transform: rotate(90deg); }
/*.floating-dock.active .estado-momento { transform: translateY(-100px); }*/

/* Colores de iconos por momento */
.estado-momento.madrugada i { color: #a29bfe; }
.estado-momento.dia i       { color: #fdcb6e; }
.estado-momento.tarde i     { color: #e17055; }
.estado-momento.noche i     { color: #74b9ff; }

/* Hover de tus items existentes */
.dock-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-8px) scale(1.1); }
.wa-dock:hover { background: rgba(37, 211, 102, 0.2); }
 /*
@media (max-width: 600px) {
    .dock-label { display: none; } ESTA ES LA LÍNEA QUE BORRA LOS TEXTOS EN MÓVIL 
    .dock-container { padding: 10px 20px; border-radius: 30px; }
}*/
@media (max-width: 600px) {
    /* OCULTA SOLO LOS QUE TIENEN LA CLASE */
    .hide-mobile-label { 
        display: none !important; 
    }

    /* MANTENEMOS LOS DEMÁS VISIBLES */
    .dock-label { 
        display: block; 
    }

    /* Ajuste de espacio para que no se vea disparejo */
    .dock-container { 
        padding: 10px 15px; 
        gap: 8px; 
    }
}


/* TEMA GRUNGE (DRAW) */
/* TEMA: DRAW - CORRECCIÓN DE VISIBILIDAD */

/* 1. EL ADORNO DE LA ESQUINA (::before en la caja) */
body.draw .ad-drawer::before {
    content: ""; /* Obligatorio */
    display: block;
    position: absolute;
    top: -80px; /* Sacarlo un poco hacia arriba */
    left: -10px;
    width: 80px; 
    height: 80px;
    /* Imagen de prueba: un adorno grunge/mancha */
    background-image: url('../../assets/img/12-navidad/gorro.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10006; /* Por encima de la caja */
    pointer-events: none;
}

/* 2. EL RIBETE/LISTÓN (::after en el cuerpo) */
body.draw #adMainBody::after {
    content: "DANGER"; /* Texto del listón */
    position: absolute;
    top: 20px;
    left: -35px;
    width: 140px;
    height: 30px;
    background: #f1c40f; /* Amarillo cinta */
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    z-index: 10007; /* Muy alto */
    border: 1px dashed #000;
}

/* 3. IMPORTANTE: El contenedor padre debe permitir ver lo que sale de él */
body.draw .ad-drawer {
    overflow: visible !important; /* Permite que la esquina "salga" de la caja */
}

body.draw #adMainBody {
    position: relative; /* Base para posicionar el ribete */
    overflow: hidden;   /* Corta el ribete para que parezca una cinta pegada */
    border: 2px solid var(--primary);
}