/* --- Paleta de Colores y Fuentes Mejorada --- */
:root {
    --color-primary-light: #E0F7FA;
    --color-primary: #00BCD4;
    --color-primary-dark: #00838F;
    --color-secondary: #FFC107;
    --color-secondary-dark: #FFA000;
    --color-text-dark: #37474F;
    --color-text-light: #FFFFFF;
    --color-bg-light: #F7FAFC;
    --color-bg-dark: #263238;
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --font-display: 'Great Vibes', cursive;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.font-display { font-family: var(--font-display); }

/* --- Estilos de Componentes Mejorados --- */
.header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transition: all 0.3s ease;
}

.hero-section {
    position: relative; /* Necesario para el pseudoelemento de brillos */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1520856707275-595344389bf7?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden; /* Oculta los brillos que se salen del contenedor */
    color: var(--color-text-light); /* Asegura que el texto sea legible */
}

/* --- EFECTO DE BRILLITOS ALEATORIOS --- */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none; /* Permite interactuar con el contenido debajo */
    animation: randomSparkle 10s infinite;
}

@keyframes randomSparkle {
    0% {
        box-shadow: none;
    }
    10% {
        box-shadow: 
            0 0 5px 2px rgba(255, 255, 255, 0.7) at 20% 30%,
            0 0 3px 1px rgba(255, 255, 255, 0.5) at 70% 80%;
    }
    20% {
        box-shadow: 
            0 0 4px 1px rgba(255, 255, 255, 0.6) at 10% 60%,
            0 0 6px 3px rgba(255, 255, 255, 0.8) at 85% 20%;
    }
    30% {
        box-shadow: none;
    }
    40% {
        box-shadow: 
            0 0 5px 2px rgba(255, 255, 255, 0.7) at 40% 15%,
            0 0 3px 1px rgba(255, 255, 255, 0.5) at 60% 90%;
    }
    50% {
        box-shadow: none;
    }
    60% {
        box-shadow: 
            0 0 6px 3px rgba(255, 255, 255, 0.8) at 5% 50%,
            0 0 4px 1px rgba(255, 255, 255, 0.6) at 95% 70%;
    }
    70% {
        box-shadow: none;
    }
    80% {
        box-shadow: 
            0 0 5px 2px rgba(255, 255, 255, 0.7) at 30% 75%,
            0 0 3px 1px rgba(255, 255, 255, 0.5) at 80% 10%;
    }
    90% {
        box-shadow: none;
    }
    100% {
        box-shadow: none;
    }
}

/* Podemos añadir también algunos brillos con pseudoelementos adicionales si queremos más densidad */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1px, transparent 1px);
    background-size: 60px 60px, 90px 90px; /* Tamaños variados */
    background-position: 0 0, 30px 30px;
    animation: sparkleFade 8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes sparkleFade {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    25% {
        opacity: 0.3;
        transform: scale(1) rotate(45deg);
    }
    50% {
        opacity: 0;
        transform: scale(1.2) rotate(90deg);
    }
    75% {
        opacity: 0.3;
        transform: scale(1) rotate(135deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(180deg);
    }
}
/* --- FIN EFECTO DE BRILLITOS ALEATORIOS --- */


.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-text-dark);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Añadimos la transición para el borde */
    border: 2px solid transparent; /* Por defecto, el borde es transparente y no ocupa espacio extra */
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
     box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3); /* Sombra con el color #00BCD4 de tu paleta */
    border-color: var(--color-primary); /* ¡Aquí ocurre la magia! */
}
.product-card .image-aspect-ratio-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* Relación de aspecto más vertical */
    overflow: hidden;
}
.product-card .image-aspect-ratio-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- NUEVO: Estilo para el badge de 3 cuotas --- */
.installments-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #28a745; /* Verde éxito */
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- FILTROS DE CATEGORÍA REDUCIDOS --- */
.filter-btn {
    background-color: #fff;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
    padding: 0.25rem 0.75rem; /* Padding reducido */
    font-size: 0.75rem; /* Tamaño de fuente reducido */
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}
.filter-btn.active-filter {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- NUEVO: Estilo para el botón de filtro de 3 cuotas --- */
#installmentsFilterBtn {
    background-color: #e0f2fe;
    color: #0c4a6e;
    border: 2px solid #7dd3fc;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
#installmentsFilterBtn.active-filter {
    background-color: #0369a1;
    color: white;
    border-color: #0369a1;
}


.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}
.modal.visible {
    opacity: 1;
    visibility: visible;
}
.modal-box-content {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal.visible .modal-box-content {
    transform: scale(1);
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 1.5rem;
    bottom: 7rem;
    z-index: 30;
}

.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 30;
}
.floating-cart .cart-count {
    background-color: var(--color-primary-dark);
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Ocultar elementos para la animación */
.animated-item {
    opacity: 0;
}

/* --- Estilos de otros componentes (FAQ, Comentarios, etc.) --- */
.slogan-glow {
    font-weight: bold;
    text-shadow: 0 0 8px var(--color-primary-light), 0 0 15px var(--color-primary);
    animation: glow 2s infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 8px var(--color-primary-light), 0 0 15px var(--color-primary); }
    to { text-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary-dark); }
}

/* --- Estilos para el menú de navegación en móvil --- */
@media (max-width: 767px) {
    /* Solo el menú móvil */
    #mobileMenu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 80px; /* altura aproximada del header */
        left: 0;
        height: calc(100vh - 80px);
        background-color: rgba(4, 119, 134, 0.97);
        backdrop-filter: blur(5px);
        padding: 1rem 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        border-bottom-left-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
        z-index: 70;
    }

    #mobileMenu.open ul {
        display: flex;
    }
}

/* Cuando el menú está abierto: sin scroll y sin flotantes molestando */
body.menu-open {
    overflow: hidden;
}

body.menu-open .boton-flotante-libros,
body.menu-open .floating-cart,
body.menu-open .back-to-top {
    display: none !important;
}


/* Estilos para los modales adicionales (FAQ, Comentarios, etc.) */
.comments-modal-tab-button.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}
.faq-dot.active {
    background-color: var(--color-primary-dark);
}

/* --- INICIO: MEJORAS VISUALIZADOR DE IMÁGENES --- */
#imageEnlargePopup {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#enlargedMediaContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Para el swipe */
}

#enlargedMediaContainer img, #enlargedMediaContainer video, #enlargedMediaContainer iframe {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    position: absolute; /* Para transiciones */
    opacity: 0;
}

#enlargedMediaContainer .media-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

#enlargedMediaContainer .media-item.next {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
}

#enlargedMediaContainer .media-item.prev {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
}

.lightbox-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.lightbox-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
#prevMediaButton { left: 1rem; }
#nextMediaButton { right: 1rem; }

#closeEnlargePopup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    z-index: 20;
}

#lightbox-info {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    z-index: 20;
}

/* Tira de miniaturas */
#lightbox-thumbnails-container {
    width: 100%;
    flex-shrink: 0;
    background-color: rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
}
#lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.5rem;
    transition: transform 0.3s ease-in-out;
}
.lightbox-thumbnail-item {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
    position: relative;
}
.lightbox-thumbnail-item.active {
    border-color: var(--color-primary);
    opacity: 1;
}
.lightbox-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.125rem;
}
.lightbox-thumbnail-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 0 5px black;
}
/* --- FIN: MEJORAS VISUALIZADOR DE IMÁGENES --- */

/* --- INICIO: ANIMACIÓN "VOLAR AL CARRITO" --- */
.fly-to-cart {
    position: fixed;
    z-index: 100;
    border-radius: 50%;
    transition: transform 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.8s ease-out;
    object-fit: cover;
}
/* --- FIN: ANIMACIÓN "VOLAR AL CARRITO" --- */

/* --- INICIO: ANIMACIÓN DE PULSO PARA EL CONTADOR DEL CARRITO --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-count.pulse {
    animation: pulse 0.5s ease-out;
}
/* --- FIN: ANIMACIÓN DE PULSO --- */

/* --- Estilos para el nuevo Modal de Detalles de Pago --- */
.payment-details strong {
    color: var(--color-text-dark);
}

/* --- INICIO: Estilos para el botón de Me Gusta --- */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-dark);
}

.like-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: color 0.2s ease-in-out;
    padding: 0;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.like-button:hover {
    /* El hover ya no necesita escalar por la animación continua */
}

.like-button.liked .fa-heart {
    color: #ef4444; /* Rojo corazón */
}

.like-count {
    font-weight: 600;
    font-size: 0.9rem;
}
/* --- FIN: Estilos para el botón de Me Gusta --- */

/* --- Estilos para Mensajes de Newsletter Popup --- */
#newsletterMessage.success {
    color: #16a34a; /* Verde éxito */
}

#newsletterMessage.error {
    color: #dc2626; /* Rojo error */
}

/* --- Estilo para el ícono de TikTok y efecto "clicame" --- */
.social-icon-link {
    position: relative;
    display: inline-block; /* Para que el pseudoelemento se posicione correctamente */
    margin: 0 0.5rem; /* Ajusta el margen si es necesario */
}

.social-icon-link .fa-brands, .social-icon-link .fa-tiktok-custom {
    color: var(--color-text-light); /* O el color que desees para los iconos */
    font-size: 2rem; /* Tamaño de los iconos */
    transition: transform 0.3s ease-out;
}

.social-icon-link:hover .fa-brands, .social-icon-link:hover .fa-tiktok-custom {
    transform: scale(1.1); /* Efecto de crecimiento al pasar el ratón */
}

/* Animación de "Clickename" */
.social-icon-link::after {
    content: "¡Click!"; /* Texto que aparecerá */
    position: absolute;
    bottom: 100%; /* Arriba del icono */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Ajusta posición inicial */
    background-color: var(--color-secondary); /* Fondo del mensaje */
    color: var(--color-bg-dark); /* Color del texto */
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    white-space: nowrap; /* Evita que el texto se rompa */
    pointer-events: none; /* Asegura que no bloquee el clic en el icono */
}

.social-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Posición final */
}

/* Custom icon para TikTok si no se usa Font Awesome */
/* Custom icon para TikTok si no se usa Font Awesome */
/* Custom icon para TikTok si no se usa Font Awesome */
.fa-tiktok-custom {
    display: inline-block;
    width: 1.1rem; /* Nuevo tamaño, un poco más chico */
    height: 1.1rem; /* Nuevo tamaño, un poco más chico */
    background-image: url('../Galeria/ttn.png'); /* Ruta relativa a la carpeta CSS */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align:top /* Alineación con el texto/otros iconos */
}
/* --- Estilos para el nuevo botón "Cargar Más" --- */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    overflow: hidden; /* Para contener los efectos */
    position: relative;
}

.load-more-btn .btn-text {
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* --- Estilos para el Spinner (Loader) --- */
.loader {
    display: none; /* Oculto por defecto */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px; /* Espacio entre el spinner y el texto */
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* --- Estilos para el estado de carga (:disabled) --- */
.load-more-btn:disabled {
    background: linear-gradient(135deg, #00838F, #006064); /* Un poco más oscuro */
    cursor: not-allowed;
    opacity: 0.8;
}

/* Ocultamos el ícono de la flecha cuando está cargando */
.load-more-btn:disabled i {
    display: none;
}

/* --- NUEVOS ESTILOS PARA LA REJILLA DE FOTOS (#photo-grid) --- */
/* --- ESTILOS UNIFICADOS PARA TODAS LAS MINIATURAS (FOTOS Y VIDEOS) --- */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
    margin-top: 1rem; /* Unifica el espacio superior */
}

.thumbnail-grid > div {
    width: 100%;
    height: 96px;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.thumbnail-grid > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.thumbnail-grid > div:hover img {
    transform: scale(1.05);
}

/* Icono de play para los videos dentro de la nueva rejilla */
.thumbnail-grid .play-icon-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.thumbnail-grid > div:hover .play-icon-wrapper {
    opacity: 1;
}

.thumbnail-grid .play-icon-wrapper i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 8px black;
}

/* --- Estilos para la sección de Experiencias de Clientes --- */
.customer-experiences {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-title-gold {
    color: var(--color-secondary-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* --- Estilos del Carrusel de Videos --- */
/* --- NUEVOS ESTILOS PARA CARRUSEL DE VIDEOS VERTICALES (REELS) --- */
.customer-experiences {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.section-title-gold {
    color: var(--color-secondary-dark);
    position: relative;
    padding-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3.5rem;
}

.section-title-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.video-carousel {
    position: relative;
    padding: 0 40px; /* Espacio para las flechas en los costados */
}

.video-carousel-wrapper {
    overflow: hidden;
}

.video-carousel-inner {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-carousel-slide {
    width: 100%; /* Por defecto, en móvil, cada video ocupa el 100% */
    flex-shrink: 0;
    padding: 0 10px; /* Un pequeño espacio entre videos */
    box-sizing: border-box;
}

/* En pantallas grandes, mostramos 3 videos a la vez */
@media (min-width: 768px) {
    .video-carousel-slide {
        width: calc(100% / 3);
    }
}

.aspect-ratio-reel {
    position: relative;
    padding-bottom: 177.77%; /* Formato REEL 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem; /* Bordes más redondeados */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.aspect-ratio-reel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Controles (Flechas) */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.carousel-control-prev { left: 0px; }
.carousel-control-next { right: 0px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

/* Indicadores (Puntos) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators button.active {
    background-color: var(--color-primary);
    transform: scale(1.3);
}
/* --- ESTILOS FINALES Y UNIFICADOS PARA CARRUSEL Y CORAZONES --- */
.customer-experiences {
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-title-gold {
    color: var(--color-secondary-dark);
    position: relative;
    padding-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3.5rem;
}

.section-title-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Contenedor principal del carrusel, establece el contexto de las capas */
.video-carousel {
    padding: 0 40px;
}

/* Capa 1: Fondo de corazones */
.background-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Está en el fondo */
}

/* Capa 2: El contenedor de los videos */
.video-carousel-wrapper {
    position: relative;
    z-index: 2; /* Por encima de los corazones */
    overflow: hidden;
}

.video-carousel-inner {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-carousel-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .video-carousel-slide {
        width: calc(100% / 3);
    }
}

.aspect-ratio-reel {
    position: relative;
    padding-bottom: 177.77%; /* Formato 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.aspect-ratio-reel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Capa 3: Controles (Flechas) */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 3; /* Por encima de los videos y corazones */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.carousel-control-prev { left: 0px; }
.carousel-control-next { right: 0px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

/* Capa 3: Indicadores (Puntos) */
.carousel-indicators {
    position: relative;
    z-index: 3; /* También por encima */
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators button.active {
    background-color: var(--color-primary);
    transform: scale(1.3);
}

/* Animación de los corazones (sin cambios) */
.background-hearts::before,
.background-hearts::after {
    content: '💖';
    position: absolute;
    color: var(--color-primary-light);
    font-size: 2rem;
    opacity: 0;
    animation: floatHeart 15s infinite ease-in-out;
    will-change: transform, opacity;
}

.background-hearts::before {
    top: 80%;
    left: 10%;
    animation-delay: 0s;
    font-size: 1.5rem;
}

.background-hearts::after {
    top: 70%;
    right: 15%;
    animation-delay: 7s;
    font-size: 2.2rem;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    15%, 85% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-150px) scale(1.1);
    }
    100% {
        transform: translateY(-300px) scale(0.5);
        opacity: 0;
    }
}

/* --- ESTILOS PERSONALIZADOS PARA EL LOGO --- */
@keyframes logoGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4),
                0 0 20px rgba(255, 255, 255, 0.3),
                0 0 30px rgba(0, 188, 212, 0.3),
                0 0 40px rgba(0, 188, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7),
                0 0 30px rgba(255, 255, 255, 0.5),
                0 0 40px rgba(0, 188, 212, 0.5),
                0 0 50px rgba(0, 188, 212, 0.3);
  }
}

.header-logo-img {
  height: 5rem; 
  width: 5rem;  
  transition: transform 0.3s ease; 
  animation: logoGlow 3s infinite ease-in-out; 
  position: relative;
  margin-bottom: -60px;
}

.header-logo-img:hover {
  transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
}

/* ---------- PÁGINA LIBROS ---------- */

.page-libros {
    background: #f5f5f8;
    color: #222;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    background: #111827;
    color: #fff;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.main-nav a.active {
    background: #f97316;
    color: #111827;
}

/* HERO LIBROS */

.hero-libros {
    padding: 3.5rem 1.5rem 2.5rem;
    background: radial-gradient(circle at top left, #4b5563, #020617);
    color: #f9fafb;
    text-align: center;
}

.hero-libros-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-libros h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.hero-libros p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* CATÁLOGO LIBROS */

.catalogo-libros {
    padding: 2.5rem 1.5rem 3.5rem;
}

.catalogo-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.catalogo-inner h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.catalogo-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #6b7280;
}

/* GRID DE LIBROS */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.book-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
}

.book-cover {
    width: 100%;
    height: 260px;
    object-fit: contain;
}


.book-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111827;
}

.book-sinopsis {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* BOTONES DE PLATAFORMA */

.book-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.btn-book {
    flex: 1 1 30%;
    padding: 0.5rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Podés ajustar colores a tu paleta */

.btn-gplay {
    background: #1d4ed8;
    color: #f9fafb;
}

.btn-amazon {
    background: #f59e0b;
    color: #111827;
}

.btn-kobo {
    background: #ffffff;
    color: #111827;
    border: 1px solid #9ca3af;
}

/* FOOTER */

.site-footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}
/* Badge de advertencia (por ejemplo +18) para los libros */
.book-warning-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #b91c1c;  /* Rojo advertencia */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.35);
}

/* Botón flotante a la página de libros */
/* --- BOTÓN FLOTANTE LIBROS (SIEMPRE FIJO) --- */
.boton-flotante-libros {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 60;          /* por encima del contenido, debajo de los modales grandes */
}

.btn-libros-flotante {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #f97316;
    color: #111827;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 260px;
}

.btn-libros-flotante:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

/* Textos desktop vs mobile */
.label-libros-desktop { display: none; }
.label-libros-mobile { display: inline; }

/* En pantallas grandes agrandamos un poquito y mostramos el texto largo */
@media (min-width: 768px) {
    .btn-libros-flotante {
        font-size: 1rem;
        max-width: none;
    }
    .label-libros-desktop { display: inline; }
    .label-libros-mobile { display: none; }
}


/* Cuando el menú móvil está abierto, oculto botones flotantes y volver arriba */
body.menu-open .boton-flotante-libros,
body.menu-open .floating-cart,
body.menu-open .back-to-top {
    display: none !important;
}
/* Texto del logo más sobrio */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #ffffff;
}

/* En pantallas chicas, solo dejamos el logo redondo */
@media (max-width: 640px) {
    .logo-text {
        display: none;
    }

    .header-logo-img {
        height: 3.2rem;
        width: 3.2rem;
        margin-bottom: 0;      /* para que no quede raro el espacio */
    }
}
@media (min-width: 641px) {
    .logo-text {
        font-size: 1.05rem;
    }
}
/* ================================================================== */
/* === ESTILOS PARA LA PÁGINA DE LIBROS (NUEVO) === */
/* ================================================================== */

/* Define la posición y el contenedor de las tarjetas de libros */
.book-card {
    position: relative; /* Esencial para que las etiquetas floten encima */
}

/* Estilo común para TODAS las etiquetas (badges) */
.book-warning-badge, 
.book-status-badge {
    position: absolute;
    top: 10px;          /* 10px desde arriba */
    right: 10px;         /* 10px desde la derecha */
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    z-index: 2;
}

/* Estilo para la etiqueta de advertencia (+18) */
.book-warning-badge {
    background-color: #d9534f; /* Color Rojo */
}

/* Estilo para la etiqueta de estado (Próximamente) */
.book-status-badge {
    background-color: #428bca; /* Color Azul */
    /* Si la etiqueta +18 también está, la empuja hacia abajo */
    top: calc(10px + 30px); 
}

/* Ajuste si AMBAS etiquetas están presentes */
.book-card[data-advertencia][data-estado] .book-status-badge {
    top: 44px; /* (10px de margen + 30px de la primera etiqueta + 4px de espacio) */
}




