﻿/* ==========================
   NOSOTROS - ESTILOS
   ========================== */

/* HERO */
.hero-nosotros {
    background: url('/images/Cursos/hero-cursos-capacitacion-upskilling.jpg') center/cover no-repeat;
    height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-nosotros .hero-overlay {
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        text-align: center;
        padding: 2rem;
        width: 100%;
    }

    .hero-nosotros h1 {
        color: #fff;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-nosotros p {
        font-size: 1.2rem;
        color: #f2f2f2;
        max-width: 700px;
        margin: 0 auto;
    }

/* Ajuste responsive */
@media (max-width: 768px) {
    .hero-nosotros {
        height: 340px;
    }

        .hero-nosotros h1 {
            font-size: 1.8rem;
        }

        .hero-nosotros p {
            font-size: 1rem;
            padding: 0 1rem;
        }
}


/* ===== Ajustes visuales para sección "Qué hacemos" ===== */

.service-body {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-info {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
}

.service-text {
    width: 100%;
}

    .service-text p {
        margin-bottom: 1rem;
        color: #333;
        font-size: 1.05rem;
        line-height: 1.75;
        text-align: justify;
    }


/* ==== FIX específico para “Cómo trabajamos” ==== */

.service-body.reverse {
    align-items: center;
    gap: 3rem;
}

    /* Corrige el colapso extraño causado por display:flex */
    .service-body.reverse .service-info {
        display: block !important;
    }

    .service-body.reverse .service-text {
        display: block !important;
        padding-right: 1rem;
    }

        .service-body.reverse .service-text p {
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 1.1rem;
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: break-word !important;
            text-align: justify !important;
        }

    .service-body.reverse .service-image img {
        max-height: 380px;
        object-fit: cover;
        border-radius: 8px;
    }


/* ===== Imagen con overlay ===== */
.service-image {
    flex: 1 1 40%;
    position: relative;
    overflow: hidden;
}

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }



/* ===== Overlay legible y elegante ===== */
.overlay-texto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient( to top, rgba(0, 46, 99, 0.9) 0%, rgba(0, 46, 99, 0.7) 50%, rgba(0, 46, 99, 0.3) 100% );
    color: #ffffff;
    padding: 1.5rem 1.2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: background 0.4s ease;
}

    .overlay-texto h3 {
        color: #ffffff;
    }

.service-image:hover .overlay-texto {
    background: linear-gradient( to top, rgba(0, 46, 99, 0.95) 0%, rgba(0, 46, 99, 0.8) 55%, rgba(0, 46, 99, 0.4) 100% );
}


/* ===== Tipografía equilibrada ===== */
.section-light p strong,
.service-text strong {
    color: #003873;
    font-weight: 600;
}

.resaltado {
    color: #005eb8;
    font-weight: 600;
}


/* ===== CTA FINAL ===== */

.section-dark {
    background: #0048a8; /* Azul corporativo */
    color: #ffffff;
    padding: 4rem 0;
}

    .section-dark h2,
    .section-dark p {
        color: #ffffff;
    }

    .section-dark .btn-primary {
        background: #ffffff;
        color: #003873;
        border: none;
    }

        .section-dark .btn-primary:hover {
            background: #e6e6e6;
        }

    .section-dark .btn-secondary {
        background: rgba(255,255,255,0.25);
        color: #ffffff;
        border: none;
    }

        .section-dark .btn-secondary:hover {
            background: rgba(255,255,255,0.4);
        }


/* ===== Responsive ===== */
@media (max-width: 992px) {

    .service-body {
        flex-direction: column;
        gap: 1.5rem;
    }

        .service-body.reverse {
            flex-direction: column !important;
            gap: 1.5rem;
        }

            .service-body.reverse .service-text {
                padding-right: 0;
            }

    .service-image {
        order: -1;
        height: auto;
    }

    .service-body.reverse .service-image img {
        max-height: 260px;
    }

    .overlay-texto {
        font-size: 1.05rem;
        padding: 1rem;
        background: linear-gradient( to top, rgba(0, 46, 99, 0.95) 0%, rgba(0, 46, 99, 0.85) 70%, rgba(0, 46, 99, 0.6) 100% );
    }

    .service-text p {
        font-size: 1rem;
        line-height: 1.65;
    }
}
