@tailwind base;
@tailwind components;
@tailwind utilities;

/* =========================
   IESTP JAE NAVBAR PRO
========================= */

.jae-menu-open {
    overflow: hidden;
}

.jae-site-header {
    position: relative;
    z-index: 1000;
}

.jae-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.jae-topbar {
    background: #1f2a5a;
    color: #fff;
    font-size: 13px;
}

.jae-topbar__inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.jae-topbar__left,
.jae-topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.jae-topbar__item,
.jae-topbar__right > a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: .25s ease;
}

.jae-topbar__item:hover,
.jae-topbar__right > a:hover,
.jae-topbar__social a:hover {
    color: #f4c542;
}

.jae-topbar__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jae-topbar__social a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    transition: .25s ease;
}

.jae-header {
    background: #fff;
    border-bottom: 1px solid #edf0f7;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .25s ease, background .25s ease;
}

.jae-header.is-scrolled {
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.jae-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.jae-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.jae-header__logo img {
    height: 52px;
    width: auto;
    display: block;
}

.jae-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.jae-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.jae-nav__item {
    position: relative;
}

.jae-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1f2a5a;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all .25s ease;
    white-space: nowrap;
}

.jae-nav__link:hover {
    background: #eef3ff;
    color: #314ec9;
}

.jae-nav__link.is-active {
    background: #eef3ff;
    color: #314ec9;
}

.jae-nav__link i {
    font-size: 12px;
    opacity: .85;
}

.jae-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jae-btn-inscribete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0b400;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(240, 180, 0, .18);
    transition: all .25s ease;
    border: none;
}

.jae-btn-inscribete:hover {
    background: #d89f00;
    color: #fff;
    transform: translateY(-1px);
}

.jae-dropdown,
.jae-mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 1005;
}

.jae-nav__item:hover > .jae-dropdown,
.jae-nav__item:hover > .jae-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.jae-dropdown {
    min-width: 300px;
    background: #f7f7fa;
    border: 1px solid #eceef4;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.jae-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #5b6474;
    font-size: 15px;
    padding: 13px 14px;
    border-radius: 12px;
    transition: all .22s ease;
}

.jae-dropdown__item i {
    color: #4b4ded;
    font-size: 17px;
    min-width: 18px;
    text-align: center;
}

.jae-dropdown__item:hover {
    background: #fff;
    color: #314ec9;
}

.jae-mega {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 720px;
    background: #f7f7fa;
    border: 1px solid #eceef4;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.jae-nav__item:hover > .jae-mega {
    transform: translateX(-50%) translateY(0);
}

.jae-mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.jae-mega__item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #5b6474;
    font-size: 15px;
    padding: 13px 14px;
    border-radius: 12px;
    transition: all .22s ease;
}

.jae-mega__item i {
    color: #4b4ded;
    font-size: 17px;
    min-width: 18px;
    text-align: center;
}

.jae-mega__item:hover {
    background: #fff;
    color: #314ec9;
}

.jae-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e7ebf4;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.jae-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #1f2a5a;
    border-radius: 2px;
    display: block;
}

.jae-mobile {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.jae-mobile.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jae-mobile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.jae-mobile__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
}

.jae-mobile.is-open .jae-mobile__panel {
    transform: translateX(0);
}

.jae-mobile__header {
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f7;
}

.jae-mobile__logo img {
    height: 46px;
    width: auto;
    display: block;
}

.jae-mobile__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e7ebf4;
    background: #fff;
    cursor: pointer;
    color: #1f2a5a;
}

.jae-mobile__body {
    padding: 16px;
    overflow-y: auto;
}

.jae-mobile__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jae-mobile__item {
    border: 1px solid #edf0f7;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.jae-mobile__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jae-mobile__link {
    flex: 1;
    text-decoration: none;
    color: #1f2a5a;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 16px;
}

.jae-mobile__caret {
    width: 48px;
    align-self: stretch;
    border: none;
    border-left: 1px solid #edf0f7;
    background: #fff;
    cursor: pointer;
    color: #1f2a5a;
}

.jae-mobile__sub {
    display: none;
    border-top: 1px solid #edf0f7;
    background: #f8f9fc;
    padding: 8px;
}

.jae-mobile__item.is-open .jae-mobile__sub {
    display: block;
}

.jae-mobile__subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #566072;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 14px;
    transition: all .2s ease;
}

.jae-mobile__subitem i {
    color: #4b4ded;
    min-width: 16px;
    text-align: center;
}

.jae-mobile__subitem:hover {
    background: #fff;
    color: #314ec9;
}

.jae-mobile__cta {
    padding-top: 14px;
}

@media (max-width: 1199px) {
    .jae-nav__link {
        font-size: 15px;
        padding: 12px 12px;
    }

    .jae-mega {
        width: 650px;
    }
}

@media (max-width: 991px) {
    .jae-topbar__left {
        display: none;
    }

    .jae-topbar__inner {
        justify-content: center;
    }

    .jae-nav {
        display: none;
    }

    .jae-btn-inscribete {
        display: none;
    }

    .jae-menu-toggle {
        display: inline-flex;
    }

    .jae-header__inner {
        min-height: 72px;
    }
}

@media (max-width: 767px) {
    .jae-topbar {
        display: none;
    }

    .jae-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jae-header__logo img {
        height: 46px;
    }
}
