﻿/* ============================= */
/* CARD PREMIUM INSTITUCIONAL */
/* ============================= */

.program-card {
    background: linear-gradient(160deg, #192854 0%, #223a7a 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #bbd000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.parrafo-card{
    color:white !important;
}
    /* Línea decorativa superior */
    .program-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, #4993cc, #fdd757, #bbd000);
    }

    /* Hover elegante */
    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 55px rgba(0,0,0,0.25);
        border-color: #fdd757;
    }

/* ============================= */
/* IMAGEN */
/* ============================= */

.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top-custom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.program-card:hover .card-img-top-custom {
    transform: scale(1.1);
}

/* ============================= */
/* CONTENIDO */
/* ============================= */

.card-body-custom {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .card-body-custom h5 {
        color: #fdd757;
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 18px;
    }

    .card-body-custom p {
        color: #e6e9f2;
        font-size: 14.5px;
        line-height: 1.6;
        flex-grow: 1;
    }

/* ============================= */
/* BOTÓN */
/* ============================= */

.btn-programa {
    display: inline-block;
    padding: 11px 24px;
    background: #4993cc;
    color: #ffffff;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    align-self: flex-start;
}

    .btn-programa:hover {
        background: #fdd757;
        color: #192854;
        box-shadow: 0 8px 20px rgba(253, 215, 87, 0.4);
    }
/* ============================= */
/* SECCIÓN PROGRAMAS */
/* ============================= */

.programas-section {
    background: linear-gradient(180deg, #c4bfb6 0%, #ffffff 100%);
    padding: 0px 0;
    min-height: 700px;
}
.container.flex1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
    /* Título */
    .programas-section h2 {
        background: linear-gradient(90deg, #192854, #4993cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700;
        position: relative;
    }

        /* Línea decorativa debajo del título */
        .programas-section h2::after {
            content: "";
            width: 60px;
            height: 5px;
            background: #fdd757;
            display: block;
            margin-top: 10px;
            border-radius: 10px;
            box-shadow: 0 0 8px rgba(253, 215, 87, 0.7);
        }

    /* Texto descriptivo */
    .programas-section p {
        color: black;
        line-height: 1.7;
    }

/* ============================= */
/* ANIMACION ENTRADA */
/* ============================= */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.22,.61,.36,1);
}

    .fade-up.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Delay opcional */
.delay-1 {
    transition-delay: .2s;
}

.delay-2 {
    transition-delay: .4s;
}

.delay-3 {
    transition-delay: .6s;
}
