﻿.nosotros-image {
    background-image: url('../images/top_pages/nosotros.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.videos-container {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.videos-description {
    flex: 1;
    font-size: 1.1rem;
    color: #555;
    opacity: 0.9;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .title-description {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

        .title-description h3::after {
            content: '';
            display: block;
            width: 100%;
            height: 2px;
            background-color: black;
            margin: 0 auto;
            margin-top: 0.5rem;
            background: linear-gradient(to right, #000, #ccc);
            border-radius: 2px;
        }

    .videos-description {
        flex: 1;
        font-size: 1.1rem;
        color: #555;
        opacity: 0.9;
        line-height: 1.6;
        text-align: justify;
        margin-top: 0.5rem;
        padding-right: 1rem;
        padding-left: 0rem;
    }
}


/* Estructura responsiva para Misión y Visión */
.mision-vision-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.mv-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .mv-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

.mv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.mv-icon-badge {
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.mv-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin: 0;
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 16px;
    padding-left: 4rem;
    padding-right: 4rem;
}

    .mv-card p:last-child {
        margin-bottom: 0;
    }

/* Adaptabilidad a tablets y móviles */
@media (max-width: 868px) {
    .mision-vision-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 28px auto;
        padding: 0 16px;
    }

    .mv-card {
        padding: 28px 24px;
    }

        .mv-card h4 {
            font-size: 1.35rem;
        }
}

.mision-vision-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.mv-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .mv-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

.mv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.mv-icon-badge {
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.mv-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin: 0;
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 16px;
}

    .mv-card p:last-child {
        margin-bottom: 0;
    }

/* Sección Valores */
.valores-section {
    max-width: 1200px;
    margin: 40px auto 50px auto;
    padding: 0 20px;
}

.valores-header {
    text-align: center;
    margin-bottom: 36px;
}

    .valores-header h3 {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: #1a1a1a;
        margin: 0;
    }

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.valor-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .valor-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    }

.valor-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.valor-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #f1f3f5;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.valor-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.valor-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555555;
    margin: 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Adaptabilidad */
@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 868px) {
    .mision-vision-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 28px auto;
        padding: 0 16px;
    }

    .mv-card {
        padding: 28px 24px;
    }

        .mv-card h4 {
            font-size: 1.35rem;
        }
}

@media (max-width: 600px) {
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .valores-section {
        padding: 0 16px;
        margin: 30px auto;
    }

    .valores-header h3 {
        font-size: 1.6rem;
    }
}