/* Estilos personalizados para el header */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
.header__area {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    transition: all 0.3s ease;
}

.header__left {
    display: flex;
    align-items: center;
}

.header__left .logo img {
    max-height: 60px;
    width: auto;
}

.main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu ul li {
    margin: 0 15px;
    position: relative;
}

.main-menu ul li a {
    color: #0e1133;
    font-size: 16px;
    font-weight: 500;
    padding: 25px 0;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-menu ul li a:hover {
    color: #2b4eff;
}

.main-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.main-menu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .submenu li {
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
}

.main-menu .submenu li:last-child {
    border: none;
}

.main-menu .submenu li a {
    padding: 12px 20px;
    font-size: 14px;
}

.header__actions {
    gap: 15px;
}

.e-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2b4eff;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.e-btn:hover {
    background: #0e1133;
    color: #fff;
}

.header__sede .nav-link {
    color: #0e1133;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header__sede .dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.header__sede .dropdown-item {
    padding: 8px 20px;
    color: #0e1133;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header__sede .dropdown-item:hover {
    background: #f8f9fa;
    color: #2b4eff;
}

/* Estilos para el menú móvil */
.sidebar-toggle-btn {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.sidebar-toggle-btn .line {
    width: 100%;
    height: 2px;
    background: #0e1133;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Estilos para menú móvil */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
}

.mobile-menu.active {
    transform: translateY(0);
    display: block;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu ul li {
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu ul li a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0e1133;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    width: 100%;
    text-align: left;
    position: relative;
}

.mobile-menu .submenu {
    display: none;
    padding-left: 20px;
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 0 20px;
}

.mobile-menu .submenu li {
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu .submenu li:last-child {
    border-bottom: none;
}

.mobile-menu .submenu li a {
    padding: 12px 0;
    font-size: 14px;
    color: #6c757d;
}

.mobile-menu .submenu li:last-child {
    border-bottom: none;
}

.submenu-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #0e1133;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.mobile-cert-button {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mobile-cert-button .e-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
}

.sidebar-toggle-btn.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle-btn.active .line:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle-btn.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Estilos para flechas en menú desktop */
.main-menu .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu .has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 5px;
}

/* Estilos para video hero */
.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero__area {
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__thumb {
    position: relative;
    z-index: 2;
}

/* Media queries para responsividad */
@media (max-width: 991px) {
    .main-menu {
        display: none;
    }
    
    .header__actions {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .header__left .logo img {
        max-height: 50px;
    }
    
    .e-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .header__sede .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .header__btn {
        display: none;
    }
    
    .header__sede .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
}
