:root {
    --primary: #005680;
    --primary-dark: #004666;
    --white: #FFFFFF;
    --text-dark: #333333;
    --navbar-height: 10vh;
    --bg-light: #f8f8f8;
    --bg-history: #f0f0f0;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
}
/* Estilos mejorados para el menú */
.navbar {
background-color: rgba(255, 255, 255, 0.95);
height: var(--navbar-height);
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
display: flex;
align-items: center;
transition: all 0.3s ease;
}

.navbar.scrolled {
height: calc(var(--navbar-height) * 0.8);
background-color: rgba(255, 255, 255, 0.98);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 0 1.5rem;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
transition: transform 0.3s ease;
position: relative;
z-index: 1002;
}

.logo:hover {
transform: scale(1.05);
}

.logo-img {
height: 25.35px;
width: auto;
max-width: 247.7px;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.menu {
display: flex;
list-style-type: none;
margin: 0;
padding: 0;
gap: 0.35rem; /* Punto intermedio entre 0.5rem y 0.25rem */
}

.menu li {
position: relative;
}

.menu a {
color: var(--text-dark);
text-decoration: none;
padding: 0.5rem 0.7rem; /* Punto intermedio entre original y versión pequeña */
border-radius: 5px; /* Punto intermedio entre 6px y 4px */
font-size: 0.9rem; /* Punto intermedio entre 0.95rem y 0.85rem */
font-weight: 700;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
transition: all 0.3s ease;
}

.menu a::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px; /* Mantenemos 2px que es un buen tamaño */
background-color: var(--primary);
transform: translateX(-50%);
transition: width 0.3s ease;
border-radius: 2px 2px 0 0;
}

.menu a:hover {
color: var(--primary);
background-color: rgba(0, 86, 128, 0.08);
transform: translateY(-2px); /* Volvemos al valor original */
}

.menu a:hover::before {
width: 70%;
}

.menu a.active {
color: var(--primary);
background-color: rgba(0, 86, 128, 0.1);
}

.menu a.active::before {
width: 70%;
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
transition: all 0.3s ease;
z-index: 1002;
width: 30px;
height: 24px;
position: relative;
}

.hamburger span {
height: 3px;
width: 100%;
background-color: var(--primary);
border-radius: 5px;
transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
position: absolute;
}

.hamburger span:nth-of-type(1) {
top: 0;
}

.hamburger span:nth-of-type(2) {
top: 50%;
transform: translateY(-50%);
}

.hamburger span:nth-of-type(3) {
bottom: 0;
}

.hamburger.active span:nth-of-type(1) {
transform: rotate(45deg);
top: 11px;
}

.hamburger.active span:nth-of-type(2) {
opacity: 0;
transform: translateX(20px);
}

.hamburger.active span:nth-of-type(3) {
transform: rotate(-45deg);
bottom: 10px;
}

@media (max-width: 1000px) {
.menu {
display: none;
flex-direction: column;
position: fixed;
top: var(--navbar-height);
left: 0;
width: 100%;
height: calc(100vh - var(--navbar-height));
background-color: var(--white);
padding: 0; /* Eliminado completamente el padding */
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.3s ease-in-out;
transform: translateX(-100%);
overflow-y: auto;
z-index: 1001;
gap: 0; /* Sin espacio entre elementos */
align-items: flex-start; /* Cambiar a flex-start para alinear a la izquierda */
justify-content: center;
}

.navbar-container {
position: relative;
z-index: 1001;
}

.menu.active {
display: flex;
transform: translateX(0);
}

.menu li {
margin: 0; /* Sin margen */
padding: 0; /* Sin padding */
width: 100%;
text-align: left; /* Cambiar a left para alinear a la izquierda */
}

.menu a {
font-size: 1rem; /* Reducido aún más */
padding: 0.1rem 0 0.1rem 1rem; /* Ajustar padding para alinear a la izquierda */
margin: 0; /* Sin margen */
display: block;
width: 100%;
text-align: left; /* Cambiar a left para alinear a la izquierda */
justify-content: flex-start; /* Cambiar a flex-start para alinear a la izquierda */
line-height: 1.2; /* Línea más compacta */
}

.hamburger {
display: flex;
}
}

/*
.banner {
margin-top: var(--navbar-height); /* Altura del menú para que el banner aparezca debajo */
/*width: 100%;
overflow: hidden;
}*/

.banner {
    margin-top: var(--navbar-height);
    width: 100%;
    overflow: hidden;
}

/* Imagen responsive */
.banner img {
    width: 100%;
    height: auto;
    display: block;
}


.carousel {
position: relative;
width: 100%;
}

.carousel-container {
position: relative;
width: 100%;
/* Proporción exacta de la imagen original (4000:1480) */
padding-top: 37%; /* (1480/4000) * 100% = 37% */
overflow: hidden;
}

.carousel-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1.2s ease;
z-index: 1;
}

.carousel-slide.active {
opacity: 1;
z-index: 2;
}

.carousel-image {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Contenido superpuesto en el carrusel */
.carousel-content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
color: white;
z-index: 3;
}

.carousel-content h2 {
font-size: 2rem;
margin-bottom: 10px;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--white);
}

.carousel-content p {
font-size: 1.1rem;
font-weight: 400;
max-width: 600px;
}

/* Estilos para los puntos de navegación del carrusel */
.carousel-nav {
position: absolute;
bottom: 20px;
left: 0;
right: 0;
display: flex;
justify-content: center;
z-index: 5;
}

.carousel-dots {
display: flex;
gap: 10px;
}

.carousel-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
background-color: white;
transform: scale(1.2);
}

.carousel-dot:hover {
background-color: rgba(255, 255, 255, 0.8);
}

/* Ajustes responsive para el banner */
@media (max-width: 768px) {
.banner {
height: auto;
}

.carousel-container {
padding-top: 37%; /* Mantener la misma proporción en dispositivos móviles */
}

.carousel-content h2 {
font-size: 1.8rem;
}

.carousel-content p {
font-size: 1rem;
}

.section-title {
margin-top: 0;
}

.container-section {
padding-top: 2rem;
}
}

@media (max-width: 480px) {
.carousel-content h2 {
font-size: 1.5rem;
}

.carousel-content p {
font-size: 0.9rem;
}
}
.section-title {
    color: var(--primary);
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 2rem; /* Cambiar de -1rem a 0 */
    font-weight: 700;
}
.container-section {
    padding: 4rem 2rem 5rem; 
    background-color: var(--white);
    /* Eliminar el margin-top que añadimos anteriormente */
}
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem; 
}
.container {
    background: linear-gradient(to bottom right, var(--bg-light), white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,86,128,0.2);
}
.container-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.container-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.container-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.container:hover .container-image img {
    transform: scale(1.1);
}
.container-content {
    padding: 2rem;
    flex-grow: 1;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 1;
}
.container h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: block; /* Updated rule */
    text-align: center; /* Añadido para centrar los títulos */
}
/* Removed rules for icons */
/*.container h2::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.2rem;
}
.container:nth-child(1) h2::before {
    content: '\f5fc'; 
}
.container:nth-child(2) h2::before {
    content: '\f51c'; 
}
.container:nth-child(3) h2::before {
    content: '\f0eb'; 
}*/
.container p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
    position: relative;
    z-index: 1;
}
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,86,128,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.container:hover::before {
    opacity: 1;
}
@media (max-width: 768px) {
    .container-image {
        height: 180px;
    }
    .container h2 {
        font-size: 1.3rem;
    }
    .container p {
        font-size: 1rem;
        line-height: 1.6;
    }
}
.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem; 
    text-align: justify;
    color: var(--text-dark);
    font-size: 1.2rem; 
    line-height: 1.8; 
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .container-image {
        height: 180px;
    }
}
.section-intro {
    text-align: justify;
    max-width: 100%;
    margin: 0 auto 2rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 1rem;
}
.ebooks-section {
    background-color: var(--bg-light);
    padding: 4rem 2rem;
}
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Agregar media queries para hacer que sea responsive en pantallas más pequeñas */
@media (max-width: 1024px) {
    .ebooks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ebooks-grid {
        grid-template-columns: 1fr;
    }
}
.ebook-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
.ebook-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}
.ebook-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ebook-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: center; /* Añadido para centrar los títulos */
}
.ebook-author {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center; /* Añadido para centrar el nombre del autor */
}
.ebook-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: justify;
}
.ebook-link {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ebook-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
body.menu-open {
    overflow: hidden;
}
.history-section {
    background: linear-gradient(135deg, var(--bg-history) 0%, #fff 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}
.history-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 4rem;
    gap: 4rem;
}
.history-text {
    width: 55%;
    padding-right: 3rem;
}
.history-text p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.history-image {
width: 45%;
position: relative;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 15px 35px rgba(0,0,0,0.2);
transition: all 0.5s ease;
border: 3px solid var(--primary); /* Añadir borde principal */
padding: 5px; /* Espacio entre el borde y la imagen */
background-color: white; /* Fondo para el padding */
}

.history-image::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(0,86,128,0.2) 0%, rgba(255,255,255,0) 60%);
z-index: 2;
}

.history-image::before {
content: '';
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -5px;
border: 2px dashed var(--primary-dark); /* Añadir borde secundario punteado */
border-radius: 16px;
z-index: 1;
pointer-events: none; /* Permite que los eventos pasen a través */
opacity: 0.7;
transition: all 0.5s ease;
}

.history-image:hover::before {
opacity: 1;
border-color: var(--primary);
}

.history-image:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,86,128,0.3);
border-color: var(--primary-dark); /* Cambiar color del borde al hacer hover */
}

.history-image img {
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: 4/3;
display: block;
transition: transform 0.5s ease;
border-radius: 8px; /* Añadir borde redondeado a la imagen */
}
.history-timeline {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.history-timeline h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}
.history-timeline h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
}
.timeline-container {
    position: relative;
    padding-left: 50px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(0, 86, 128, 0.3) 100%);
}
.timeline-item {
    position: relative;
    padding: 1.5rem 0;
    transition: transform 0.3s ease;
}
.timeline-item:hover {
    transform: translateX(10px);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    z-index: 1;
    transition: all 0.3s ease;
}
.timeline-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 128, 0.3);
}
.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}
.timeline-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify;
}
@media (max-width: 768px) {
.history-content {
flex-direction: column;
gap: 3rem;
}
.history-text,
.history-image {
width: 100%;
padding-right: 0;
}
.history-image {
max-width: 500px;
margin: 0 auto;
}
    .history-timeline {
        padding: 2rem 1.5rem;
    }
    .timeline-container {
        padding-left: 30px;
    }
    .timeline-item::before {
        left: -30px;
        width: 15px;
        height: 15px;
    }
    .timeline-year {
        font-size: 1.3rem;
    }
    .timeline-description {
        font-size: 1rem;
    }
}
.talento-cicy-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 3rem;
}
.subsection-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.talento-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 2rem 0;
}
.stat-item {
    text-align: center;
    margin: 1rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}
.talento-achievements, .talento-collaborations {
    list-style-type: none;
    padding-left: 0;
}
.talento-achievements li, .talento-collaborations li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.talento-achievements li:before, .talento-collaborations li:before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}
@media (max-width: 768px) {
    .talento-stats {
        flex-direction: column;
    }
    .stat-item {
        margin: 0.5rem 0;
    }
}
.convocatoria-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.convocatoria-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem;
}

.convocatoria-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
}

.convocatoria-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.convocatoria-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,86,128,0.2);
}

.convocatoria-link:hover::before {
    transform: scaleX(1);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.convocatoria-link:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-text {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.link-description {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.convocatoria-date {
    background: rgba(0, 86, 128, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .convocatoria-links {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .convocatoria-link {
        padding: 2rem 1.5rem;
    }
}
.videos-section {
    background-color: var(--white);
    padding: 4rem 2rem;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.video-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
}
.video-info {
    padding: 1.5rem;
    border-top: 4px solid var(--primary); /* Añadiendo línea azul como en los contenedores de Talento CICY */
    position: relative;
    background-color: white;
}
.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.video-description {
    font-size: 0.9rem;
    color: var(--text-dark);
}
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns:1fr;
    }
}
.video-thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* Color de fondo en caso de que la imagen no cargue */
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Nuevo diseño de galería con carrusel tipo coverflow */
.gallery-section {
    background-color: var(--bg-light);
    padding: 4rem 2rem;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.gallery-category {
    margin-bottom: 5rem;
    position: relative;
}

.category-title {
    color: var(--primary);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    width: 100%; /* Añadir ancho completo */
    display: block; /* Cambiar de inline-block a block */
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Centrar la línea debajo del título */
    transform: translateX(-50%); /* Asegurar que esté centrada */
    width: 100px; /* Ancho fijo para la línea */
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.category-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Nuevo carrusel tipo coverflow */
.coverflow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    perspective: 1000px;
    overflow: hidden;
}

.coverflow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.coverflow-slide {
    position: absolute;
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.8s ease;
    opacity: 0;
    transform: scale(0.8) translateZ(-400px);
    cursor: pointer;
}

.coverflow-slide.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 10;
}

.coverflow-slide.prev,
.coverflow-slide.next {
    opacity: 0.7;
    z-index: 5;
}

.coverflow-slide.prev {
    transform: scale(0.9) translateX(-60%) rotateY(30deg) translateZ(-200px);
}

.coverflow-slide.next {
    transform: scale(0.9) translateX(60%) rotateY(-30deg) translateZ(-200px);
}

.coverflow-slide.prev2,
.coverflow-slide.next2 {
    opacity: 0.4;
    z-index: 1;
}

.coverflow-slide.prev2 {
    transform: scale(0.8) translateX(-120%) rotateY(45deg) translateZ(-300px);
}

.coverflow-slide.next2 {
    transform: scale(0.8) translateX(120%) rotateY(-45deg) translateZ(-300px);
}

.coverflow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.coverflow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 3;
}

.coverflow-caption h4 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.coverflow-caption p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.coverflow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.coverflow-nav:hover {
    background-color: white;
    color: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.1);
}

.coverflow-prev {
    left: 20px;
}

.coverflow-next {
    right: 20px;
}

.coverflow-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.coverflow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.coverflow-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.coverflow-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .coverflow-container {
        height: 400px;
    }
    
    .coverflow-slide {
        width: 70%;
        left: 15%;
    }
    
    .coverflow-slide.prev {
        transform: scale(0.85) translateX(-50%) rotateY(25deg) translateZ(-150px);
    }
    
    .coverflow-slide.next {
        transform: scale(0.85) translateX(50%) rotateY(-25deg) translateZ(-150px);
    }
    
    .coverflow-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .coverflow-container {
        height: 350px;
    }
    
    .coverflow-slide {
        width: 80%;
        left: 10%;
    }
    
    .coverflow-slide.prev,
    .coverflow-slide.next {
        opacity: 0.5;
    }
    
    .coverflow-slide.prev {
        transform: scale(0.8) translateX(-40%) rotateY(20deg) translateZ(-100px);
    }
    
    .coverflow-slide.next {
        transform: scale(0.8) translateX(40%) rotateY(-20deg) translateZ(-100px);
    }
    
    .coverflow-slide.prev2,
    .coverflow-slide.next2 {
        display: none;
    }
    
    .coverflow-caption h4 {
        font-size: 1.1rem;
    }
    
    .coverflow-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        height: 300px;
    }
    
    .coverflow-slide {
        width: 90%;
        left: 5%;
    }
    
    .coverflow-slide.prev,
    .coverflow-slide.next {
        opacity: 0.3;
    }
    
    .coverflow-slide.prev {
        transform: scale(0.7) translateX(-30%) rotateY(15deg) translateZ(-50px);
    }
    
    .coverflow-slide.next {
        transform: scale(0.7) translateX(30%) rotateY(-15deg) translateZ(-50px);
    }
    
    .coverflow-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .coverflow-caption {
        padding: 1rem;
    }
    
    .coverflow-caption h4 {
        font-size: 1rem;
    }
    
    .coverflow-caption p {
        font-size: 0.8rem;
    }
}

.aviso-privacidad-section {
  background-color: var(--bg-light);
  padding: 4rem 2rem;
  text-align: center;
}

.aviso-privacidad-content {
  max-width: 800px;
  margin: 0 auto;
}

.aviso-privacidad-link {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.aviso-privacidad-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .aviso-privacidad-section {
    padding: 3rem 1rem;
  }
}

.footer {
  background: linear-gradient(to bottom, var(--bg-light), #f0f0f0);
  color: var(--text-dark);
  padding: 4rem 0 1rem;
  margin-top: 2rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  flex: 1 1 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 250px;
  margin-bottom: 2rem;
}

.footer h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }
}

.btn-volver-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.btn-volver-arriba:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .btn-volver-arriba {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 1000px) {
.menu {
display: none;
flex-direction: column;
position: fixed;
top: var(--navbar-height);
left: 0;
width: 100%;
height: calc(100vh - var(--navbar-height));
background-color: var(--white);
padding-top: 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.3s ease-in-out;
transform: translateX(-100%);
overflow-y: auto;
z-index: 1001; /* Aumentar el z-index para asegurar que esté por encima del banner */
}
.navbar-container {
position: relative;
z-index: 1001;
}
.menu.active {
display: flex;
transform: translateX(0);
}
.menu li {
margin: 1rem 0;
text-align: center; /* Centrar los elementos del menú */
}
.menu a {
font-size: 1.2rem;
padding: 0.5rem 1rem;
display: block; /* Hacer que los enlaces ocupen todo el ancho */
width: 100%;
}
.hamburger {
display: flex;
}
}