﻿/* =========================================
   Página: Capacitación para Empresas
   ========================================= */

:root {
    --azul-principal: #0046ad;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-borde: #e0e0e0;
    --texto-gris: #555555;
    --wa-verde: #25D366;
}

/* --- HERO SECTION (FULL WIDTH) --- */
.intro-empresas {
    width: 100%;
    background-color: var(--blanco);
    padding:  0;
    /* No margins here, content alignment handled by internal container */
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Imagen 1/3, Texto 2/3 */
    gap: 4rem;
    align-items: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.intro-text {
    display: flex;
    flex-direction: column;
}

    /* PLECA AZUL A LA DERECHA */
    .intro-text h1 {
        align-self: flex-end;
        background-color: var(--azul-principal);
        color: var(--blanco);
        font-size: 2.2rem;
        font-weight: 700;
        padding: 0.6rem 2rem;
        margin-bottom: 2rem;
        border-radius: 2px;
        text-align: right;
        width: fit-content;
    }

    .intro-text .page-lead {
        font-size: 1.15rem;
        color: var(--texto-gris);
        margin-bottom: 1.5rem;
        line-height: 1.6;
        font-weight: 300;
        text-align: left;
    }

    .intro-text .page-note {
        font-size: 0.95rem;
        color: #888;
        margin-top: 1rem;
        text-align: left;
    }

/* --- METHODOLOGY (EMHA) --- */
.methodology-section {
    background-color: #fcfcfc; /* Un gris casi blanco para diferenciar sutilmente del Hero */
    padding: 4rem 0 3rem;
    border-top: 5px solid #eaeaea; /* El borde "ancho y bonito" */
}

.methodology-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Logotipo EMHA */
.emha-logo {
    height: 60px; /* Tamaño controlado */
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.methodology-header h2 {
    color: var(--texto-gris); /* Gris oscuro para el "Label" */
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* El texto con "Más Peso" */
.methodology-subtitle {
    color: var(--azul-principal); /* Azul corporativo */
    font-size: 1.4rem; /* Más grande */
    font-weight: 600; /* Semi-bold */
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .methodology-section {
        padding: 3rem 0 2rem;
        border-top-width: 3px;
    }

    .emha-logo {
        height: 45px;
    }

    .methodology-subtitle {
        font-size: 1.2rem;
    }
}

/* --- BRIDGE SECTION (Conexión Metodología -> Catálogo) --- */
.bridge-section {
    background-color: #fff;
    padding: 3rem 0 5rem; /* Más aire abajo para separar del borde */
    text-align: center;
    position: relative; /* Necesario para el borde absoluto */
}

    /* Borde Inferior Difuminado (Gradiante) */
    .bridge-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10%; /* Empieza al 10% del ancho */
        width: 80%; /* Ocupa el 80% central */
        height: 3px; /* Grosor de la línea */
        /* El truco: Transparente -> Azul -> Transparente */
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--azul-principal) 50%, rgba(255,255,255,0) 100%);
        opacity: 0.6; /* Sutil */
    }

.bridge-content {
    max-width: 900px;
    margin: 0 auto;
}

    .bridge-content h3 {
        color: var(--azul-principal);
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .bridge-content p {
        font-size: 1.15rem;
        color: #555;
        line-height: 1.6;
        font-weight: 300;
    }

.text-highlight {
    color: var(--azul-principal);
    font-weight: 700;
}
/* --- AREAS CATALOG (RenderBody) --- */
.areas-empresas {
    padding: 2rem 0 4rem;
}

.section-subheader {
    margin-bottom: 3rem;
}

    .section-subheader h3 {
        background-color: var(--azul-principal);
        color: white;
        font-size: 1.4rem;
        font-weight: 700;
        padding: 0.8rem 1.5rem;
        display: inline-block;
        margin: 0;
    }

.areas-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* --- MENÚ LATERAL --- */
.areas-menu {
    border-right: 1px solid #eee;
}

    .areas-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--azul-principal);
    }

    .areas-menu .menu-group {
        padding: 1.5rem 1rem 0.5rem;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--azul-principal);
        letter-spacing: 0.5px;
        background: transparent;
        pointer-events: none;
    }

    .areas-menu li[data-area] {
        padding: 1rem 1.2rem;
        cursor: pointer;
        color: #555;
        font-size: 1rem;
        font-weight: 400;
        border-bottom: 1px solid #eee;
        transition: all 0.2s;
    }

        .areas-menu li[data-area]:hover {
            background-color: #f4f4f4;
        }

    /* ACTIVO */
    .areas-menu li.active {
        background-color: var(--azul-principal) !important;
        color: #ffffff !important;
        font-weight: 600;
        border-bottom: 1px solid var(--azul-principal);
    }

/* --- CONTENIDO DETALLE (Fixed Layout & Watermark) --- */
.areas-content {
    position: relative;
    padding: 2rem 2rem 4rem 2rem; /* Padding extra abajo para el logo */
    height: 100%; /* CRÍTICO: Se estira al alto del menú lateral */
    box-sizing: border-box;
    overflow: hidden;
    border-right: 1px solid #eee;
}

    /* Borde Superior: Difuminado (Transparente -> Sólido) */
    .areas-content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        /* De transparente (izquierda) a gris sólido (derecha) */
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #eee 100%);
    }

    /* Borde Inferior: Difuminado (Transparente -> Sólido) */
    .areas-content::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        /* De transparente (izquierda) a gris sólido (derecha) */
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #eee 100%);
    }

/* MARCA DE AGUA (Ajustada) */
.watermark-logo {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: auto;
    opacity: 0.06;
    filter: grayscale(100%);
    z-index: 0;
    pointer-events: none;
    margin-bottom: 40px;
    margin-right: 40px;
}

/* Asegurar que el contenido (texto/cards) esté sobre el logo */
.area-detail {
    position: relative;
    z-index: 1;
    display: none;
    animation: fadeIn 0.4s ease;
}

    .area-detail.visible {
        display: block;
    }

.area-heading {
    /* Alineación a la derecha */
    display: table; /* El ancho se ajusta al contenido */
    margin-left: auto; /* Empuja el bloque hacia la derecha */
    margin-right: 0;
    /* Estilo Visual: Caja Gris Sólida, Texto Blanco */
    background-color: #6c757d; /* Gris profesional */
    color: #ffffff;
    padding: 0.6rem 1.5rem; /* Padding para dar cuerpo a la caja */
    border-radius: 4px; /* Bordes sutiles */
    /* Tipografía */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem; /* Separación con la descripción */
}

.area-desc {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
    margin-top: 10px;
    max-width: 800px;
}

.curso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.curso-card {
    background: rgba(255, 255, 255, 0.95); /* Fondo casi sólido para tapar el logo si se superpone */
    padding: 1.5rem;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
}

    .curso-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .curso-card h4 {
        color: var(--azul-principal);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
    }

    .curso-card p {
        font-size: 0.9rem;
        color: #666;
        margin: 0;
        line-height: 1.4;
    }

/* --- FULL WIDTH AFTER SECTIONS --- */
.franja-info {
    background-color: var(--azul-principal);
    color: #fff !important;
    text-align: center;
    padding: 4rem 1rem;
    width: 100%;
}

    .franja-info h3 {
        color: white;
        font-weight: 700;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .franja-info p {
        color: rgba(255,255,255,0.9);
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
    }

/* --- CTA FINAL --- */
.cta-final {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #fff;
    width: 100%;
}

    .cta-final h3 {
        color: #333;
        font-weight: 400;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }

/* Contenedor Flex (Renombrado para coincidir con tu CSS) */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Estilos de tu Botón Principal (Ajuste para que conviva) */
.closing-cta__btn {
    /* Mantiene estilos base de Bootstrap pero asegura alineación */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === TU CÓDIGO DE BOTÓN WHATSAPP (Tal cual lo pediste) === */
.btn-wa-outline {
    background-color: transparent;
    color: #25D366; /* Verde WA */
    border: 2px solid #25D366; /* Borde visible */
    font-weight: 600;
    padding: 0.9rem 2.2rem; /* Ajuste óptico por el borde */
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem; /* Aseguramos tamaño de letra base */
}

    .btn-wa-outline:hover {
        background-color: #25D366; /* Relleno verde */
        color: #fff; /* Texto blanco */
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }

    .btn-wa-outline i {
        font-size: 1.2rem; /* Tamaño del icono */
    }

/* === TU CÓDIGO DE AJUSTE MÓVIL === */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .closing-cta__btn,
    .btn-wa-outline {
        width: 100%;
        justify-content: center;
    }
}


/* --- RESPONSIVE --- */
.areas-select-wrapper {
    display: none;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-text h1 {
        align-self: center;
        text-align: center;
        margin-left: 0;
    }

    .intro-text .page-lead {
        text-align: center;
    }
    .intro-text .page-note {
        text-align: center;
    }

    .areas-layout {
        grid-template-columns: 1fr;
    }

    .areas-menu {
        display: none;
    }

    .areas-select-wrapper {
        display: block;
        margin-bottom: 2rem;
    }

    .areas-select {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ccc;
        background: #fff;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.containerf {
 padding-right:10px;
}