/* ============================================
   MOBILE HAMBURGER NAVIGATION
   Archivo: mobile-hamburger.css
   Creado: 20260327
   Proposito: Menu hamburguesa para dispositivos moviles
   Reemplaza: Sistema bottom sheets (script.js lines 31-102)

   CONTENIDO:
   - .ham-btn       : Boton hamburguesa (esquina superior derecha)
   - .ham-line      : Las 3 rayas del boton
   - .ham-overlay   : Overlay oscuro con blur detras del panel
   - .ham-panel     : Panel que desliza desde la derecha
   - .ham-header    : Header con logo y "Yafeet Master"
   - .ham-content   : Contenedor scrolleable de links
   - .ham-dropdown  : Contenedor de dropdown (Videos/Packs)
   - .ham-dropdown-toggle : Boton que expande/colapsa submenus
   - .ham-dropdown-content : Contenido expandible (subpaginas)
   - .ham-link      : Enlaces directos (Inicio, etc)

   Responsive: max-width: 768px
   ============================================ */

/* ============================================
   HAMBURGER BUTTON (.ham-btn)
   Aparece en esquina superior derecha
   Solo visible en mobile (max-width: 768px)
   ============================================ */
.ham-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.ham-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Las 3 rayas del hamburger */
.ham-line {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animacion X cuando esta abierto */
.ham-btn.active .ham-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   OVERLAY (.ham-overlay)
   Fondo oscuro semi-transparente
   Aparece detras del panel cuando este abierto
   ============================================ */
.ham-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ============================================
   MOBILE PAGE LOGO (.mobile-page-logo)
   Logo estatico centrado antes del titulo
   Visible solo en movil (max-width: 768px)
   Comportamiento: flujo normal (no fixed/sticky)
   ============================================ */
.mobile-page-logo {
    display: none;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.mobile-page-logo a {
    display: inline-block;
}

.mobile-page-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.4);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mobile-page-logo {
        display: block;
    }
}

/* ============================================
   PANEL (.ham-panel)
   Panel deslizable desde la derecha
   Glassmorphism: fondo semi-transparente con blur
   ============================================ */
.ham-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.ham-panel.open {
    transform: translateX(0);
}

/* ============================================
   HEADER (.ham-header)
   Logo centrado + "Yafeet Master"
   ============================================ */
.ham-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 15, 23, 0.5);
}

.ham-logo {
    width: 80px;
    height: 80px;
    margin: 10px auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.ham-header a {
    display: inline-block;
    line-height: 0;
}

.ham-brand {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTENT (.ham-content)
   Area scrolleable con los links de navegacion
   ============================================ */
.ham-content {
    flex: 1;
    overflow-y: visible;
    padding: 15px 0;
}

/* Scrollbar personalizado */
.ham-content::-webkit-scrollbar {
    width: 6px;
}

.ham-content::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
}

.ham-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}

/* ============================================
   LINKS DIRECTOS (.ham-link)
   Inicio, Contenido Personalizado, Cambiar Tema
   ============================================ */
.ham-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.ham-link:hover,
.ham-link:active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    border-left-color: #6366f1;
}

.ham-link i {
    width: 24px;
    text-align: center;
    color: #818cf8;
}

/* ============================================
   DROPDOWN (.ham-dropdown)
   Contenedor de las secciones expandibles
   Videos y Packs de Fotos
   ============================================ */
.ham-dropdown {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.ham-dropdown:last-child {
    border-bottom: none;
}

/* ============================================
   DROPDOWN TOGGLE (.ham-dropdown-toggle)
   Boton que expande/colapsa el submenu
   Muestra icono de chevron que rota
   ============================================ */
.ham-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #ccc;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.ham-dropdown-toggle:hover,
.ham-dropdown-toggle:active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    border-left-color: #6366f1;
}

.ham-dropdown-toggle .ham-icon {
    width: 24px;
    text-align: center;
    color: #818cf8;
    transition: transform 0.3s ease;
}

.ham-dropdown-toggle.active .ham-icon {
    transform: rotate(180deg);
}

/* ============================================
   DROPDOWN CONTENT (.ham-dropdown-content)
   Lista de subpaginas (oculta por defecto)
   Se expande con max-height transition
   ============================================ */
.ham-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(15, 15, 23, 0.3);
}

.ham-dropdown-content.open {
    max-height: 600px;
}

.ham-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 50px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.ham-dropdown-content a:hover,
.ham-dropdown-content a:active {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    border-left-color: #818cf8;
}

.ham-dropdown-content a i {
    width: 20px;
    text-align: center;
    color: #6366f1;
    font-size: 0.85rem;
}

/* Estilo especial para links VIP */
.ham-dropdown-content a.vip-link {
    color: #60a5fa;
}

.ham-dropdown-content a.vip-link i {
    color: #3b82f6;
}

.ham-dropdown-content a.vip-link:hover {
    color: #93c5fd;
    border-left-color: #3b82f6;
}

/* ============================================
   MEDIA QUERY: Mobile only (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .container {
        margin-top: 0;
    }

    .ham-btn {
        display: flex;
    }

    .ham-overlay {
        display: block;
    }
}

/* ============================================
   MEDIA QUERY: Pantallas muy pequenas (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .ham-panel {
        width: 90%;
        max-width: none;
    }

    .ham-logo {
        width: 60px;
        height: 60px;
    }

    .ham-brand {
        font-size: 1rem;
    }
}