﻿/* ===========================
   VARIABLES DE COLOR (recomendable)
=========================== */
:root {
    --color-white: #ffffff;
    --color-primary: #0099CD;
    --color-accent: #FF7A00; /* ajustable */
    --color-medium-gray: #666666;
    --color-yellow: #FFD700;
}

/* ===========================
   BODY
=========================== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* evita scroll horizontal */
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ===========================
   CARRUSEL
=========================== */
.carousel-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    height: 420px;
    position: relative;
}

/* ===========================
   CONTENEDOR PRINCIPAL
=========================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

    /* Links dentro de main-content */
    .main-content a {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.2s ease;
    }

        .main-content a:hover {
            color: black
            transform: scale(1.05);
        }

        .main-content a:active {
            transform: scale(0.98);
        }

/* ===========================
   CALENDARIO ACADÉMICO
=========================== */
.widgetCalendario {
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    
    width: 88%;
    margin-left: 6%;

}

    .widgetCalendario h3 {
        margin-bottom: 24px;
        font-size: 18px;
        color: #003366 !important;
    }

    .eventsCalendario {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

/* Estilo unificado hover para eventos como cards */
.eventCalendario {
    padding: 0.8rem 1rem;
    border-left: 6px solid #E91E63 !important;
    background-color: #fefefe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .eventCalendario:hover {
        transform: translateY(-5px);
        box-shadow: 0 1px 8px #003366 ;
    }

.detailsCalendario .timeCalendario {
    color: #E91E63 !important;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.detailsCalendario p {
    font-size: 1rem;
    margin: 0;
}

.eventCalendario img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.8rem;
    vertical-align: middle;
}

.footerCalendario {
    text-align: right;
    font-size: 12px;
    margin-top: 20px;
    color: rgba(0,0,0,0.75);
}

    .footerCalendario span {
        color: #003366 !important;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.25s ease, transform 0.2s ease;
        margin-right: 8%;
    }

        .footerCalendario span:hover {
            color: black
            transform: translateY(-1px);
            text-decoration: underline;

        }

/* ===========================
   CARDS PRINCIPALES CUADRADAS
=========================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    width: 100%;
    margin-top: 40px;
    align-content: start;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-white);
    text-decoration: none;
    color: inherit;
}

    .card img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .card h3 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        color:  #003366 !important;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 16px;
        color: #333333 !important;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1px 4px #E91E63;
    }

/* ===========================
   MODALES
=========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background-color: #4b3f3f7a !important;
    border-radius: 12px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease;
}

    .modal-content .close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        color: #333;
        transition: color 0.2s ease;
    }

        .modal-content .close:hover {
            color: black
        }

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   PLANES / GRUPOS MODAL
=========================== */
#contenedorPlanes {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.planesDeEstudio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: var(--color-white);
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modalPlanes {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    background-color: var(--color-white);
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .modalPlanes img {
         max-height:180px; border-radius:8px; object-fit:contain; cursor:pointer;
    }

    .gruposWSP {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--color-white);
        border: 1px solid #E0E0E0;
        border-radius: 10px;
        padding: 1rem;
        text-align: center;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .planesDeEstudio img,
    .gruposWSP img {
        width: 100%;
        max-width: 150px;
        height: auto;
        margin-bottom: 0.5rem;
        object-fit: contain;
    }

.planesDeEstudio h3, .modalPlanes h3,
.gruposWSP h3 {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.modal-content h2 {
    font-family: Montserrat;
    color: white;
}

    .planesDeEstudio:hover,
    .gruposWSP:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        border-color: black
    }

/* ===========================
   MODAL CALENDARIO 2026
=========================== */
#contenedorCalendario2026 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eventoModalCalendario {
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--color-yellow);
    background-color: #fefefe;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .eventoModalCalendario:hover {
        transform: translateY(-5px);
        box-shadow: 0 1px 8px black;
        border-color: orange;
    }

.eventoFecha {
    color: var(--color-yellow);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.eventoTitulo {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    color: #000;
}

.eventoCuerpo {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.75);
    margin-top: 4px;
    line-height: 1.4;
}

#modalCalendario2026 .modal-content {
    background-color: #f9f9f9;
    border-radius: 12px;
}

/* ===========================
   RESPONSIVE
=========================== */



@media (max-width: 1072px) {
    .card p{
        font-size:14px;
    }
}

@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .card p{
        font-size:14px;
    }

    .modalPlanes{
        width:100%;
    }
   
}

@media (max-width: 768px) {

    .card p{ font-size:14px;}
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

 

    #contenedorPlanes {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .planesDeEstudio img {
        max-width: 120px;
    }

}

@media (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .card p{
        font-size:14px;

    }
 

    .carousel-container {
       
        height: auto;
    }
    .widgetCalendario h3 {
        text-align: center;
       
    }
    .card img{
        width:180px;
        height:180px;
    }
}


/* ================= CARRUSEL TRANSICIÓN ================= */


