/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #000;
    overflow-x: hidden; /* elimina scroll lateral */
}

/* ================= NAV ================= */
nav {
    width: 100%;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
    align-items: center;
}

/* TÍTULO */
.calendario {
    font-weight: 800;
    color: #eee;
    margin-right: 20px;
}

/* BUSCADOR */
#buscador {
    padding: 8px;
    width: 200px;
    border-radius: 10px;
    border: 3px solid #219;
    background-color: #000;
    color: #eee;
}

/* SELECT FECHAS */
#fechas {
    padding: 8px;
    width: 200px;
    border-radius: 10px;
    border: 3px solid #219;
    background-color: #000;
    color: #eee;
}

/* ================= SECCIÓN CARRERAS ================= */
section {
    background-color: rgb(69, 1, 90);
    margin-top: 40px;
    width: 100%;
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* TARJETA CARRERA */
.imagen {
    width: 100%;
    max-width: 500px;
    border: 3px solid #000;
    border-radius: 14px;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

/* IMÁGENES */
.imagen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #000;
}

/* TÍTULO OCULTO (LO MANTENEMOS) */
.titulo {
    display: none;
}

/* ================= MODAL ================= */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

/* Imagen grande */
.modal-imagen {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

/* Botón cerrar */
.modal-cerrar {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

/* Hover solo desktop */
@media (hover: hover) {
    .modal-cerrar:hover {
        color: #48e;
    }
}


/* ================= FOOTER ================= */
footer {
    margin-top: 120px;
    width: 100%;
    background-color: #000;
    color: #eee;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    gap: 20px;
}

.logo {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.enlaces {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ultimo {
    color: #eee;
    text-decoration: none;
    margin-top: 10px;
}

.ultimo:hover {
    border-bottom: 1px solid #eee;
}

.symbols {
    text-align: center;
}

.social img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}

.social img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .calendario {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    #buscador,
    #fechas {
        width: 90%;
        max-width: 320px;
    }

    section {
        padding: 15px;
    }

    .carreras img {
        height: 220px;
    }

    footer {
        padding: 20px;
        gap: 15px;
    }
}