/* --- CONFIGURACIÓN GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo de la página */
body {
    background-color: #020617;
    color: white;
}

/* --- HEADER SUPERIOR --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    background-color: #020617;
    border-bottom: 1px solid #1d283a;
    width: 100%;
}

/* --- LOGO EN LA ESQUINA SUPERIOR IZQUIERDA --- */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
}

/* Control del tamaño estricto del SVG */
.img-logo {
    height: 50px;       /* Controla la altura del logo en la barra superior */
    width: auto;        /* Mantiene la proporción correcta del vector */
    display: block;
    transition: transform 0.3s ease;
}

.img-logo:hover {
    transform: scale(1.04);
}

/* --- BARRA DE BÚSQUEDA --- */
.busqueda input {
    width: 350px;
    padding: 9px 18px;
    border-radius: 20px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: #fff;
    outline: none;
}

.busqueda input::placeholder {
    color: #94a3b8;
}

/* --- ENLACES DE NAVEGACIÓN --- */
.opciones a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.opciones a:hover {
    color: #38bdf8;
}

/* --- CARRUSEL / BANNER --- */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    position: relative;
    max-width: 1200px;
}

.visor_slider {
    overflow: hidden;
    width: 90%;
    border-radius: 15px;
}

.contenedor_slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.flecha {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 22px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
}

/* --- SECCIÓN REDES SOCIALES --- */
.redes_sociales {
    text-align: center;
    padding: 35px 20px;
    margin-top: 10px;
}

.redes_sociales h3 {
    color: #e2b857; /* Dorado de la tipografía */
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.contenedor_redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

/* Tarjeta / Enlace de la red social */
.red_item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgb(209, 161, 83); /* Dorado suave para el texto */
    padding: 10px 20px;
    border: 1px solid rgba(210, 163, 83, 0.3);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.3s ease;
}

.red_item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Iconos SVG en dorado */
.icono_red {
    width: 26px;
    height: 26px;
    fill: #e2b857; /* Aplica el color dorado exacto */
    transition: transform 0.3s ease, fill 0.3s ease;
}

/* Efecto Hover (al pasar el mouse) */
.red_item:hover {
    border-color: #f3cf7a;
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(226, 184, 87, 0.25);
    color: #ffffff;
}

.red_item:hover .icono_red {
    fill: #ffffff; /* Los iconos cambian a blanco brillante al pasarle el cursor */
    transform: scale(1.1);
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.btn_whatsapp_flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.icono_wsp {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.btn_whatsapp_flotante:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* --- VENTANA / TOOLTIP DEL MENSAJE --- */
.tooltip_wsp {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 240px;
    background-color: #0f172a;
    border: 1px solid #25d366;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    
    /* Estado inicial (oculto) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Indicador en forma de triángulo apuntando al botón */
.tooltip_wsp::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 22px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #25d366;
}

.titulo_tooltip {
    display: block;
    font-size: 0.75rem;
    color: #25d366;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.texto_tooltip {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.3;
    font-style: italic;
    margin: 0;
}

/* Muestra la ventana con animación al pasar el cursor */
.btn_whatsapp_flotante:hover .tooltip_wsp {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- VARIABLES DE TEMA --- */
:root {
    /* MODO OSCURO (Por defecto) */
    --bg-principal: #020617;
    --bg-header: #020617;
    --border-color: #1e293b;
    --texto-principal: #ffffff;
    --texto-secundario: #e2b857; /* Dorado */
    --bg-input: #0f172a;
    --border-input: #334155;
    --texto-input: #ffffff;
    --placeholder-color: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.6);
}

/* --- MODO CLARO (Fondo blanco, TODO el texto e iconos en negro) --- */
body.light-theme {
    --bg-principal: #ffffff;
    --bg-header: #ffffff;
    --border-color: #e2e8f0;
    --texto-principal: #000000;      /* Negro puro para todos los textos */
    --texto-secundario: #000000;    /* Negro puro para encabezados y acentos */
    --bg-input: #f8fafc;
    --border-input: #000000;
    --texto-input: #000000;         /* Texto tipeado en el buscador */
    --placeholder-color: #555555;   /* Texto borroso del buscador */
    --card-bg: #f8fafc;
}

/* --- ESTILOS GENERALES Y TRANSICIONES --- */
body {
    background-color: var(--bg-principal);
    color: var(--texto-principal);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* --- BARRA DE BÚSQUEDA --- */
.busqueda input {
    background-color: var(--bg-input);
    color: var(--texto-input);
    border: 1px solid var(--border-input);
    padding: 8px 16px;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.busqueda input::placeholder {
    color: var(--placeholder-color);
    transition: color 0.3s ease;
}

/* --- NAV (INICIAR SESIÓN Y CARRITO) --- */
.opciones a {
    color: var(--texto-principal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.opciones a:hover {
    color: var(--texto-secundario);
}

/* --- BOTÓN DE TEMA --- */
.btn-theme {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icono-theme {
    width: 20px;
    height: 20px;
    fill: var(--texto-principal);
    transition: fill 0.3s ease;
}

/* --- SECCIÓN DE REDES SOCIALES --- */
.redes_sociales h3 {
    color: var(--texto-secundario);
    transition: color 0.3s ease;
}

.red_item {
    color: var(--texto-principal);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.red_item span {
    color: var(--texto-principal);
    transition: color 0.3s ease;
}

/* Logos SVG de las redes sociales */
.icono_red {
    width: 26px;
    height: 26px;
    fill: var(--texto-principal); /* Cambia automáticamente entre dorado/blanco y negro */
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* Hover de las redes sociales en modo claro y oscuro */
.red_item:hover {
    border-color: var(--texto-principal);
    transform: translateY(-3px);
}

/* --- LÓGICA DE INTERCAMBIO DE LOGOS --- */
.img-logo {
    height: 45px; /* Ajusta la altura según la medida de tu header */
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* En Modo Oscuro (por defecto) */
.logo-dorado {
    display: block;
}

.logo-negro {
    display: none;
}

/* En Modo Claro (.light-theme activado) */
body.light-theme .logo-dorado {
    display: none;
}

body.light-theme .logo-negro {
    display: block;
}

/* VENTANA DEL CARRUSEL */
.carrusel_contenedor {
    position: relative;
    max-width: 900px; /* Ajusta según tu diseño */
    margin: 0 auto;
    overflow: hidden; /* Oculta las imágenes que están fuera de vista */
    border-radius: 12px;
}

/* CONTENEDOR MOVILE (TRACK) */
.carrusel_track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out; /* Transición suave al deslizar */
}

/* IMÁGENES DENTRO DEL CARRUSEL */
.carrusel_track img {
    width: 100%;
    flex-shrink: 0; /* Impide que las imágenes se encojan */
    object-fit: cover;
}

/* BOTONES FLECHA */
.btn_carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.btn_prev { left: 15px; }
.btn_next { right: 15px; }

/* VENTANA CONTENEDORA DEL CARRUSEL */
.carrusel_contenedor {
    position: relative;
    width: 90%;             /* Ancho proporcional respecto a la pantalla */
    max-width: 1000px;      /* Ancho máximo recomendado */
    height: 450px;          /* Alto fijo para lograr un rectángulo equilibrado */
    margin: 20px auto;
    overflow: hidden;       /* Recorta todo lo que sobresalga de la ventana */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* TRACK INTERNO DE IMÁGENES */
.carrusel_track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* IMÁGENES AJUSTADAS */
.carrusel_track img {
    width: 100%;
    height: 100%;           /* Ocupa el 100% de la altura del contenedor (450px) */
    flex-shrink: 0;
    object-fit: cover;      /* Escala la imagen cubriendo el área sin deformarla */
    object-position: center;/* Centra el encuadre de la foto */
}

/* BOTONES FLECHA (Centrados verticalmente) */
.btn_carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn_carrusel:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.btn_prev { left: 15px; }
.btn_next { right: 15px; }

/* VENTANA CONTENEDORA DEL CARRUSEL (MÁS ALTA) */
.carrusel_contenedor {
    position: relative;
    width: 92%;
    max-width: 1200px;
    height: 720px;          /* Aumentamos la altura para mayor impacto visual */
    max-height: 75vh;       /* Se adapta para no sobrepasar la pantalla en monitores estándar */
    margin: 25px auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* TRACK INTERNO DE IMÁGENES */
.carrusel_track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* IMÁGENES AJUSTADAS */
.carrusel_track img {
    width: 100%;
    height: 100%;           /* Ocupa toda la nueva altura disponible */
    flex-shrink: 0;
    object-fit: cover;      /* Encadra la foto sin deformarla */
    object-position: center;/* Mantiene el encuadre en el centro */
}

/* ADAPTACIÓN PARA MONITORES Y LAPTOPS */
@media (max-height: 850px) {
    .carrusel_contenedor {
        height: 620px;       /* Ajuste suave si la pantalla del navegador es más baja */
    }
}
/* --- HEADER Y LOGO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;       /* Aumentamos el padding vertical (20px) para darle más altura a la barra */
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* TAMAÑO DEL LOGO AUMENTADO */
.img-logo {
    height: 70px;          /* Subimos de 45px a 70px para que el logo se vea bastante más grande */
    width: auto;
    display: block;
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* ELEMENTOS PERMANECEN CON SU ALTURA INTACTA */
.busqueda input {
    height: 40px;          /* Mantiene la altura estándar de la barra de búsqueda */
    background-color: var(--bg-input);
    color: var(--texto-input);
    border: 1px solid var(--border-input);
    padding: 0 18px;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.btn-theme {
    width: 40px;           /* Mantiene sus proporciones originales */
    height: 40px;
}

/* --- HEADER Y CONTENEDOR DEL LOGO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;       /* Ajustamos el espacio para dar lugar al logo más grande */
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* CLASE GENERAL PARA AMBOS LOGOS (Aumentamos la altura) */
.img-logo {
    height: 85px;          /* Subimos a 85px la altura para ambos logos */
    width: auto;
    transition: opacity 0.3s ease;
}

/* --- CONTROL DE VISIBILIDAD (Solo 1 logo a la vez) --- */

/* MODO OSCURO (Por defecto) */
.logo-dorado {
    display: block !important; /* Muestra el dorado */
}

.logo-negro {
    display: none !important;  /* Oculta completamente el negro */
}

/* MODO CLARO (Cuando el body tiene la clase .light-theme) */
body.light-theme .logo-dorado {
    display: none !important;  /* Oculta el dorado */
}

body.light-theme .logo-negro {
    display: block !important; /* Muestra el negro */
}

/* --- HEADER Y DISTRIBUCIÓN GENERAL --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* Equilibrio entre el lado izquierdo (logo) y el lado derecho (menú) */
.logo, 
.header-derecha {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    justify-content: flex-start;
}

.header-derecha {
    justify-content: flex-end;
    gap: 25px; /* Espaciado entre Iniciar Sesión y Carrito */
}

/* --- BLOQUE CENTRAL (Búsqueda + Botón de Tema) --- */
.header-centro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Distancia entre la barra de búsqueda y el botón de tema */
}

/* BARRA DE BÚSQUEDA MÁS ANCHA */
.busqueda input {
    width: 520px;          /* Ancho extendido para destacar la barra */
    max-width: 100%;
    height: 44px;
    background-color: var(--bg-input);
    color: var(--texto-input);
    border: 1px solid var(--border-input);
    padding: 0 20px;
    border-radius: 22px;
    outline: none;
    transition: all 0.3s ease;
}

/* BOTÓN DE TEMA AL LADO DEL BUSCADOR */
.btn-theme {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-input);
    background-color: var(--bg-input);
    color: var(--texto-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ESTILOS DE LOS ENLACES DE LA DERECHA */
.header-derecha .nav-link {
    color: var(--texto-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* --- HEADER Y ESPACIAMIENTO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%;       /* Mantiene un relleno equilibrado arriba y abajo */
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* --- LOGO MÁS GRANDE Y ALTO --- */
.logo {
    flex: 1.2;              /* Le da un poco más de margen horizontal al contenedor del logo */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.img-logo {
    height: 105px;          /* Aumentado a 105px para mayor presencia */
    max-height: 110px;      /* Límite para evitar que deforme el header */
    width: auto;            /* Mantiene la proporción horizontal de la nueva imagen */
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* --- CONTROL DE VISIBILIDAD (Sin cambios) --- */
.logo-dorado {
    display: block !important;
}

.logo-negro {
    display: none !important;
}

body.light-theme .logo-dorado {
    display: none !important;
}

body.light-theme .logo-negro {
    display: block !important;
}

/* --- SECCIÓN DE REDES SOCIALES EN COLOR DORADO --- */
.redes_sociales h3 {
    color: var(--texto-secundario); /* Dorado #e2b857 */
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.redes_contenedor {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.red_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--texto-secundario); /* Cambia el color del texto a dorado */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.red_item span {
    color: var(--texto-secundario); /* Asegura que el texto sea dorado */
}

/* Logos SVG en dorado */
.icono_red {
    width: 22px;
    height: 22px;
    fill: var(--texto-secundario);  /* Pinta los iconos con el mismo dorado */
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* EFECTO HOVER */
.red_item:hover {
    border-color: var(--texto-secundario);
    box-shadow: 0 0 12px rgba(226, 184, 87, 0.3); /* Resplandor dorado suave */
    transform: translateY(-3px);
}

/* --- MANTENER MODO CLARO (Cambia a negro al presionar el botón) --- */
body.light-theme .redes_sociales h3,
body.light-theme .red_item,
body.light-theme .red_item span {
    color: #000000;
}

body.light-theme .icono_red {
    fill: #000000;
}

body.light-theme .red_item:hover {
    border-color: #000000;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

/* --- MODO CLARO: SECCIÓN REDES SOCIALES --- */

/* Estado normal (Mouse fuera) */
body.light-theme .redes_sociales h3 {
    color: #000000;
}

body.light-theme .red_item {
    color: #000000;
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transition: all 0.3s ease;
}

body.light-theme .red_item span {
    color: #000000;
    transition: color 0.3s ease;
}

body.light-theme .icono_red {
    fill: #000000;
    transition: fill 0.3s ease;
}

/* Estado Hover (Mouse encima del recuadro) */
body.light-theme .red_item:hover {
    background-color: #000000; /* Relleno negro del recuadro */
    border-color: #000000;
    transform: translateY(-3px);
}

body.light-theme .red_item:hover span {
    color: #ffffff;            /* Texto cambia a blanco */
}

body.light-theme .red_item:hover .icono_red {
    fill: #ffffff;             /* Logo SVG cambia a blanco */
}

/* --- SECCIÓN VIDEO VERTICAL 9:16 --- */
.seccion_video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.contenedor_video_tiktok {
    width: 100%;
    max-width: 340px;           /* Ancho tipo pantalla de smartphone */
    aspect-ratio: 9 / 16;      /* Proporción exacta de TikTok */
    border-radius: 20px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contenedor_video_tiktok:hover {
    transform: scale(1.02);    /* Efecto al pasar el cursor */
}

.contenedor_video_tiktok video {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* Ajusta y llena el contenedor sin estirar */
    display: block;
}

/* VENTANA CONTENEDORA DEL VIDEO */
.contenedor_video_tiktok {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.contenedor_video_tiktok video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ocultar botón flotante si existía anteriormente */
.btn_sonido {
    display: none !important;
}

/* --- SECCIÓN DE 3 VIDEOS EN FILA --- */
.seccion_videos {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.grid_videos_tiktok {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual tamaño */
    gap: 25px;                            /* Espacio entre cada video */
    max-width: 1100px;                    /* Ancho contenedor global */
    width: 100%;
}

.contenedor_video_tiktok {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;                 /* Proporción 9:16 estilo TikTok */
    border-radius: 18px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contenedor_video_tiktok:hover {
    transform: translateY(-5px);         /* Eleva suavemente el video al pasar el mouse */
    border-color: var(--texto-secundario);
}

.contenedor_video_tiktok video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE: En celulares se apilan verticalmente */
@media (max-width: 768px) {
    .grid_videos_tiktok {
        grid-template-columns: 1fr;      /* Pasa a 1 columna en pantallas pequeñas */
        max-width: 340px;
    }
}

/* --- ESTADOS DE SECUENCIA Y OSCURECIDO --- */
.contenedor_video_tiktok {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    
    /* Estado oscurecido por defecto */
    filter: brightness(0.35);
    opacity: 0.6;
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Estado encendido (Video reproduciéndose) */
.contenedor_video_tiktok.activo {
    filter: brightness(1);
    opacity: 1;
    border-color: var(--texto-secundario);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.contenedor_video_tiktok video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- CONTENEDOR DE CADA VIDEO --- */
.contenedor_video_tiktok {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    cursor: pointer;
    
    /* Estado oscurecido por defecto */
    filter: brightness(0.35);
    opacity: 0.6;
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Bloquea los controles nativos mientras el video está oscurecido */
.contenedor_video_tiktok video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Evita reproducir antes de encenderse */
}

/* --- ESTADO ACTIVO (ENCENDIDO) --- */
.contenedor_video_tiktok.activo {
    filter: brightness(1);
    opacity: 1;
    border-color: var(--texto-secundario);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

/* Permite usar la barra de controles nativa SOLO cuando está activo */
.contenedor_video_tiktok.activo video {
    pointer-events: auto;
}

/* ==========================================================================
   MEDIA QUERIES PARA ADAPTACIÓN RESPONSIVA (MÓVILES Y TABLETS)
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (Hasta 1024px) --- */
@media (max-width: 1024px) {
    .busqueda input {
        width: 100%;
        max-width: 380px;
    }

    .carrusel_contenedor {
        height: 500px;
    }
}

/* --- TELÉFONOS MÓVILES (Hasta 768px) --- */
@media (max-width: 768px) {
    /* Header estructurado verticalmente */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    .logo {
        justify-content: center;
        flex: none;
    }

    .img-logo {
        height: 65px; /* Reducción de escala para vista móvil */
    }

    .header-centro {
        width: 100%;
        justify-content: space-between;
    }

    .busqueda {
        flex: 1;
        margin-right: 10px;
    }

    .busqueda input {
        width: 100%;
        height: 40px;
    }

    .header-derecha {
        display: none; /* Oculta espacio vacío secundario en celulares */
    }

    /* Carrusel de ofertas adaptable */
    .carrusel_contenedor {
        width: 95%;
        height: auto;
        aspect-ratio: 4 / 5; /* Proporción óptima para visualización en teléfonos */
        max-height: 500px;
        margin: 15px auto;
    }

    .btn_carrusel {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .btn_prev { left: 8px; }
    .btn_next { right: 8px; }

    /* Sección de redes sociales */
    .contenedor_redes {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }

    .red_item {
        width: 100%;
        justify-content: center;
    }

    /* Videos organizados en formato vertical (1 columna) */
    .grid_videos_tiktok {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .contenedor_video_tiktok {
        max-width: 290px;
    }

    /* Ajuste de posición para el botón de WhatsApp y Tooltip */a
    .btn_whatsapp_flotante {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .icono_wsp {
        width: 30px;
        height: 30px;
    }

    .tooltip_wsp {
        display: none !important; /* Desactiva el tooltip en táctil para evitar sobreposición */
    }
}

@media (max-width: 768px) {
    .grid_videos_tiktok {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .contenedor_video_tiktok {
        width: 100%;
        max-width: 300px;
        scroll-margin-top: 20px; /* Margen para centrado óptimo al desplazarse */
    }

    .videoTikTok {
        width: 100%;
        border-radius: 12px;
    }
}

/* ==========================================================================
   ESTILOS PARA EL PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer_sitio {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #222;
}

.contenedor_footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
}

.columna_footer {
    flex: 1;
    min-width: 220px;
}

.logo_footer {
    height: 50px;
    margin-bottom: 15px;
}

.columna_footer p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.columna_footer h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e5b324; /* Color dorado representativo */
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.columna_footer ul li {
    margin-bottom: 10px;
}

.columna_footer ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.columna_footer ul li a:hover {
    color: #e5b324;
}

.barra_copyright {
    border-top: 1px solid #222;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888;
}

/* Adaptación para pantallas móviles */
@media (max-width: 768px) {
    .contenedor_footer {
        flex-direction: column;
        text-align: center;
    }

    .columna_footer {
        min-width: 100%;
    }
}

/* ==========================================================================
   ESTILOS PARA EL SUBMENÚ DE NAVEGACIÓN
   ========================================================================== */
.sub_nav {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.sub_nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.sub_nav ul li a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.sub_nav ul li a:hover {
    color: #e5b324; /* Tono dorado */
}

/* Adaptación responsiva para móviles */
@media (max-width: 768px) {
    .sub_nav {
        margin-top: 5px;
    }

    .sub_nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sub_nav ul li a {
        font-size: 13px;
    }
}

/* ==========================================================================
   ESTILOS DE CABECERA Y SUB-BARRA (PC Y MÓVIL)
   ========================================================================== */
header {
    display: flex;
    flex-direction: column; /* Apila el buscador y la sub-barra verticalmente */
    align-items: center;
    width: 100%;
    padding: 15px 5%;
    background-color: #050a14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
}

.header-centro {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 600px;
}

.busqueda {
    flex: 1;
}

.busqueda input {
    width: 100%;
}

/* SUB-BARRA EN COMPUTADORA (DEBAJO DEL BUSCADOR) */
.sub_nav {
    width: 100%;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.sub_nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.sub_nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.sub_nav ul li a:hover {
    color: #e5b324;
}

/* BOTÓN DE 3 LÍNEAS (OCULTO EN COMPUTADORA) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #e5b324; /* Dorado */
    border-radius: 2px;
}

/* --- ADAPTACIÓN EN TELÉFONOS (MÓVIL) --- */
@media (max-width: 768px) {
    .header-top {
        gap: 10px;
    }

    /* Muestra las 3 líneas al costado en teléfono */
    .hamburger {
        display: flex;
    }

    .img-logo {
        height: 50px;
    }

    /* La barra se oculta en teléfono hasta tocar las 3 líneas */
    .sub_nav {
        display: none;
        width: 100%;
        margin-top: 10px;
        padding-top: 0;
        border-top: none;
    }

    /* Clase activa al presionar el botón de 3 líneas */
    .sub_nav.active {
        display: flex;
    }

    .sub_nav.active ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
        background-color: #0d1629;
        border-radius: 8px;
    }
}

/* ==========================================================================
   ADAPTACIÓN DE HEADER Y FOOTER AL MODO CLARO
   ========================================================================== */

/* Modo Claro: Encabezado y navegación */
body.light-theme header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .sub_nav ul li a {
    color: #111111;
}

body.light-theme .sub_nav ul li a:hover {
    color: #d4a017;
}

body.light-theme .hamburger span {
    background-color: #111111;
}

/* Modo Claro: Cambio de Logos */
body.light-theme .logo-dorado {
    display: none;
}

body.light-theme .logo-negro {
    display: block;
}

/* Modo Claro: Pie de página (Footer) */
body.light-theme .footer_sitio {
    background-color: #f4f4f6;
    color: #222222;
    border-top: 1px solid #e0e0e0; 
}

body.light-theme .columna_footer p,
body.light-theme .columna_footer ul li a,
body.light-theme .barra_copyright {
    color: #444444;
}

body.light-theme .columna_footer h4 {
    color: #b8860b;
}

body.light-theme .columna_footer ul li a:hover {
    color: #b8860b;
}

body.light-theme .barra_copyright {
    border-top: 1px solid #e0e0e0;
}

/* Invertir color del logo del footer en modo claro */
body.light-theme footer img,
body.light-theme .footer_sitio img,
body.light-theme .columna_footer img {
    filter: brightness(0) invert(0);
}

/* Color igual al texto del buscador en Modo Oscuro (por defecto) */
header .sub_nav ul li a,
.sub_nav ul li a {
    color: #334155 !important; /* Mismo tono tenue del placeholder */
}

/* Estado al pasar el cursor por encima (Hover) */
header .sub_nav ul li a:hover,
.sub_nav ul li a:hover {
    color: #ffffff !important; /* Se ilumina al pasar el ratón */
}

/* Adaptación para Modo Claro (para mantener legibilidad en fondo blanco) */
body.light-theme header .sub_nav ul li a,
body.light-theme .sub_nav ul li a {
    color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme header .sub_nav ul li a:hover,
body.light-theme .sub_nav ul li a:hover {
    color: #000000 !important;
}

/* ==========================================================================
   ENCABEZADO FIJO (STICKY HEADER) PARA PC, TABLET Y MÓVIL
   ========================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que permanezca sobre el carrusel y las imágenes */
    width: 100%;
    background-color: #050a14; /* Mantener color de fondo predeterminado */
    transition: background-color 0.3s ease;
}

/* Soporte de fondo para Modo Claro */
body.light-theme header {
    background-color: #ffffff;
}

/* Si el sub_nav es un contenedor hermano fuera del header */
.sub_nav {
    position: sticky;
    top: 60px; /* Ajusta este valor a la altura exacta de tu header principal */
    z-index: 999;
}

