:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg: #f4f6f9;
    --text: #1f2937;
    --muted: #6b7280;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

body {
    display: flex;
    flex-direction: column;
}

/* CONTENIDO PRINCIPAL */
.app-content {
    flex: 1;
    padding: 10px;
}

/* HEADER / FOOTER */
.app-header {
    border-top: 4px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.app-footer {
    border-top: 4px solid var(--primary);
}

/* CONTAINERS */
.container,
.container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
}

.row {
    align-items: flex-start;
}

/* CARDS */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    }

/* CARD PERSONALIZADA */
.custom-card {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: flex;
    flex-direction: column;
}

    .custom-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: space-between;
    }

/* WHATSAPP BUTTON */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 200px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.25);
}

    .btn-whatsapp:hover {
        background: #1ebe5d;
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(37, 211, 102, 0.35);
        color: white;
    }

/* CARRUSEL */
.afiche-carousel-small {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.afiche-img-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* LAYOUT PRINCIPAL */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 1rem;
    align-items: start;
}

/* TARJETAS */
.tarjetas-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* CARRUSEL STICKY */
.carrusel-area {
    position: sticky;
    top: 66px;
}

/* TITULOS */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* BOTONES GENERALES */
.btn-carrera,
.btn-centro-educativo {
    width: 100%;
    max-width: 200px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

    .btn-carrera:hover,
    .btn-centro-educativo:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
        color: white;
    }

    .btn-carrera i,
    .btn-centro-educativo i {
        font-size: 1.1rem;
    }













/* =========================
   RESPONSIVE DESIGN
========================= */

/* TABLET */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .carrusel-area {
        position: relative;
        top: auto;
    }

    .tarjetas-area {
        grid-template-columns: 1fr;
    }
}

/* MÓVIL */
@media (max-width: 576px) {

    .app-content {
        padding: 8px;
    }

    .section-title {
        font-size: 18px;
    }

    .custom-card {
        max-width: 100%;
    }

    .btn-carrera,
    .btn-centro-educativo,
    .btn-whatsapp {
        max-width: 100%;
    }

    .card:hover {
        transform: none;
    }
}


