@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('s/roboto/v30/KFOlCnqEu92Fr1MmSU5vAw.ttf') format('truetype');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.5);
    --glass-bg: rgba(10, 10, 18, 0.88);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    background: #000000;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    color: var(--text-main);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -50;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .60) 100%);
}

.videoInsert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
    pointer-events: none;
}

.lang-text-wrapper {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

#langText {
    white-space: nowrap;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px var(--accent-glow);
}

#noVidPopup {
    color: #ffffff;
    text-align: center;
    padding-top: 10vh;
    font-size: 1.2rem;
}

/* ====== Redes sociales: marquesina flotante original ====== */
.social-marquee {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
    animation: adir-bob 22s ease-in-out infinite alternate;
}

@keyframes adir-bob {
    from { top: 74vh; }
    to { top: 8vh; }
}

.social-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    padding: .4rem 0;
    will-change: transform;
    animation: adir-scroll 28s linear infinite;
    pointer-events: auto;
}

@keyframes adir-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.social-marquee:hover .social-track {
    animation-play-state: paused;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: nowrap;
    user-select: none;
}

.social-pill:hover {
    transform: translateY(-3px) scale(1.05);
}

.social-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.discord .social-badge { background: #5865F2; box-shadow: 0 0 14px rgba(88, 101, 242, .67); }
.github .social-badge  { background: #333; box-shadow: 0 0 14px rgba(255, 255, 255, .33); }
.youtube .social-badge { background: #ff0000; box-shadow: 0 0 14px rgba(255, 0, 0, .67); }

.discord:hover { border-color: #5865F2; box-shadow: 0 0 18px rgba(88, 101, 242, .53); }
.github:hover  { border-color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .33); }
.youtube:hover { border-color: #ff0000; box-shadow: 0 0 18px rgba(255, 0, 0, .53); }

/* ====== Botón de sonido ====== */
.sound-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 60;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.sound-toggle:hover { transform: scale(1.08); background: rgba(0, 0, 0, .65); }
.sound-toggle.is-on { border-color: #4ade80; box-shadow: 0 0 16px rgba(74, 222, 128, .53); }
.sound-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================================================
   Panel Trigger Button (Top Right)
   ========================================================================== */
.panel-trigger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000 !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(168, 85, 247, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-trigger-btn:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.panel-trigger-btn i {
    color: var(--accent);
}

/* ==========================================================================
   Sliding Glassmorphic Panel Overlay
   ========================================================================== */
.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    z-index: 11000;
    background: var(--glass-bg);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.dashboard-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
}

.panel-title i {
    color: var(--accent);
    font-size: 1.2rem;
}

.panel-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.panel-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.panel-nav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: 12px;
}

.nav-tab {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.nav-tab.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.file-browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.path-indicator i {
    color: var(--accent);
}

.file-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.2rem;
}

.file-dir-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem;
}

.dir-header {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.text-folder { color: #f59e0b; }

.file-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.file-item.selected {
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.file-name {
    flex: 1;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.text-exe { color: #ef4444; }
.text-json { color: #3b82f6; }
.text-sys { color: #10b981; }
.text-py { color: #eab308; }
.text-bat { color: #a855f7; }
.text-txt { color: #9ca3af; }

.file-details-box {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.details-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.btn-copy-file {
    width: 100%;
    padding: 0.45rem;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.clock-card {
    text-align: center;
    padding: 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.clock-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.clock-display {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 0.2rem;
}

.date-display {
    font-size: 0.85rem;
    color: var(--text-main);
}

.schedule-card {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.schedule-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.schedule-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.day { font-weight: 600; color: #fff; }
.time { color: var(--text-muted); font-family: var(--font-mono); }

.status-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.status-badge.online { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge.active { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.status-card {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-online { color: #22c55e; }

.info-card {
    padding: 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.info-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-action {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-highlight {
    background: #5865F2;
    border-color: #5865F2;
}

.btn-highlight:hover {
    background: #4752c4;
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 20000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: rgba(10, 10, 18, 0.95);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-glow);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-container.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.toast-icon {
    color: var(--accent);
}