:root {
    --gris-claro: #ffffff;
    --gris-hover: #00DCFF;
}

*, *:before, *:after {
    box-sizing: inherit;
  }

/**
html {
    font-size:  62.5%;
}
**/

html{
    scroll-behavior: smooth;
}



body{
    font-family: Oregular, 'Questrial', sans-serif;
    margin: 0%;
    padding: 0%;
    text-decoration: none;
    box-sizing: border-box;
}


/**Reusable-content**/

.text-box{
    margin: 0 20% 75px 20%;
}

.titulos{
    text-align: center;
    font-size: 40px;
    color: var(--gris-oscuro);
    margin: 50px 0 0 0;
    font-family: Olight;
    text-transform: uppercase;
    letter-spacing: 8px;
}

.subtitulos{
    text-align: center;
    font-size: 22px;
    color: black;
    margin: 50px 10px;
    text-transform: uppercase;
    letter-spacing: 8px;
}

.text{
    text-align: center;
    font-size: 20px;
    line-height : 30px;
}

@media (max-width: 1250px){
    .text-box{
    margin: 0px 2rem;
    }
    .titulos{
    font-size: 80px;
    }
    .text{
        font-size: 17px;
    }
}

@media (max-width: 768px){
    .text-box{
    margin: 0px 2rem;
    }
    .titulos{
    font-size: 26px;
    }
    .text{
        font-size: 17px;
    }
}


.background__black{
    background-color:var(--gris-oscuro);
}


#white{
    color: rgb(255, 255, 255);
    margin: 0;
    /**padding: 50px;**/
}


.general__bigrid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 100px 10% 0 10%;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
}

.general__trigrid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 8%;
    justify-content: center;
    align-items: center;
}

.tri_gap{
    gap: 100px;
}



@media(max-width: 850px){
    .general__bigrid{
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        margin: 0%;
    }
    .general__trigrid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .tri_gap{
        gap: 10px;
    }
    #invertir{
        grid-row: 1
    }
}










/**Footer**/
footer {
    background-color: #003356;
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
}

.footer-menu{
    color: white;
    background: black;
    margin: auto;
    text-align: center;
    font-size: 0.8rem;
}

.footer-menu nav a{
    color: white;
    text-decoration: none;
    padding: 50px 80px 50px 80px;
    transition: all 0.5s;
}

.footer-menu a{
    display: inline-block;
}

.footer-menu nav a:hover{
    color: var(--gris-claro);
}

hr{
    width: 50%;
    text-align: center;
    margin-bottom: 0%;
    margin-top: 0%;
}















/**Botones**/

.sbe__btn__one{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.btn__a{
    color: white;
    padding: 20px 35px;
    display: inline-block;
    background-color: #0098af;
    border-radius: 100px;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    transition: 0.2s;
    border: 0px;
    opacity: 1;
    width: 200px;
}

.btn__a:hover{
    text-decoration: underline;
    background-color: #00DCFF;
    color: #00373f;
    transform: scale(0.95);
}

.btn__b{
    color: white;
    padding: 20px 35px;
    display: inline-block;
    background-color: #60959c;
    border-radius: 100px;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    transition: 0.2s;
    border: 0px;
    opacity: 1;
    width: 200px;
    margin: 0px 5px;
}

.btn__b:hover{
    text-decoration: underline;
    background-color: #00DCFF;
    color: #00373f;
    transform: scale(0.95);
}


/* ESTILOS ESPECÍFICOS PARA BOTONES DE SESIÓN */
.main-header .menu .btn-login,
.main-header .menu .btn-logout {
    display: inline-block !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 20px !important; /* Separación del menú */
    font-size: 0.9rem !important;
}

/* Botón INICIAR SESIÓN */
.main-header .menu .btn-login {
    background: #f8c32e !important; 
    color: #003356 !important;
    border: 2px solid transparent !important;
}

.main-header .menu .btn-login:hover {
    background: #003356 !important;
    color: #f8c32e !important;
    border-color: #f8c32e !important;
    box-shadow: 0 4px 15px rgba(248, 195, 46, 0.3) !important;
}

/* Botón CERRAR SESIÓN */
.main-header .menu .btn-logout {
    background: #003356 !important;
    color: #f8c32e !important;
    border: 2px solid #f8c32e !important;
}

.main-header .menu .btn-logout:hover {
    background: #f8c32e !important;
    color: #003356 !important;
    border-color: #003356 !important;
    box-shadow: 0 4px 15px rgba(0, 51, 86, 0.3) !important;
}




@media(max-width: 480px){
    .btn__a{
        padding: 20px 35px;
        font-size: 17px;
        width: 100%;
    }
    .btn__b{
        padding: 20px 35px;
        font-size: 17px;
        width: 100%;
        margin: 20px 0px;
    }
}








/**Slider**/
.container{
    width: 100vh;
    margin: 0px 0px;
    overflow: hidden;
}

.slider{
    padding: 0px 0;
    display: flex;
    justify-content: center;
    margin: 5rem 0 0 0;
}

@media(max-width: 786px){
    .slider{
        margin: 0rem
    }
    .container{
        width: 100%;
    }
    .slider__arrow{
        height: 30px;
    }
}

.slider__container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    justify-content: center;
    gap: auto;
}

.slider__body{
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    transition: 0.5s;
}

.slider__body--show{
    opacity: 1;
    pointer-events: unset;
}

.slider__review{
    font-weight: 300;
    font-size: 20px;
    line-height: 1.7;
}

.slider__img{
    position: relative;
    width: 100%;
}

.slider__arrow{
    cursor: pointer;
    width: 50px;
    transition: 1s;
    z-index: 1;
}

.slider__arrow:hover{
    width: 45px;
}
















/*FIXED CONTACT ICONS*/
.contact__container{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 5;
}

.icon__contact{
    margin: 5px;
}





/* Secci贸n de Cursos On-Demand */
.courses-section {
    background-color: #003356;
    padding: 4rem 1rem;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-title {
    color: white;
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 3rem;
    font-family: 'Obold';
    letter-spacing: 1px;
    line-height: 1.3;
    padding: 0 1rem;
}

.courses-title span {
    color: #f8c32e;
    font-style: italic;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.course-card {
    background-color: #0a5588;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-image:hover img {
    transform: scale(1.05);
}

.course-title {
    color: white;
    text-align: center;
    padding: 1.5rem 1rem 0;
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Obold';
    min-height: 60px;
}

.course-buttons {
    padding: 1.5rem 1rem;
    margin-top: auto;
}

.course-btn {
    display: block;
    text-align: center;
    padding: 10px 15px;
    margin: 8px auto;
    width: 90%;
    max-width: 200px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: 'Oregular';
    transition: all 0.3s ease;
    text-decoration: none;
}

.sample-btn {
    background-color: #f8c32e;
    color: #003356;
    border: 2px solid #f8c32e;
}

.sample-btn:hover {
    background-color: transparent;
    color: #f8c32e;
}

.advisor-btn {
    background-color: transparent;
    color: #f8c32e;
    border: 2px solid #f8c32e;
}

.advisor-btn:hover {
    background-color: #f8c32e;
    color: #003356;
}




/* ===== FOOTER ===== */
footer {
    background-color: #003356;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-family: 'Oregular';
    margin-top: auto; /* Para pegar al fondo */
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #f8c32e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.legal-text {
    margin-top: 1.5rem !important;
}

.legal-text a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legal-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-nav {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
    }
    
    footer p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-text {
        margin-top: 1rem !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .courses-title {
        font-size: 1.8rem;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-title {
        font-size: 1.3rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .courses-title {
        font-size: 1.6rem;
    }
    
    .course-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .course-image {
        height: 150px;
    }
}

@media (max-width: 850px){
    .contact__container{
        top: inherit;
        bottom: 5px;
        right: 5px;
    }
    .icon__contact{
        margin: 2px;
    }
}

/* ===== FIX FOOTER EN PANTALLAS GRANDES ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 80px; /* Ajustar según altura del footer */
}





