/* =========================================================
   WeLoveMedellin UI extras
   - Menú móvil (hamburguesa + drawer)
   - Fix: hero de la home con UN solo video de fondo
   Cargado después de wlm.css desde el layout.
   ========================================================= */

/* ------------------------- Hero de la home -------------------------
   El video vive en .home-hero-bg (ancho total de la sección).
   El contenedor interno del hero queda transparente para que se vea
   un solo video de fondo, sin fondos ni sombras duplicadas. */

.home-hero-full {
    position: relative;
    overflow: hidden;
}

.home-hero-full .home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-full .home-hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-full .home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero-full .home-hero-inner .home-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* --------------------- Botón hamburguesa (topbar) --------------------- */

.wlm-nav-burger {
    display: none;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #e8e2dc);
    border-radius: 999px;
    background: #fff;
    color: var(--ink, #16161a);
    font-size: 20px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wlm-nav-burger:hover {
    border-color: var(--brand, #ff385c);
    box-shadow: var(--shadow-sm, 0 6px 18px rgba(0, 0, 0, 0.08));
}

/* ------------------------- Drawer móvil ------------------------- */

body.wlm-nav-open {
    overflow: hidden;
}

.wlm-mobile-nav[hidden] {
    display: none !important;
}

.wlm-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: block;
}

.wlm-mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.5);
    backdrop-filter: blur(6px);
    animation: wlm-nav-fade-in 0.2s ease;
}

.wlm-mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(360px, 88vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 18px 16px 20px;
    background: #fff;
    border-radius: 28px 0 0 28px;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.25);
    animation: wlm-nav-slide-in 0.26s cubic-bezier(0.22, 0.9, 0.3, 1);
}

@keyframes wlm-nav-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wlm-nav-slide-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wlm-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 14px;
    border-bottom: 1px solid var(--border, #e8e2dc);
}

.wlm-mobile-nav-head img {
    height: 32px;
    width: auto;
}

.wlm-mobile-nav-head button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--border, #e8e2dc);
    border-radius: 999px;
    background: #fff;
    color: var(--ink, #16161a);
    font-size: 16px;
    cursor: pointer;
}

.wlm-mobile-nav-links {
    display: grid;
    gap: 4px;
    padding: 14px 0;
}

.wlm-mobile-nav-links > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 18px;
    color: var(--ink, #16161a);
    font-size: 15.5px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.16s ease;
}

.wlm-mobile-nav-links > a:hover,
.wlm-mobile-nav-links > a:active {
    background: var(--paper-soft, #faf6f2);
}

.wlm-mobile-nav-links > a i {
    width: 22px;
    flex: 0 0 auto;
    color: var(--brand, #ff385c);
    font-size: 15px;
    text-align: center;
}

/* Grupos con acordeón (Comunidad / Talento) */

.wlm-mobile-nav-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--ink, #16161a);
    font-size: 15.5px;
    font-weight: 800;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease;
}

.wlm-mobile-nav-group-trigger:hover {
    background: var(--paper-soft, #faf6f2);
}

.wlm-mobile-nav-group-trigger > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wlm-mobile-nav-group-trigger > span i {
    width: 22px;
    flex: 0 0 auto;
    color: var(--brand, #ff385c);
    font-size: 15px;
    text-align: center;
}

.wlm-mobile-nav-group-trigger > .fa-chevron-down {
    color: var(--muted, #8b8b93);
    font-size: 13px;
    transition: transform 0.2s ease;
}

.wlm-mobile-nav-group.is-open .wlm-mobile-nav-group-trigger > .fa-chevron-down {
    transform: rotate(180deg);
}

.wlm-mobile-nav-sub[hidden] {
    display: none !important;
}

.wlm-mobile-nav-sub {
    display: grid;
    gap: 2px;
    margin: 2px 0 6px;
    padding: 6px;
    border-radius: 20px;
    background: var(--paper-soft, #faf6f2);
}

.wlm-mobile-nav-sub a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    color: var(--ink, #16161a);
    text-decoration: none;
    transition: background 0.16s ease;
}

.wlm-mobile-nav-sub a:hover,
.wlm-mobile-nav-sub a:active {
    background: #fff;
}

.wlm-mobile-nav-sub a i {
    width: 20px;
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--brand, #ff385c);
    font-size: 14px;
    text-align: center;
}

.wlm-mobile-nav-sub a strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
}

.wlm-mobile-nav-sub a small {
    display: block;
    margin-top: 2px;
    color: var(--muted, #8b8b93);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

/* Botón "Mi cuenta" anclado abajo */

.wlm-mobile-nav-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--brand, #ff385c);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(255, 56, 92, 0.35);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.wlm-mobile-nav-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 56, 92, 0.42);
}

/* --------------------- Responsive: cuándo aparece --------------------- */

@media (max-width: 1024px) {
    .topbar-inner .nav,
    .topbar-inner .topbar-action {
        display: none !important;
    }

    .wlm-nav-burger {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .wlm-mobile-nav {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .wlm-mobile-nav-panel {
        width: 100vw;
        border-radius: 0;
    }
}