/* Base Styles */
:root {
    --color-white: #ffffff;
    --color-black: #111111;
    --color-gold: #99700a;
    --color-gold-light: #ab914e;
    --color-gray-trans: #33333346;
    --color-gray: #e4dfdf;
    --color-dark-gray: #333333;
    --font-primary: "Lato", sans-serif;
    --font-secondary: 'calibri', sans-serif;

    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

#auxiliar{
    height: 90px;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-gold);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--color-black);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Header------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0 0 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
width: 20%;
}
.logo img{
    width: 100%;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

/* Slider Styles-------------------------------------------------------------------------- */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide:nth-child(1) {
    background-image: linear-gradient(rgba(116, 113, 113, 0.5), rgba(116, 113, 113, 0.5)), url('imagenes/RAFAELA_0295 A BAJA.jpg');
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

.slide:nth-child(2) {
    background-image: linear-gradient(rgba(116, 113, 113, 0.5), rgba(116, 113, 113, 0.5)), url('imagenes/RAFAELA_0228 BAJA.jpg');
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

.slide:nth-child(3) {
    background-image: linear-gradient(rgba(116, 113, 113, 0.5), rgba(116, 113, 113, 0.5)), url('imagenes/RAFAELA_0157 BAJA.jpg');
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    max-width: 800px;
    padding: 0 20px;
    color: var(--color-white);
    z-index: 2;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}



/* Botones de navegación  */
.slider-controls {
    position: absolute;
    bottom: 98px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

/* Flechas */
.slider-controls .prev,
.slider-controls .next {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: static; /* IMPORTANTE: evita conflictos */
}

.slider-controls .prev:hover,
.slider-controls .next:hover {
    background-color: var(--color-gold);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: var(--color-gold);
    transform: scale(1.2);
}


/* SECTION SOBRE MI----------------------------------------------------------------------- */
.about {
    padding: 100px 0;
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    justify-self: center;
}
.image-placeholder img{
    width: 100%;
}


.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-gold-light), transparent);
    opacity: 0.3;
}

.about-text {
    flex: 1;
}

.container h3 {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-align: center;
}

/* Section LIBROS------------------------------------------------------------------------------------------ */
.books{
    padding: 100px 0;
    background-color: var(--color-gray);
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    justify-self: center;
    width: 80%;
}

/* Estilos para la sección de libros con funcionalidad "Leer más" */
.book-card {
    background-color: var(--color-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-bottom: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 600px; /* Altura fija para todas las tarjetas */
}

.book-card.book-expanded {
    height: auto !important; /* Forzar altura automática cuando está expandido */
    min-height: 600px; /* Mantener al menos la altura original */
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    background-color: var(--color-white);
    margin-bottom: 20px;
    margin-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.book-card h3 {
    font-size: 1.5rem;
    /* padding: 0 20px; */
    margin-bottom: 15px;
}

.book-card p {
    /* padding: 0 20px; */
    margin-bottom: 25px;
    color: var(--color-dark-gray);
    text-align: left;
}

.book-cover img {
    width: 70%;
    height: 100%;
    object-fit: contain;
}

.book-content {
    flex-grow: 1;
    padding: 0 20px;
    overflow: visible; /* Cambiado de hidden a visible para permitir expansión */
    display: flex;
    flex-direction: column;
}

.book-excerpt {
    margin-bottom: 15px;
}

.book-full-content {
    margin-top: 10px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.book-full-content.book-expanded {
    max-height: 1000px; /* Valor alto para asegurar que todo el contenido sea visible */
    opacity: 1;
}

.book-full-content p {
    margin-bottom: 15px;
}

.book-hidden {
    display: none;
}

.book-actions {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.book-read-more-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-read-more-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.book-read-more-btn.book-active {
    background-color: var(--color-gold);
    color: var(--color-white);
}


/*  SECTION TV Programa ----------------------------------------------------------------------------- */
.tv-program {
    padding: 100px 0;
    background-color: var(--color-white);
}

.tv-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tv-info {
    flex: 1;
}

.tv-info h3 {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}


.day {
    font-weight: 700;
    margin-right: 10px;
}

.time {
    color: var(--color-gold);
    margin-right: 10px;
}

.tv-video {
    flex: 1;
}

/* Estilos para el contenedor del video */
.tv-video {
    width: 100%;
    margin: 0 auto;
}

/* Estilos para el placeholder del video */
.video-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para la imagen de miniatura */
.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para el botón de reproducción */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Triángulo del botón de reproducción */
.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
}

/* Efecto hover para el botón de reproducción */
.video-placeholder:hover .play-button {
    background-color: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}



/* Estilos para el contenedor del iframe una vez cargado */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* SECTION de medios de comunicación---------------------------------------------------------------- */
.media-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.media-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.media-section .section-title {
    text-align: center;
    font-family: var(--font-primary);
    margin-bottom: 50px;
    color: var(--color-black);
}

/* Galería de clipping */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
    padding: 0 50px;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    /* height: 250px; */
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}


/* Carrusel de logos */
.media-logos-carousel {
    margin-top: 60px;
    padding: 30px 0;
}

.media-logos-carousel h3 {
    text-align: center;
    font-family: var(--font-primary);
    margin-bottom: 30px;
}

.logos-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 -20px;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 80%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 15)); /* Ajustar según el número de logos */
    }
}

/* Modal */
.media-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    animation: modalIn 0.5s;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#modalImage {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de pulsación para los logos */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Aplicamos el efecto a cada logo con un retraso diferente */
.logo-item:nth-child(1) { animation: pulse 6s infinite 0s; }
.logo-item:nth-child(2) { animation: pulse 6s infinite 1s; }
.logo-item:nth-child(3) { animation: pulse 6s infinite 2s; }
.logo-item:nth-child(4) { animation: pulse 6s infinite 3s; }
.logo-item:nth-child(5) { animation: pulse 6s infinite 4s; }
.logo-item:nth-child(6) { animation: pulse 6s infinite 5s; }
.logo-item:nth-child(7) { animation: pulse 6s infinite 0s; }
.logo-item:nth-child(8) { animation: pulse 6s infinite 1s; }
.logo-item:nth-child(9) { animation: pulse 6s infinite 2s; }
.logo-item:nth-child(10) { animation: pulse 6s infinite 3s; }
.logo-item:nth-child(11) { animation: pulse 6s infinite 4s; }
.logo-item:nth-child(12) { animation: pulse 6s infinite 5s; }

/* SECTION de  recomendaciones------------------------------------------------------------------- */
#recomendaciones-section{
    background-color: var(--color-gray);
    padding: 50px 0;
}
.recomendaciones {
    background-color: var(--color-gray);
    border-radius: 10px;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 70px 100px;
}

.testimonial {
    position: relative;
    /* padding: 50px; */
}

.testimonial-content {
    position: relative;
    background-color: white;
    padding: 40px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1;
}


.testimonial-content p {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-black);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    text-align: right;
    font-family: var(--font-secondary);
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--color-gold);
}



/* SECTION NOTICIAS----------------------------------------------------------------------------- */

/* Estilos para la sección de noticias */
.news {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news .section-title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-black);
}

/* Grid de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Tarjeta de noticia */
.news-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
}

.news-date {
    color: #777;
}

.news-category {
    color: var(--color-gold);
    font-weight: 600;
}

.news-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.news-text p {
    font-family: var(--font-secondary);
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Contenido expandible */
.news-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.news-full-content.hidden {
    display: none;
}

.news-full-content.expanded {
    max-height: 2000px; /* Valor alto para asegurar que todo el contenido sea visible */
    display: block;
    opacity: 1;
}

/* Botón Leer más */

.read-more-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}


/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
}
/* SECTION CONTACTO----------------------------------------------------------------------------- */
.contact {
    padding: 100px 0;
    background-color: var(--color-gray);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-gold);
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.form-group {
    margin-bottom: 20px;
}

.privacy-checkbox{
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Footer -------------------------------------------------------------------------------------------*/
footer {
    padding: 50px 0;
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

footer a {
    text-decoration: none;
    color: var(--color-white);
    transition: all 0.3s ease;

}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.footer-tagline {
    margin-bottom: 20px;
}

.footer-links {
    font-style: italic;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


/* Estilos para el sistema de gestión de cookies--------------------------------------------------- */

/* Banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    margin-bottom: 20px;
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.cookie-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept-all {
    background-color: var(--color-gold);
    color: white;
}

.cookie-accept-all:hover {
    background-color: var(--color-gold-light);
}

.cookie-configure {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-configure:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-reject-all {
    background-color: #444;
    color: white;
}

.cookie-reject-all:hover {
    background-color: #555;
}

/* Modal de configuración de cookies */
.cookie-config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-config-content {
    background-color: white;
    color: var(--color-black);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-config-header {
    padding: 15px 20px;
    background-color: var(--color-gold);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-config-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cookie-config-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-config-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.cookie-config-body p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0 0 0 15px;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cookie-config-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Switch para activar/desactivar cookies */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--color-gold);
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(18px);
}

/* Botón de configuración de cookies */
.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    background-color: var(--color-gold);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9998;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cookie-settings-button:hover {
    background-color: var(--color-gold-light);
}




/* Responsive Styles */

@media (min-width: 2560px){
    :root{
        font-size: 24px;

    }

    .news-grid{
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }
    .books-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 1024px){
    .books-grid {
        grid-template-columns: 1fr 1fr;
    }



}


@media (max-width: 992px) {
    .about-content, .tv-content, .contact-content {
        flex-direction: column;
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .books-grid {
        grid-template-columns: 1fr 1fr;
    }
    .books .container{
        padding: 0;
    }

}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .logo{
        width: 30%;
    }
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        margin: 0 5px 10px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-config-footer {
        flex-direction: column;
    }
    
    .cookie-config-footer .cookie-btn {
        width: 100%;
    }

    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .media-item {
        height: 200px;
    }
    
    .logo-item {
        width: 150px;
        margin: 0 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .testimonial-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .testimonial {
        padding: 50px;
    }
    .books-grid {
        grid-template-columns: 1fr 1fr;
    }
    .books .container{
        padding: 0;
    }
}

@media (max-width: 576px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
    }
    .books .container{
        padding: 0;
    }
}
@media (max-width: 480px) {
    .media-gallery {
        grid-template-columns: 1fr;
    }
    
    .logo-item {
        width: 120px;
        margin: 0 10px;
    }
    
    
}

@media (max-width: 425px){
    .logo{
        width: 65%;
    }
    .slider{
        height: 90% ;
    }
    .testimonial {
        padding: 50px;
    }

    .books .container{
        padding: 0;
    }

}
@media (min-width: 426px) {
    .slider-controls {
        display: flex !important;
    }
    .slider-controls .prev,
    .slider-controls .next {
        display: flex !important;
    }

}






