/* DEVgame Network - Dark Studio Theme Stylesheet */
/* Diseñado siguiendo la estética de referencia: 3 Columnas, Dark Studio, cards pulidas y media embeds */

:root {
    --bg-canvas: #0b0e14;
    --bg-card: #151a23;
    --bg-card-hover: #1c2330;
    --bg-card-inner: #0f131a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-engine: rgba(255, 255, 255, 0.12);
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-star: #fbbf24;
    --accent-skull: #f43f5e;
    --accent-green: #10b981;
    --accent-code: #38bdf8;
    --accent-main: #6366f1;
    --text-primary: #ffffff;
    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --radius-card: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-code: 'JetBrains Mono', Consolas, monospace;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

/* ── TEMAS COMUNITARIOS / PRESETS (Top 5 más votados) ── */
body.theme-dark-studio {
    --bg-canvas: #0b0e14;
    --bg-card: #151a23;
    --bg-card-hover: #1c2330;
    --bg-card-inner: #0f131a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-main: #6366f1;
}

body.theme-godot-slate {
    --bg-canvas: #0d121b;
    --bg-card: #192231;
    --bg-card-hover: #222d40;
    --bg-card-inner: #131a26;
    --border-subtle: #293850;
    --border-hover: #3b4e6d;
    --accent-blue: #478cbf;
    --accent-indigo: #478cbf;
    --accent-main: #478cbf;
}

body.theme-blender-ember {
    --bg-canvas: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #2a2a2a;
    --bg-card-inner: #171717;
    --border-subtle: #2d2d2d;
    --border-hover: #404040;
    --accent-blue: #ea7600;
    --accent-indigo: #f59e0b;
    --accent-main: #ea7600;
}

body.theme-cyber-neon {
    --bg-canvas: #07070a;
    --bg-card: #101018;
    --bg-card-hover: #181824;
    --bg-card-inner: #0b0b12;
    --border-subtle: rgba(168, 85, 247, 0.25);
    --border-hover: rgba(168, 85, 247, 0.45);
    --accent-blue: #06b6d4;
    --accent-indigo: #a855f7;
    --accent-main: #a855f7;
}

body.theme-oled-pure {
    --bg-canvas: #000000;
    --bg-card: #0c0c0e;
    --bg-card-hover: #16161a;
    --bg-card-inner: #050506;
    --border-subtle: #1e1e24;
    --border-hover: #32323a;
    --accent-blue: #10b981;
    --accent-indigo: #10b981;
    --accent-main: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none !important; /* Ocultar scrollbar en Firefox */
    -ms-overflow-style: none !important; /* Ocultar scrollbar en IE y Edge clásico */
}

/* ── OCULTAR BARRAS DE DESPLAZAMIENTO EN MOTORES WEBKIT / CHROMIUM ── */
/* Mantiene 100% la funcionalidad de desplazamiento (rueda del mouse, trackpad, gestos táctiles, teclas) */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
    background: transparent !important;
    border: none !important;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ── BARRA SUPERIOR (HEADER) ── */
.studio-header {
    background: rgba(15, 20, 29, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.studio-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    height: 42px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-left {
    order: unset;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-tools-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÓN HAMBURGUESA MÓVIL (3 BARRITAS) */
.mobile-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mobile-hamburger-btn:hover {
    background: rgba(88, 166, 255, 0.12);
    border-color: var(--accent-blue);
}

.mobile-hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-hamburger-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-hamburger-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* TELÓN DE FONDO (BACKDROP) DRAWER MÓVIL */
.sidebar-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-mobile-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* CABECERA DENTRO DEL DRAWER MÓVIL */
.sidebar-mobile-drawer-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin: -16px -16px 16px -16px;
    background: var(--bg-card-inner);
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-mobile-drawer-header .drawer-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    font-family: var(--font-code, inherit);
}

.sidebar-mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.sidebar-mobile-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.studio-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.logo-symbol-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-logo:hover .logo-symbol-img {
    transform: scale(1.08) rotate(-3deg);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-code);
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-text span {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

/* SELECTOR RÁPIDO TOP 5 TEMAS (En vez del botón día/noche simple) */
.theme-quick-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12px;
}
.theme-quick-selector label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
}
.theme-quick-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
}
.theme-quick-selector select option {
    background: var(--bg-card);
    color: #fff;
}

/* NAVEGACIÓN CENTRAL DE ICONOS/PESTAÑAS (FILA 2 EN ESCRITORIO) */
.header-nav {
    order: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 16px;
    height: 38px;
    background: var(--bg-card-inner);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    overflow-x: auto;
    flex-wrap: nowrap;
    box-sizing: border-box;
}
.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-icon-btn, .nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 13px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-icon-btn:hover, .nav-btn:hover {
    color: #fff;
    background: var(--bg-card-hover);
}
.nav-icon-btn.active, .nav-btn.active {
    color: #fff;
    background: var(--accent-indigo);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.header-right {
    order: unset;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ── LAYOUT UNIFICADO CON SCROLL INDEPENDIENTE (SIDEBAR FIJO) ── */
.studio-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    max-width: 1440px;
    width: 100%;
    margin: 20px auto;
    padding: 0 24px;
    align-items: start;
}

/* COLUMNA LATERAL UNIFICADA (PERFIL + PROYECTO + JAMS + RAMEN) */
.col-sidebar-unified {
    display: block;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 24px;
}
.col-sidebar-unified > * {
    margin-bottom: 18px;
    box-sizing: border-box;
}
.col-sidebar-unified > *:last-child {
    margin-bottom: 0;
}
.col-sidebar-unified::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    margin: 0 auto 14px;
}
.avatar-img {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 3px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    overflow: hidden;
    box-sizing: border-box;
}
.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eab308;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--bg-card);
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.profile-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}
.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-size: 15px;
}
.social-icon-btn:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

/* PROYECTO ACTUAL CON BARRA DE PROGRESO */
.current-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 18px;
}
.current-project-card h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.project-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-size: 13.5px;
}
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--bg-card-inner);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
    border-radius: var(--radius-full);
}
.project-subtext {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

/* COLUMNA 2: ÁREA CENTRAL (RADAR FEED / OTRAS PESTAÑAS) */
.col-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ENCABEZADO FIJO DE RADAR (DIAL + CAJA CREAR) */
.radar-header-sticky {
    position: sticky;
    top: 58px;
    z-index: 100;
    background: var(--bg-canvas);
    padding-top: 10px;
    padding-bottom: 12px;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CONTROLES DEL RADAR (DIAL DE AFINIDAD) */
.radar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 14px 20px;
    gap: 16px;
}
.radar-dial {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    flex: 1;
}
.radar-dial input[type="range"] {
    flex: 1;
    accent-color: var(--accent-indigo);
    cursor: pointer;
}

/* CAJA DE CREACIÓN RÁPIDA (FAKE INPUT) */
.create-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.create-post-card:hover {
    border-color: var(--border-hover);
}
.create-input-fake {
    flex: 1;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    color: var(--text-muted);
    font-size: 13px;
    transition: border-color 0.15s;
}
.create-input-fake:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

/* TARJETA DE NOVEDAD / POSTEO */
.studio-post {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: border-color 0.15s;
}
.studio-post:hover {
    border-color: var(--border-hover);
}

.post-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.post-author-name {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}
.post-author-role {
    font-size: 11px;
    color: var(--text-muted);
}

.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}
.post-body {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.6;
}

/* MEDIA EMBED (ESTILO DARK STUDIO CON PREVIEWS AL COSTADO) */
.post-media-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.post-media-main {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.btn-play-overlay {
    position: absolute;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.15s ease;
}
.btn-play-overlay:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    transform: scale(1.03);
}
.post-media-badge-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-code);
}

.post-media-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.thumb-item {
    flex: 1;
    background: linear-gradient(135deg, #1e293b, #090d16);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-subtle);
}

/* BLOQUE DE CÓDIGO EMBEBIDO (SYNTAX HIGHLIGHTING DARK) */
.code-embed-box {
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--font-code);
}
.code-embed-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}
.code-embed-content {
    padding: 14px;
    font-size: 12.5px;
    color: #38bdf8;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* ACCIONES DE INTERACCIÓN DEL POST */
.post-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}
.post-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.post-action-btn, .btn-action {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.post-action-btn:hover, .btn-action:hover {
    color: #fff;
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}
.post-action-btn.active-star, .btn-action.active-star {
    color: var(--accent-star);
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}
.post-action-btn.active-like, .btn-action.active-like {
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

/* COLUMNA 3: ESTUDIOS RECOMENDADOS & RAMEN (DERECHA) */
.col-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 20px;
}
.sidebar-panel h3 {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.studio-item-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.studio-item-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.studio-brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.studio-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    color: #fff;
    border: 1px solid var(--border-subtle);
}
.studio-name {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}
.studio-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* CARD DEL RAMEN (HUMOR ÁCIDO) */
.ramen-sidebar-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-card);
    padding: 18px;
    text-align: center;
}
.ramen-sidebar-card h4 {
    color: #fbbf24;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ramen-sidebar-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* ── PESTAÑAS (TAB PANES) & PANELES GENERALES ── */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 16px;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}
.panel-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}

/* ── FORMULARIOS Y CONTROLES ── */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s ease;
    outline: none;
}
.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* ── INPUTS Y SELECTS ESTANDARIZADOS (.form-input) ── */
.form-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: 38px;
    display: block;
}
.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.9);
}
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2394a3b8%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
    cursor: pointer;
}
select.form-input option {
    background: #0f172a;
    color: #fff;
    padding: 8px 10px;
    font-size: 12.5px;
}

/* ── BADGES & CHIPS ── */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-code);
}
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.chip:hover, .chip.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-indigo);
    color: #fff;
}
.chip.star.active {
    background: rgba(251, 191, 36, 0.18) !important;
    border-color: var(--accent-star) !important;
    color: #fef08a !important;
    font-weight: 600;
}
.chip.skull.active {
    background: rgba(244, 63, 94, 0.18) !important;
    border-color: var(--accent-skull) !important;
    color: #fca5a5 !important;
    font-weight: 600;
}
.chip.custom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chip.custom-tag .chip-remove {
    cursor: pointer;
    opacity: 0.7;
    margin-left: 2px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}
.chip.custom-tag .chip-remove:hover {
    opacity: 1;
    color: #ff4d4d;
}

/* ── DIRECTORIO DE TALENTOS & BUSCADOR ELEVADO ── */
.talent-search-bar-wrap {
    margin-bottom: 16px;
}
.talent-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 5px 6px 5px 16px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.talent-search-bar:focus-within {
    border-color: var(--accent-blue);
    background: rgba(18, 24, 38, 0.98);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 6px 24px rgba(0, 0, 0, 0.45);
}
.search-bar-icon {
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
}
.talent-search-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 13.5px;
    font-family: inherit;
    outline: none !important;
    padding: 8px 0;
    box-shadow: none !important;
}
.talent-search-input::placeholder {
    color: var(--text-dim);
    font-size: 12.5px;
}
.search-clear-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.search-action-btn {
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
    height: 36px;
    cursor: pointer;
}

/* ── GRILLAS PARAMÉTRICAS DE TALENTO (RESPONSIVAS Y SIN SOLAPAMIENTO) ── */
.talent-conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.talent-conditions-grid > .form-group {
    min-width: 0;
    width: 100%;
}

.talent-plazo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: end;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.talent-plazo-grid > .form-group {
    min-width: 0;
    width: 100%;
}

.talent-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.talent-advanced-grid > .form-group {
    min-width: 0;
    width: 100%;
}

/* BREAKPOINTS RESPONSIVOS DE TALENTO */
@media (max-width: 960px) {
    .talent-conditions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .talent-search-bar {
        border-radius: 16px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    .talent-search-input {
        width: 100%;
        order: 1;
    }
    .search-action-btn {
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 6px;
    }
    .talent-conditions-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .talent-plazo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .talent-advanced-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── DIRECTORIO DE TALENTOS (GRID) ── */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.talent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.15s;
}
.talent-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.talent-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.talent-pill-btn {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.talent-pill-btn:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.05);
}
.talent-pill-btn.active {
    color: var(--accent-star);
    border-color: var(--accent-star);
    background: rgba(234, 179, 8, 0.1);
}
.talent-hero-box {
    grid-column: 1 / -1;
    background: var(--bg-card-inner);
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
}
.matched-skill-box {
    transition: all 0.2s ease;
}
.matched-skill-box:hover {
    border-color: rgba(234, 179, 8, 0.6) !important;
    background: rgba(234, 179, 8, 0.12) !important;
}

/* ── LANDING GATE (NO AUTENTICADO) ── */
.landing-gate-container,
.landing-gate {
    max-width: 1240px;
    margin: 36px auto;
    padding: 0 32px;
    display: block;
}

.gate-header-title {
    margin-bottom: 24px;
}

.gate-header-title h1 {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.gate-header-title h1 span {
    color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: start;
}

.landing-col-manifesto {
    display: flex;
    flex-direction: column;
}

.landing-col-auth {
    width: 100%;
}

.gate-manifesto-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px 0;
}

.manifesto-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}
.m-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.m-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}
.m-card-title {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    margin-bottom: 6px;
}
.m-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.gate-features-pills {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.gate-auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.45);
}
.auth-tabs {
    display: flex;
    background: var(--bg-card-inner);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.15s;
}
.auth-tab-btn.active {
    background: var(--accent-indigo);
    color: #fff;
}

/* ── BOTONES GLOBALES ── */
.btn {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}
.btn-primary {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #fff;
}
.btn-primary:hover {
    background: #4f46e5;
}
.btn-ramen {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border: 1px solid #c2410c;
    color: #fff;
    font-weight: 700;
}
.btn-ramen:hover {
    background: #c2410c;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}
.btn-accent {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #000;
    font-weight: 700;
}
.btn-accent:hover {
    background: #0284c7;
    color: #fff;
}
.btn-danger {
    border-color: var(--accent-skull);
    color: var(--accent-skull);
    background: transparent;
}
.btn-danger:hover {
    background: rgba(244, 63, 94, 0.15);
}

/* ── MODALES ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    max-width: 620px;
    width: 100%;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.close-modal:hover { color: #fff; }

/* NOTIFICACIÓN TOAST */
#workbench-notif {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    font-weight: 600;
}

/* ── SUB-PESTAÑAS DE MI TALLER (MODULAR) ── */
.taller-nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.taller-nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.taller-nav-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}
.taller-nav-btn.active {
    background: var(--accent-blue-subtle);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.taller-subpane {
    display: none;
    animation: fadeIn 0.2s ease;
}
.taller-subpane.active {
    display: block;
}

/* ── CONTENEDORES DESPLEGABLES / ACORDEÓN DE UTILIDADES ─────────── */
.taller-collapse {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.taller-collapse[open] {
    border-color: rgba(56, 189, 248, 0.35);
}
.taller-collapse summary {
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid transparent;
    list-style: none;
    transition: background 0.15s ease;
}
.taller-collapse summary::-webkit-details-marker {
    display: none;
}
.taller-collapse summary:hover {
    background: rgba(255, 255, 255, 0.05);
}
.taller-collapse[open] summary {
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}
.taller-collapse summary .summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.taller-collapse summary .summary-indicator {
    font-size: 11px;
    color: var(--text-dim);
    transition: transform 0.2s ease;
}
.taller-collapse[open] summary .summary-indicator {
    transform: rotate(180deg);
}
.taller-collapse-body {
    padding: 16px;
}

/* ── MATRIZ DE CALENDARIO UNIFICADA (TABLA DINÁMICA DE DISPONIBILIDAD) ── */
.agenda-matrix-wrapper {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow-x: auto;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.agenda-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: center;
}
.agenda-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0d1117;
    border-bottom: 2px solid var(--border-subtle);
    padding: 8px 6px;
    color: var(--text-muted);
}
.agenda-th-title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.agenda-th-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.agenda-mini-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.agenda-mini-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}
.agenda-matrix-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.agenda-matrix-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.agenda-td-time {
    font-weight: 700;
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-code);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    white-space: nowrap;
    border-right: 1px solid var(--border-subtle);
    position: sticky;
    left: 0;
    z-index: 2;
}
.agenda-td-slot {
    padding: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}
.agenda-matrix-cell {
    width: 100%;
    min-height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
}
.agenda-matrix-cell:hover {
    border-color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.1);
    color: #fff;
}
.agenda-matrix-cell.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 800;
    box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.15);
}
.agenda-matrix-cell .cell-status {
    pointer-events: none;
}
.agenda-toolbar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.agenda-slot-btn {
    /* Compatibilidad para queries que buscan .agenda-slot-btn */
}
.portfolio-file-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.15s ease;
}
.portfolio-file-card:hover {
    border-color: var(--accent-blue);
}

/* ── SELECTOR DE AVATARES PREESTABLECIDOS ── */
.avatar-preset-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 12px 0 18px 0;
}
.avatar-preset-item {
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 6px 4px;
}
.avatar-preset-item img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}
.avatar-preset-item span {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: center;
    line-height: 1.1;
}
.avatar-preset-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}
.avatar-preset-item.selected {
    border-color: var(--accent-blue);
    background: var(--accent-blue-subtle);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}
.avatar-preset-item.selected span {
    color: var(--accent-blue);
}

/* ── BOTÓN '+' PARA DESIGNAR NUEVO AVATAR ── */
.btn-avatar-plus {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
    padding: 0;
}
.btn-avatar-plus:hover {
    background: var(--accent-indigo);
    transform: scale(1.12);
}

/* ── INFINITE SCROLL SENTINEL & LOADER ── */
.feed-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}
.feed-infinite-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spinLoader 0.7s linear infinite;
}
@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* ── MULTIRUBRO BADGES & CHIPS ── */
.post-multirubro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-blue);
}
.badge-jam-collab {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

/* ── CENTRO DE NOTIFICACIONES & BADGE PROFILE-SOCIALS ──────────── */
.btn-notif-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-badge-pill {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    text-align: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    pointer-events: none;
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.modal-notificaciones-box {
    max-width: 620px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.badge-notif-header {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-mono);
}

.modal-notificaciones-body {
    overflow-y: auto;
    max-height: calc(85vh - 75px);
    padding-right: 6px;
    margin-top: 6px;
}

.modal-notificaciones-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.notificaciones-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    position: relative;
}

.notif-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Tarjeta No Leída */
.notif-card.no-leida {
    background: rgba(30, 41, 59, 0.85);
    border-left: 4px solid var(--accent-blue);
}

.notif-card.no-leida .notif-title {
    font-weight: 800;
    color: #ffffff;
}

.notif-card.no-leida .notif-summary {
    color: #e2e8f0;
    font-weight: 600;
}

/* Tarjeta Leída */
.notif-card.leida {
    opacity: 0.75;
    border-left: 4px solid transparent;
}

.notif-card.leida .notif-title {
    font-weight: 500;
    color: var(--text-dim);
}

.notif-card.leida .notif-summary {
    color: var(--text-dim);
    font-weight: 400;
}

.notif-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.notif-content-col {
    flex: 1;
    min-width: 0;
}

.notif-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.notif-title {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.notif-summary {
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.notif-time {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    font-family: var(--font-mono);
}

.notif-action-indicator {
    margin-top: 6px;
    font-size: 11px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.notif-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.notif-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-card-inner);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.notif-checkbox:hover {
    border-color: var(--accent-code);
}

.notif-checkbox:checked {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent-code);
}

.notif-checkbox:checked::after {
    content: '✓';
    font-size: 13px;
    color: var(--accent-code);
    font-weight: 800;
    line-height: 1;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    flex-shrink: 0;
}

.notif-loader-block, .notif-fin-block, .notif-vacio-block {
    text-align: center;
    padding: 14px;
    color: var(--text-dim);
    font-size: 11px;
}

/* ── CONCURSO DE THEME SHADERS ────────────────────────────────── */
.tema-concurso-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.2s ease;
}

.tema-concurso-card:hover {
    border-color: var(--accent-blue);
}

.tema-concurso-card.propio {
    border-left: 3px solid var(--accent-code);
}

/* ── MODAL EDITOR DE TEMAS SHADERS (PRO LAYOUT) ───────────────── */
.modal-editor-tema-box {
    max-width: 920px;
    width: 95%;
    max-height: 90vh;
}

.editor-tema-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 16px;
    align-items: stretch;
}

.editor-code-col {
    display: flex;
    flex-direction: column;
}

.editor-css-textarea {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    height: 360px;
    resize: vertical;
    white-space: pre;
    tab-size: 4;
}

.editor-helper-col {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.editor-snippets-scroll {
    overflow-y: auto;
    max-height: 330px;
    padding-right: 4px;
}

.snippet-category-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.snippet-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.btn-snippet-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}

.btn-snippet-item:hover {
    border-color: var(--accent-code);
    background: var(--bg-card-hover);
}

.btn-snippet-item code {
    font-size: 11.5px;
    color: var(--accent-code);
    font-weight: 700;
}

.btn-snippet-item span {
    font-size: 10.5px;
    color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .studio-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 20px;
        padding: 0 16px;
    }
    .avatar-preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .studio-layout {
        grid-template-columns: 1fr;
        padding: 0 12px;
        gap: 16px;
    }
    
    /* Mostrar botón hamburguesa en header si está logueado */
    body.user-authenticated .mobile-hamburger-btn {
        display: inline-flex;
    }

    .studio-header {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px;
        gap: 8px;
    }

    .studio-header-top-row {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .header-left {
        order: unset;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    /* En móvil y tablet reducida, las herramientas rápidas (tema, idioma, conversor) van exclusivamente en el Drawer lateral para evitar colisión fatal con logo y dock */
    .header-left .header-tools-group,
    .header-tools-group {
        display: none !important;
    }

    .sidebar-quick-tools-mobile {
        display: block !important;
        background: var(--bg-card-inner);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-card);
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .header-right {
        order: unset;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        min-width: 0;
    }
    .header-right span {
        white-space: nowrap;
        font-size: 12px;
    }

    .studio-logo {
        gap: 6px;
    }

    .studio-logo .logo-symbol {
        width: 28px;
        height: 28px;
    }

    .studio-logo .logo-symbol-img {
        width: 28px;
        height: 28px;
    }

    .studio-logo .logo-text {
        font-size: 1rem;
    }

    /* Columna lateral unificada convertida en Drawer lateral */
    .col-sidebar-unified {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 86vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 1550;
        background: var(--bg-card);
        padding: 16px;
        box-shadow: 6px 0 28px rgba(0, 0, 0, 0.75);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid var(--border-subtle);
    }

    .col-sidebar-unified.mobile-open {
        transform: translateX(0);
    }

    .sidebar-mobile-drawer-header {
        display: flex;
    }

    /* Píldoras de navegación táctiles y adaptadas para móviles (2 filas compactas para que NADA quede fuera de pantalla) */
    .header-nav {
        order: unset;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px 6px !important;
        padding: 6px 8px !important;
        height: auto !important;
        background: var(--bg-card-inner);
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
        box-sizing: border-box;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav .nav-icon-btn, 
    .header-nav .nav-btn {
        flex: 1 1 calc(25% - 6px) !important;
        min-width: 76px;
        max-width: 130px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
        padding: 5px 6px !important;
        font-size: 11px !important;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.03);
    }

    .radar-header-sticky {
        position: static;
        padding-top: 0;
        margin-top: 0;
    }

    .agenda-matrix-wrapper {
        max-height: 420px;
    }

    /* LANDING GATE MÓVIL: Título arriba, Login justo debajo, Manifiesto después */
    .landing-gate-container,
    .landing-gate {
        margin: 20px auto;
        padding: 0 16px;
    }

    .gate-header-title {
        margin-bottom: 16px;
    }

    .gate-header-title h1 {
        font-size: 1.85rem;
        margin-bottom: 4px;
        line-height: 1.25;
    }

    .landing-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* En celular o pantalla angosta: Login (derecha) se posiciona ARRIBA del Manifiesto */
    .landing-col-auth {
        order: 1;
    }

    .landing-col-manifesto {
        order: 2;
    }

    .gate-auth-card {
        padding: 22px 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    }

    .gate-manifesto-desc {
        font-size: 14px;
        margin: 0 0 12px 0;
    }

    .manifesto-cards {
        margin-bottom: 12px;
    }
}

@media (max-width: 960px) {
    .landing-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .landing-col-auth {
        order: 1;
    }
    .landing-col-manifesto {
        order: 2;
    }
}

@media (max-width: 640px) {
    .landing-gate-container,
    .landing-gate {
        padding: 0 12px;
        margin: 16px auto;
    }

    .gate-header-title h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .manifesto-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gate-manifesto-desc {
        font-size: 13.5px;
        margin-bottom: 14px;
    }

    .gate-auth-card {
        padding: 18px 14px;
    }

    .auth-tab-btn {
        padding: 7px;
        font-size: 12px;
    }

    .theme-quick-selector label,
    .lang-quick-selector label {
        display: none;
    }
    .theme-quick-selector select {
        max-width: 95px;
        font-size: 10.5px;
        padding: 2px 4px;
        height: 26px;
    }
    .lang-quick-selector select {
        font-size: 10.5px;
        padding: 2px 4px;
        height: 26px;
    }
    .btn-conversor-global {
        padding: 2px 6px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 480px) {
    .gate-header-title h1 {
        font-size: 1.35rem;
    }

    #gate-reg-otp {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .studio-logo .logo-text span {
        display: none;
    }
    .btn-conversor-global span:last-child {
        display: none;
    }
    .header-right span:first-child {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-right .tag-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .header-right .btn-danger {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Oculto en pantallas grandes de escritorio (vive en navbar) */
.sidebar-quick-tools-mobile {
    display: none;
}

/* Grillas adaptativas para móviles */
.mensajes-chat-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

.mod-reportes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .mensajes-chat-grid,
    .mod-reportes-grid {
        grid-template-columns: 1fr !important;
    }

    .mod-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .mod-filter-inputs {
        flex-direction: column !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .mod-filter-bar input,
    .mod-filter-bar select,
    .mod-filter-bar button {
        width: 100% !important;
    }

    /* Grillas internas de formularios en modales se apilan verticalmente */
    .modal-box div[style*="grid-template-columns: 1fr 1fr"],
    .modal-box div[style*="grid-template-columns: 1fr 140px"],
    .modal-box div[style*="grid-template-columns: 1fr 220px"] {
        grid-template-columns: 1fr !important;
    }

    .modal-overlay {
        padding: 10px !important;
    }

    .modal-box {
        padding: 16px !important;
        border-radius: 12px !important;
        max-width: 96vw !important;
        width: 96vw !important;
    }
}

/* ── SUBPESTAÑAS DE NAVEGACIÓN INTERNA ────────────────────────── */
.subtabs-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}
.subtabs-bar::-webkit-scrollbar {
    display: none;
}

.subtabs-bar .subtab-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.subtabs-bar .subtab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent-blue);
}

.subtabs-bar .subtab-btn.active {
    background: rgba(88, 166, 255, 0.12);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 700;
}

/* ── AGENDA DE CONTACTOS & CRM ────────────────────────────────── */
.agenda-contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
}

.contacto-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
}

.contacto-card:hover {
    border-color: var(--accent-blue);
}

.contacto-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacto-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    background: #000;
}

.contacto-info {
    flex: 1;
    min-width: 0;
}

.contacto-alias {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contacto-rol {
    font-size: 11px;
    color: var(--text-dim);
}

.contacto-grupos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.contacto-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.contacto-actions .btn {
    padding: 3px 8px;
    font-size: 11px;
    flex: 1;
    text-align: center;
}

/* ── WEBINARS & MASTERCLASSES ─────────────────────────────────── */
.webinar-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s;
}

.webinar-card:hover {
    border-color: var(--accent-blue);
}

.webinar-card-estado {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.webinar-card-estado.en_vivo {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid #f85149;
    animation: pulse 1.5s infinite;
}

.webinar-card-estado.programado {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

/* ── CRONOJAM MULTIFUENTE ─────────────────────────────────────── */
.jams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.jam-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.jam-card:hover {
    border-color: var(--accent-code);
    transform: translateY(-2px);
}

.jam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.jam-fuentes-bar {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.jam-badge-source {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
}

/* ── REPRODUCTOR WEBGL RESPONSIVE & FLUIDO ────────────────────── */
.webgl-canvas-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 68vh;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    position: relative;
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
}

.webgl-game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.webgl-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
}

.webgl-launch-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 24px 32px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.btn-launch-game {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
}

/* ── SALA WEBRTC NATIVA P2P ───────────────────────────────────── */
.webrtc-native-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 420px;
    background: #000;
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
}

.webrtc-video-card {
    position: relative;
    background: #0d1117;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-subtle);
}

.webrtc-video-elem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webrtc-video-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.webrtc-controls-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    background: var(--bg-card-inner);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

/* ── CENTRO DE MANDO, GOBERNANZA & AUDITORÍA ──────────────────── */
.mod-dashboard-header {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mod-nav-subtabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    padding-bottom: 0;
    flex-wrap: wrap;
}
.mod-nav-subtabs::-webkit-scrollbar {
    display: none;
}

.mod-subtab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    color: var(--text-dim);
    padding: 6px 11px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.mod-subtab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.mod-subtab-btn.active {
    color: var(--accent-star);
    border-color: var(--border-subtle);
    border-bottom: 2px solid var(--accent-star);
    background: var(--bg-card-inner);
}

.mod-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.mod-filter-inputs {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    min-width: 0;
}

.mod-table-container {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
    scrollbar-width: thin !important;
}

.mod-table-container::-webkit-scrollbar {
    height: 5px !important;
    display: block !important;
}
.mod-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25) !important;
}
.mod-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 4px !important;
}

.mod-data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.mod-data-table th {
    background: rgba(0, 0, 0, 0.35);
    padding: 9px 10px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.mod-data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.mod-data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mod-data-table tr:last-child td {
    border-bottom: none;
}

.mod-role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mod-role-badge.admin {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.4);
}
.mod-role-badge.supervisor {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.mod-role-badge.desarrollador {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}
.mod-role-badge.miembro {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.mod-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.mod-status-badge.activo { color: var(--accent-code); background: rgba(74, 222, 128, 0.1); }
.mod-status-badge.suspendido { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.mod-status-badge.baneado { color: var(--accent-skull); background: rgba(239, 68, 68, 0.1); }

/* ── CONVERSOR DE MONEDA FLOTANTE Y ARRASTRABLE ── */
.conversor-widget-panel {
    position: fixed;
    top: 70px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: rgba(18, 24, 38, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.12);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.conversor-widget-panel.is-dragging {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.25);
    opacity: 0.95;
}

.conversor-drag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.4));
    border-bottom: 1px solid var(--border-subtle);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.conversor-drag-header:active {
    cursor: grabbing;
}

.conversor-ctrl-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.conversor-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.conversor-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.conversor-tabs-modo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
}

.conv-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.conv-tab-btn.active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.conv-preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.conv-preset-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.3);
}

.conversor-results-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conv-card-rate {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease;
}

.conv-card-rate.highlight {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.4);
}

.conv-card-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-card-rate-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.conv-card-rate-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono, monospace);
}

.conv-card-rate-sub {
    font-size: 10px;
    color: var(--text-dim);
}

/* ── BARRA INFERIOR / PIE DE SPONSORS & INSTITUCIONAL (RETRACTIL / FIJADO) ── */
body {
    padding-bottom: 110px;
    transition: padding-bottom 0.25s ease;
}
body.sponsors-footer-collapsed {
    padding-bottom: 45px;
}
body.sponsors-footer-compact {
    padding-bottom: 75px;
}

.sponsors-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 24px 6px 24px;
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.65);
    width: 100%;
    box-sizing: border-box;
    transition: padding 0.2s ease, box-shadow 0.2s ease;
}

/* PANEL COLAPSABLE DE SPONSORS (SE CONTRAE HACIA ARRIBA/ABAJO) */
.sponsors-collapsible-panel {
    max-height: 160px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-bottom 0.2s ease;
    margin-bottom: 6px;
}

/* CUANDO ESTÁ COLAPSADO: EL PANEL DE SPONSORS SE OCULTA PERO EL FOOTER LEGAL QUEDA VISIBLE */
.sponsors-footer-bar.is-collapsed .sponsors-collapsible-panel {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* PESTAÑA / BOTÓN PARA ABRIR O CERRAR EL PANEL DE SPONSORS */
.sponsors-collapse-toggle {
    position: absolute;
    top: -26px;
    right: 24px;
    height: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
    z-index: 1051;
    transition: all 0.2s ease;
}
.sponsors-collapse-toggle:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: var(--bg-card-inner);
}

.sponsors-footer-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.sponsors-header-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sponsors-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.sponsors-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

/* CONTROLES COMPACTOS DEL CARRUSEL (CENTRADO EN LA FRANJA SUPERIOR) */
.sponsors-carousel-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    padding: 2px 5px;
    margin: 0 auto;
}
.btn-carousel-ctrl {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 10px;
    width: 22px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}
.btn-carousel-ctrl:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.btn-carousel-ctrl.active {
    color: var(--accent-star);
    background: rgba(234, 179, 8, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 8px #3fb950;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.sponsors-subtitle {
    color: var(--text-dim);
    font-size: 11px;
}

.btn-sumar-sponsor {
    display: none !important;
    font-size: 11px;
    padding: 3px 10px;
    border-color: rgba(88, 166, 255, 0.4);
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.06);
    cursor: pointer;
    border-radius: 5px;
}
body.user-authenticated .btn-sumar-sponsor {
    display: inline-flex !important;
}
.btn-sumar-sponsor:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: var(--accent-blue);
    color: #fff;
}

.sponsors-cards-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 2px 2px 4px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.sponsors-cards-strip::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

/* TARJETA HORIZONTAL COMPACTA DE SPONSOR (LOGO IZQUIERDA + TEXTO/BOTONES DERECHA) */
.sponsor-micro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    width: 245px;
    min-width: 235px;
    max-width: 265px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 48px;
}
.sponsor-micro-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.12);
    transform: translateY(-1px);
}

.sponsor-logo-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-inner);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 0;
}
.sponsor-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter 0.2s ease;
}
.sponsor-micro-card:hover .sponsor-logo-img {
    filter: brightness(1.1);
}

.sponsor-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.sponsor-card-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-bottom: 1px;
}
.sponsor-card-category {
    font-size: 9px;
    color: var(--text-dim);
    text-align: left;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.sponsor-buttons-row {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    border-top: none;
    padding-top: 0;
}

.spn-btn {
    padding: 1px 5px;
    font-size: 10px;
    border-radius: 3px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: all 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
}
.spn-btn:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.12);
}
.spn-btn.wa:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
}

/* ENLACES INSTITUCIONALES & LEGALES DEBAJO DE LAS TARJETAS */
.sponsors-footer-legal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6px;
    padding-top: 5px;
    font-size: 11px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 8px;
}
.footer-legal-left {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.footer-legal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.15s ease;
}
.footer-legal-links a:hover {
    color: var(--accent-blue);
}

@media (max-width: 640px) {
    body {
        padding-bottom: 165px;
    }
    body.sponsors-footer-collapsed {
        padding-bottom: 30px;
    }
    .sponsors-footer-bar {
        padding: 8px 12px 6px 12px;
    }
    .sponsors-footer-bar.is-collapsed {
        transform: none;
    }
    .sponsors-collapse-toggle {
        top: -24px;
        right: 14px;
        height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }
    .sponsors-footer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .sponsors-subtitle {
        display: none;
    }
    .sponsor-micro-card {
        width: 145px;
        min-width: 140px;
        padding: 6px 8px;
    }
    .sponsor-logo-wrap {
        height: 30px;
    }
    .sponsor-logo-img {
        max-height: 28px;
    }
    .sponsors-footer-legal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* TRADUCCIÓN DINÁMICA DE POSTS Y CHAT (ESTILO MMO / DEVLOG) */
.post-traduccion-box {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(88, 166, 255, 0.06);
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 6px;
    animation: fadeInTrad 0.2s ease-in-out;
}
.trad-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(88, 166, 255, 0.15);
}
.trad-badge-bar .trad-cache-badge {
    font-size: 10px;
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
}
.trad-content-text {
    font-size: 13px;
    line-height: 1.5;
    color: #e6edf3;
    white-space: pre-line;
}
.btn-traducir-inline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.btn-traducir-inline:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.1);
}
.msg-traduccion-box {
    margin-top: 5px;
    padding: 6px 10px;
    background: rgba(88, 166, 255, 0.05);
    border-left: 2px solid var(--accent-blue);
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #c9d1d9;
    animation: fadeInTrad 0.2s ease-in-out;
}
@keyframes fadeInTrad {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}



