/* =========================================
   ESTILOS SECCIÓN: ADMISIÓN (DISEÑO ÉLITE)
   ========================================= */

section.admision {
    padding: 80px 0;
    background-color: #f9fafb;
    position: relative;
}

/* Decoración de fondo sutil */
section.admision::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-blue) 50%, var(--primary-red) 50%);
}

.contenido-admision {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. HEADER (CON ICONOS LATERALES)
   ========================================= */
.header-admision {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* Contenedor Flex para Icono - Título - Icono */
.titulo-con-iconos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Espacio entre iconos y texto */
    margin-bottom: 30px;
    flex-wrap: wrap; /* Para que se acomode en móvil */
}

.titulo-con-iconos h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
    flex: 1; /* Ocupa el espacio central */
    max-width: 800px; /* Evita que se estire demasiado */
}

/* Estilo de los Iconos (Quijote y Molino) */
.icono-titulo {
    height: 80px; /* Tamaño destacado */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.icono-titulo:hover {
    transform: scale(1.15) rotate(5deg);
}

/* El dato del 95% destacado */
.texto-aceptacion {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-red);
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
    margin: 0;
    position: relative;
    z-index: 2;
    border: 2px solid white;
}

/* =========================================
   2. GRID DE TARJETAS (UNIVERSIDADES)
   ========================================= */
.contenedor-admision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- ESTILO DE TARJETA --- */
.card-admision {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-admision:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(31, 42, 68, 0.15);
}

.img-card {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-admision:hover .img-card img {
    transform: scale(1.1);
}

.img-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0.6;
}

/* --- CONTENIDO DE TEXTO --- */
.contenido-card {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.contenido-card .rojo {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: rgba(211, 47, 47, 0.08);
    padding: 8px 15px;
    border-radius: 30px;
    align-self: center;
    display: inline-block;
}

.contenido-card .texto-card {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .titulo-con-iconos h1 {
        font-size: 2.5rem;
    }
    
    .icono-titulo {
        height: 60px; /* Un poco más chicos en tablet */
    }
}

@media (max-width: 768px) {
    /* En móvil, quizás queramos los iconos arriba del texto para no apretar */
    .titulo-con-iconos {
        flex-direction: column; /* Apilar verticalmente */
        gap: 15px;
    }
    
    /* Ocultar uno de los dos iconos si se ve muy cargado, o mantener los dos arriba */
    .icono-titulo {
        height: 70px;
    }

    .titulo-con-iconos h1 {
        font-size: 2.2rem;
        order: 2; /* Título en medio */
    }
    
    .icono-titulo.izquierda { order: 1; }
    .icono-titulo.derecha { order: 3; }
    
    .texto-aceptacion {
        font-size: 1.1rem;
        padding: 15px 20px;
        width: 100%;
    }

    .card-admision {
        margin-bottom: 20px;
    }
}