/* ═══════════════════════════════════════
   VARIABLES GLOBALES Y RESET (global.css)
═══════════════════════════════════════ */
:root {
  /* Variables Base */
  --bg:         #040814; 
  --bg2:        #0a0f1d;
  --card:       rgba(15, 23, 42, 0.75);
  --card-h:     rgba(30, 41, 59, 0.95);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(0,200,255,0.4);
  --accent:     #00c8ff;
  --accent2:    #c850ff;
  --green:      #10b981;
  --amber:      #f59e0b;
  --rose:       #f43f5e;
  --text:       #e2e8f0;
  --muted:      #94a3b8;
  --white:      #ffffff;
  
  /* Variables específicas del Header SSUAV */
  --ss-bg: rgba(9, 9, 11, 0.85); 
  --ss-border: rgba(255, 255, 255, 0.08);
  --ss-acento: #00c8ff; 
  --ss-acento-glow: rgba(0, 200, 255, 0.15);
  --ss-text: #f2f3f5;
  --ss-muted: #94a3b8;
  --ss-gold: #e879f9;
  --ss-gold-grad: linear-gradient(135deg, #c850ff 0%, #00c8ff 100%);
  --ss-gold-glow: rgba(200, 80, 255, 0.3);
  --ss-red: #ef4444;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Outfit', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: hidden; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card-h); border-radius: 3px; }
a { text-decoration: none; color: inherit; display: block; } 
button, input, select { font-family: 'Outfit', sans-serif; }

/* ── Animaciones Base Generales ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes svgDraw { 0% { stroke-dashoffset: 120; opacity: 0.2; } 100% { stroke-dashoffset: 0; opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px) scale(0.96); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; } 
.delay-2 { transition-delay: 0.2s; } 
.delay-3 { transition-delay: 0.3s; }

.svg-draw { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hover-target:hover .svg-draw { stroke-dashoffset: 0; }
.reveal.visible .svg-draw { animation: svgDraw 1.5s ease-out forwards 0.3s; }

/* ── ORBES DE FONDO AMBIENTAL (Opcional por página, pero reusable) ── */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.ambient-orb { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; opacity: 0.5; animation: orbFloat 25s infinite alternate ease-in-out; pointer-events: none; }
.orb-1 { width: 45vw; height: 45vw; max-width: 500px; max-height: 500px; background: rgba(0, 200, 255, 0.15); top: -5%; left: -5%; }
.orb-2 { width: 55vw; height: 55vw; max-width: 600px; max-height: 600px; background: rgba(200, 80, 255, 0.12); bottom: -10%; right: -5%; animation-delay: -5s; animation-direction: alternate-reverse; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(80px, 60px) scale(1.1); } }

/* Componentes Globales compartidos (Secciones) */
.section-wrapper { padding: 100px 1.5rem; max-width: 1250px; margin: 0 auto; position: relative; z-index: 2;}
.section-kicker { display: inline-block; font-size: 0.75rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; background: rgba(0,200,255,0.1); padding: 6px 16px; border-radius: 50px; border: 1px dashed rgba(0,200,255,0.3); }
.section-title { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.section-sub { color: var(--muted); font-size: 1.15rem; line-height: 1.6; max-width: 650px; margin: 0 auto 3rem; }

/* =======================================================
   ESTILOS COMPONENTE: MASTER HEADER
========================================================= */
#ss-master-header {
    position: sticky; top: 0; z-index: 99999; width: 100%;
    background: var(--ss-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ss-border);
    font-family: 'Outfit', sans-serif;
    color: var(--ss-text);
}

.ss-container {
    max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; height: 80px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem;
}

/* LOGO */
.ss-logo-box {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; color: #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0;
}
.ss-logo-box:hover { transform: scale(1.05); }
.ss-logo-box img { height: 42px !important; width: auto !important; max-width: none !important; display: block !important; filter: drop-shadow(0 0 8px var(--ss-acento-glow)); }
.ss-logo-box span { color: var(--ss-acento); }

/* NAVEGACIÓN DESKTOP */
.ss-nav-desk { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center;}
.ss-nav-link {
    display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.8rem;
    color: var(--ss-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border-radius: 8px; transition: all 0.3s ease; cursor: pointer; position: relative; white-space: nowrap;
}
.ss-nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s ease;
}
.ss-nav-link:hover { color: #fff; background: rgba(255,255,255,0.03); }
.ss-nav-link:hover::after { width: 50%; }
.ss-nav-link.btn-social { color: #fff; }
.ss-nav-link.btn-social:hover::after { background: var(--ss-acento); width: 60%;}

/* DROPDOWNS DESKTOP */
.ss-drop-wrapper { position: relative; display: flex; align-items: center; height: 80px; }
.ss-drop-icon { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0.6; }
.ss-drop-wrapper:hover .ss-drop-icon { transform: rotate(180deg); opacity: 1; }

.ss-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    background: #121214; border: 1px solid var(--ss-border); border-radius: 16px;
    width: 280px; padding: 0.8rem; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}
.ss-drop-wrapper:hover .ss-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.ss-drop-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    text-decoration: none; border-radius: 12px; transition: 0.3s; border: 1px solid transparent;
}
.ss-drop-item:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); transform: translateX(5px); }
.ss-drop-emoji { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.2rem; flex-shrink: 0; background: rgba(255,255,255,0.05); transition: 0.3s;}
.ss-drop-item:hover .ss-drop-emoji { transform: scale(1.1) rotate(-5deg); }

.ss-drop-text { color: #fff; font-weight: 700; font-size: 0.95rem; display: block;}
.ss-drop-sub { color: var(--ss-muted); font-size: 0.75rem; font-weight: 500; display: block; margin-top: 2px;}

.ss-drop-item.locked .ss-drop-text { display: flex; align-items: center; gap: 8px;}
.ss-badge-lock { background: rgba(239,68,68,0.15); color: var(--ss-red); padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: 900; letter-spacing: 1px;}
.ss-drop-item.locked:hover { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }

/* BOTONES Y PERFIL */
.ss-cta-group { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-upsell-header {
    background: rgba(200, 80, 255, 0.1); border: 1px solid rgba(200, 80, 255, 0.3);
    color: var(--ss-gold); padding: 0.6rem 1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 800; text-decoration: none;
    transition: 0.3s; display: flex; align-items: center; gap: 6px;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn-upsell-header::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shine 3s infinite; }
@keyframes shine { 100% { left: 200%; } }
.btn-upsell-header:hover { background: var(--ss-gold-grad); color: #fff; box-shadow: 0 5px 15px var(--ss-gold-glow); transform: translateY(-2px); }

/* AVATAR MINI HEADER */
.ss-btn-profile { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; margin: 0; cursor: pointer; position: relative; z-index: 1;}
.ss-avatar-mini { 
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1rem; font-weight: 900; color: #fff; box-shadow: 0 0 0 2px var(--ss-border);
    background: #121214; overflow: hidden; position: relative; z-index: 2;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ss-btn-profile:hover .ss-avatar-mini { transform: scale(1.1); box-shadow: 0 0 0 3px var(--ss-acento); }
.ss-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.avatar-premium { border: 2px solid #c850ff; box-shadow: 0 0 10px var(--ss-gold-glow); }
.ss-btn-profile:hover .avatar-premium { box-shadow: 0 0 0 3px #c850ff, 0 0 20px var(--ss-gold-glow); }

/* MENU DE USUARIO DESPLEGABLE */
.user-menu-dropdown { width: 280px; padding: 0; overflow: hidden; border: 1px solid var(--ss-border); border-radius: 16px; }
.dropdown-banner { height: 70px; background: #1a1a24; position: relative; }
.premium-drop .dropdown-banner { background-color: #2c104d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%234c1d95' /%3E%3Cstop offset='100%25' stop-color='%23c026d3' /%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)' /%3E%3Cpath d='M-100 35 Q 150 135 400 35 T 900 35' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='4'%3E%3Canimate attributeName='d' dur='5s' repeatCount='indefinite' values='M-100 35 Q 150 135 400 35 T 900 35; M-100 35 Q 150 -35 400 35 T 900 35; M-100 35 Q 150 135 400 35 T 900 35'/%3E%3C/path%3E%3Cpath d='M-100 55 Q 150 155 400 55 T 900 55' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'%3E%3Canimate attributeName='d' dur='7s' repeatCount='indefinite' values='M-100 55 Q 150 155 400 55 T 900 55; M-100 55 Q 150 -15 400 55 T 900 55; M-100 55 Q 150 155 400 55 T 900 55'/%3E%3C/path%3E%3C/svg%3E"); background-size: cover; }
.dropdown-profile-header { padding: 0 16px 12px; position: relative; margin-top: -30px; border-bottom: 1px solid var(--ss-border); text-align: left;}
.dropdown-avatar { width: 60px; height: 60px; border-radius: 50%; border: 4px solid #121214; background: #1f2937; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; color: #fff; position: relative; z-index: 2; overflow: hidden; }
.dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.premium-drop .dropdown-avatar { border-color: #121214; box-shadow: 0 0 0 2px #c850ff; }
.dropdown-user-info { margin-top: 8px; }
.dropdown-user-name { font-size: 1.15rem; font-weight: 900; color: #fff; line-height: 1.2;}
.dropdown-user-status { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; color: var(--ss-muted);}
.dropdown-user-status.vip { color: var(--ss-gold); text-shadow: 0 0 8px rgba(200,80,255,0.4);}
.dropdown-links { padding: 8px; }
.dropdown-links .ss-drop-item { padding: 8px 10px; margin-bottom: 2px;}
.dropdown-links .ss-drop-emoji { width: 28px; height: 28px; font-size: 0.9rem; }
.item-logout { border-top: 1px dashed var(--ss-border); margin-top: 5px; border-radius: 8px; }
.item-logout:hover { background: rgba(239, 68, 68, 0.1) !important; border-color: rgba(239,68,68,0.3);}
.item-logout .ss-drop-emoji { background: rgba(239, 68, 68, 0.2); color: var(--ss-red);}
.item-logout .ss-drop-text { color: var(--ss-red); }

/* CAMPANA DE NOTIFICACIONES */
.ss-bell-wrapper { position: relative; cursor: pointer; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.03); border: 1px solid var(--ss-border); transition: 0.3s; }
.ss-bell-wrapper:hover, .ss-bell-wrapper.active { background: var(--ss-acento-glow); border-color: var(--ss-acento); }
.ss-bell-icon { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: 0.3s; }
.ss-bell-wrapper:hover .ss-bell-icon { animation: ringBell 0.6s ease-in-out both; stroke: var(--ss-acento); }
@keyframes ringBell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(15deg); } 40% { transform: rotate(-15deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-10deg); } }
.ss-bell-badge { position: absolute; top: -4px; right: -4px; background: var(--ss-red); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 0.7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #09090b; box-shadow: 0 0 10px rgba(239,68,68,0.6); display: none;} 

/* PANEL NOTIFICACIONES */
.ss-notif-panel {
    position: absolute; top: 130%; right: -50px; background: #121214; border: 1px solid var(--ss-border); border-radius: 20px; width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; padding: 1.5rem; cursor: default;
}
.ss-bell-wrapper.active .ss-notif-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ss-notif-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ss-border); padding-bottom: 12px; margin-bottom: 15px; }
.ss-notif-header h4 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800;}
.ss-notif-header span { font-size: 0.7rem; color: var(--ss-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;}
.ss-notif-list { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; padding-right: 5px;}
.ss-notif-list::-webkit-scrollbar { width: 4px; }
.ss-notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.n-card { display: flex; gap: 15px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--ss-border); position: relative; padding-right: 35px; transition: transform 0.2s;}
.n-card:hover { transform: translateX(-4px); background: rgba(255,255,255,0.04); }
.n-card.critica { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2); }
.n-card.ok { background: rgba(35,165,90,0.05); border-color: rgba(35,165,90,0.2); }
.n-card.info { background: rgba(0,200,255,0.05); border-color: rgba(0,200,255,0.2); }
.n-card.vip { background: linear-gradient(135deg, rgba(200,80,255,0.1) 0%, rgba(0,200,255,0.05) 100%); border-color: rgba(200,80,255,0.4); }
.n-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0; background: rgba(255,255,255,0.05); color: #fff;}
.n-card.critica .n-icon { color: var(--ss-red); background: rgba(239,68,68,0.1); }
.n-card.info .n-icon { color: var(--ss-acento); background: rgba(0,200,255,0.1); }
.n-card.vip .n-icon { background: var(--ss-gold-grad); color: #fff; font-size: 1.2rem; }
.n-card.promo .n-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.n-content { flex: 1; }
.n-title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 800; color: #fff;}
.n-card.vip .n-title { color: var(--ss-gold); }
.n-desc { margin: 0 0 8px; font-size: 0.8rem; color: var(--ss-muted); line-height: 1.4;}
.n-link { display: inline-block; font-size: 0.75rem; font-weight: 800; color: var(--ss-acento); text-decoration: none; padding: 4px 10px; background: rgba(0,200,255,0.1); border-radius: 6px; transition: 0.2s;}
.n-link:hover { background: var(--ss-acento); color: #000;}
.n-card.vip .n-link { color: #fff; background: var(--ss-gold-grad); }
.n-close-btn { position: absolute; top: 10px; right: 10px; background: transparent; border: none; color: var(--ss-muted); cursor: pointer; font-size: 1.1rem; padding: 0; line-height: 1; transition: 0.2s; z-index: 2;}
.n-close-btn:hover { color: var(--ss-red); transform: scale(1.2) rotate(90deg);}

/* ── MÓVIL ── */
.mob-profile-btn { display: none; width: 42px; height: 42px; border-radius: 50%; background: #121214; border: 2px solid var(--ss-border); justify-content: center; align-items: center; overflow: hidden; text-decoration: none; color: #fff; font-weight: 900; }
.mob-profile-btn img { width: 100%; height: 100%; object-fit: cover; }
.mob-profile-btn.premium-mob { border-color: #c850ff; box-shadow: 0 0 10px rgba(200,80,255,0.4); }

.ss-burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--ss-border); border-radius: 10px; cursor: pointer; z-index: 100000; flex-shrink: 0;}
.ss-burger span { display: block; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.ss-burger.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--ss-acento);}
.ss-burger.abierto span:nth-child(2) { opacity: 0; }
.ss-burger.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--ss-acento);}

.ss-mobile-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(9, 9, 11, 0.98); backdrop-filter: blur(20px); z-index: 99998; display: flex; flex-direction: column; padding: 90px 1.5rem 2rem; box-sizing: border-box; opacity: 0; visibility: hidden; transform: translateX(100%); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; overflow-x: hidden; }
.ss-mobile-overlay.abierto { opacity: 1; visibility: visible; transform: translateX(0); }
.ss-mob-link { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1rem; font-size: 1.1rem; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 1px solid var(--ss-border); }
.ss-mob-link:active { background: var(--ss-acento-glow); }
.ss-mob-drop { display: none; padding: 0.5rem 0; background: rgba(0,0,0,0.2); border-radius: 0 0 12px 12px; }
.ss-mob-wrapper.abierto .ss-mob-drop { display: block; animation: fadeUp 0.3s ease; }
.ss-mob-wrapper.abierto .ss-mob-link { color: var(--ss-acento); border-bottom-color: transparent;}
.ss-mob-wrapper.abierto .ss-drop-icon { transform: rotate(180deg); }

@media (max-width: 1024px) {
    .ss-nav-desk, .btn-upsell-header, .ss-drop-wrapper { display: none !important; }
    .ss-cta-group { display: flex !important; gap: 12px; } 
    .ss-burger { display: flex; }
    .mob-profile-btn { display: flex; }
    .ss-container { padding: 0 1rem; height: 70px; }
}
@media (max-width: 768px) {
    .ss-notif-panel { position: fixed; top: 75px; right: 10px; width: calc(100vw - 20px); max-width: 380px; }
}
@media (min-width: 1025px) {
    .ss-mobile-overlay { display: none !important; }
}
