p{
    text-align: justify !important;
}

/* Estilos para las cards de programas */
.programs-cards {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.program-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.card-education {
    border-top: 5px solid #FABF2F;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
}

.card-culture {
    border-top: 5px solid #4A5568;
    background: linear-gradient(135deg, #F7FAFC 0%, #FFFFFF 100%);
}

.card-health {
    border-top: 5px solid #4299E1;
    background: linear-gradient(135deg, #EBF8FF 0%, #FFFFFF 100%);
}

.program-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.program-card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.program-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D3748;
    line-height: 1.3;
}

.program-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-card .btn-card {
    background-color: #C1272D;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.program-card .btn-card:hover {
    background-color: #9B1F24;
    color: white;
}

/* Sección de impacto */
.impact-section {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 60px 0;
}

.impact-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #C1272D;
    margin-bottom: 50px;
}

.impact-number {
    padding: 20px;
}

.icon-impact {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #C1272D 0%, #9B1F24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-impact i {
    font-size: 2.5rem;
    color: white;
}

.impact-number .number {
    font-size: 3rem;
    font-weight: 800;
    color: #2D3748;
    margin: 15px 0 10px;
    line-height: 1;
}

.impact-number .description {
    font-size: 0.9rem;
    color: #4A5568;
    line-height: 1.4;
    margin: 0;
}

/* Sección de últimas novedades */
.latest-news {
    background: white;
    padding: 60px 0;
}

.latest-news h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #C1272D;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    background: #C1272D;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-read-more {
    color: #C1272D;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
    gap: 5px;
}

.btn-read-more:after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: #9B1F24;
}

.btn-read-more:hover:after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .programs-cards {
        margin-top: 0;
    }
    
    .program-card h3 {
        font-size: 1.1rem;
    }
    
    .impact-title {
        font-size: 1.5rem;
    }
    
    .impact-number .number {
        font-size: 2rem;
    }
    
    .impact-number .description {
        font-size: 0.85rem;
    }
}

.img-content-acctions{
    width: 100%;
    height: 350px;
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
.text-justify{
    text-align: justify !important;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    animation: slideIn 0.3s;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s;
    background-color: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-modal-close:hover {
    transform: scale(1.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: 5px;
        right: 5px;
        font-size: 30px;
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.7);
    }
}