:root{
    --primary: #0a335c;
    --secundary: #dd8c2f;
    --radius-button: 50px; 
    --shadow-button: 0 4px 15px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px 5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Ubuntu", "Bebas Neue", sans-serif;
    width: 100%;
    min-height: 100vh;
    background-color: white;
    position: relative;
    inline-size: 100%;
    overflow-x: hidden;
}

.contact{
    width: 100%;
    min-height: 40px;
    background-color: var(--secundary);    
    display: flex;
    justify-content: center;
    padding: 5px 10px;
}

.container, .logo-container{
    width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-number{
    display: flex;
    align-items: center;
}

.contact-number-container, .contact-mail-container{
    display: flex;
}

.wsp, .mail, .network{
    width: 20px;
}

.wsp, .mail{
    margin-right: 10px;
    height: 20px;
}

.contact-social{
    display: flex;
}

.network{
    margin-left: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.network:hover{
    transform: scale(1.3);
}

.number, .mail_description{
    display: inline-block;
    font-size: 15px;
    margin-right: 30px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.logo-menu{
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.logo{
    width: 20%;
}

.logo-home{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.logo-description{
    color: white;
    width: 40%;
}

.logo-img{
    width: 60px;
}

.abrir-menu-hamburguesa, .cerrar-menu-hamburguesa{
     display: none;   
}

.menu{
    width: 80%;
    display: flex;
    justify-content: flex-end;
}

.menu-list{
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-item{
    list-style: none;
}

.menu-anchor{
    text-decoration: none;
    color: white;
    padding: 10px;
    display: inline-block;
    text-align: center;
    position: relative;
}

.menu-anchor:hover{
    color: #7AAACE;
}

.menu-anchor::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secundary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-anchor:hover::after {
    width: 80%;
}

.menu-anchor-mod{
    font-weight: bold;
    border: 2px solid var(--secundary);
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--secundary);
    transition: transform 0.3s ease;
    left: 10px;
}

.menu-anchor-mod:hover{
    transform: translateY(-5px);
    color: white;
}

.slider{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--primary);
}

.slider-container{
    width: 1000px;
    overflow: hidden;
    position: relative;
}

/* Estilos para las flechas */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10; 
    border-radius: 5px;
    transition: background 0.3s;
}

.arrow-btn:hover {
    background-color: var(--primary); 
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.slider-big{
    width: 400%;
    height: 300px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    transition: transform 0.9s ease-in-out;
    transform: translateX(0%);
}

.slider-img{
    width: calc(100% / 4 - 5px);
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.slider-points{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.points{
    width: 20px;
    height: 20px;
    margin: 15px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 1px 1px 3px black;
    cursor: pointer;
}

.points.active{
    background-color: #dd8c2f;
}

.phrase{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: 500;
    position: absolute;
    z-index: 1;
    background: #0A335C;
    background: linear-gradient(90deg, rgba(10, 51, 92, 1) 0%, rgba(10, 51, 92, 0.2) 51%, rgba(10, 51, 92, 0) 100%);
}

.phrase-description{
    margin: 8px 50px;
    animation: fadeIn 1.4s ease-out 0.6s both;
}

.icons{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0;
    background-color: var(--primary);
}

.icon-list{
    width: 1000px;
    display: flex;
    justify-content: space-around;
}

.icon-section{
     display: flex;
     flex-direction: column;
     align-items: center;
}

.icon{
    width: 70px;
    margin-bottom: 20px;
}

.icon-description{
    color: white;
}

.programs{
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    background-image: url(../assets/backg-who.jpg);
    background-size: cover;
    background-repeat: round;
    
}

.program-container{
    width: 1000px;  
}

.phrase-programs, .why-title{
    font-size: 40px;
    color: var(--primary);
    margin: 50px auto 30px;
    text-align: center;
    letter-spacing: 1px;
}

.offer-box{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 10px;
}

.program {
    background-color: var(--primary);
    margin: 20px;
    border-radius: 15px; /* Más redondeado = más moderno */
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    overflow: hidden; /* Para que la imagen no se salga de los bordes redondeados */
}

.program:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.program-link{
    display: inline-block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.imagen-program{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-offer{
    font-size: 30px;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.img-program{
    width: 100%;
    height: 200px;
    border-radius: 20px;
    padding: 10px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program:hover .img-program {
    transform: scale(1.1); /* Zoom sutil a la foto */
}

.phrase-bachiller{
    font-weight: bold;
    color: white;
    margin: 10px;
    
}

.star{
    display: flex;  
    width: 30%; 
    transition: transform 0.3s ease;
}

.star-img{
    width: 10%;
    margin-left: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-img-modstar{
    width: 22%;
    margin-left: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-img .star-img-modstar:hover{
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transform: scale(1.2) rotate(15deg);
    cursor: pointer;
}

.star-img:hover{
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transform: scale(1.2) rotate(15deg);
    cursor: pointer;
}

.subtitle-phrase{
    color: white;
    margin: 20px 10px;
}

.counter {
    display: inline-block;
    transition: transform 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.counter:hover {
    transform: scale(1.1);
    color: #ffd700; 
}

.grid{
    grid-column: span 2;
}

.information{
    display: flex;
    justify-content: center;
}

.button-information{
    padding: 15px;
    background-color: var(--secundary);
    text-decoration: none;
    color: var(--primary);
    font-size: 20px;
    font-weight: 500;
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-button);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.button-information:hover{
    cursor: pointer;
    transform: scale(1.2);
}

.why{
    width: 100%;
    background: var(--secundary);
    display: flex;
    justify-content: center;
}

.why-container {
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-title{
    font-size: 40px;
    color: white;
    margin: 50px auto 30px;
}

.why-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.reasons {
    width: 24%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: antiquewhite;
    padding: 10px 10px 10px 15px;
}

.reason-head{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.reason-img{
    margin: 5px;
    width: 80px;
}

.reasons-title{
    font-weight: 500;
    margin: 20px 5px;
    color: var(--primary);
    font-size: 17px;
    text-align: center;
}

.reasons-description{
    margin: 10px;
    line-height: 22px;
}

.reasons-phrase{
    font-style: italic;
    text-align: center;
    color: var(--primary);
    margin: 20px auto;
    padding: 15px;
}

.button-information-why{
    padding: 15px;
    background-color: #f9f9f9;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 20px;
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-button);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.button-information-why:hover{
    cursor: pointer;
    transform: scale(1.2);
}

.allies{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--primary);
}

.allies-container{
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.allies-title{
    margin: 50px;
    font-size: 40px;
    color: white;
}

.allies-box{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.allies-card{
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: var(--radius-md);
    border: 1px solid black;
    box-shadow: var(--shadow-md);
}

.allies-img{
    height: 150px;
}

.allies-img-education{
    height: 85px;
}

.contact-button{
    width: 200px;
    background-color: var(--secundary);
    color: white;
    font-size: 18px;
    font-weight: 500;
    border-radius: var(--radius-md);
    box-shadow: 2px 3px var(--primary);
    position: fixed;
    right: 10px;
    bottom: 20px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-button:hover{
    cursor: pointer;
    transform: scale(1.1);
}

.contact-link{
    width: 100%;
    padding: 15px 10px;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-link:visited{
    color: white;
}

.contact-icon{
    width: 20px;
    margin-left: 5px;
}


.offer-box, .why-box, .allies-box {
    view-timeline-name: --section;
    view-timeline-axis: block;
    animation-timeline: --section;
    animation-name: reveal;
    animation-range: entry 10% cover 30%;
    animation-fill-mode: both;
}

.footer{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #03153a;
}

.footer-container{
    width: 1000px;
    display: flex;    
    flex-direction: column;
}

.footer-box{
    width: 100%;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.footer-identity{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-img{
    width: 100px;
    margin-bottom: 10px;
}

.footer-img-phrase{
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.footer-phrase{
    color: white;
    margin-bottom: 15px;
}

.contact-container{
    display: flex;
}

.contact-box{
    display: flex;
    margin-bottom: 10px;  
    align-items: center;
}

.contact-box-img{
    height: 20px;   
}

.footer-title{
    color: var(--secundary);
    font-size: 20px;
    margin: 20px 30px;
}

.footer-subtitle{
    text-decoration: none;
    color: white;
    font-size: 15px;
    line-height: 25px;
}

.footer-copy{
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 50px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DISEÑO RESPONSIVO*/

@media screen and (max-width: 1024px){
    .container{
        width: 800px;
    }

    .logo-container{
        width: 800px;
    }

    .slider-container{
        width: 95%;
    }

    .icon-list{
        width: 800px;
    }

    .program-container{
        width: 800px;
    }

    .why-container{
        width: 800px;
    }

    .allies-container{
        width: 800px;
    }

    .footer-container{
        width: 800px;
    }

    .footer-box{
        justify-content: space-between;
    }

    .logo-description, .menu-anchor{
        font-size: 14px;
    }
}

@media screen and (max-width: 768px){
    .container{
        width: 650px;
    }

    .logo-container{
        width: 650px;
    }

    .slider-container{
        width: 650px;
    }

    .icon-list{
        width: 650px;
    }

    .program-container{
        width: 650px;
    }

    .why-container{
        width: 650px;
    }

    .allies-container{
        width: 650px;
    }

    .footer-container{
        width: 650px;
    }

    .footer-box{
        justify-content: space-between;
    }

    .logo-img{
        width: 45px;
    }
    .logo-description, .menu-anchor{
        font-size: 11px;
    }
    
    .phrase-description{
        font-size: 22px;
    }
    .slider-big{
        height: 240px;
    }
    .points{
        width: 15px;
        height: 15px;
    }
    .icon{
        width: 50px;
    }
    .icons{
        padding: 40px 0;
    }
    .phrase-programs, .why-title, .allies-title{
        font-size: 35px;
    }
    .offer-box{
        grid-template-columns: repeat(2, 1fr);
    }
    .grid{
        grid-column: span 1;
    }
    .star-img{
        width: 16px;
    }
    .phrase-bachiller, .subtitle-phrase, .footer-img-phrase, .footer-phrase, .contact-text{
        font-size: 15px;
    }
    
    .button-information, .button-information-why{
        padding: 12px;
        font-size: 17px;
    }
    .why-box{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }
    .reasons{
        width: 95%;
    }
    .reasons-phrase, .copy-description{
        font-size: 20px;
    }
    .allies-card{
        width: 180px;
    }
    .allies-img{
        height: 130px;
    }
    .allies-img-education{
        height: 80px;
    }
    .footer-img{
        width: 80px;
    }
    .contact-button{
        width: 150px;
    }
    .contact-icon{
        width: 18px;
    }
    .contact-link{
        padding: 12px 10px;
    }
}

@media screen and (max-width: 480px){

    .container, .logo-container, .slider-container, .why-container, .allies-container{
        margin: 0px 15px;
    }

    .contact-number{
        flex-wrap: wrap;
    }

    .contact-number-container, .contact-mail-container{
        padding: 5px 0;
        align-items: center;
    }
    
    .wsp, .mail{
        margin-right: 5px;
    }
    .number, .mail_description{
        font-size: 14px;
    }

    .logo-cerrar{
        display: flex;
        justify-content: space-between;
        margin: 10px 0px;
        align-self: flex-end;
    }

    .logo-description{
        width: 25%;
    }

    .abrir-menu-hamburguesa,
    .cerrar-menu-hamburguesa {
        display: block;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .cerrar-menu-hamburguesa{
        align-self: flex-end;
    }

    .menu{
        opacity: 0;
        visibility: hidden;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 70px;
        right: 0;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        background: var(--primary);
        z-index: 100;
        transform: translateY(-10px);
        transition: all 0.4s ease-in-out;
    }

    .menu.visible{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-list{
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .bi{
        display: block;
        width: 45px;
        height: auto;
    }

    .remove{
        display: block;
        width: 30px;
        height: auto;
    }

    .logo-img{
        width: 50px;   
    }

    .contact-button{
        right: 5px;
        bottom: 5px;
    }

    .phrase-description{
        font-size: 15px;
        margin: 5px 10px;
    }

    .slider-big{
        height: 200px;
    }

    .icon{
        width: 40px;
    }

    .phrase-programs, .why-title, .allies-title {
        font-size: 25px;
        margin: 35px auto 10px;
    }

    .program-container {
        width: 100%;
    }

    .program{
        margin: 15px;
    }

    .phrase-bachiller, .subtitle-phrase, .footer-img-phrase, .footer-phrase, .contact-text, .footer-subtitle{
       font-size: 12px;
    }

    .phrase-description {
        font-size: 1.2rem; 
    }

    .arrow-btn {
        padding: 8px 10px;
        font-size: 1.5rem; 
    }

    .points {
        width: 12px;
        height: 12px;
        margin: 8px; 
    }

    .offer-box, .why-box{
        grid-template-columns: repeat(1, 1fr);
    }

    .button-information, .button-information-why {
        padding: 10px;
        font-size: 16px;
    }

    .reasons-title{
        margin: 10px 5px;
        font-size: 15px;
    }   

    .reasons{
        margin-left: 10px;
    }

    .reason-img{
        width: 25%;
    }

    .reasons-description{
        font-size: 13px;
        line-height: 20px;
    }

    .allies-card{
        width: 140px;
        height: 100px;
        margin: 10px 0;
    }

    .allies-img {
        height: 100px;
    }

    .allies-img-education{
        height: 50px;
    }

    .allies-box{
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .footer-img{
        width: 65px;
    }

    .footer-container{
        width: 90%;
    }
    
    .footer-box{
        gap: 15px;
    }

    .reasons-phrase, .copy-description {
        font-size: 16px;
    }

    .footer-box{
        flex-wrap: wrap-reverse;
        justify-content: center;
    }

    .footer-title{
        text-align: center;
    }

    .contact-box{
        justify-content: center;
    }

    .footer-subtitle{
        text-align: center;
    }
}

@media screen and (max-width: 320px){
    .number, .mail_description {
    font-size: 9px;
    margin-right: 2px;
    }

    .icon{
        width: 35px;
    }

    .icon-description{
        font-size: 13px;
    }

    .contact-box{
        width: 160px;
    }
}

