﻿/* ==========================
   Estilos base - The Upskilling Company
   ========================== */

/* Tipografía general (Raleway, con fallback seguro) */
body {
    font-family: 'Raleway', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Colores de marca */
:root {
    --azul-principal: #004da7;
    --gris-claro: #d9d9d9;
    --gris-medio: #818181;
    --gris-oscuro: #585858;
    --azul-suave: #8196b0;
    --negro: #000000;
    --blanco: #ffffff;
}

/* ==========================
   Encabezados y texto
   ========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--azul-principal);
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
}

/* Enlaces */
a {
    color: var(--azul-principal);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ==========================
   Botones
   ========================== */
button, .btn {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    transition: background 0.3s ease;
}

.btn-primary {
    background-color: var(--azul-principal);
    color: var(--blanco);
}

    .btn-primary:hover {
        background-color: #003b82; /* tono más oscuro */
    }

.btn-secondary {
    background-color: var(--azul-suave);
    color: var(--blanco);
}

    .btn-secondary:hover {
        background-color: #6c8399;
    }


/* ==========================
   Brand (texto junto al logo)
   ========================== */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Primera línea del logo: THE UPSKILLING COMPANY */
.brand-line1 {
    font-family: 'Playfair Display', serif; /* sustituto de Brixton */
    font-weight: 400;
    font-size: 2rem; /* tamaño 4 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-line1_nosize {
    font-family: 'Playfair Display', serif; /* sustituto de Brixton */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Colores específicos de cada palabra */
.brand-the,
.brand-company {
    color: #000000; /* negro */
}

.brand-upskilling {
    color: #004aad; /* azul corporativo */
}

/* Segunda línea del logo: Talent That Evolves */
.brand-line2 {
    font-family: 'Montserrat', sans-serif; /* sustituto de Now */
    font-size: 1rem; /* tamaño 2.5 */
    color: #000000;
    letter-spacing: 0.5px;
    margin-top: 0.25rem; /* ajuste fino de separación */
}

/* ====== Mobile: <576px ====== */
@media (max-width: 576px) {
    /* No hagas que el brand ocupe todo el ancho, así la hamburguesa no se empuja hacia abajo */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* brand a la izquierda, hamburguesa a la derecha */
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: .5rem; /* espacio entre logo y texto */
        width: auto; /* importante: NO 100% */
        margin: 0;
        padding: 0;
        text-decoration: none;
    }

    /* Centrado interno del bloque de texto del logo */
    .brand-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; /* centra las 3 líneas */
        line-height: 1.2;
    }

    /* Línea 1: “THE UPSKILLING” en una sola línea */
    .brand-line1 {
        display: inline; /* no columnas, no flex, línea normal */
        white-space: nowrap; /* evita corte entre THE y UPSKILLING */
        font-size: 1.1rem; /* tu tamaño móvil */
    }

        /* Forzamos que COMPANY baje a la 2ª línea */
        .brand-line1 .brand-company {
            display: block; /* rompe línea después de UPSKILLING */
            margin-top: .15rem;
        }

    /* Línea 3: el slogan */
    .brand-line2 {
        display: block;
        font-size: 0.8rem; /* tu tamaño móvil */
        margin-top: .25rem;
    }

    /* Asegura que el botón hamburguesa quede a la derecha siempre */
    .navbar-toggler {
        margin-left: auto;
    }
}



/* ==========================
   Navbar / Header
   ========================== */
/* Header fijo */
header {
    position: sticky;
    top: 0;
    z-index: 1030; /* sobre contenido */
}


header, .navbar {
    background-color: var(--blanco);
    color: var(--negro);
}

.navbar-brand img {
    height: 80px; /* Logo más grande */
    width: auto;
    margin-right: 15px;
}

    .navbar a {
        color: var(--gris-oscuro);
        margin-left: 1rem;
        font-weight: 600;
        text-decoration: none; /* evita subrayado */
    }

        .navbar a:hover {
            color: var(--azul-principal);
            text-decoration: none; /* asegura que no se subraye en hover */
            opacity: 0.85;
        }

/* Marca (logo + texto) */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none; /* quita subrayado del link */
}

    .navbar-brand span {
        text-decoration: none; /* asegura sin subrayado en hover */
    }


/* ==========================
   Navbar animada al hacer scroll
   ========================== */
/* ==========================
   Estilos "scrolled" solo para escritorio
   ========================== */
/* ==========================
   Estilos "scrolled" solo para escritorio
   ========================== */
@media (min-width: 768px) {

    .navbar {
        transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    }

        .navbar.scrolled {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1050;
            background-color: var(--azul-principal);
            padding: 0.5rem 1rem; /* Reduce padding vertical */
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
        }

            /* 1. MANTENER LA MARCA VISIBLE */
            .navbar.scrolled .navbar-brand {
                opacity: 1;
                transform: none; /* Quitamos el desplazamiento hacia arriba */
                pointer-events: auto;
                transition: all 0.3s ease;
            }

                /* 2. LOGO: REDUCIR TAMAÑO Y VOLVER BLANCO */
                .navbar.scrolled .navbar-brand img {
                    display: block; /* Aseguramos que se vea */
                    height: 45px; /* Reducimos de 80px a 45px */
                    filter: brightness(0) invert(1); /* TRUCO: Vuelve el logo 100% blanco */
                    transition: height 0.3s ease;
                }

            /* 3. TEXTO MARCA: BLANCO Y MÁS PEQUEÑO */
            .navbar.scrolled .brand-line1 {
                font-size: 1.2rem; /* Reducimos de 2rem a 1.2rem */
                color: #ffffff;
            }

            /* Forzar que las 3 palabras sean blancas */
            .navbar.scrolled .brand-the,
            .navbar.scrolled .brand-upskilling,
            .navbar.scrolled .brand-company {
                color: #ffffff !important;
                transition: color 0.3s ease;
            }

            /* 4. OCULTAR SLOGAN (CLEAN LOOK) */
            /* Al reducir el header, el slogan suele verse amontonado. Lo ocultamos en scroll */
            .navbar.scrolled .brand-line2 {
                display: none;
            }

            /* 5. MENÚ DE NAVEGACIÓN EN BLANCO */
            .navbar.scrolled .nav-link {
                color: var(--blanco) !important;
            }

                .navbar.scrolled .nav-link:hover {
                    color: #e0e0e0 !important;
                    opacity: 1;
                }

                /* Ajuste visual del botón activo en modo scrolled */
                .navbar.scrolled .nav-link.active-menu {
                    border-bottom-color: #ffffff !important;
                }
}
    



    /* ==========================
   Secciones
   ========================== */
    section {
        padding: 3rem 1.5rem;
    }

    .section-light {
        background-color: var(--gris-claro);
    }

    .section-dark {
        background-color: var(--azul-principal);
        color: var(--blanco);
    }





    /* ==========================
   Formularios
   ========================== */
    input, textarea, select {
        width: 100%;
        padding: 0.6rem;
        border: 1px solid var(--gris-medio);
        border-radius: 4px;
        margin-bottom: 1rem;
        font-family: 'Raleway', sans-serif;
        font-size: 1rem;
    }

        input:focus, textarea:focus, select:focus {
            border-color: var(--azul-principal);
            outline: none;
            box-shadow: 0 0 4px rgba(0, 77, 167, 0.3);
        }






/* ============= MEGA MENU GENERAL ============= */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 5%;
    width: 90%;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 5000;
    animation: fadeIn 0.35s ease;
    overflow: hidden;
    transition: top 0.25s ease, opacity 0.25s ease;
}

    .mega-menu::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background-color: var(--azul-principal);
    }

/* 🔧 En modo sticky, ocultar la barra azul superior */
.navbar.scrolled + .mega-menu::before,
.navbar.scrolled .mega-menu::before {
    content: none;
}

/* En estado sticky, el menú se comporta como overlay fijo */
.navbar.scrolled + .mega-menu,
.navbar.scrolled .mega-menu {
    position: fixed;
    top: 70px;
    left: 5%;
    width: 90%;
    z-index: 1000;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);

}

/* ============= LAYOUT ============= */
.mega-menu-container {
    display: grid;
    grid-template-columns: 0.8fr 1.9fr;
}

.mega-menu-left {
    background-color: #f0f4f9;
    padding: 2rem 1.5rem;
    border-right: 1px solid #d9e3f2;
}

.mega-section h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 0.6rem;
}

.mega-section li {
    padding: 0.6rem;
    cursor: pointer;
    color: var(--gris-oscuro);
    transition: all 0.2s ease;
}

    .mega-section li:hover,
    .mega-section li.active {
        background-color: var(--azul-principal);
        color: #fff;
    }

/* ============= DERECHA ============= */
.mega-menu-right {
    background: #fff;
    padding: 2rem 2.5rem;
}

.service-panel {
    display: none;
}

    .service-panel.visible {
        display: block;
        animation: fadeIn 0.4s ease;
    }

/* ===== PLECA AZUL ===== */
.pleca {
    display: inline-block;
    background-color: var(--azul-principal);
    padding: 0.6rem 1.2rem;
    margin-bottom: 2rem;
}

    .pleca h2 {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0;
        white-space: nowrap;
    }

/* ===== CUERPO ===== */
.service-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
    min-height: 340px;
}

.service-panel.reverse .service-body {
    grid-template-columns: 1.2fr 1fr;
}

/* ===== CONTENIDO ===== */
.service-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.service-text {
    flex: 1;
    display: flex;
    align-items: center;
}

    .service-text p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: var(--gris-oscuro);
        margin: 0;
    }

.resaltado {
    color: var(--azul-principal);
    font-weight: 700;
}

/* ===== CTA ===== */
.service-cta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 1rem;
}

.service-panel.reverse .service-cta {
    justify-content: flex-start;
}

.btn-cta {
    background-color: var(--azul-principal);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-cta:hover {
        background-color: #003a85;
        transform: translateY(-2px);
    }

/* ===== IMAGEN ===== */
.service-image {
    display: flex;
    align-items: flex-end;
}

    .service-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* ===== DEFAULT PANEL CON IMAGEN ===== */
.default-hero {
    position: relative;
    padding: 0;
}

.full-image {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

    .full-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Overlay con pleca blanca */
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

    .overlay-text p {
        font-size: 1.3rem;
        line-height: 1.8;
        color: var(--gris-oscuro);
        margin: 0 0 1rem 0;
    }

.overlay-btn {
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Estado activo del link “Servicios”
   ================================ */
.nav-link.active-menu {
    color: var(--azul-principal) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--azul-principal);
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

    /* Ajuste visual para coherencia con hover */
    .nav-link.active-menu:hover {
        opacity: 0.9;
        text-decoration: none;
    }

/* En modo sticky (navbar.scrolled), mantener contraste */
.navbar.scrolled .nav-link.active-menu {
    color: #ffffff !important;
    border-bottom: 3px solid #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .mega-menu-container {
        grid-template-columns: 1fr;
    }

    .service-body,
    .service-panel.reverse .service-body {
        grid-template-columns: 1fr;
    }

    .service-cta {
        justify-content: flex-start;
    }

    .full-image {
        height: 320px;
    }

    .overlay-text {
        padding: 1rem 1.2rem;
    }

        .overlay-text p {
            font-size: 1.1rem;
        }
}

/* ===== Ajuste visual solo para el panel DEFAULT ===== */
#default .service-body {
    display: block;
    padding: 0;
    margin: 0;
    height: 100%;
}

#default .full-image {
    width: 100%;
    height: 360px; 
    position: relative;
    overflow: hidden;
}

    #default .full-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Contenedor general del overlay */
#default .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Pleca azul sobre la imagen ===== */
#default .pleca-overlay {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    background-color: var(--azul-principal);
    padding: 0.5rem 1rem;
    z-index: 3;
}

    #default .pleca-overlay h2 {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0;
    }

/* ===== Overlay de texto inferior ===== */
#default .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    z-index: 2;
}

    #default .overlay-text p {
        font-size: 1.3rem;
        line-height: 1.8;
        color: var(--gris-oscuro);
        margin: 0;
        max-width: 80%;
    }

/* Flecha indicativa */
#default .hint-left {
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--azul-principal);
    font-size: 1rem;
    opacity: 0.9;
    animation: hintPulse 2.2s infinite ease-in-out;
}

/* Animación sutil */
@keyframes hintPulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-4px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    #default .full-image {
        height: 320px;
    }

    #default .overlay-text p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    #default .hint-left {
        display: none;
    }

    #default .pleca-overlay {
        right: 1rem;
        top: 1rem;
    }
}

/* Submenú móvil */
.submenu-mobile {
    display: none;
    background-color: #e9effa;
    margin-top: 0;
    margin-left: 16px; /* 🔹 corrige alineación con la pleca azul */
    padding: 0.8rem 1rem;
    border-left: 4px solid #12306b;
    border-radius: 0;
    overflow: hidden;
    max-height: 0;
    transition: all 0.35s ease-in-out;
    width:100%;
}

    /* Cuando está abierto */
    .submenu-mobile.open {
        display: block;
        max-height: 700px;
    }

    /* Enlaces */
    .submenu-mobile li a {
        display: block;
        padding: 0.5rem 0;
        color: #12306b;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease;
    }

        .submenu-mobile li a:hover {
            color: #0a1f4a;
            text-decoration: underline;
        }

/* Títulos */
.submenu-title {
    font-weight: 600;
    color: #0a1f4a;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

/* Estado activo del menú principal */
.nav-link.active-menu-mobile {
    background-color: #12306b;
    color: #ffffff !important;
    padding: 0.6rem 1rem;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Solo en móvil */
@media (min-width: 992px) {
    .submenu-mobile {
        display: none !important;
    }
}



/* ==========================
   Footer personalizado (versión limpia y corporativa)
   ========================== */
footer {
    background-color: #0b132b; /* azul-gris oscuro, sobrio */
    color: var(--blanco);
    font-size: 0.95rem;
    line-height: 1.6;
}

    footer h5 {
        color: var(--blanco);
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 1.05rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Texto y enlaces */
    footer p,
    footer a,
    footer li {
        color: var(--blanco);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--azul-principal);
            text-decoration: underline;
        }

/* Logo limpio, sin bordes ni sombras */
.footer-logo {
    height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Estructura */
footer ul {
    padding-left: 0;
    list-style: none;
}

    footer ul li {
        margin-bottom: 0.4rem;
    }

/* Subtítulos de grupos de servicios */
footer .grupo-servicios {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--azul-principal);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

/* Línea divisoria inferior */
.footer-divider {
    opacity: 0.2;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Redes sociales */
.footer-social a {
    font-size: 0.95rem;
    margin-right: 0.75rem;
    transition: opacity 0.2s ease;
}

    .footer-social a:hover {
        opacity: 0.8;
    }

/* Copyright */
footer .text-center p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 767px) {
    footer {
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 1rem;
    }

    footer h5 {
        margin-top: 1.5rem;
    }
}

/* ==========================
   MEGA MENU CURSOS
   ========================== */
.mega-menu.cursos .mega-menu-left {
    background-color: #eef3f8;
    border-right: 1px solid #d0d9e3;
}

.mega-menu.cursos .mega-section h6 {
    margin-top: 0.5rem;
}

.mega-menu.cursos .mega-section ul {
    margin-bottom: 0.8rem;
}

.mega-menu.cursos .nota-formato {
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin: 0.4rem 0 1rem 0.8rem;
    line-height: 1.4;
}

/* Paneles del mega menú cursos */
.mega-menu.cursos .service-panel {
    display: none;
}

    .mega-menu.cursos .service-panel.visible {
        display: block;
        animation: fadeIn 0.35s ease;
    }

/* Pleca azul */
.mega-menu.cursos .pleca {
    background-color: var(--azul-principal);
    margin-bottom: 1.5rem;
}

    .mega-menu.cursos .pleca h2 {
        color: #fff;
        font-size: 1.4rem;
        margin: 0;
    }

/* Imagen destacada */
.mega-menu.cursos .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Texto principal */
.mega-menu.cursos .service-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
}

/* CTA */
.mega-menu.cursos .btn-cta {
    background-color: var(--azul-principal);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .mega-menu.cursos .btn-cta:hover {
        background-color: #003a85;
        transform: translateY(-2px);
    }

/* Default hero */
#cursos-default .full-image {
    height: 400px;
}

#cursos-default .overlay-text p {
    font-size: 1.2rem;
}

/* Responsive general cursos */
@media (max-width: 992px) {
    .mega-menu.cursos .mega-menu-container {
        grid-template-columns: 1fr;
    }

    #cursos-default .full-image {
        height: 300px;
    }

    .mega-menu.cursos .service-body {
        grid-template-columns: 1fr;
    }

    .mega-menu.cursos .service-text p {
        font-size: 1rem;
    }
}

/* ===== Ajuste visual solo para el panel DEFAULT de CURSOS ===== */
#cursos-default .service-body {
    display: block;
    padding: 0;
    margin: 0;
    height: 100%;
}

#cursos-default .full-image {
    width: 100%;
    height: 360px;
    position: relative;
    overflow: hidden;
}

    #cursos-default .full-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Contenedor del overlay */
#cursos-default .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pleca azul sobre la foto */
#cursos-default .pleca-overlay {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    background-color: var(--azul-principal);
    padding: 0.5rem 1rem;
    z-index: 3;
}

    #cursos-default .pleca-overlay h2 {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0;
    }

/* Overlay inferior blanco translúcido */
#cursos-default .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    z-index: 2;
}

    #cursos-default .overlay-text p {
        font-size: 1.3rem;
        line-height: 1.8;
        color: var(--gris-oscuro);
        margin: 0;
        max-width: 80%;
    }

/* Flecha/leyenda con animación */
#cursos-default .hint-left {
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--azul-principal);
    font-size: 1rem;
    opacity: 0.9;
    animation: hintPulse 2.2s infinite ease-in-out;
}

/* Responsive ajustes default */
@media (max-width: 992px) {
    #cursos-default .full-image {
        height: 320px;
    }

    #cursos-default .overlay-text p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    #cursos-default .hint-left {
        display: none;
    }

    #cursos-default .pleca-overlay {
        right: 1rem;
        top: 1rem;
    }
}

/* ===== PROFESIONALES ===== */
#profesionales .service-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    #profesionales .service-text p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: var(--gris-oscuro);
        margin-bottom: 0.75rem;
    }

#profesionales .nota-formato {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: var(--gris-medio);
}

/* ===== CALENDARIO ===== */
#calendario .service-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
}

#calendario .service-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
}

#calendario .nota-formato {
    display: block;
    font-size: 0.95rem;
    color: var(--gris-medio);
    margin-top: 0.5rem;
}

#calendario .service-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== EMPRESAS ===== */
#empresas .service-body {
    display: grid;
    grid-template-columns: 1fr 1fr; /* imagen | texto */
    align-items: center;
    gap: 2rem;
}

/* fuerza columna de texto, no “dos columnas” en fila */
#empresas .service-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#empresas .service-text {
    display: flex;
    flex-direction: column; /* párrafo principal arriba, nota debajo */
    align-items: flex-start;
    max-width: 90%;
}

    #empresas .service-text p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: var(--gris-oscuro);
        margin-bottom: 1rem;
    }

#empresas .nota-formato {
    display: block;
    font-size: 1rem !important;
    color: var(--gris-medio);
    line-height: 1.6;
    margin-top: 0.2rem;
    max-width: 95%;
}

#empresas .service-image img {
    width: 90%;
    height: auto;
    object-fit: cover;
}

/* Texto principal empresas */
#empresas .texto-principal-empresas {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
}


 
/* Responsive EMPRESAS */
@media (max-width: 992px) {
    #empresas .service-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #empresas .service-info {
        align-items: center;
    }

    #empresas .service-text {
        max-width: 100%;
    }

        #empresas .service-text p {
            font-size: 1.1rem;
        }

    #empresas .nota-formato {
        font-size: 0.95rem;
    }
}

/* ===== METODOLOGÍA EMHA ===== */
#metodologia .service-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* texto | imagen */
    align-items: center;
    gap: 2rem;
}

#metodologia .metodologia-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#metodologia .metodologia-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* separa los párrafos */
}

#metodologia .intro-metodologia {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
    margin: 0;
}

#metodologia .detalle-metodologia {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gris-medio);
    margin: 0;
}

#metodologia .service-image img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    #metodologia .service-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #metodologia .metodologia-info {
        align-items: center;
    }

    #metodologia .metodologia-texto {
        align-items: center;
    }

    #metodologia .intro-metodologia,
    #metodologia .detalle-metodologia {
        font-size: 1.05rem;
        text-align: center;
    }
}
/* ===== Footer del panel default ===== */
#cursos-default .panel-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    text-align: right;
}

/* Botón secundario visualmente más liviano que el principal */
#cursos-default .btn-secundario {
    background-color: var(--azul-principal);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    #cursos-default .btn-secundario:hover {
        background-color: #003a85;
        transform: translateY(-2px);
    }


/* Aplica el mismo comportamiento sticky al mega menú de Cursos */
.navbar.scrolled ~ #megaMenuCursos {
    position: fixed;
    top: 70px;
    left: 5%;
    width: 90%;
    z-index: 1000;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* Aplica el filtro blanco tanto en Hover como en Active */
li[data-target="metodologia"]:hover .emha-menu-icon,
li[data-target="metodologia"].active .emha-menu-icon {
    filter: brightness(0) invert(1);
}