/* ==============================> CABECERA */

div:where(.elementor-location-header) {
    margin-bottom: 0px;
}

header .elementor-widget-off-canvas .e-off-canvas__content {
    overflow: visible;
}

header .wd-nav.wd-style-bg>li:is(:hover, .wd-opened, .current-menu-item)>a:before {
    opacity: 1 !important;
}

/* ==============================> WHATSAPP */

.whatsapp-cabecera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 8px;
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
	font-size: 15px;
	font-weight: 500;
	transition: .4s all ease-in-out;
}

.whatsapp-cabecera:hover {
	background: #25d366;
	color: #fff;
	border-color: #25d366;
}



/* ==============================> HEADER SCROLL */

/* ----------------> BÁSICO */

body.home header > div {
	background: transparent !important;
}

body.home .emdiexe-cabecera .emdiexe-buscador .bc-icono {
	color: #fff;
}

body.home .emdiexe-cabecera .whatsapp-cabecera {
	border: 1px solid #fff;
    color: #fff;
}

body.home .emdiexe-cabecera .whatsapp-cabecera:hover {
	border-color: #25d366;
}

body.home .emdiexe-cabecera .emdiexe-plataforma a {
 	background: #fff !important;
	color: var(--e-global-color-primary) !important;
}

body.home .emdiexe-cabecera .emdiexe-plataforma a:hover {
	background: var(--e-global-color-secondary) !important;
	color: #fff !important;
}

body.home .emdiexe-cabecera .emdiexe-menu .elementor-icon {
	color: #fff !important;
}

/* ----------------> SCROLL */

body.home header .elementor-sticky--effects {
    box-shadow: 0 0 10px 1px #8181813b;
	background: #fff !important;
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .emdiexe-buscador .bc-icono {
	color: var(--e-global-color-accent);
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .whatsapp-cabecera {
	border: 1px solid var(--e-global-color-primary) ;
    color: var(--e-global-color-primary);
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .whatsapp-cabecera:hover {
	color: #fff;
	border-color: #25d366;
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .emdiexe-plataforma a {
 	background: var(--e-global-color-primary) !important;
	color: #fff !important;
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .emdiexe-plataforma a:hover {
 	background: var(--e-global-color-secondary) !important;
	color: #fff !important;
}

body.home header .emdiexe-cabecera.elementor-sticky--effects .emdiexe-menu .elementor-icon {
	color: var(--e-global-color-accent)  !important;
}



/* ==============================> MEGAMENU CURSOS */

.mgm-cursos {
    display: flex;
    align-items: flex-start;
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

/* -> Lista de categorías principales */

.mgm-cursos__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 260px;
    min-width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
}

.mgm-cursos__item {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s ease;
}

.mgm-cursos__item:last-child {
    border-bottom: none;
}

.mgm-cursos__item--activo,
.mgm-cursos__item:hover {
    background: #f5f8ff;
}

.mgm-cursos__item--activo .mgm-cursos__nombre,
.mgm-cursos__item:hover .mgm-cursos__nombre {
    color: var(--e-global-color-primary);
}

.mgm-cursos__item--activo .mgm-cursos__flecha,
.mgm-cursos__item:hover .mgm-cursos__flecha {
    color: var(--e-global-color-primary);
    transform: translateX(2px);
}

.mgm-cursos__enlace {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* -> Icono y flecha */

.mgm-cursos__icono {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mgm-cursos__item--activo .mgm-cursos__icono,
.mgm-cursos__item:hover .mgm-cursos__icono {
    opacity: 1;
}

.mgm-cursos__nombre {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mgm-cursos__flecha {
    font-size: 18px;
    color: #aab0bc;
    margin-left: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* -> Panel de subcategorías */

.mgm-cursos__panel {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    -webkit-transform: translateX(6px);
    -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease;
}

.mgm-cursos__panel--activo {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mgm-cursos__subpanel {
    display: none;
    flex-direction: column;
    gap: 2px;
    animation: mgm-fadeIn 0.2s ease forwards;
    -webkit-animation: mgm-fadeIn 0.2s ease forwards;
}

.mgm-cursos__subpanel--activo {
    display: flex;
}

/* -> Links dentro del panel */

.mgm-cursos__subenlace {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
    -webkit-transition: background 0.18s ease, color 0.18s ease;
}

.mgm-cursos__subenlace span {
    font-size: 15px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    -webkit-transform: translateX(-4px);
    -webkit-transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
    color: var(--e-global-color-primary);
}

.mgm-cursos__subenlace:hover {
    background: #f0f4ff;
    color: var(--e-global-color-primary);
}

.mgm-cursos__subenlace:hover span {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mgm-cursos__subenlace--principal {
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    border-radius: 0;
}

.mgm-cursos__subenlace--principal span {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

/* -> Animación entrada subpanel */

@keyframes mgm-fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes mgm-fadeIn {
    from { opacity: 0; -webkit-transform: translateY(4px); }
    to   { opacity: 1; -webkit-transform: translateY(0); }
}

/* -> Responsive Tablet */

@media (max-width: 768px) {
    .mgm-cursos {
        flex-direction: column;
        min-height: unset;
    }

    .mgm-cursos__lista {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .mgm-cursos__panel {
        width: 100%;
        padding: 16px;
        opacity: 1;
        pointer-events: none;
        transform: none;
        -webkit-transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        -webkit-transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .mgm-cursos__panel--activo {
        pointer-events: auto;
        max-height: 600px;
        padding: 16px;
    }
}

/* -> Responsive Móvil */

@media (max-width: 480px) {
    .mgm-cursos__enlace {
        padding: 12px 14px;
        font-size: 13px;
    }

    .mgm-cursos__subenlace {
        font-size: 13px;
    }
}



/* ==============================> MEGAMENU TALLERES */

.mgm-talleres {
    display: flex;
    align-items: flex-start;
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

/* -> Lista de categorías principales */

.mgm-talleres__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 260px;
    min-width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
}

.mgm-talleres__item {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s ease;
}

.mgm-talleres__item:last-child {
    border-bottom: none;
}

.mgm-talleres__item--activo,
.mgm-talleres__item:hover {
    background: #f5f8ff;
}

.mgm-talleres__item--activo .mgm-talleres__nombre,
.mgm-talleres__item:hover .mgm-talleres__nombre {
    color: var(--e-global-color-primary);
}

.mgm-talleres__item--activo .mgm-talleres__flecha,
.mgm-talleres__item:hover .mgm-talleres__flecha {
    color: var(--e-global-color-primary);
    transform: translateX(2px);
    -webkit-transform: translateX(2px);
}

.mgm-talleres__enlace {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* -> Icono y flecha */

.mgm-talleres__icono {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mgm-talleres__item--activo .mgm-talleres__icono,
.mgm-talleres__item:hover .mgm-talleres__icono {
    opacity: 1;
}

.mgm-talleres__nombre {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mgm-talleres__flecha {
    font-size: 18px;
    color: #aab0bc;
    margin-left: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* -> Panel de subcategorías */

.mgm-talleres__panel {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    -webkit-transform: translateX(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease;
}

.mgm-talleres__panel--activo {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mgm-talleres__subpanel {
    display: none;
    flex-direction: column;
    gap: 2px;
    animation: mgm-t-fadeIn 0.2s ease forwards;
    -webkit-animation: mgm-t-fadeIn 0.2s ease forwards;
}

.mgm-talleres__subpanel--activo {
    display: flex;
}

/* -> Links dentro del panel */

.mgm-talleres__subenlace {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
    -webkit-transition: background 0.18s ease, color 0.18s ease;
}

.mgm-talleres__subenlace span {
    font-size: 15px;
    opacity: 0;
    transform: translateX(-4px);
    -webkit-transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    -webkit-transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
    color: var(--e-global-color-primary);
}

.mgm-talleres__subenlace:hover {
    background: #f0f4ff;
    color: var(--e-global-color-primary);
}

.mgm-talleres__subenlace:hover span {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mgm-talleres__subenlace--principal {
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    border-radius: 0;
}

.mgm-talleres__subenlace--principal span {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

/* -> Animación entrada subpanel */

@keyframes mgm-t-fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes mgm-t-fadeIn {
    from { opacity: 0; -webkit-transform: translateY(4px); }
    to   { opacity: 1; -webkit-transform: translateY(0); }
}

/* -> Responsive Tablet */

@media (max-width: 768px) {
    .mgm-talleres {
        flex-direction: column;
        min-height: unset;
    }

    .mgm-talleres__lista {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .mgm-talleres__panel {
        width: 100%;
        padding: 16px;
        opacity: 1;
        pointer-events: none;
        transform: none;
        -webkit-transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        -webkit-transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .mgm-talleres__panel--activo {
        pointer-events: auto;
        max-height: 600px;
        padding: 16px;
    }
}

/* -> Responsive Móvil */

@media (max-width: 480px) {
    .mgm-talleres__enlace {
        padding: 12px 14px;
        font-size: 13px;
    }

    .mgm-talleres__subenlace {
        font-size: 13px;
    }
}