/* --- Contenido Principal --- */
.content {
    text-align: center;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-size: 2.8em;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: 700;
}

.description {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Grid de Becas --- */
.scholarship-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 100%;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

    .card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: #1ab192;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

        .card:hover:before {
            transform: scaleX(1);
        }

.card-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-logo {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.card-content {
    flex-shrink: 0;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1ab192;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4em;
}

.card-subtitle {
    font-size: 1em;
    color: #777;
    font-weight: 500;
}

a {
    text-decoration: none;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeInUp 0.6s ease;
}

.card {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

/* Footer */

.card-footer {
    flex-shrink: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.card-dates {
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
    

    .card-dates strong {
        color: #333;
    }

.card-btn-inline {
    display: inline-block;
    background-color: #1ab192;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

    .card-btn-inline:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Responsive */
@media (max-width: 768px) {
    .scholarship-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    .description {
        font-size: 1em;
    }
}