/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

html,
body{
    margin:0;
    padding:0;
}

body{
    background:#f5f7fb;
    color:#1e293b;
}


/* =========================
   SECCIONES GENERALES
========================= */
section{
    padding:10px 8%;
}

/* =========================
   SALTOS DE LINEA
========================= */
/* ESPACIO SOLO PC */
.pc-spacing{
    height:100px;
}

.one-spacing{
    height:15px;
}
.two-spacing{
    height:30px;
}
.tree-spacing{
    height:45px;
}

/* MOVIL */
@media(max-width:768px){

    .pc-spacing{
        height:20px;
    }

}


/* =========================
   VIÑETAS
========================= */

.parrafos p{
    position:relative;
    padding-left:20px;
    margin-bottom:15px;
}

.parrafos p::before{
    content:"";
    position:absolute;
    left:0;
    top:8px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#FD048E;
}


/* =========================
   TITULOS
========================= */
.title-section{
    text-align:justify;
    margin-bottom:45px;
}

.title-section h2{
    font-size:45px;
    margin-bottom:15px;
}

.title-section h4{
    color:#FF038F;
    font-weight:bold;
    font-size:30px;
    margin-bottom:18px;
}

.title-section h5{
    color:#cecece;
    font-weight:bold;
    font-size:20px;
}

.title-section p{
    color:#383c42;
    font-size:18px;
    line-height:1.4
}


/* =========================
   CONTACTO 
========================= */
.contacto-section .title-section h5{
    color:#0a0a0aa4;
}

.contacto-section .title-section .h5-claro{
    color:#b6b6b6;
}

/* =========================
   HERO
========================= */
.hero{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:50px;

    background:
    radial-gradient(circle at top right, rgba(56,189,248,.25), transparent 30%),
    linear-gradient(135deg,#0f172a,#1e3a8a);

    color:#fff;

    overflow:hidden;
    position:relative;

    margin-top:0;
}

/* EFECTO DECORATIVO */
.hero::before{
    content:'';

    position:absolute;

    width:500px;
    height:500px;

    background:rgba(255,255,255,.05);

    border-radius:50%;

    top:-200px;
    right:-150px;
}

/* TEXTO HERO */
.hero-text{
    max-width:600px;

    z-index:2;

    animation:fadeLeft 1s ease;
}

.hero-text h1{
    font-size:64px;
    margin-bottom:25px;
    line-height:1.1;
}

.hero-text p{
    font-size:18px;
    color:#cbd5e1;

    margin-bottom:35px;

    line-height:1.9;
}

/* BOTONES */
.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:15px 30px;

    border:none;
    border-radius:12px;

    cursor:pointer;

    text-decoration:none;
    font-weight:bold;

    transition:.3s;
}

.btn-primary{
    background:#38bdf8;
    color:#fff;

    box-shadow:0 10px 25px rgba(56,189,248,.3);
}

.btn-primary:hover{
    transform:translateY(-5px);
    background:#0ea5e9;
}

.btn-secondary{
    border:2px solid rgba(255,255,255,.5);
    color:#fff;
}

.btn-secondary:hover{
    background:#fff;
    color:#0f172a;
}

/* IMAGEN HERO */
.hero-image{
    flex:1;

    display:flex;
    justify-content:center;

    animation:float 4s ease-in-out infinite;

    z-index:2;
}

.hero-image img{
    width:100%;
    max-width:550px;

    filter:drop-shadow(0 20px 40px rgba(0,0,0,.35));
}


/* =========================
   SERVICIOS
========================= */
.services{
    background:#fff;
}


/* =========================
   CARDS
========================= */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:35px;
}

.card{
    background:#fff;

    border-radius:24px;

    padding:40px;

    border:1px solid rgba(0,0,0,.03);

    box-shadow:0 10px 30px rgba(0,0,0,.07);

    transition:.4s;
}

.card:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.card i{
    font-size:50px;
    color:#2563eb;

    margin-bottom:25px;
}

.card h3{
    font-size:24px;
    margin-bottom:15px;
}

.card p{
    color:#64748b;
    line-height:1.8;
}


/* =========================
   STATS BASE
========================= */
.stats{
    background:linear-gradient(135deg,#E71783,#FF038F);
    color:#fff;

    padding:25px 8%;
}

.stats-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    width:100%;
}


.stat-box{
    flex:1 1 180px;
    max-width:220px;

    background:#fff;
    color:#646464;

    padding:5px 20px;

    border-radius:30px;

    font-size:15px;
    line-height:1;

    cursor:pointer;

    box-shadow:0 8px 18px rgba(0,0,0,.12);

    transition:.35s ease;

    border:1px solid transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    min-height:45px;
}

.stat-box i{
    font-size:25px;
}

.stat-box:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 35px rgba(0,0,0,.22);
    background:#fff0f7;
    border-color:#fff;
}

/* =========================
   STATS BLANCO
========================= */
.stats-white{
    background:#fff;

    padding-top:10px;
    padding-bottom:10px;

    padding-left:8%;
    padding-right:8%;
}

.stats-white .stats-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;

    gap:10px;
    width:100%;
}

.stats-white .stat-box{
    flex:1 1 180px;
    max-width:220px;

    background:linear-gradient(135deg,#E71783,#FF038F);

    color:#fff;

    padding:5px 20px;

    border-radius:30px;

    font-size:15px;
    line-height:1;

    cursor:pointer;

    box-shadow:0 8px 18px rgba(231,23,131,.25);

    transition:.35s ease;

    border:1px solid transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    min-height:45px;
}

.stats-white .stat-box:hover{
    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(231,23,131,.35);

    background:linear-gradient(135deg,#ff4aa8,#E71783);

    border-color:#ffd1e8;
}

/* =========================
   DIVISOR SECCIONES
========================= */

.section-divider{
    width:100%;
    max-width:1200px;
    height:10px;
    margin:20px auto;
    border-radius:20px;
    background:linear-gradient(
        135deg,
        #ff4aa8,
        #E71783
    );
}

.question-divider{
    width:calc(100% - 100px);
    height:5px;
    margin:5px;

    border-radius:20px;

    background:
    linear-gradient(
        135deg,
        #cecece,
        #a0a0a0a4
    );

    opacity:.9;
}

/* =========================
   IMAGEN SECCION
========================= */

.section-image img{
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    transform: none !important;
    width:100%;
    max-width:1400px;
}
.section-image{
    width:100%;

    padding:40px 50px;

    display:flex;
    justify-content:center;
    align-items:center;
}


/* RESPONSIVE */
@media(max-width:768px){

    .section-image{
        padding:25px 15px;
    }

    .section-image img{
        border-radius:18px;
    }

}

/* =========================
   GALERIA
========================= */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.gallery-grid img{
    width:100%;

    border-radius:24px;

    cursor:pointer;

    transition:.4s;
}

.gallery-grid img:hover{
    transform:scale(1.04);
}


/* =========================
   CTA
========================= */
.cta{
    text-align:center;

    background:linear-gradient(135deg,#0f172a,#111827);

    color:#fff;

    border-radius:35px;

    margin:100px 8%;
    padding:90px 40px;

    position:relative;
    overflow:hidden;
}

/* EFECTO DECORATIVO */
.cta::before{
    content:'';

    position:absolute;

    width:350px;
    height:350px;

    background:rgba(56,189,248,.08);

    border-radius:50%;

    top:-100px;
    right:-100px;
}

.cta h2{
    font-size:52px;

    margin-bottom:20px;

    position:relative;
    z-index:2;
}

.cta p{
    max-width:700px;

    margin:auto;
    margin-bottom:35px;

    color:#cbd5e1;

    line-height:1.9;

    position:relative;
    z-index:2;
}

.cta .btn{
    position:relative;
    z-index:2;
}


/* =========================
   CAROUSEL
========================= */
.vertical-carousel{
    position:relative;

    width:100%;
    height:300px;

    overflow:hidden;

    border-radius:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* SLIDES */
.carousel-slide{
    position:absolute;
    inset:0;

    opacity:0;

    z-index:1;

    transition:opacity 1.5s ease-in-out;

    display:flex;
    align-items:center;
    justify-content:center;
}

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

/* IMAGEN */
.carousel-slide img{
    width:100%;
    height:auto;

    object-fit:contain;

    display:block;

    border-radius:30px;
}

.carousel-slide.active img{
    transform:scale(1);
}

/* CONTROLES */
.carousel-controls{
    position:absolute;

    top:50%;
    right:20px;

    transform:translateY(-50%);

    z-index:10;

    display:flex;
    flex-direction:column;
    align-items:center;

    gap:20px;
}

/* FLECHAS */
.arrow{
    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(10px);

    cursor:pointer;

    font-size:22px;
    font-weight:bold;

    transition:.3s;
}

.arrow:hover{
    background:#fff;
    transform:scale(1.08);
}

/* DOTS */
.carousel-dots{
    display:flex;
    flex-direction:column;

    gap:12px;
}

.dot{
    width:10px;
    height:10px;

    border-radius:50%;

    background:rgba(255,255,255,.5);

    cursor:pointer;

    transition:.3s;
}

.dot.active{
    height:28px;

    border-radius:20px;

    background:#fff;
}


/* =========================
   ANIMACIONES
========================= */
@keyframes fadeLeft{
    from{
        opacity:0;
        transform:translateX(-50px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes float{
    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0px);
    }
}


/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){

    section{
        padding:30px 6%;
    }

    .hero{
        flex-direction:column;
        text-align:center;

        padding-top:130px;
    }

    .hero-text h1{
        font-size:42px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .cta h2{
        font-size:36px;
    }

    .title-section h2{
        font-size:35px;
    }
}
/* =========================
   TIMELINE
========================= */

.timeline-section{

    background:
    linear-gradient(
        180deg,
        #f8fafc 0%,
        #eef2ff 100%
    );
}

.timeline-container{
    width:100%;
    max-width:1200px;

    margin:auto;
}

/* CONTENEDOR CENTRADO */
.timeline-wrapper{
    width:100%;
    max-width:1200px;

    margin:auto;

    overflow-x:auto;
    overflow-y:hidden;

    padding-bottom:20px;
}

/* SCROLL */
.timeline-wrapper::-webkit-scrollbar{
    height:8px;
}

.timeline-wrapper::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

/* CONTENEDOR */
.timeline-horizontal{
    position:relative;

    display:flex;
    align-items:center;

    gap:28px;

    width:max-content;

    padding:90px 40px;
}

/* LINEA */
.timeline-horizontal::before{
    content:'';

    position:absolute;

    top:50%;
    left:0;

    transform:translateY(-50%);

    width:100%;
    height:10px;

    border-radius:20px;

    background:linear-gradient(
        90deg,
        #f4008c,
        #6431a5
    );
}

/* ITEM */
.timeline-item{
    position:relative;

    width:180px;

    flex-shrink:0;

    display:flex;
    flex-direction:column;
    align-items:center;

    z-index:2;

    cursor:pointer;
}

/* POSICIONES */
.timeline-item.top{
    transform:translateY(-30px);
}

.timeline-item.bottom{
    transform:translateY(30px);
}

/* AÑO */
.year-card{
    padding:14px 24px;

    border-radius:18px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(10px);

    box-shadow:
    0 6px 20px rgba(0,0,0,.08);

    font-size:22px;
    font-weight:800;

    color:#0f172a;

    transition:.3s ease;
}

/* HOVER */
.timeline-item:hover .year-card{
    transform:translateY(-5px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.14);
}

/* DOT */
.dot{
    width:22px;
    height:22px;

    border-radius:50%;

    background:#fff;

    margin:18px 0;

    z-index:5;

    box-shadow:
    0 0 0 5px rgba(255,255,255,.7);
}

/* COLORES */
.pink .dot{
    border:5px solid #f4008c;
}

.purple .dot{
    border:5px solid #6431a5;
}

/* =========================
   MODAL
========================= */

.timeline-modal{
    position:fixed;

    inset:0;

    background:rgba(15,23,42,.65);

    display:flex;
    align-items:center;
    justify-content:center;

    padding:20px;

    opacity:0;
    visibility:hidden;

    transition:.3s ease;

    z-index:9999;
}

/* ACTIVO */
.timeline-modal.active{
    opacity:1;
    visibility:visible;
}

/* CAJA */
.modal-box{
    position:relative;

    width:100%;
    max-width:500px;

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:
    0 25px 60px rgba(0,0,0,.2);

    animation:modalShow .3s ease;
}

/* TITULO */
.modal-box h2{
    font-size:32px;
    font-weight:800;

    margin-bottom:15px;

    color:#0f172a;
}

/* TEXTO */
.modal-box p{
    font-size:16px;
    line-height:1.7;

    color:#475569;
}

/* BOTON */
.close-modal{
    position:absolute;

    top:15px;
    right:18px;

    border:none;
    background:none;

    font-size:34px;

    cursor:pointer;

    color:#64748b;
}

.timeline-item{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.year-card{
    user-select:none;
}

/* ANIMACION */
@keyframes modalShow{

    from{
        opacity:0;
        transform:translateY(20px) scale(.96);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }

}

/* RESPONSIVE */
@media(max-width:768px){

    .timeline-horizontal{
        gap:20px;
        padding:70px 10px;
    }

    .timeline-item{
        width:140px;
    }

    .timeline-item.top{
        transform:translateY(-25px);
    }

    .timeline-item.bottom{
        transform:translateY(25px);
    }

    .year-card{
        font-size:18px;
        padding:12px 18px;
    }

    .modal-box{
        padding:28px;
    }

    .modal-box h2{
        font-size:26px;
    }

}



/* CORRUSEL */

.gallery-carousel-section{
    background:#fff;
    padding-top:10px;
    padding-bottom:10px;
}
.carousel-track-container{
    overflow:hidden;
    width:100%;
    position:relative;
    padding:25px 0;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.carousel-track{
    display:flex;
    gap:25px;
    width:max-content;

    animation:scrollInfinite 30s linear infinite;
}

.carousel-track:hover{
    animation-play-state:paused;
}

.gallery-card{
    width:320px;
    flex-shrink:0;

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 1px 5px rgba(0,0,0,.08);

    transition:.3s;
}

.gallery-card:hover{
    transform:scale(1.03);
    box-shadow:0 10px 11px rgba(0,0,0,.08);
}

.gallery-card img{
    aspect-ratio:16/9;
    width:100%;
    height:auto;
    display:block;
}

.gallery-info{
    padding:18px;
}

.gallery-info h5{
    margin-bottom:10px;
    color:#FF038F;
    font-weight:bold;
}

.gallery-info p{
    margin:0;
    font-size:14px;
    line-height:1.5;
    color:#555;
}

@keyframes scrollInfinite{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(calc(-50%));
    }

}

@media(max-width:768px){

    .gallery-card{
        width:260px;
    }

    .gallery-card img{
        height:180px;
    }

}


.galeria-anios{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.anio-card{
    width:380px;
    text-align:center;
}

.anio-imagen{
    position:relative;
    overflow:hidden;
    border-radius:32px;
}

.anio-imagen img{
    width:100%;
    display:block;

    filter:grayscale(100%);
    transition:all .5s ease;
}

.anio-card:hover img{
    filter:grayscale(0%);
    transform:scale(1.05);
}

/* iluminación */
.anio-card:hover .anio-imagen{
    box-shadow:
        0 15px 40px rgba(231,23,131,.30);
}

/* botón */
.btn-vermas{
    position:absolute;

    left:20px;
    right:20px;
    bottom:15px;

    background:#fff;

    color:#222;

    text-decoration:none;

    padding:10px 20px;

    border-radius:50px;

    font-size:15px;

    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:10px;

    transition:.3s;
}

.btn-vermas i{
    color:#E71783;
}

.anio-card:hover .btn-vermas{
    background:#fff;
    transform:translateY(-2px);
}

.anio-card h2{
    margin-top:15px;

    color:#E71783;

    font-size:35px;
    font-weight:300;
}

/* IMAGEN DE LA COMISION */

.personas-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:30px;
}

.persona-card{
    margin:0;
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    background:#fff;
}

.persona-card img{
    width:100%;
    display:block;
    aspect-ratio:5/3;
    object-fit:cover;
}

.persona-card figcaption{
    padding:15px;
    text-align:center;
    font-size:.95rem;
    line-height:1.5;
    background:#f8f8f8;
}

.persona-card figcaption strong{
    display:block;
    color:#6b1f3a; /* color institucional */
    font-size:1rem;
}

.persona-card-overlay{
    position:relative;
    margin:0;
    overflow:hidden;
    border-radius:12px;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor:pointer;
}

.persona-card-overlay img{
    width:100%;
    display:block;
}

.persona-card-overlay:hover{
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,.15);
    z-index:10;
}

.persona-card-overlay figcaption{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:15px;
    background:linear-gradient(
        transparent,
        rgba(0,0,0,.85)
    );
    color:#fff;
}

.persona-card-overlay h5{
    margin:0 0 5px;
}

.persona-card-overlay span{
    font-size:.9rem;
}


/* CUESTIONARIO */
.faq-question{
    cursor:pointer;
    margin:0;
    color:#666;
    transition:color .3s ease;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.faq-question.active{
    color:#333;
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transform:translateY(-10px);
    transition:
        max-height .4s ease,
        opacity .3s ease,
        transform .3s ease;
}

.faq-answer.active{
    max-height:300px; /* aumenta si alguna respuesta es muy larga */
    opacity:1;
    transform:translateY(0);
    padding:15px 0;
}

.faq-question{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.faq-question::after{
    content:"+";
    font-size:24px;
    transition:transform .3s ease;
}

.faq-question.active::after{
    transform:rotate(45deg);
}

/* SIN EFECTO LINKS DE CONTACTO */

.contact-link{
    color:inherit;
    text-decoration:none;
}

.contact-link:hover{
    text-decoration:underline;
}

/* ========================================
   MODAL SPEN ESTILO TIMELINE
======================================== */

#infoModal .modal-content{
    border:none;
    border-radius:24px;

    overflow:hidden;

    box-shadow:
        0 25px 60px rgba(0,0,0,.20);
}

/* CABECERA */

#infoModal .modal-header{
    border:none;

    padding:25px 35px 15px 35px;

    background:#fff;
}

/* TITULO */

#modalTitle{
    font-size:25px;
    font-weight:700;

    color:#0f172a;

    margin:0;
}

/* CUERPO */

#infoModal .modal-body{
    padding:35px 35px 35px 35px;

    font-size:18px;
    line-height:1.8;

    color:#475569;
}

/* FOOTER */

#infoModal .modal-footer{
    border:none;

    padding:20px 35px 30px;

    background:#fff;
}

/* CONTADOR */

#modalCounter{
    color:#FD048E;
    font-weight:600;
}

/* BOTONES */

#prevBtn,
#nextBtn{
    border-radius:14px;
    padding:10px 22px;

    font-weight:500;
}

/* BOTON CERRAR */

#infoModal .btn-close{
    font-size:12px;
}