/* ============================================================
   ESTILOS ORIGINALES (SIN MODIFICACIONES EN LA LÓGICA BASE)
   ============================================================ */

* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.banner-fondo {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 350px;
    background-image: url("../recursos/2.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 50% 100px;
    border-bottom-right-radius: 50% 100px;
    overflow: hidden;
}

.textos-card {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.textos-card:hover {
    color: #ff0000;
}

.banner-fondo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.37);
}

.banner-texto {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
}

.banner-texto h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 4rem;
    margin-bottom: 20px;
}

.card-modalidad h5,
h6 {
    font-family: "Montserrat", sans-serif;
    font-size: 110%;
}

.banner-fondo::before {
    z-index: 0;
}

.card {
    height: 175px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: none;
    padding: 12px;
}

h2 {
    font-family: "Montserrat", sans-serif;
    margin-top: 5%;
    text-align: center;
    color: #122b76;
}

#info {
    font-family: "Montserrat", sans-serif;
    margin-top: 2%;
    text-align: center;
    color: rgb(0, 0, 0);
}

.electricidad {
    position: relative;
    z-index: 2;
    height: 450px;
    top: 0px;
    left: -5px;
    animation-name: slidein;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    opacity: 0;
}

@keyframes slidein {
    0% { transform: translateX(-80px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.row-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 10%;
}

.decoration-blur {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    z-index: 0;
}

.decoration-blue { background-color: var(--color-blue); top: 0; right: 0; }
.decoration-red { background-color: var(--color-red); bottom: 0; left: 0; }

.btn-gradient {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 45, 120, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 45, 120, 0.4);
}

.btn-gradient:active { transform: scale(0.95); }

.card2 {
    margin-top: 3%;
    width: 250px;
    height: 150px;
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(8px);
    border: none;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    color: #f6303a;
    font-weight: 700;
}

.card-title-1 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
}

.card-text {
    margin-top: 10%;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
}

#informacion {
    text-align: justify;
    margin: 2% 15% 5% 15%;
}

#q-s, #i-p { font-weight: bold; }

.contenido-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lado-izquierdo { flex: 1; }
.lado-derecho { display: flex; justify-content: center; align-items: center; }

.img-manito {
    width: 30px;
    height: auto;
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25), -1px -1px 3px rgba(255, 255, 255, 0.8), inset 1px 1px 2px rgba(255, 255, 255, 0.6), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
    padding: 6px;
    animation: mover 1s infinite ease-in-out;
    transform-style: preserve-3d;
}

@keyframes mover {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.porque-estudiar {
    width: 100%;
    padding: 60px 20px;
    color:#122b76;
    background: #f8f9ff;
    text-align: center;
}

.porque-estudiar h2 {
    font-size: 32px;
    font-weight: 700;
    color: #122b76;
    margin-bottom: 40px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    max-width: 1200px;
    margin: auto;
}

.card-info {
    background: #fff;
    position: relative;
    padding: 40px 25px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    border-left: 5px solid #122b76;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

.card-info.visible { opacity: 1; transform: translateY(0); }

.card-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.card-info h3 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.bg1 { background: url("../recursos/aprendizaje.jpg") center/cover no-repeat; }
.bg2 { background: url("../recursos/carrera.jpg") center/cover no-repeat; }
.bg3 { background: url("../recursos/docentes.jpg") center/cover no-repeat; }
.bg4 { background: url("../recursos/crecimiento.png") center/cover no-repeat; }
.bg5 { background: url("../recursos/ambiente.jpg") center/cover no-repeat; }

.anios-section {
    background: #122b76;
    padding-top: 180px;
    padding-bottom: 200px;
    padding-left: 5%;
    padding-right: 5%;
    margin-top: -100px;
    position: relative;
    z-index: 1;
    min-height: 600px; 
    border-bottom-left-radius: 50% 100px;
    border-bottom-right-radius: 50% 100px;
    overflow: hidden;
}

.anios-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.anios-img img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.anios-texto h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.anios-texto h6 {
    font-family: "Montserrat", sans-serif;
    color: white;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.badge-anios {
    display: inline-block;
    background: #f6303a;
    color: #fff;
    padding: 18px 30px;
    border-radius: 15px;
    text-align: center;
}

.badge-anios span { display: block; font-size: 2rem; font-weight: 700; }
.badge-anios small { font-size: 0.9rem; opacity: 0.9; }

/* ============================================================
   SECCIÓN RESPONSIVA ADICIONAL (OPTIMIZACIÓN TOTAL)
   ============================================================ */

/* 💻 TABLETS (Hasta 1024px) */
@media (max-width: 1024px) {
    .anios-container {
        gap: 30px;
    }
    #informacion {
        margin-left: 8%;
        margin-right: 8%;
    }
    .banner-texto h1 {
        font-size: 3rem;
    }
}

/* 📱 MÓVIL Y TABLETS VERTICALES (Hasta 900px) */
@media (max-width: 900px) {
    .anios-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .anios-texto h2 {
        text-align: center;
        font-size: 2rem;
    }
    .badge-anios {
        margin: auto;
    }
    .anios-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* 📱 MÓVIL GENERAL (Hasta 768px) */
@media (max-width: 768px) {
    .banner-fondo {
        min-height: 300px;
        padding: 40px 15px;
        flex-direction: column;
        border-bottom-left-radius: 50% 50px;
        border-bottom-right-radius: 50% 50px;
    }

    .banner-texto {
        text-align: center;
    }

    .banner-texto h1 {
        font-size: 2.2rem;
    }

    .electricidad {
        height: 250px;
        left: 0;
        margin-top: 20px;
    }

    .row-info {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
        margin-bottom: 15%;
    }

    .card, .card2 {
        width: 100% !important;
        max-width: 400px;
        height: auto;
        min-height: 140px;
    }

    .card-title { font-size: 1.8rem; }
    .card-title-1 { font-size: 2rem; }
    
    #informacion {
        margin-left: 5%;
        margin-right: 5%;
        text-align: justify;
    }

    .anios-section {
        margin-top: -60px;
        border-bottom-left-radius: 50% 50px;
        border-bottom-right-radius: 50% 50px;
    }
}

/* 📱 MÓVIL MUY PEQUEÑO (Hasta 480px) */
@media (max-width: 480px) {
    .banner-texto h1 {
        font-size: 1.8rem;
    }

    .electricidad {
        height: 180px;
    }

    .card-info h3 {
        font-size: 18px;
    }

    .btn-gradient {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}