main
{
    padding-top: 96.8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image{
    position: relative;
    width: 100%;
    height: clamp(30svh, 50vw, 70svh);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 1.5rem);
}

.hero-image::after
{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.699);
    z-index: 0;
    pointer-events: none;
}


.hero-content{
    position: absolute;
    z-index: 1;
}

.hero-content h1 {
    color: var(--color--letter-white);
    font-size: var(--step-3);
    font-weight: bold;
    font-family: var(--letter--type);
    text-transform: uppercase;
}

.slader-frame
{
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.slader-frame ul
{
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 500%;
    height: 100%;
}

.slader-frame li{
    list-style: none;
    width: 100%;
}

.slader-frame img{
    user-select: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    animation: slide 10s infinite;
}


@keyframes slide{
    0%{transform: translateX(0%);}
    20%{transform: translateX(0%);}

    25%{transform: translateX(-100%);}
    45%{transform: translateX(-100%);}

    50%{transform: translateX(-200%);}
    70%{transform: translateX(-200%);}

    75%{transform: translateX(-300%);}
    95%{transform: translateX(-300%);}

    100%{transform: translateX(-400%);} /* hacia el duplicado */
}

/*SECCIÓN*/

.intro {
    margin: clamp(2rem, 3vw, 4rem) clamp(1rem, 2vw, 3rem);
}


.intro h2 {
    font-family: var(--letter--type);
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--color--principal);
}

.intro p {
    font-family: var(--letter--type-min);
    line-height: 1.6;
    color: var(--color--letter-black);
}

/*SECCIÓN NIVELES*/

.niveles {
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.niveles h2 {
    font-family: var(--letter--type);
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--color--principal);
}

.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.niveles .article-niveles {
    font-family: var(--letter--type-min);
    font-size: var(--step--1);
    background: var(--color--principal);
    color: var(--color--letter-white);
    padding: 1.5rem;
    border-radius: 10px;
}

.article-niveles h3 {
    font-family: var(--letter--type);
    font-size: var(--step-0);
    margin-bottom: 0.5rem;
}

.article-niveles p {
    font-family: var(--letter--type-min);
    font-size: var(--step--1);
    line-height: 1.4;
}


/*SECCIÓN GALERÍA*/
.galeria {
    padding: 1rem 1.5rem;
    text-align: center;
    width: 100%;
}
.galeria h2 {
    font-family: var(--letter--type);
    font-size: var(--step-2);
    margin-bottom: 1rem;
    color: var(--color--principal);
}

.imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.imagenes img {
    width: 100%;
    height: clamp(300px, 30vw, 400px);
    object-fit: cover;
    border-radius: 10px;
}

/*SECCION BOTON*/
.cta {
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #033682;
    color: white;
}
.cta h2 {
    font-family: var(--letter--type);
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--color--letter-white);
}

.cta p {
    font-family: var(--letter--type-min);
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--color--letter-white);
}


.faq {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin: clamp(2rem, 3vw, 4rem) 0px;
    padding: 1rem 1.5rem;
    max-width: 700px;
}

.faq h2 {
    font-family: var(--letter--type);
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--color--principal);
}

.faq details {
    margin-top: clamp(1rem, 2vw, 3rem);
    margin-bottom: 1rem;
    background: #666666;
    padding: 1rem;
    border-radius: 8px;
}

.faq summary {
    font-family: var(--letter--type-min);
    font-size: var(--step--1);
    color: var(--color--letter-white);
    cursor: pointer;
    font-weight: bold;
}

.faq details p {
    margin-top: 0.5rem;
    font-family: var(--letter--type-min);
    font-size: var(--step--2);
    line-height: 1.4;
    color: var(--color--letter-white);
}

@media (prefers-reduced-motion: reduce) {
    .slader-frame ul {
        animation: none;
    }
}