/* ═══════════════════════════════════════
   VARIABLES GLOBALES Y RESET (global.css)
═══════════════════════════════════════ */
:root {
  /* Altura de la cabecera fija. El sidebar del panel se pega justo debajo y
     antes lo tenia escrito a mano con un comentario que decia "asumiendo 80px":
     si se cambiaba la cabecera, el panel se desalineaba en silencio. */
  --header-h:   80px;

  /* Variables Base — Contraste mejorado */
  --bg:         #040814;
  --bg2:        #0a0f1d;
  --card:       rgba(22, 30, 52, 0.82);
  --card-h:     rgba(35, 46, 68, 0.95);
  --border:     rgba(255,255,255,0.1);
  --border-h:   rgba(0,200,255,0.4);
  --accent:     #00c8ff;
  --accent2:    #c850ff;
  --green:      #10b981;
  --amber:      #f59e0b;
  --rose:       #f43f5e;
  --text:       #e2e8f0;
  --muted:      #94a3b8;
  --white:      #ffffff;
  
  /* Spacing & Radius tokens */
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --shadow-card: 0 12px 35px rgba(0,0,0,0.35);
  --shadow-card-h: 0 22px 55px rgba(0,0,0,0.55);
  
  /* 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; max-width: 100%; overflow-x: clip; }

/* `clip` y no `hidden`: `overflow-x: hidden` convierte a body en contenedor de
   scroll y eso anula `position: sticky` en TODOS sus descendientes, incluido el
   sidebar del panel. El navegador solo salva eso propagando el overflow de body
   al viewport cuando `html` esta en `visible`, y aqui no lo esta. `clip` recorta
   igual el desbordamiento horizontal pero no crea contenedor de scroll. */

body { 
    font-family: 'Outfit', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: clip; 
    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 {
    width: 100%; max-width: 1400px; min-width: 0; margin: 0 auto; padding: 0 1.5rem; height: var(--header-h);
    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); }
/* Es un <button> para que el desplegable sea accesible, pero hay que neutralizar
   el estilo nativo: sin background pintaba el gris ButtonFace del navegador, y
   `font: inherit` iba despues de .ss-nav-link y le anulaba tamano y grosor.
   Aqui solo se hereda la familia; el resto de la tipografia la pone .ss-nav-link. */
.ss-nav-button { border: 0; background: none; appearance: none; -webkit-appearance: none; font-family: inherit; cursor: pointer; }
.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: var(--header-h); }
.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,
.ss-drop-wrapper:focus-within .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; inset: 0; width: 100%; height: 100dvh; background: rgba(9, 9, 11, 0.98); backdrop-filter: blur(20px); z-index: 99998; display: none; flex-direction: column; padding: 90px 1.5rem 2rem; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; }
.ss-mobile-overlay.abierto { display: flex; animation: mobileMenuIn .22s ease both; }
@keyframes mobileMenuIn { from { opacity:0; } to { opacity:1; } }
.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-toggle { width:100%; border:0; background:transparent; font-family:inherit; text-align:left; }
.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 (max-width: 420px) {
    .ss-container { padding-inline: .75rem; gap: .5rem; }
    .ss-logo-box { min-width: 0; }
    .ss-logo-box span { display: none; }
    .ss-cta-group { gap: .5rem !important; min-width: 0; }
}
@media (min-width: 1025px) {
    .ss-mobile-overlay { display: none !important; }
}

/* ════ ESTILOS GLOBALES DE ANUNCIOS ADSENSE (ANTI-COLAPSO) ════ */
.ad-container { 
    display: block; /* Obligatorio block para AdSense */
    width: 100%; 
    background: rgba(255,255,255,0.01); 
    border: 1px dashed rgba(255,255,255,0.08); 
    border-radius: 16px; 
    padding: 30px 0 10px; /* Espacio para el pseudo-elemento */
    position: relative; 
    text-align: center; 
    min-height: 100px; /* Evitar 250px rígido que colapsa con anuncios pequeños */
    overflow: visible; /* Importante visible para formatos responsivos/fluid */
}
.ad-in-article { margin: 3rem 0; min-height: 100px; }
.ad-transparent { background: transparent; border: none; padding-top: 20px;}
.ad-container::before { 
    content: 'PATROCINADO'; 
    position:absolute; top:8px; left:0; right:0; 
    font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; 
    color: var(--muted); text-transform: uppercase; opacity: 0.5; 
}
.ad-container ins { display: block !important; width: 100%; margin: 0 auto;}

/* ── Reserva de altura: CLS ────────────────────────────────────────────────
   .ad-container reservaba 100 px para cualquier formato, pero lo que Google
   sirve de verdad mide entre 280 y 448 px en escritorio y hasta 391 px en
   movil. Cada anuncio empujaba el texto varios cientos de pixeles hacia abajo
   justo mientras el lector iba llegando a el. Las cifras de abajo estan
   tomadas midiendo las unidades ya servidas en produccion.                  */
.ad-cabecera   { min-height: 300px; }
.ad-lateral    { min-height: 300px; }
.ad-in-article { min-height: 300px; }
.ad-in-feed    { min-height: 320px; }
.ad-multiplex  { min-height: 300px; } /* la clase se conserva, pero dentro ya va un in-article */
@media (max-width: 900px) {
    .ad-in-article { min-height: 410px; }
    .ad-cabecera   { min-height: 320px; }
    .ad-multiplex  { min-height: 410px; }
}

/* Si Google no rellena el hueco, se cierra en vez de dejar un rectangulo
   vacio con la etiqueta "PATROCINADO". AdSense marca la unidad con
   data-ad-status="unfilled" en cuanto resuelve la peticion. */
.ad-container:has(ins[data-ad-status="unfilled"]) {
    min-height: 0; padding: 0; margin: 0; border: 0; background: none;
}
.ad-container:has(ins[data-ad-status="unfilled"])::before { content: none; }
/* Una unidad por hueco y la misma en todos los tamanos. Ocultar unidades por
   media query no sirve: AdSense reparte los push() entre las <ins> en orden de
   documento, de modo que saltarse uno descoloca a todas las siguientes. */
.ad-cierre { min-height: 320px; }
/* La calculadora define sus propios .ad-med y .ad-lrg, pero su bloque <style>
   se imprime ANTES de incluir header.php, o sea antes de global.css, asi que
   con la misma especificidad ganaba el min-height de 100 px de aqui arriba y
   sus reservas no servian de nada. Se fijan aqui, que es lo ultimo que carga. */
.ad-med { min-height: 300px; }
.ad-lrg { min-height: 300px; }
@media (max-width: 900px) {
    .ad-med { min-height: 320px; }
    .ad-lrg { min-height: 410px; }
}

/* Envoltorios que se quedan sin <ins> dentro: pasa con los suscriptores
   premium, a quienes config.php les retira las unidades de AdSense. Sin esta
   regla les quedaria un rectangulo punteado con la etiqueta "PATROCINADO" y
   nada dentro. */
.ad-container:not(:has(ins)),
.ad-box:not(:has(ins)),
.ad-wrapper:not(:has(ins)),
.ad-in-feed:not(:has(ins)),
.ad-multiplex:not(:has(ins)) { display: none !important; }

/* ═══ GLASS CARD UTILITY ═══ */
.glass-card {
    background: rgba(22, 30, 52, 0.82);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    background: rgba(35, 46, 68, 0.95);
    border-color: rgba(255,255,255,0.18);
    box-shadow: var(--shadow-card-h);
    transform: translateY(-4px);
}

/* ═══ PAGE TRANSITION ═══ */
body { animation: pageIn 0.4s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
a[href]:not([target="_blank"]):not(.no-transition) {
    /* handled by JS */
}
.page-leaving { animation: pageOut 0.25s ease forwards; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-8px); } }

/* ═══ READING PROGRESS BAR ═══ */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 999999;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0%; transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0,200,255,0.5);
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumb-bar {
    max-width: 1250px; margin: 0 auto;
    padding: 14px 1.5rem 0;
    position: relative; z-index: 2;
}
.breadcrumb-list {
    list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.82rem; font-weight: 600; color: var(--muted);
    padding: 0; margin: 0;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list .bc-sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.breadcrumb-list .bc-current { color: var(--text); font-weight: 700; }

/* ═══ NEWSLETTER SECTION — PREMIUM REDESIGN ═══ */
@keyframes spin { to { transform: rotate(360deg); } }

.nl-section {
    position: relative;
    padding: 4.5rem 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-dark, #060a14) 0%, #080d1a 50%, var(--bg-dark, #060a14) 100%);
}
.nl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.nl-orb-1 { width: 350px; height: 350px; background: rgba(0,200,255,0.08); top: -100px; left: 10%; animation: nlFloat 8s ease-in-out infinite alternate; }
.nl-orb-2 { width: 280px; height: 280px; background: rgba(200,80,255,0.07); bottom: -80px; right: 10%; animation: nlFloat 10s ease-in-out infinite alternate-reverse; }
@keyframes nlFloat { from { transform: translateY(0); } to { transform: translateY(25px); } }

.nl-card {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(22, 32, 55, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nl-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,200,255,0.1);
    border: 1px solid rgba(0,200,255,0.2);
    color: var(--accent, #00c8ff);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.nl-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}
.nl-title span {
    background: linear-gradient(135deg, var(--accent, #00c8ff), #c850ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nl-desc {
    color: var(--muted, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.8rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.nl-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.nl-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.nl-input-icon {
    position: absolute;
    left: 16px;
    color: var(--muted, #94a3b8);
    pointer-events: none;
    z-index: 1;
}
.nl-input-wrap input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 15px 16px 15px 44px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    outline: none;
    transition: 0.3s;
}
.nl-input-wrap input:focus {
    border-color: var(--accent, #00c8ff);
    background: rgba(0,200,255,0.04);
    box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}
.nl-input-wrap input::placeholder { color: rgba(148,163,184,0.6); }

.nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent, #00c8ff), #c850ff);
    color: #fff;
    border: none;
    padding: 15px 28px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,200,255,0.25);
    position: relative;
    overflow: hidden;
}
.nl-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}
.nl-btn:hover::before { left: 150%; }
.nl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0,200,255,0.35);
}
.nl-btn:hover svg { transform: translateX(3px); }
.nl-btn svg { transition: 0.3s; }
.nl-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.newsletter-msg {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: none;
}
.newsletter-msg.success { display: block; color: var(--green, #10b981); }
.newsletter-msg.error { display: block; color: var(--rose, #f43f5e); }

.nl-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.nl-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.nl-legal {
    font-size: 0.72rem;
    color: var(--muted, #94a3b8);
    margin-top: 14px;
    opacity: 0.5;
}
.nl-legal a {
    color: var(--accent, #00c8ff);
    text-decoration: underline;
    text-decoration-color: rgba(0,200,255,0.3);
}
.nl-legal a:hover { text-decoration-color: var(--accent, #00c8ff); }

@media (max-width: 600px) {
    .nl-card { padding: 2rem 1.5rem; border-radius: 20px; }
    .nl-title { font-size: 1.5rem; }
    .nl-form { flex-direction: column; }
    .nl-btn { width: 100%; justify-content: center; }
    .nl-trust { gap: 12px; }
    .nl-trust-item { font-size: 0.75rem; }
}

/* ═══ ICONOS UNIFICADOS (ssuav_icon) ════════════════════════════════════════
   Estaban solo en la hoja del panel, asi que en las paginas publicas —los
   tests, entre otras— los iconos salian sin tamaño. Heredan color del texto y
   escalan con font-size. */
.ssuav-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.ssuav-ico.ico-lg { width: 1.5em; height: 1.5em; }
.ssuav-ico.ico-sm { width: 1em; height: 1em; }

/* ═══ DESCARGOS DE HERRAMIENTA (includes/descargos.php) ═════════════════════
   Un solo componente para todos los avisos. Antes había tres bloques casi
   idénticos escritos a mano con tres clases distintas y dos fechas divergentes,
   y cinco páginas sin ningún aviso. */
.ssuav-descargo { margin: 1.4rem auto; max-width: 900px; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.10); border-left: 3px solid var(--acento, #00c8ff); font-size: 0.88rem; line-height: 1.6; }
.ssuav-descargo.es-compacto { margin: .8rem auto; padding: .7rem .9rem; font-size: .82rem; }
.ssuav-descargo-tit { display: block; color: #fff; font-weight: 800; margin-bottom: .35rem; }
.ssuav-descargo-txt { margin: 0; color: var(--texto-suave, #9aa4b2); }
.ssuav-descargo-txt strong { color: #cbd5e1; }
.ssuav-descargo-fuentes { margin: .6rem 0 0; font-size: .82rem; color: var(--texto-suave, #9aa4b2); }
.ssuav-descargo-fuentes a { color: var(--acento, #00c8ff); text-decoration: none; }
.ssuav-descargo-fuentes a:hover { text-decoration: underline; }
.ssuav-descargo-fecha { margin: .45rem 0 0; font-size: .76rem; color: rgba(255,255,255,0.42); }

/* Campana: avisos del motor del panel (no se ocultan) y novedades (08/10/2026) */
a.n-card { text-decoration: none; color: inherit; }
.n-card.aviso { padding-right: 14px; }
.n-card.atencion { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); }
.n-card.atencion .n-icon { color: #f59e0b; background: rgba(245,158,11,0.1); }
.n-sep { margin: 6px 0 0; font-size: 0.75rem; color: var(--ss-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.ss-notif-vacio { text-align: center; color: var(--ss-muted); font-size: 0.95rem; padding: 20px 0; margin: 0; }
.ss-notif-todos, .n-mas { font-size: 0.8rem; font-weight: 700; color: var(--ss-acento); text-decoration: none; }
.n-mas { display: block; text-align: center; padding: 4px 0; }
