/*====================================Inicio de pagina================================================*/
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}

/* Sección Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Video de fondo */
.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Contenido dentro del Hero */
.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Animaciones restantes */
.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

.fade-out-reset {
    animation: fadeInFromOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeInFromOut {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    /* Ajustes removidos */
}

@media (max-width: 576px) {
    /* Ajustes removidos */
}

/*==================================== Premios ================================================*/
#premios {
    padding: 0.5rem 0;  /* Reducción extrema de padding */
    background: #ffffff;
    position: relative;
}

#premios h2 {
    font-size: 2rem;  /* Reducción importante */
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;  /* Margen muy reducido */
    font-weight: 700;
    letter-spacing: normal;  /* Sin espaciado adicional */
    position: relative;
}

#premios h2::after {
    content: '';
    position: absolute;
    bottom: -8px;  /* Subrayado más cerca del texto */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;  /* Línea más corta */
    height: 2px;  /* Línea más delgada */
    background: #3498db;
}

.slick-premios {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0.2rem 0;  /* Padding mínimo */
}

.slick-premios div {
    padding: 5px;  /* Espaciado mínimo entre elementos */
    transition: all 0.3s ease;
}

.slick-premios img {
    border-radius: 5px;  /* Bordes más pequeños */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);  /* Sombra más suave */
}

/* Flechas más pequeñas y discretas */
.slick-prev,
.slick-next {
    width: 30px;
    height: 30px;
    background: rgba(52, 152, 219, 0.6);
}

.slick-prev:before,
.slick-next:before {
    font-size: 20px;
}

/* Puntos de navegación más pequeños y cerca */
.slick-dots {
    bottom: -25px;
}

.slick-dots li button:before {
    font-size: 10px;
}

/* Efecto hover más sutil */
.slick-premios div:hover img {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Responsive extremo */
@media (max-width: 992px) {
    #premios {
        padding: 0.3rem 0;
    }
    
    #premios h2 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    
    .slick-prev,
    .slick-next {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    #premios h2 {
        font-size: 1.4rem;
    }
    
    .slick-dots {
        bottom: -20px;
    }
}

@media (max-width: 576px) {
    #premios h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    #premios h2::after {
        bottom: -5px;
        width: 30px;
        height: 1.5px;
    }
    
    .slick-premios div {
        padding: 2px;
    }
}

/*==================================== Programas ================================================*/
#programas {
    padding: 2rem 0;  /* Padding reducido y simplificado */
    background: #ffffff;  /* Fondo blanco sólido */
    position: relative;
    overflow: hidden;
}

.card-programas {
    position: relative;
    display: block;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 1;
    min-height: 350px;
    border: none;
}

.card-programas:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.programas-icon {
    position: relative;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    max-width: 240px;
}

.programas-icon img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.card-programas:hover .programas-icon {
    transform: scale(1.05) rotate(-3deg);
}

.card-programas:hover .programas-icon img {
    transform: scale(1.1);
}

.programas-info {
    position: relative;
    padding: 1.5rem 0 0;
    transition: all 0.3s ease;
}

.programas-info strong {
    display: block;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.programas-info p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card-programas:hover .programas-info strong {
    color: #3498db;
}

.card-programas:hover .programas-info p {
    opacity: 1;
}

.donar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 40px;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(45deg, #2583e6, #34a1db);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 1.5px;
}

.donar-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.donar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.donar-btn:hover::before {
    animation: btnShine 1.5s;
}

.donar-btn span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.donar-btn:hover span {
    transform: scale(1.05);
}

@keyframes btnShine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Responsive */
@media (max-width: 992px) {
    .card-programas {
        min-height: 300px;
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .programas-icon {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    #programas {
        padding: 1.5rem 0;  /* Padding reducido */
    }
    
    .card-programas {
        min-height: auto;
        margin-bottom: 1.5rem;
    }
    
    .donar-btn {
        height: 50px;
        padding: 0 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card-programas {
        padding: 1.2rem;
    }
    
    .programas-icon {
        max-width: 200px;
    }
    
    .donar-btn {
        height: 45px;
        padding: 0 25px;
        font-size: 1rem;
    }
}

/*==================================== Aliados ================================================*/
#aliados {
    padding: 0 0 1rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: -2rem; /* Empuja la sección hacia arriba */
}

#aliados .aliados-container {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    padding: 1rem 0;
    margin-top: -1rem; /* Ajuste adicional de posición */
}

#aliados .aliado-item {
    flex: 0 0 auto;
    width: 200px;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.8;
    margin: 0 1.5rem;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#aliados .aliado-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

#aliados h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* Responsive */
@media (max-width: 992px) {
    #aliados .aliado-item {
        width: 180px;
        margin: 0 1rem;
    }
    
    #aliados h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #aliados {
        margin-top: -1rem;
    }
    
    #aliados .aliado-item {
        width: 150px;
        padding: 10px;
    }
    
    #aliados h2 {
        font-size: 1.8rem;
        margin: 0.3rem 0 0.8rem 0;
    }
}

@media (max-width: 576px) {
    #aliados .aliado-item {
        width: 120px;
        margin: 0 0.8rem;
    }
    
    #aliados h2 {
        font-size: 1.6rem;
    }
    
    @keyframes scroll {
        100% { transform: translateX(calc(-120px * 6)); }
    }
}

/*==================================== Impactos ================================================*/
#impactos {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    position: relative;
    overflow: hidden;
}

#impactos .container > .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#impactos .col-md-4 {
    flex: 0 0 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    margin: 0 1rem;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Añadido para centrado horizontal */
}

#impactos span {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.8rem;
    text-align: center;
    width: 100%; /* Aseguramos ancho completo */
}

#impactos h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 0 10px;
    line-height: 1.3;
    width: 100%; /* Añadido para centrado perfecto */
    margin: 0 auto; /* Centrado adicional */
}

#impactos h3:before {
    content: '';
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Separadores verticales */
#impactos .col-md-4:not(:last-child):after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    #impactos .col-md-4 {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
        margin: 1rem;
    }
    
    #impactos .col-md-4:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 992px) {
    #impactos .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0.5rem 0;
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    #impactos span {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }
    
    #impactos h3 {
        font-size: 1.2rem;
        padding: 0 15px;
        max-width: 80%; /* Añadido para control de texto largo */
    }
}

@media (max-width: 768px) {
    #impactos {
        padding: 3rem 1rem;
    }
    
    #impactos .container > .row {
        flex-direction: column;
    }
    
    #impactos h3:before {
        top: -10px;
    }
}

@media (max-width: 576px) {
    #impactos span {
        font-size: 2.5rem;
    }
    
    #impactos h3 {
        font-size: 1.1rem;
        padding: 0 10px;
        max-width: 100%; /* Aseguramos ancho completo */
    }
    
    #impactos .col-md-4 {
        margin: 0.5rem 0;
        padding: 1.5rem 0.5rem;
    }
    
    #impactos h3:before {
        top: -8px;
        width: 30px;
    }
}

@media (max-width: 400px) {
    #impactos span {
        font-size: 2rem;
    }
    
    #impactos h3 {
        font-size: 1rem;
    }
}

/* Ajuste específico para centrado perfecto */
#impactos .col-md-4 {
    text-align: -webkit-center; /* Soporte para Safari */
    text-align: -moz-center; /* Soporte para Firefox */
}

#impactos .col-md-4 > * {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*----------------------------------------------------------------------------------------------------*/
/* ================== ESTILOS GENERALES ================== */
#impactos-imagenes, #rwr-imagenes {
    position: relative;
    padding: 80px 3cm 30px;
    margin-bottom: 50px;
    overflow: hidden;
    background: #f8f9fa;
    box-sizing: border-box;
}

#rwr-imagenes {
    margin-top: -30px;
    padding: 30px 3cm 80px;
    margin-bottom: 100px;
}

/* ================== TÍTULOS ================== */
.titulo-seccion {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 2rem 0;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 150; /* Aumentado para prioridad */
}

/* ================== TEXTO CENTRAL ================== */
.conferencias-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200; /* Máxima prioridad */
    pointer-events: none;
    width: 100%;
    padding: 0 2rem;
}

.conferencias-texto h2 {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 20px;
}

.decoracion-linea {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    margin: 0 auto;
    transition: width 0.3s ease;
}

/* ================== CARDS ESCRITORIO ================== */
.cards-container {
    height: 600px;
    margin: 0 auto;
    position: relative;
    max-width: 1400px;
}

.custom-card {
    width: 280px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    z-index: 100; /* Reducido para estar detrás del texto */
}

.custom-card:hover {
    transform: scale(1.05);
    z-index: 180 !important; /* Debajo del texto central */
}

.custom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* ================== POSICIONAMIENTO ================== */
.card-1 { top: 50px; left: 8%; }
.card-2 { top: 180px; left: 13%; }
.card-3 { top: 310px; left: 18%; }
.card-4 { top: 50px; right: 8%; }
.card-5 { top: 180px; right: 13%; }
.card-6 { top: 310px; right: 18%; }

/* ================== CARRUSEL MÓVIL ================== */
.carrusel-movil {
    padding: 20px 0;
    display: none;
    width: 100%;
}

.carrusel-contenedor {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.carrusel-interno {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    min-width: max-content;
}

.carrusel-item {
    scroll-snap-align: start;
    flex: 0 0 80vw;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    height: 300px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1600px) {
    .titulo-seccion {
        font-size: 4rem;
    }
    
    .conferencias-texto h2 {
        font-size: 4rem;
    }
    
    .card-1 { left: 6% }
    .card-4 { right: 6% }
}

@media (max-width: 1440px) {
    .titulo-seccion {
        font-size: 3.8rem;
    }
    
    .conferencias-texto h2 {
        font-size: 3.8rem;
    }
    
    .custom-card {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 1280px) {
    .titulo-seccion {
        font-size: 3.5rem;
    }
    
    .conferencias-texto h2 {
        font-size: 3.5rem;
    }
    
    .custom-card {
        width: 240px;
        height: 240px;
    }
    
    .card-1 { left: 4% }
    .card-4 { right: 4% }
}

@media (max-width: 1152px) {
    .titulo-seccion {
        font-size: 3.2rem;
    }
    
    .conferencias-texto h2 {
        font-size: 3.2rem;
    }
    
    .custom-card {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .titulo-seccion {
        font-size: 3rem;
    }
    
    .conferencias-texto h2 {
        font-size: 3rem;
    }
    
    .custom-card {
        width: 200px;
        height: 200px;
    }
    
    .card-1 { left: 2% }
    .card-4 { right: 2% }
}

@media (max-width: 900px) {
    .titulo-seccion {
        font-size: 2.8rem;
    }
    
    .conferencias-texto h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .cards-container {
        display: none;
    }
    
    .carrusel-movil {
        display: block;
    }
    
    .titulo-seccion {
        font-size: 2.5rem !important;
    }
    
    .conferencias-texto h2 {
        font-size: 2.5rem;
    }
    
    #impactos-imagenes, #rwr-imagenes { 
        padding: 40px 1rem !important;
    }
}

@media (max-width: 576px) {
    .titulo-seccion {
        font-size: 2.2rem !important;
    }
    
    .conferencias-texto h2 {
        font-size: 2.2rem;
    }
    
    .carrusel-item {
        height: 250px;
    }
}

@media (max-width: 400px) {
    .titulo-seccion {
        font-size: 2rem !important;
    }
    
    .conferencias-texto h2 {
        font-size: 2rem;
    }
    
    .carrusel-item {
        height: 220px;
    }
}

@media (max-width: 360px) {
    .titulo-seccion {
        font-size: 1.8rem !important;
    }
    
    .conferencias-texto h2 {
        font-size: 1.8rem;
    }
}


/*==================================== Aliados destacados ================================================*/

#aliados {
    padding: 2rem 0 0.5rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
}

#aliados h2,
#aliados .aliados-destacados h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin: 0.5rem 0 2rem 0;
    padding: 0;
    position: relative;
    z-index: 2;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

#aliados .aliados-container {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    padding: 1rem 0;
    margin-top: -1rem;
}

#aliados .aliado-item {
    flex: 0 0 auto;
    width: 200px;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.8;
    margin: 0 1.5rem;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#aliados .aliado-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Aliados Destacados */
.aliados-destacados {
    padding: 2rem 0 1rem 0;
    text-align: center;
    background: #ffffff;
    margin-top: 0.5rem;
}

.destacados-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.destacado-logo {
    width: 180px;
    height: auto;
    transition: all 0.3s ease;
    opacity: 0.9;
    padding: 10px;
    object-fit: contain;
}

.destacado-logo:hover {
    transform: translateY(-5px);
    opacity: 1;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.1));
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* Responsive */
@media (max-width: 992px) {
    #aliados h2,
    #aliados .aliados-destacados h3 {
        font-size: 2rem;
    }
    
    #aliados .aliado-item {
        width: 180px;
        margin: 0 1rem;
    }
    
    .destacado-logo {
        width: 150px;
    }
}

@media (max-width: 768px) {
    #aliados {
        padding: 1.5rem 0 0.3rem 0;
        margin-top: -1rem;
    }
    
    #aliados h2,
    #aliados .aliados-destacados h3 {
        font-size: 1.8rem;
        margin: 0.3rem 0 1.5rem 0;
    }
    
    #aliados .aliado-item {
        width: 150px;
        padding: 10px;
    }
    
    .aliados-destacados {
        padding: 1.5rem 0 0.8rem 0;
    }
    
    .destacados-container {
        gap: 2.5rem;
    }
    
    .destacado-logo {
        width: 130px;
    }
}

@media (max-width: 576px) {
    #aliados {
        padding: 1rem 0 0.2rem 0;
    }
    
    #aliados h2,
    #aliados .aliados-destacados h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    #aliados .aliado-item {
        width: 120px;
        margin: 0 0.8rem;
    }
    
    .aliados-destacados {
        padding: 1rem 0 0.5rem 0;
    }
    
    .destacado-logo {
        width: 100px;
        padding: 8px;
    }
    
    @keyframes scroll {
        100% { transform: translateX(calc(-120px * 6)); }
    }
}