/* ======================== */
/*    ESTILOS GENERALES     */
/* ======================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

:root {
    --color-primario: #1a1a1a;
    --color-secundario: #f4f4f4;
    --color-acento: #bca07d;
    --color-blanco: #ffffff;
    --color-magenta-libro: #D42E84; 
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-texto: 'Montserrat', sans-serif;
    --fuente-manuscrita: 'Caveat', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-texto);
    color: var(--color-primario);
    line-height: 1.6;
}

body.libro-page {
    padding-top: 70px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem; /* Espacio por defecto para títulos SIN línea */
}

/* Reduce el margen de H2 si va seguido de la línea, para un espaciado consistente */
h2:has(+ .header-line) {
    margin-bottom: 1.5rem;
}

section {
    padding: 6rem 0;
}

/* ======================== */
/*          HEADER          */
/* ======================== */
header {
    background-color: rgba(26, 26, 26, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* ======================== */
/*     LOGO MENÚ MÓVIL      */
/* ======================== */
.nav-logo-mobile {
    display: none; /* Oculto en escritorio por defecto */
}
/* --- AJUSTE DE LA NAVEGACIÓN --- */
nav {
    display: flex;
    justify-content: center; /* Centra el contenido */
    align-items: center;
    height: 70px;
}

.nav-title {
    margin-right: 2rem; /* Espacio reducido entre el título y el menú */
}

.nav-title h1 {
    font-size: 2rem;
    color: var(--color-blanco);
    line-height: 1;
    margin: 0;
    letter-spacing: 0.1rem;
}

#mobile-menu-toggle {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
}

/* --- ESTILOS DEL MENÚ MEJORADOS --- */
nav ul li {
    padding: 0 0.5rem; /* Espaciado entre elementos */
}

nav ul li a, nav ul li a:visited {
    color: var(--color-acento);
    text-decoration: none;
    padding: 1rem 0.5rem; 
    font-family: var(--fuente-titulos);
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Línea animada para el hover */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px; 
    background-color: var(--color-blanco);
    bottom: 0.7rem; 
    left: 0;
    transform: scaleX(0);
    transform-origin: center; 
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

nav ul li a:hover {
    color: var(--color-blanco);
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    transform: scaleX(1);
}


/* ================================================== */
/*   HERO DINÁMICO   */
/* ================================================== */
.hero-dynamic {
    position: relative;
    height: 100vh;
    color: var(--color-blanco);
    overflow: hidden;
}

.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1;
}

.hero-background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-tabs-container {
    position: absolute;
    z-index: 3;
    bottom: 15rem;
    right: 2rem;
    text-align: right;
}

.hero-tab {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-tab:last-child {
    border-bottom: none;
}

.hero-tab.active {
    opacity: 1;
}

.hero-tab h2 {
    font-size: 2.5rem;
    text-align: right;
    margin: 0;
}

.hero-tab p {
    font-size: 1.1rem;
    margin: 0;
}

.hero-tabs-mobile {
    display: none; /* Oculto por defecto */
}

/* ======================== */
/*  ESTILOS SOBRE MÍ  */
/* ======================== */
#sobre-mi {
    background-color: var(--color-secundario);
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.header-line {
    width: 80px;
    height: 4px;
    background-color: var(--color-acento);
    margin: 0 auto 2.5rem auto;
}

/* === NUEVO ESTILO: LÍNEA SEPARADORA PARA SUBTÍTULOS === */
.subtitle-line {
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--color-acento);
    margin: 1rem 0 1.5rem 0;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-quote {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-acento);
    margin: 2.5rem 0;
    border: none;
    padding: 0;
}

/* ======================================================= */
/* === ESTILOS PARA LOGO EMERGENTE (POPUP) - CORREGIDO === */
/* ======================================================= */
.link-with-logo-popup {
    position: relative;
    display: inline-block; 
}

.logo-popup {
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 160px; 
    pointer-events: none; 
}

.logo-popup img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-popup.visible {
    opacity: 1;
    visibility: visible;
}

/* === NUEVO ESTILO PARA EL ENLACE ROSA (CARRERA Y FÓRMULA) === */
.link-carrera-rosa,
.link-formula-rosa {
    color: var(--color-magenta-libro) !important;
    border-bottom-color: var(--color-magenta-libro) !important;
}

.link-carrera-rosa:hover,
.link-formula-rosa:hover {
    color: #b3226c !important; /* Un rosa más oscuro para el hover */
}


/* ======================== */
/*    SECCIÓN PORTFOLIO     */
/* ======================== */
#portfolio {
    background-color: var(--color-blanco);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--color-blanco);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center 25%;
    background-color: #e9e9e9;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-acento);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ======================== */
/*      SECCIÓN EVENTOS      */
/* ======================== */
#prensa, #habilidades {
    background-color: var(--color-blanco);
    text-align: center;
}

.events-list p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.eventos-imagen {
    display: block;
    max-width: 100%;
    width: 700px;
    margin: 0rem auto 3rem auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.event-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.event-tags span {
    background-color: var(--color-secundario);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.event-tags span:hover {
    background-color: var(--color-acento);
    color: var(--color-blanco);
    border-color: var(--color-acento);
}

/* Ocultamos las viejas flechas en TODAS las vistas */
.carousel-navigation {
    display: none;
}

/* Ocultamos el botón "Ver más" por defecto (en escritorio) */
.toggle-events-button {
    display: none;
}


/* ======================== */
/*     SECCIÓN CONTACTO     */
/* ======================== */
#contacto {
    background-color: var(--color-primario);
    color: var(--color-blanco);
    text-align: center;
}

#contacto h2 {
    color: var(--color-blanco);
}

#contacto p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.email-link {
    font-size: 1.5rem;
    color: var(--color-acento);
    text-decoration: none;
    transition: opacity 0.3s;
}

.email-link:hover {
    opacity: 0.8;
}

.social-icons {
    margin-top: 3rem;
}

.social-icons a {
    color: var(--color-blanco);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--color-acento);
    transform: translateY(-5px);
}

/* ======================== */
/*          FOOTER          */
/* ======================== */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-social-icons {
    margin-bottom: 1.5rem;
}

.footer-social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social-icons a:hover {
    color: var(--color-acento);
    transform: translateY(-3px);
}

/* ================================================== */
/*   ESTILOS DE GALERÍA DE EVENTOS (SISTEMA ÚNICO)    */
/* ================================================== */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 4rem auto;
    font-size: 1.1rem;
}

/* Cuadrícula simple y adaptable para TODAS las galerías de eventos */
.simple-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.simple-photo-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.simple-photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.simple-photo-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    text-align: center;
}

.simple-photo-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-overlay p {
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}


/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox.visible { display: block; }

.lightbox-content {
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: opacity 0.15s ease-in-out;
}

#lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    height: 30px;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    color: white;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    user-select: none;
    top: 50%; 
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    text-align: center;
    line-height: 40px;
    font-size: 28px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    z-index: 3001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(220, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
    color: white;
}

/* ==================================================== */
/*   ESTILOS Y EFECTOS PARA LA PORTADA DEL LIBRO      */
/* ==================================================== */
.book-link {
    text-decoration: none;
    display: inline-block;
    pointer-events: none;
}

#escritora-tab.active .book-link {
    pointer-events: auto;
}

.tab-detail-image {
    position: absolute;
    height: 150px;
    width: auto;
    right: 10%;
    top: 180%;
    transform: translateY(-50%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.3s ease;
    transition-delay: 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0px rgba(188, 160, 125, 0);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(188, 160, 125, 0.7);
    }
}

.hero-tab.active .tab-detail-image {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

.book-link:hover .tab-detail-image {
    animation: none;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(188, 160, 125, 0.8);
}

.book-link:active .tab-detail-image {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

@keyframes mobile-book-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.3), 0 0 0px rgba(188, 160, 125, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.4), 0 0 12px rgba(188, 160, 125, 0.7);
    }
}

/* =================================== */
/*   ENLACE FÓRMULA TRIPLE ROSA         */
/* =================================== */
.formula-rosa-link {
    color: var(--color-magenta-libro);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 46, 132, 0.5);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.formula-rosa-link:hover {
    border-bottom-color: var(--color-magenta-libro);
    opacity: 0.8;
}

/* ======================== */
/*   ESTILOS PÁGINA LIBRO   */
/* ======================== */

.section-gray {
    background-color: var(--color-secundario);
}

#libro-hero {
    background-color: var(--color-blanco);
    padding-top: 6rem; 
    padding-bottom: 6rem;
}

.libro-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.libro-hero-img {
    flex-basis: 40%;
    text-align: center;
}

.libro-hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.libro-hero-text {
    flex-basis: 60%;
}

.libro-hero-text h2 {
    text-align: left;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.subtitulo-libro {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.autor-cita {
    font-size: 1rem;
    color: #777;
    margin-bottom: 2rem;
}

.buy-button {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pie-de-foto-portada {
    font-size: 0.9rem;
    text-align: center;
    color: #555;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.pie-de-foto-portada strong {
    color: var(--color-primario);
}

#sinopsis, #cita-tio {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.sinopsis-content,
.sinopsis-content-reversed {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.sinopsis-text {
    flex-basis: 65%;
}

.sinopsis-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.sinopsis-text p {
    margin-bottom: 1.5rem;
}

.sinopsis-img {
    flex-basis: 35%;
}

.sinopsis-img img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pie-de-foto {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    margin-top: 1rem;
}

.sinopsis-content-reversed .sinopsis-text {
    order: 1;
}

.sinopsis-content-reversed .sinopsis-img {
    order: 2;
}

#arte-libro .arte-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
}

#arte-libro .arte-item {
    flex-basis: 40%;
}

#arte-libro .arte-text {
    flex-basis: 60%;
}

#arte-libro .arte-text a {
    color: var(--color-primario);
    text-decoration: underline;
    text-decoration-color: var(--color-acento);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.3s;
}

#arte-libro .arte-text a:hover {
    color: var(--color-acento);
}

.text-magenta {
    color: var(--color-magenta-libro);
}

#arte-libro .arte-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sinopsis-text blockquote,
#arte-libro .arte-text blockquote {
    font-family: var(--fuente-titulos);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-acento);
    border-left: 4px solid var(--color-acento);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

#arte-libro .arte-text blockquote {
    margin-bottom: 2rem;
}

#arte-libro .arte-text blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--fuente-texto);
    font-style: normal;
}

.video-icon-trigger {
    color: var(--color-acento);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.2s, color 0.2s;
}

.video-icon-trigger:hover {
    transform: scale(1.2);
    color: var(--color-acento);
}

/* ==================================================================== */
/* === ESTILOS GENERALES PARA MODALES (VIDEO Y CARTA) === */
/* ==================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Estilos para el modal de VIDEO (el blanco) y otros modales similares */
#video-modal .modal-content,
#purchase-modal .modal-content {
    background-color: var(--color-blanco);
    color: var(--color-primario);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible #video-modal .modal-content,
.modal-overlay.visible #purchase-modal .modal-content {
    transform: scale(1);
}

#video-modal h3,
#purchase-modal h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#video-modal p,
#purchase-modal p {
    color: #666;
    margin-bottom: 2rem;
}

#video-modal .modal-close,
#purchase-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}

#video-modal .modal-close:hover,
#purchase-modal .modal-close:hover {
    color: var(--color-primario);
    transform: scale(1.1);
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-button {
    display: block;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    text-decoration: none;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.modal-button:hover {
    background-color: #a78d6b;
    transform: scale(1.03);
}

.letter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    margin-right: 1rem;
}

.letter-button:hover {
    background-color: #a78d6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==================================================================== */
/* === ESTILOS CARTA DE LA AUTORA (MODAL) === */
/* ==================================================================== */

#letter-modal .modal-content {
    background: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

#letter-modal .modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2010;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    line-height: 1;
    text-shadow: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

#letter-modal.visible .modal-close {
    opacity: 1;
    pointer-events: auto;
}

#letter-modal .modal-close:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.envelope {
    position: absolute;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16 / 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2001;
}

.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: #c5b9a5;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e0d5c6;
    transform-origin: top;
    clip-path: polygon(0 0, 100% 0, 50% 55%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2003;
}

.letter-body {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    max-height: 800px;
    background-color: #f9f5ef;
    background-image: linear-gradient(rgba(239, 233, 224, 0.5), rgba(239, 233, 224, 0.5)), url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    box-shadow: 0 0 40px rgba(0,0,0,0.3), inset 0 0 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow-y: auto;
    padding: 3rem 3rem 5rem 3rem;
    z-index: 2002;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
}

.modal-overlay.visible .envelope-flap {
    transform: rotateX(180deg);
    transition-delay: 0.2s;
}

.modal-overlay.visible .envelope {
    transform: translate(-50%, 100%) scale(0.8);
    transition-delay: 0.8s;
}

.modal-overlay.visible .letter-body {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition-delay: 0.8s;
}

.letter-body p {
    font-family: var(--fuente-manuscrita);
    font-size: 1.8rem;
    line-height: 2.2;
    color: #3a332a;
    margin-bottom: 2rem;
    text-align: left;
}

.letter-signature {
    margin-top: 2rem;
    font-family: var(--fuente-manuscrita);
    font-size: 1.9rem;
    color: #3a332a;
    text-align: right;
    padding: 0;
    background: transparent;
}

.letter-signature strong {
    color: #8c765a;
}

.letter-body::-webkit-scrollbar { width: 10px; }
.letter-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.letter-body::-webkit-scrollbar-thumb { background: #d3c4ac; border-radius: 10px; border: 2px solid #f9f5ef; }
.letter-body::-webkit-scrollbar-thumb:hover { background: var(--color-acento); }

#book-trailer {
    background-color: var(--color-primario);
    padding: 6rem 0;
}

#book-trailer h2 {
    color: var(--color-blanco);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container p {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#galeria-libro {
    background-color: var(--color-secundario);
}

#prensa-libro {
    padding: 6rem 0;
    background-color: var(--color-secundario);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background-color: var(--color-blanco);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-primario);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--color-acento);
}

.media-card-logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 120px;
}

.media-card-logo-container img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

.media-card-text {
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.media-card-text h4 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    color: var(--color-primario);
}

.media-card-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* =================================== */
/*   ESTILOS NUEVA GALERÍA INTERACTIVA (CORREGIDO) */
/* =================================== */
#galeria-interactiva,
.galeria-interactiva-container {
    display: flex;
    gap: 2rem;
    background-color: var(--color-blanco);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.galeria-principal {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
}


.galeria-bg-desenfocado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.8);
    transform: scale(1.2);
    transition: background-image 0.6s ease-in-out;
}

.imagen-principal {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transition: opacity 0.4s ease-in-out;
}

.descripcion-principal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--color-blanco);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    z-index: 3;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

.galeria-principal:hover .descripcion-principal,
.descripcion-principal.visible-temporarily {
    opacity: 1;
    transform: translateY(0);
}

.galeria-lista-miniaturas {
    flex-basis: 180px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 600px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.galeria-lista-miniaturas::-webkit-scrollbar {
    display: none;
}

.miniatura-item {
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

.miniatura-item:hover {
    transform: scale(1.05);
    opacity: 1;
}

.miniatura-item.active {
    border-color: var(--color-acento);
    opacity: 1;
    transform: scale(1.08);
}

.miniatura-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.miniatura-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 0.5rem 0.5rem;
    pointer-events: none;
}

.miniatura-descripcion {
    color: var(--color-blanco);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================================== */
/*   BARRA DE RETORNO ELEGANTE */
/* ===================================================== */
.return-bar {
    background-color: var(--color-blanco);
    border-bottom: 1px solid #e8e8e8;
}

.return-bar .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.breadcrumb-return-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.breadcrumb-return-link i {
    font-size: 0.8rem;
}

.breadcrumb-return-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--color-acento);
    bottom: -6px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.breadcrumb-return-link:hover {
    color: var(--color-primario);
}

.breadcrumb-return-link:hover::after {
    transform: scaleX(1);
}

/* =================================== */
/*   BOTÓN VOLVER ARRIBA       */
/* =================================== */
#volver-arriba-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background-color: var(--color-magenta-libro);
    color: var(--color-blanco);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

#volver-arriba-btn:hover {
    background-color: #b3226c; 
    transform: translateY(-2px);
}

#volver-arriba-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =================================== */
/*   NUEVA ANIMACIÓN DE BARRIDO DE LUZ   */
/* =================================== */
@keyframes shine-sweep {
    0% {
        transform: translateX(-110%) skewX(-25deg);
    }
    100% {
        transform: translateX(110%) skewX(-25deg);
    }
}

/* ==================================================== */
/*   ESTILOS PARA LA ANOTACIÓN "CLICK AQUÍ" DEL LIBRO   */
/* ==================================================== */
.click-annotation {
    position: absolute;
    top: 130%; 
    right: 30%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#escritora-tab.active .click-annotation {
    opacity: 1;
    transform: translateY(0);
}

.annotation-text {
    font-family: var(--fuente-manuscrita);
    font-size: 2rem;
    color: var(--color-blanco);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin-bottom: -25px; 
}

.annotation-arrow {
    width: 100px;
    height: 100px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.7));
    animation: bounce-arrow 2s infinite;
    animation-delay: 1.5s;
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ======================================================= */
/* --- ESTILOS PARA LA PÁGINA DE COMUNICACIÓN Y ENLACES --- */
/* ======================================================= */
.comunicacion-content {
    max-width: 800px;
    margin: 0 auto;
}

.comunicacion-section {
    margin-bottom: 4rem;
}

.comunicacion-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 0.5rem;
    display: inline-block;
    line-height: 1.3;
}

.comunicacion-section h3 .brand-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--fuente-texto);
    color: #555;
    margin-top: 0.25rem;
    border-bottom: none;
    padding-bottom: 0;
}

.comunicacion-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link .project-card h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.project-card-link .project-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-acento);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.project-card-link:hover .project-card h4 {
    color: var(--color-acento);
}

.project-card-link:hover .project-card h4::after {
    transform: scaleX(1);
}

.card-link-indicator {
    display: none;
}

/* ======================================================= */
/* --- ESTILOS PARA INTRODUCCIONES DE PÁGINA --- */
/* ======================================================= */
.page-introduction {
    max-width: 750px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* INICIO: CORRECCIÓN DE ESTILOS PARA IMÁGENES INTERCALADAS */
.interstitial-image-container {
    max-width: 350px;
    margin: 1rem auto; /* Centrado en móvil */
    width: 100%;
}

.interstitial-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.interstitial-image-container figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .interstitial-image-container.left {
        float: left;
        margin-right: 2rem;
        margin-left: 0;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    .interstitial-image-container.right {
        float: right;
        margin-left: 2rem;
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}
/* FIN: CORRECCIÓN DE ESTILOS */


/* ======================================= */
/* === NUEVO DISEÑO SECCIÓN DE COMPRA === */
/* ======================================= */
#comprar-libro {
    background-color: var(--color-secundario);
}

.compra-container {
    display: flex;
    gap: 3rem;
    background-color: var(--color-blanco);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid #e8e8e8;
}

.compra-portada {
    flex: 0 0 320px;
    background-color: var(--color-magenta-libro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.compra-portada img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.compra-info {
    padding: 2.5rem;
    flex-grow: 1;
}

.compra-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.compra-info > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 500px;
}

.formato-compra h4 {
    font-size: 1.5rem;
    color: var(--color-primario);
    margin-bottom: 0.5rem;
}

.formato-compra p {
    margin-bottom: 1.5rem;
}

.ediciones-info {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.compra-divisor {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}

.btn-compra {
    display: inline-block;
    background-color: var(--color-magenta-libro);
    color: var(--color-blanco);
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-compra:hover {
    background-color: #b3226c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 46, 132, 0.3);
}

.btn-compra.btn-once {
    background-color: #006a4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-compra.btn-once:hover {
    background-color: #00523a;
    box-shadow: 0 6px 15px rgba(0, 106, 77, 0.3);
}

.btn-compra.btn-once img {
    height: 24px;
    width: auto;
}

.locutora-img {
    display: block;
    max-width: 250px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ======================================================= */
/* ===   NUEVOS ESTILOS: PÁGINA DE EVENTOS (v2)        === */
/* ======================================================= */
#eventos-header {
    padding-top: 0;
    padding-bottom: 4rem;
}

.eventos-page-hero {
    width: 100%;
    height: 65vh;
    max-height: 550px;
    margin-bottom: 4rem;
}

.eventos-page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% 22%; /* Ajustado horizontal y verticalmente */
}

#eventos-header .container h2 {
    margin-bottom: 1.5rem;
}

#eventos-header .container .section-intro {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

#events-gallery-section {
    background-color: var(--color-secundario);
    padding: 5rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    background-color: var(--color-blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.event-card-image {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
}

.event-card-image img,
.event-card-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card-link:hover .event-card-image img,
.event-card-link:hover .event-card-image video {
    transform: scale(1.05);
}

.event-card-content {
    padding: 1.5rem;
    text-align: center;
}

.event-card-content h4 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.event-card-content p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* ======================== */
/*      RESPONSIVE DESIGN   */
/* ======================== */
@media (max-width: 900px) {
    #galeria-interactiva,
    .galeria-interactiva-container {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    .galeria-principal { min-height: 50vh; }
    .galeria-lista-miniaturas {
        flex-basis: auto;
        overflow-y: initial;
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        padding-bottom: 1rem;
        padding-right: 0;
    }
    .miniatura-item {
        margin-bottom: 0;
        flex: 0 0 120px;
    }
       
    .compra-container {
        flex-direction: column;
        gap: 0;
    }
    .compra-portada {
        flex-basis: auto;
        height: 400px;
        width: 100%;
    }
    .compra-info {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    nav {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .nav-title {
        margin-right: 0;
    }

    .nav-title h1 {
        font-size: 1.4rem;
    }

    #mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--color-blanco);
        font-size: 2rem;
        cursor: pointer;
        z-index: 1001;
        padding: 0.5rem;
    }
    
    #nav-links {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        padding-top: 0;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
/* --- INICIO: AJUSTES FINALES LOGO MENÚ MÓVIL (SOLUCIÓN DEFINITIVA) --- */
.nav-logo-mobile {
    display: block;
    text-align: center;
    width: 100%;
    padding-top: 0.75rem; /* Mantenemos el espacio sobre el logo */
    padding-bottom: 0.75rem; /* Este padding controla el espacio ENTRE el logo y la línea */
    margin: 0;
    border-bottom: 1px solid rgba(188, 160, 125, 0.2);
}

.nav-logo-mobile a {
    display: inline-block;
    padding: 0 !important; /* ¡ESTA ES LA CLAVE! Anula el padding de otros enlaces */
    line-height: 0; 
    position: relative;
    overflow: hidden;
}

.nav-logo-mobile a:hover {
    background-color: transparent !important; /* Evita el fondo gris al pasar el ratón */
}

.nav-logo-mobile img {
    max-width: 220px;
    height: auto;
    display: block; /* Correcto para eliminar espacio extra debajo de la imagen */
}

    #nav-links.nav-open {
        left: 0;
    }

    #nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    #nav-links a, #nav-links a:visited {
        font-family: var(--fuente-titulos);
        font-size: 1.1rem;
        font-weight: 400;
        padding: 0.6rem 1rem;
        border-radius: 5px;
        display: inline-block;
        width: 90%;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    #nav-links a:hover,
    #nav-links a:active {
        background-color: rgba(188, 160, 125, 0.15);
        color: var(--color-blanco);
    }

    #nav-links a::after {
        display: none;
    }
    #nav-links a:hover {
        transform: none;
    }


    .hero-dynamic {
        min-height: 100vh;
    }

    .hero-background-container {
        background-size: cover;
        z-index: 1;
    }

    .hero-tabs-container {
        width: 100%;
        bottom: 0;
        right: 0;
        height: auto;
    }
    
    .hero-tabs-desktop {
        display: none;
    }

    .hero-tabs-mobile {
        display: flex;
        position: absolute;
        bottom: 3.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        z-index: 10;
        padding: 0;
        background: none;
        border: none;
    }

    .mobile-tab-display {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        color: var(--color-blanco);
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .mobile-tab-display h2 {
        font-size: 1.3rem;
        font-family: var(--fuente-titulos);
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--color-blanco);
        margin: 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .mobile-tab-display h2.visible {
        opacity: 1;
    }
    
    #hero-dots-nav {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hero-dot.active {
        background-color: var(--color-blanco);
        transform: scale(1.3);
    }
    
    #mobile-book-link {
        display: none;
        position: relative;
        border-radius: 3px;
    }
    
    #mobile-book-link.visible {
        display: block;
        pointer-events: auto;
    }

    .mobile-book-image-wrapper {
        line-height: 0;
        overflow: hidden;
        border-radius: 3px;
        position: relative;
    }
    
    .mobile-book-image-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(
            to right, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(255, 255, 255, 0.5) 50%, 
            rgba(255, 255, 255, 0) 100%
        );
        animation: shine-sweep 3s infinite;
        animation-delay: 1.5s;
    }
    
    #mobile-book-link .tab-detail-image {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
        height: 40px;
        width: auto;
        border-radius: 3px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        animation: mobile-book-pulse 3s ease-in-out infinite;
    }
    
    #mobile-book-link:active .tab-detail-image {
        animation: none;
        transform: scale(0.95);
    }
    
    .hero-tab p {
        display: none;
    }
    
    .hero-tabs-desktop .tab-detail-image {
        display: none;
    }

    .about-quote {
        background-color: rgba(188, 160, 125, 0.15);
        padding: 1rem;
        border-radius: 8px;
        font-size: 1.1rem;
        position: relative;
        overflow: hidden;
    }

    
    .portfolio-grid {
        gap: 1.2rem;
    }

    .email-link {
        display: inline-block;
        background-color: var(--color-acento);
        color: var(--color-blanco);
        padding: 0.7rem 1.4rem;
        border-radius: 6px;
        font-size: 1.1rem;
        text-decoration: none;
    }

    .libro-hero-content,
    .sinopsis-content,
    .sinopsis-content-reversed,
    #arte-libro .arte-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .libro-hero-text h2 {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .sinopsis-content-reversed .sinopsis-text,
    .sinopsis-content-reversed .sinopsis-img {
        order: 0;
    }

    .sinopsis-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .libro-hero-img {
        max-width: 280px;
        margin: 0 auto;
        position: relative;
        cursor: default;
    }
    
    .libro-hero-img img {
        transition: transform 0.2s ease;
        animation: none;
    }

    .libro-hero-img:active img {
        transform: scale(0.97);
    }

    .click-annotation-desktop {
        display: none;
    }

.annotation-text-mobile {
    position: absolute;
    left: 115%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--fuente-manuscrita);
    font-size: 1.5rem;
    color: var(--color-blanco);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    pointer-events: none;
}

.annotation-arrow-mobile {
    position: absolute;
    left: 45%;
    top: 200%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    pointer-events: none;
}

#mobile-book-link.visible .annotation-text-mobile,
#mobile-book-link.visible .annotation-arrow-mobile {
    opacity: 1;
}

.annotation-arrow-mobile .annotation-arrow {
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.7));
    animation: bounce-arrow 2s infinite;
    animation-delay: 1.5s;
}

    .letter-body { 
        padding: 2.5rem 1.5rem;
    }
    .letter-body p { 
        font-size: 1.3rem; 
        line-height: 2; 
    }
    .letter-body .letter-signature { 
        font-size: 1.4rem; 
    }
    
    .simple-photo-grid {
        grid-template-columns: 1fr;
    }
    
    .compra-portada {
        height: 350px;
    }
    .compra-info {
        padding: 2rem 1.5rem;
    }
    .compra-info h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    .compra-info > p {
        text-align: center;
    }
    .formato-compra {
        text-align: center;
    }
    .btn-compra {
        display: block;
        width: 100%;
    }

    .comunicacion-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .comunicacion-gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background-color: #e0e0e0;
        border: 1px solid #ddd;
    }
    .comunicacion-gallery img:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }
    
    .comunicacion-section h3.centered-mobile-title {
        display: block;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .comunicacion-section h3.centered-mobile-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 2px;
        background-color: var(--color-acento);
        margin: 0.75rem auto 0 auto;
    }

    .comunicacion-section h3.centered-mobile-title .brand-name {
        text-align: center;
    }
    
    .eventos-imagen {
        width: 100%;
        margin: 1.5rem auto 2.5rem auto;
    }
    
    #dynamic-event-tags {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        align-items: stretch;
    }

    .event-tags button.event-tag-button {
        width: 100%;
        height: auto;
        min-height: 80px;
        padding: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.3;
        white-space: normal;
        display: none;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .event-tags button.event-tag-button:nth-child(-n+6) {
        display: flex;
    }

    #dynamic-event-tags.is-expanded .event-tag-button {
        display: flex;
    }

    .toggle-events-button {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 1rem;
        padding: 0.9rem 1rem;
        font-family: var(--fuente-titulos);
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        border: 1px solid var(--color-acento);
        background-color: transparent;
        color: var(--color-acento);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .toggle-events-button:hover {
        background-color: var(--color-acento);
        color: var(--color-blanco);
    }
    
    .eventos-page-hero {
        height: 40vh;
        margin-bottom: 3rem;
    }
    #eventos-header {
        padding-bottom: 3rem;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }

    .logo-popup {
        display: none;
    }
}

/* ======================================================= */
/* ===   ESTILOS PARA ESCRITORIO Y TABLET (CORREGIDO)    === */
/* ======================================================= */
@media (min-width: 769px) {
    #habecu-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }
    #habecu-gallery img:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
        height: 100%;
    }
    #habecu-gallery img:nth-child(4) {
        grid-column: span 2;
    }
    #habecu-gallery img:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }
}

/* ======================================================= */
/* --- ESTILOS PARA PÁGINA DE RADIO --- */
/* ======================================================= */
.custom-audio-player {
    width: 100%;
    margin-top: 1rem;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-audio-player::-webkit-media-controls-panel {
    background-color: #f9f9f9;
}
.custom-audio-player {
    accent-color: var(--color-acento);
}

.gallery-header {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.radio-link-container {
    text-align: center;
    margin-top: 2rem;
}

.radio-link-container a,
.radio-link-container a:visited {
    color: var(--color-acento);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--color-acento);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.radio-link-container a:hover {
    color: var(--color-primario);
    border-bottom-style: solid;
}

.radio-link-container i {
    font-size: 0.8em;
    margin-left: 0.5rem;
}

#radio-main .comunicacion-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
    .galeria-interactiva-container {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    .galeria-principal { min-height: 50vh; }
    .galeria-lista-miniaturas {
        flex-basis: auto;
        overflow-y: initial;
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        padding-bottom: 1rem;
        padding-right: 0;
    }
    .galeria-lista-miniaturas .miniatura-item {
        margin-bottom: 0;
        flex: 0 0 120px;
    }
}

/* ======================================================= */
/* === Estilos para los botones de eventos dinámicos (DISEÑO PREMIUM v2) === */
/* ======================================================= */

.event-tags button {
    font-family: var(--fuente-titulos);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--color-blanco);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    
    background: linear-gradient(145deg, #e4d4bb, #bca07d 50%, #a78d6b);
    
    padding: 0.9rem 2rem;
    border-radius: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-left: none;
    border-right: none;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-tags button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(188, 160, 125, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    color: var(--color-blanco);
}

.event-tags button:active {
    transform: translateY(-2px) scale(1.01);
}

.event-tags button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transform: translateX(-110%) skewX(-25deg);
}

.event-tags button:hover::after {
    opacity: 1;
    animation: shine-sweep 1.2s ease;
}

#eventos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#eventos-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#eventos-modal-content {
    background-color: var(--color-blanco);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#eventos-modal-overlay.visible #eventos-modal-content {
    transform: scale(1);
}

#eventos-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

#eventos-modal-close:hover {
    background: var(--color-acento);
    color: white;
    transform: rotate(90deg);
}

#eventos-modal-title {
    font-size: 2rem;
    color: var(--color-acento);
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

#eventos-modal-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-acento);
    margin: 1rem auto 1.5rem auto;
}
#eventos-modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.event-gallery-main-description {
    font-size: 1rem;
    color: #555;
    background-color: #f7f8fc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-acento);
    line-height: 1.6;
    min-height: 1.6em;
}

#eventos-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

#eventos-modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    #eventos-modal-content {
        padding: 2rem 1.5rem;
    }
    #eventos-modal-title {
        font-size: 1.5rem;
    }
    #eventos-modal-text {
        font-size: 1rem;
    }
}
.image-sidenote-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: all 0.5s ease;
}

.sidenote-text-content {
    flex: 1 1 65%;
    transition: flex-basis 0.5s ease;
}

.image-sidenote-trigger {
    color: var(--color-acento);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.image-sidenote-trigger:hover {
    color: var(--color-primario);
}

.sidenote-trigger-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-family: var(--fuente-texto);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative; /* Para el destello */
    overflow: hidden; /* Para el destello */
}

.sidenote-trigger-button:hover {
    background-color: #a78d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sidenote-trigger-button.sidenote-trigger {
    text-decoration: none;
    font-weight: 600;
}

/* EFECTO DE DESTELLO CONTINUO PARA EL BOTÓN */
.sidenote-trigger-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100% );
    transform: translateX(-150%) skewX(-25deg);
    animation: shine-sweep 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
}


.image-sidenote-trigger .fa-image {
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.image-sidenote-viewer {
    flex: 1 0 0px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    position: relative;
    transition: max-width 0.5s ease, opacity 0.4s ease, flex-basis 0.5s ease;
}

.image-sidenote-section.is-sidenote-visible .sidenote-text-content {
    flex-basis: 60%;
}

.image-sidenote-section.is-sidenote-visible .image-sidenote-viewer {
    flex-basis: 35%;
    max-width: 300px;
    opacity: 1;
}

.image-sidenote-viewer img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.sidenote-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 1.5rem;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.sidenote-close-btn:hover {
    background: var(--color-primario);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .image-sidenote-section {
        flex-direction: column;
    }
    .image-sidenote-viewer {
        max-height: 0;
    }
    .image-sidenote-section.is-sidenote-visible .sidenote-text-content {
        flex-basis: auto;
    }
    .image-sidenote-section.is-sidenote-visible .image-sidenote-viewer {
        flex-basis: auto;
        max-width: 100%;
        margin-top: 2rem;
        max-height: 500px;
    }
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-110%) skewX(-25deg);
    }
    100% {
        transform: translateX(110%) skewX(-25deg);
    }
}

@media (max-width: 768px) {
    .event-tags button::after {
        opacity: 1;
        animation: shine-sweep 4s ease-in-out infinite;
    }

    .event-tags button:nth-child(1)::after { animation-delay: -0.2s; }
    .event-tags button:nth-child(2)::after { animation-delay: -1.5s; }
    .event-tags button:nth-child(3)::after { animation-delay: -0.8s; }
    .event-tags button:nth-child(4)::after { animation-delay: -2.2s; }
    .event-tags button:nth-child(5)::after { animation-delay: -0.5s; }
    .event-tags button:nth-child(6)::after { animation-delay: -1.8s; }
    .event-tags button:nth-child(7)::after { animation-delay: -1.1s; }
    .event-tags button:nth-child(8)::after { animation-delay: -2.5s; }
}

#iframe-modal .modal-content {
    padding: 1rem;
    max-width: 900px;
    width: 90%;
    background-color: #000;
    border-radius: 8px;
    position: relative;
}

#iframe-modal .video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    background-color: #000;
}

#iframe-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* INICIO: CORRECCIÓN DEL BOTÓN DE CIERRE DEL MODAL DE VÍDEO */
#iframe-modal .modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    text-align: center;
    line-height: 40px;
    font-size: 28px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    z-index: 2001; /* Debe ser mayor que el z-index del overlay (2000) */
    transition: all 0.3s ease;
}

#iframe-modal .modal-close:hover {
    background: rgba(220, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
    color: white;
}
/* FIN: CORRECCIÓN DEL BOTÓN DE CIERRE */

/* ======================== */
/*   ESTILOS MODAL CONTACTO */
/* ======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content.contact-modal-content {
    background-color: var(--color-primario);
    color: var(--color-blanco);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(188, 160, 125, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content.contact-modal-content {
    transform: scale(1);
}

.contact-modal-content h2 {
    color: var(--color-acento);
    margin-bottom: 1.5rem;
}

.contact-modal-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-modal-content .email-link {
    font-size: 1.3rem;
    padding: 0.8rem 2rem;
}

.contact-modal-content .social-icons a {
    color: var(--color-blanco);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: var(--color-blanco);
    transform: scale(1.1);
}

/* === NUEVOS ESTILOS: LUPA DE ZOOM PERSONALIZADA === */
a.expandable-image {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

a.expandable-image img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

a.expandable-image::after {
    content: '\f00e'; /* Código del icono de lupa de Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--color-acento);
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

a.expandable-image:hover::after {
    opacity: 1;
    visibility: visible;
}

a.expandable-image:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

@media (max-width: 768px) {
    .modal-content.contact-modal-content {
        padding: 2.5rem 1.5rem;
    }
}
/* =================================== */
/*   INDICADOR DE SCROLL MENÚ MÓVIL    */
/* =================================== */
#scroll-indicator {
    display: none; /* Oculto por defecto en escritorio */
}

@media (max-width: 768px) {
    #scroll-indicator {
        display: block; /* Visible solo en móvil */
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--color-acento);
        font-size: 1.5rem;
        /* Línea corregida para evitar el error de sintaxis */
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        pointer-events: none; /* Para que no se pueda hacer clic en ella */
        opacity: 1;
        transition: opacity 0.3s ease;
        animation: bounce-down 2s infinite;
    }

    /* Clase para ocultar la flecha con JS */
    #scroll-indicator.is-hidden {
        opacity: 0;
        animation: none; /* Detenemos la animación al ocultar */
    }

    /* Animación de rebote sutil */
    @keyframes bounce-down {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(8px);
        }
        60% {
            transform: translateX(-50%) translateY(4px);
        }
    }
}