/* ============================================
   NAVEGACIÓN - ESTUDIO ENJAMBRE
   Colores institucionales: #ffbc00, Blanco, Negro
   ============================================ */

body {
    padding-top: 0px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 900;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTENEDOR
   ============================================ */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ============================================
   LOGO
   ============================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* ============================================
   BOTÓN HAMBURGUESA
   ============================================ */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffbc00;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #ffbc00;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #ffbc00;
}

/* ============================================
   OVERLAY OSCURO
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MENÚ LATERAL
   ============================================ */
.nav-menu {
    position: fixed;
    top: 50px;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: calc(100vh - 50px);
    background: white;
    padding: 40px 30px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    font-family: "obviously", sans-serif;
}

.nav-menu.active {
    right: 0;
}

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

.nav-menu li {
    border-bottom: 1px solid #f0f0f0;
        list-style: none; 
    list-style-type: none;
}

li::marker {
  display: none;
}

.nav-menu a {
    display: block;
    padding: 20px 0;
    color: #000;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    list-style: none; 
    list-style-type: none;
}

.nav-menu a:hover {
    color: #ffbc00;
    padding-left: 10px;
}

.nav-menu a.active {
    color: #ffbc00;
    font-weight: 600;
}

/* ============================================
   BOTÓN CTA
   ============================================ */
.nav-cta {
    background: #ffbc00;
    color: #000 !important;
    padding: 15px 28px !important;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 188, 0, 0.3);
}

.nav-cta:hover {
    background: #e6a900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 188, 0, 0.4);
    padding-left: 28px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .main-header {
        height: 70px;
    }

    body {
        padding-top: 40px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .menu-overlay {
        top: 50px;
        height: calc(100vh - 50px);
    }
}

@media (min-width: 969px) {
    .nav-menu {
        max-width: 450px;
    }
    
    .nav-menu a {
        font-size: 1.2em;
    }
}