*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f6f9;
    color:#222;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* HEADER ***************************************************************/

header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
    color:#0b2c72;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-icon{
    width:70px;
    height:70px;
    background:#0b2c72;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:30px;
}

.logo h1{
    font-size:1.8rem;
    color:#0b2c72;
}

.logo p{
    font-size:.9rem;
    color:#666;
}

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav a{
    text-decoration:none;
    color:#0b2c72;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#f0b429;
}

.btn-contacto{
    background:#0b2c72;
    color:white;
    padding:12px 25px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

/* END HEADER ***********************************************************/

/* HERO *****************************************************************/

.btn-primary{
    background:#0b2c72;
    color:white;
    text-decoration:none;
    padding:15px 30px;
    border-radius:12px;
    font-weight:600;
}

.btn-secondary{
    border:2px solid #0b2c72;
    color:#0b2c72;
    text-decoration:none;
    padding:15px 30px;
    border-radius:12px;
    font-weight:600;
}
/* END HERO ************************************************************/

/* CARDS ***************************************************************/

.features{
    margin-top:-70px;
    position:relative;
    z-index:10;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.cards3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.card-header{

    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.card-header h3{

    margin:0;
    text-align:left;
    color:#0b2c72;
}

.card .icon{

    margin-bottom:0;
}

.card .icon img{

    width:70px;
    height:70px;
    object-fit:contain;
}

.card .btn-primary{
    margin-top:auto;
    align-self:center;
}

.card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.card{
    background:white;
    border-radius:20px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-8px);
}

.icon{
    font-size:3rem;
    margin-bottom:20px;
}

.icon img{
    width: 70px;
    height:70px;
    border-radius:15px;
    margin-bottom:20px;
}

.card h3{
    color:#0b2c72;
    margin-bottom:10px;
}
.cards img{
    width:100px;
    height:100px;
    border-radius:15px;
    margin-bottom:20px;
}

.card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.cards3 img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;
}
/* END CARDS ***********************************************************/

/* BREADCRUMB **********************************************************/


.breadcrumb{
    background:#eef2f7;
    padding:15px 0;
}

.breadcrumb a{
    color:#0b2c72;
    text-decoration:none;
    font-weight:600;
}

.page-title h1{
    color:#0b2c72;
    font-size:3rem;
}

.page-image img{
    width:100%;
    border-radius:20px;
}

.breadcrumb a:hover{
    color:#f0b429;
}

/* END BREADCRUMB ******************************************************/

/* ACADEMIC BLOCK ******************************************************/

.academic-detail{
    padding:40px 0 20px;
}

.academic-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.academic-block{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.academic-block h3{
    color:#0b2c72;
}

.academic-block ul{
    padding-left:35px;
    margin:15px 0;
}

.academic-block li{
    margin-bottom:6px;
}

.academic-table{
    padding:60px 0;
}

.academic-table table{

    width:100%;

    border-collapse:separate;
    border-spacing:0;

    background:white;

    border-radius:20px;

    overflow:hidden;

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

.academic-table th{

    background:#0b2c72;
    color:white;
    padding:15px;
}

.academic-table td{

    padding:15px;
    border-bottom:1px solid #eee;
}
/* END ACADEMIC BLOCK **************************************************/

/* 70 30 ***************************************************************/

.secretaria-content{
    padding:20px 0 60px;
}

.secretaria-layout{

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

.info-card,
.side-card{

    background:white;
    border-radius:20px;
    padding:35px;
    margin-bottom:30px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    scroll-margin-top:120px;
}

.info-card h2,
.side-card h3{

    color:#0b2c72;
    margin-bottom:10px;
}

.title-line{

    width:60px;
    height:4px;
    background:#b5bf1e;
    border-radius:20px;
    margin-bottom:25px;
}

.info-card p{

    line-height:1.7;
}

.info-card ul{

    margin-top:20px;
    padding-left:30px;
}

.info-card li{

    margin-bottom:10px;
}

.schedule-table{

    width:100%;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border-radius:12px;
    margin-top:20px;
}

.schedule-table td{

    padding:15px;
    border:1px solid #e5e5e5;
}

.schedule-table tr:nth-child(even){

    background:#fafafa;
}

.schedule-note{

    margin-top:20px;
    font-size:.9rem;
    color:#666;
}

.side-list{

    list-style:none;

    padding:0;
}

.side-list li{

    border-bottom:1px solid #ececec;
    padding:12px 0;
}

.side-list li:last-child{

    border:none;
}

.side-list a{

    text-decoration:none;
    color:#0b2c72;
    transition:.3s;
}

.side-list a:hover{

    color:#b5bf1e;
}

.contact-info p{

    margin-bottom:15px;
    line-height:1.6;
}
/* END 70 30 ***********************************************************/

/* GRID DEPARTAMENTOS **************************************************/

.departments-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-top:30px;
}

.department-card{

    background:white;
    border-radius:20px;
    padding:25px 20px;
    text-align:center;
    text-decoration:none;
    color:inherit;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
    align-items:center;
    min-height:220px;
}

.department-card:hover{

    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.12);
}

.department-card img{

    width:70px;
    height:70px;
    object-fit:contain;
    margin-bottom:20px;
}

.department-card h3{

    color:#0b2c72;
    font-size:1rem;
    line-height:1.3;
    margin-bottom:auto;
}

.department-card span{

    color:#b5bf1e;
    font-weight:600;
    margin-top:20px;
}
/* END GRID DEPARTAMENTOS ***********************************************/

/* RELATED CONTENT *****************************************************/

.related-banner{
    padding:40px 0;
}

.related-content{
    background:#f3f8df;
    border-radius:20px;
    padding:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.resource-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.resource-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.resource-grid ul{
    padding-left:35px;
    margin:15px 0;
}

.resource-grid li{
    margin-bottom:6px;
}

.resource-grid a {
    text-decoration:none;
    color:inherit;
    display:block;
}

.resource-grid a:hover{
    color:#f0b429;
}

/* END RELATED CONTENT *************************************************/

/* INFO SECTION ********************************************************/

.info{
    padding:100px 0;
}

.info h2{
    color:#0b2c72;
    margin-bottom:20px;
    font-size:2.5rem;
}

.info p{
    max-width:800px;
    line-height:1.8;
    color:#555;
}

/* FOOTER */

footer{
    background:#0b2c72;
    color:white;
    text-align:center;
    padding:30px;
}
/* END INFO SECTION **************************************************/

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 900px){
    .cards3{
        grid-template-columns:1fr;
    }
}

@media (max-width: 1024px){

    
    .departments-grid{

        grid-template-columns:repeat(2,1fr);
    }
    .navbar{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .hero h2{
        font-size:3rem;
    }

    .hero{
        min-height:500px;
    }
}


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

    .departments-grid{

        grid-template-columns:1fr;
    }

    .navbar{
        position:relative;
        flex-direction:column;
    }

    .menu-toggle{
        display:block;
        position:absolute;
        right:15px;
        top:20px;
    }

    nav{
        display:none;
        width:100%;
    }

    nav.active{
        display:block;
    }

    nav ul{
        flex-direction:column;
        text-align:center;
        gap:0;
        margin-top:20px;
    }

    nav li{
        border-bottom:1px solid #ddd;
    }

    nav a{
        display:block;
        padding:15px;
    }

    .btn-contacto{
        margin-top:15px;
    }

       /* HERO */

    .hero{
    min-height:auto;
    padding:80px 0;

    background:
    linear-gradient(
        rgba(255,255,255,.85),
        rgba(255,255,255,.85)
    ),
    url('images/cabecera.png');
    }

    .hero-content{
        max-width:100%;
        text-align:center;
    }

    .hero .bienvenida{
        font-size:1.3rem;
    }

    .hero h2{
        font-size:2.2rem;
        line-height:1.2;
    }

    .hero p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
        max-width:320px;
        text-align:center;
    }

    /* FEATURES */

    .features{
        margin-top:20px;
    }

     .cards{
    grid-template-columns:1fr;
    }

    .cards3{
        grid-template-columns:1fr;
    }

    .card{
        padding:25px;
    }

    .cards3 img{
        height:180px;
    }

    .card-header{

    flex-direction:column;

    text-align:center;
    }

    .card-header h3{

        text-align:center;
    }

    /* INFO */

    .info{
        padding:60px 0;
    }

    .info h2{
        font-size:2rem;
        text-align:center;
    }

    .info p{
        text-align:center;
    }

    footer{
        font-size:.9rem;
    }

 .page-header{

    min-height:auto;

    padding:80px 0;

    background:
    linear-gradient(
        rgba(255,255,255,.88),
        rgba(255,255,255,.88)
    ),
    url("images/oferta.png");

    background-size:cover;
    background-position:center;
    }

    .page-header-content{

        max-width:100%;

        text-align:center;
    }

    .page-header h1{

        font-size:2.4rem;
    }

    .page-header p{

        font-size:1rem;
    }

    .academic-grid{
        grid-template-columns:1fr;
    }

    .resource-grid{
        grid-template-columns:1fr;
    }

    .admission-content{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }
        .secretaria-layout{

        grid-template-columns:1fr;
    }

    .info-card,
    .side-card{

        padding:25px;
    }

    .schedule-table{

        font-size:.9rem;
    }
}