/* --- FUENTES Y ESTILOS BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Mega Man 10';
    src: url('https://assets.website-files.com/62d585353749ccfb3f8020fd/62d6f53707ac08630dd59cb3_MegaMan10Regular-mJA5.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    cursor: crosshair;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    transition: all 1s ease;
}

.main-container.minimized {
    justify-content: flex-start;
    padding-top: 60px;
    transform: scale(0.4) translateY(-30vh);
}

.title-main {
    font-family: 'Mega Man 10', sans-serif;
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 400;
    letter-spacing: 10px;
    text-align: center;
    line-height: 0.8;
    margin-bottom: 40px;
    opacity: 0;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff40;
}

.subtitle {
    font-family: 'Mega Man 10', sans-serif;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    color: #ff6b6b;
    text-shadow: 0 0 5px #ff6b6b;
}

.social-info {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff40;
}

/* --- EFECTO DE REJILLA (GRID) --- */
.grid {
    position: absolute;
    left: 0%;
    top: auto;
    right: 0%;
    bottom: 0%;
    overflow: hidden;
    width: 100%;
    height: 70vh;
    perspective: 56.25vh;
}

.grid-mask {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, #0a0a0a 25%, transparent), radial-gradient(circle farthest-corner at 50% 0%, transparent 50%, #0a0a0a 90%);
}

.grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 200%;
    background-image: linear-gradient(to right, rgba(0, 255, 255, 0.3) 1px, transparent 0), 
                    linear-gradient(to bottom, rgba(255, 107, 107, 0.2) 1px, transparent 0);
    background-size: 4vh 3vh;
    transform-origin: 100% 0 0;
    animation: play 30s linear infinite;
}

/* --- EFECTOS DE ENERGÍA Y NODOS EN LA REJILLA --- */
.grid-lines::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        /* Circuitos horizontales */
        linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0, 240, 255, 0.4) 30.5%, rgba(0, 240, 255, 0.4) 31%, transparent 31.5%),
        linear-gradient(90deg, transparent 0%, transparent 60%, rgba(255, 107, 107, 0.3) 60.2%, rgba(255, 107, 107, 0.3) 60.8%, transparent 61%),
        /* Circuitos verticales */
        linear-gradient(0deg, transparent 0%, transparent 45%, rgba(0, 240, 255, 0.35) 45.2%, rgba(0, 240, 255, 0.35) 45.8%, transparent 46%),
        linear-gradient(0deg, transparent 0%, transparent 75%, rgba(255, 107, 107, 0.25) 75.1%, rgba(255, 107, 107, 0.25) 75.6%, transparent 76%);
    background-size: 16vh 12vh; /* Múltiplos del tamaño de la rejilla (4vh 3vh) */
    animation: circuitPulse 4s ease-in-out infinite alternate;
}

.grid-lines::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        /* Nodos LED */
        radial-gradient(circle at 25% 25%, rgba(0, 240, 255, 0.7) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 50% 90%, rgba(0, 240, 255, 0.5) 1px, transparent 2px);
    background-size: 16vh 12vh; /* Mismos múltiplos */
    animation: nodeFlicker 3s ease-in-out infinite;
}

@keyframes play {
    0% { transform: rotateX(45deg) translateY(-50%); }
    100% { transform: rotateX(45deg) translateY(0); }
}

@keyframes circuitPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes nodeFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- EFECTO CRT (PANTALLA ANTIGUA) --- */
.crt {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 16, .3);
    opacity: 0;
    z-index: 2;
    animation: flicker 0.15s infinite;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 6px 100%;
}

@keyframes flicker {
    0% { opacity: 0.27861; } 5% { opacity: 0.34769; } 10% { opacity: 0.23604; } 15% { opacity: 0.90626; } 20% { opacity: 0.18128; } 25% { opacity: 0.83891; } 30% { opacity: 0.65583; } 35% { opacity: 0.67807; } 40% { opacity: 0.26559; } 45% { opacity: 0.84693; } 50% { opacity: 0.96019; } 55% { opacity: 0.08594; } 60% { opacity: 0.20313; } 65% { opacity: 0.71988; } 70% { opacity: 0.53455; } 75% { opacity: 0.37288; } 80% { opacity: 0.71428; } 85% { opacity: 0.70419; } 90% { opacity: 0.7003; } 95% { opacity: 0.36108; } 100% { opacity: 0.24387; }
}

/* --- CURSOR PERSONALIZADO --- */
.cursor-dot, .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #00ffff;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px #00ffff;
}
.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

/* --- ESTILO DE BOTÓN CYBERPUNK --- */
.cyber-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1em;
    padding: .8em 1em .8em 1.2em;
    min-height: 60px;
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #29ffff;
    text-transform: none;
    text-decoration: none;
    text-shadow: 0 0 4px rgba(41, 255, 255, 0.5);
    background-color: transparent;
    background-image: url(https://cdn.prod.website-files.com/666af2245cb6e7d54094d64f/66759493fa2a61dc5f6dbc02_Rectangle%202.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border: none;
    cursor: crosshair;
    transition: all 0.2s ease-in-out;
}

/* Estilos específicos para botones del menú lateral */
.sidebar-menu .cyber-button {
    width: 100%;
    min-width: 360px; /* Ancho mínimo fijo */
    max-width: 375px;
    box-sizing: border-box;
    flex-shrink: 0; /* Evita que se compriman */
}

.cyber-button:hover, .cyber-button.active {
    background-image: url(https://cdn.prod.website-files.com/666af2245cb6e7d54094d64f/667594f632a64edec2728169_Rectangle%20138.svg);
}

.cyber-button.enter-btn {
    position: absolute;
    bottom: 80px;
    opacity: 0;
    font-size: 1.5rem;
    padding: 1em 2.5em;
    text-transform: uppercase;
}

/* --- MENÚ LATERAL --- */
.sidebar-menu {
    position: fixed;
    left: clamp(3%, 8vw, 12%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    width: 390px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow: hidden; /* Evita que el contenido se desborde */
}

.menu-scroll-container {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px; /* Reducir padding */
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    width: 100%; 
    box-sizing: border-box;
}

/* --- SUBMENÚ --- */
.menu-item-wrapper {
    display: flex;
    flex-direction: column;
}

.cyber-button.has-submenu {
    justify-content: space-between;
}

.submenu-indicator {
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: transform 0.3s ease;
}

.menu-item-wrapper.open .submenu-indicator {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 2.5em;
    margin-top: 5px;
}

.menu-item-wrapper.open .submenu {
    max-height: 300px; /* Altura fija en píxeles para mejor control */
}

.submenu-item {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #a0f0ff;
    text-decoration: none;
    padding: 0.4em 0.8em;
    cursor: crosshair;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.submenu-item:hover, .submenu-item.active {
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

.sidebar-menu.show {
    opacity: 1;
    visibility: visible;
}

.menu-icon {
    width: 2em;
    height: 2em;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    flex-shrink: 0;
}

.menu-icon.messages { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E"); }
.menu-icon.upgrade { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E"); }
.menu-icon.radio { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-8h-2v-2h2v2zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E"); }
.menu-icon.future { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-rocket'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.3.05-3.18-.65-.87-2.07-1.33-3.18-.05z'/%3E%3Cpath d='m12 15-3-3a9 9 0 0 1 3-12 9 9 0 0 1 12 3l-3 3'/%3E%3Cpath d='m19 6-6 6'/%3E%3Cpath d='m21 3-3.5 3.5'/%3E%3C/svg%3E"); }
.menu-icon.system { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16z'/%3E%3Cpath d='M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 22v-2'/%3E%3Cpath d='m17 7 1.4-1.4'/%3E%3Cpath d='m6.4 18.4 1.4-1.4'/%3E%3Cpath d='M7 17l-1.4 1.4'/%3E%3Cpath d='m18.4 6.4-1.4 1.4'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M22 12h-2'/%3E%3Cpath d='m7 7-1.4-1.4'/%3E%3Cpath d='m18.4 17.6-1.4-1.4'/%3E%3C/svg%3E"); }
.menu-icon.bounties { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.menu-icon.database { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E"); }
.menu-icon.diagnostics { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }
.menu-icon.logs { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E"); }
.menu-icon.network { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14.08 0'/%3E%3Cpath d='M1.42 9a16 16 0 0 1 21.16 0'/%3E%3Cpath d='M8.53 16.11a6 6 0 0 1 6.95 0'/%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'/%3E%3C/svg%3E"); }
.menu-icon.blackmarket { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='1'/%3E%3Ccircle cx='15' cy='12' r='1'/%3E%3Cpath d='M8 20v2h8v-2'/%3E%3Cpath d='M12.5 17.5c-.3.2-.5.5-.6.9'/%3E%3Cpath d='M16 16c-1.5 1.5-3 2-4.5 2s-3-1-4.5-2'/%3E%3Cpath d='M19 10h.5c.9 0 1.5.7 1.5 1.5v3c0 .9-.7 1.5-1.5 1.5H19'/%3E%3Cpath d='M5 10H4.5C3.7 10 3 10.7 3 11.5v3c0 .9.7 1.5 1.5 1.5H5'/%3E%3Cpath d='M16.2 3.8c.5 1.2 1 2.5 1.3 4.2'/%3E%3Cpath d='M7.8 3.8c-.5 1.2-1 2.5-1.3 4.2'/%3E%3Cpath d='M12 2a10 10 0 0 0-8.5 14.5'/%3E%3Cpath d='M12 2a10 10 0 0 1 8.5 14.5'/%3E%3C/svg%3E"); }
.menu-icon.archives { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M8 8h8v8H8z'/%3E%3Cpath d='M12 3v5'/%3E%3Cpath d='M12 16v5'/%3E%3C/svg%3E"); }

/* --- PANEL DE CONTENIDO (NUEVO ESTILO) --- */
.content-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    width: 60%; /* Ancho reducido para mejor centrado */
    height: auto; /* Altura automática */
    max-width: 1200px;
    margin-left: 50px; /* Ajustar para coincidir con menú al 20% */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    
    /* Estilos de la caja de mensaje */
    background-color: rgba(20, 30, 35, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 25px 35px;
    backdrop-filter: blur(5px);
}

.content-panel.show {
    opacity: 1;
    visibility: visible;
}

/* Esquina Superior Izquierda */
.content-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-top: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
}

/* Esquina Inferior Derecha */
.content-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border-bottom: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
}

.panel-inner-wrapper {
    position: relative;
}

/* Esquina Superior Derecha */
.panel-inner-wrapper::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -35px;
    width: 25px;
    height: 25px;
    border-top: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
}

/* Esquina Inferior Izquierda */
.panel-inner-wrapper::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -35px;
    width: 25px;
    height: 25px;
    border-bottom: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
}

.panel-header {
    padding: 0; /* Eliminamos padding para que se alinee con el nuevo diseño */
    border-bottom: none; /* Eliminamos borde inferior */
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.panel-icon {
    width: 24px; /* Icono más pequeño */
    height: 24px;
    background: #00f0ff;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.panel-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.panel-content {
    padding: 0 15px 0 0; /* Espacio para la barra de scroll */
    height: auto;
    max-height: 45vh; /* Altura máxima antes de hacer scroll */
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

/* --- ESTILOS DE SCROLLBAR --- */
.panel-content::-webkit-scrollbar,
.menu-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track,
.menu-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 240, 255, 0.1);
}

.panel-content::-webkit-scrollbar-thumb,
.menu-scroll-container::-webkit-scrollbar-thumb {
    background-color: #00f0ff;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.panel-meta {
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
    text-transform: none;
}

.panel-meta p {
     margin: 0 0 5px 0;
}

.panel-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 20px;
    text-transform: none;
}

/* --- ESTILOS DE ENLACES --- */
.panel-text a,
.panel-meta a,
.content-panel a {
    color: #00ffff !important;
    text-decoration: none !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.panel-text a:hover,
.panel-meta a:hover,
.content-panel a:hover {
    color: #ff6b6b !important;
    border-bottom-color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

/* Estilos adicionales para todos los enlaces del panel */
.content-panel a:visited {
    color: #00ffff !important;
}

.content-panel a:active {
    color: #ff6b6b !important;
}

.panel-signature {
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    font-size: 1.1rem;
    color: #c0c0c0;
    line-height: 1.6;
    text-transform: none;
}

/* --- ESTILOS DE IMÁGENES DEL PANEL --- */
.panel-images {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.panel-images:empty {
    display: none;
}

.panel-images img {
    width: 100%;
    max-width: 220px;
    height: 120px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- ESTILOS DE VIDEOS DEL PANEL --- */
.panel-videos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.panel-videos:empty {
    display: none;
}

/* Añade borde y espaciado a los videos SÓLO si no hay imágenes */
.panel-images:empty + .panel-videos:not(:empty) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

/* Añade espaciado entre imágenes y videos si ambos existen */
.panel-images:not(:empty) + .panel-videos:not(:empty) {
    margin-top: 15px;
}

.panel-video-item {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 120px;
    cursor: pointer;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 240, 255, 0.5);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-video-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    mask-size: 60%;
    mask-repeat: no-repeat;
    mask-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}

.close-panel {
    position: absolute;
    top: -10px; /* Posición ajustada */
    right: -20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-panel:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.1);
}

/* --- VISOR DE IMÁGENES (LIGHTBOX) --- */
.image-viewer {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.close-viewer {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #ff6b6b;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.close-viewer:hover {
    color: #fff;
    transform: scale(1.2);
}

/* --- VISOR DE VIDEO (LIGHTBOX) --- */
.video-viewer {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
}

#viewerVideo {
    width: 100%;
    max-width: 1280px;
    max-height: 90vh;
    outline: none;
    border: 2px solid rgba(0, 240, 255, 0.5);
}

/* --- EFECTO DE FALLO DE SEÑAL --- */
@keyframes screen-roll {
    0% { transform: translateY(0); }
    10% { transform: translateY(-1vh); }
    20% { transform: translateY(0.5vh); }
    30% { transform: translateY(1.5vh); }
    40% { transform: translateY(-1.2vh); }
    50% { transform: translateY(0); }
    60% { transform: translateY(1.8vh); }
    70% { transform: translateY(-0.8vh); }
    80% { transform: translateY(0.2vh); }
    90% { transform: translateY(-1.5vh); }
    100% { transform: translateY(0); }
}

body.glitching {
    animation: screen-roll 0.3s linear;
}

body.glitching .crt::after {
    animation: flicker 0.1s infinite; /* Acelera el parpadeo durante el glitch */
}

/* --- DISEÑO RESPONSIVO MEJORADO --- */

/* Pantalla específica 1280x720 */
@media (min-width: 1200px) and (max-width: 1320px) and (min-height: 680px) and (max-height: 750px) {
    .sidebar-menu {
        left: 3%;
    }
    
    .content-panel {
        left: 38%;
        margin-left: 0px;
        width: 58%;
    }
}

/* Pantalla específica 1366x768 */
@media (min-width: 1300px) and (max-width: 1400px) and (min-height: 700px) and (max-height: 800px) {
    .sidebar-menu {
        left: 5%;
    }
    
    .content-panel {
        left: 65%;
        margin-left: 0px;
        width: 55%;
    }
}

/* Tablets grandes y pantallas medianas */
@media (max-width: 1200px) {
    .content-panel {
        left: 400px;
        width: calc(100vw - 430px);
    }
    
    .title-main {
        font-size: clamp(60px, 12vw, 150px);
    }
    
    .subtitle {
        font-size: clamp(20px, 3.5vw, 40px);
    }
}

/* Tablets */
@media (max-width: 991px) {
    .sidebar-menu {
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        width: 95%;
        max-width: 600px;
        justify-content: center;
        backdrop-filter: blur(10px);
        background: rgba(15, 15, 35, 0.95);
        border: 1px solid #00ff41;
        padding: 15px;
        border-radius: 15px;
    }
    
    .content-panel {
        left: 2.5%;
        top: 10px;
        transform: none;
        width: 95%;
        max-width: none;
        height: calc(100vh - 110px);
        overflow-y: auto;
        margin-left: 0;
    }
    
    .main-container.minimized {
        transform: scale(0.5) translateY(-20vh);
        padding-top: 40px;
    }
    
    /* Mejorar cursor en tablets */
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* Móviles grandes */
@media (max-width: 767px) {
    .main-container { 
        padding: 15px; 
        min-height: 100vh;
        justify-content: center;
    }
    
    .title-main {
        font-size: clamp(45px, 10vw, 80px);
        letter-spacing: 5px;
        margin-bottom: 30px;
    }
    
    .subtitle {
        font-size: clamp(16px, 4vw, 32px);
        margin-bottom: 40px;
    }
    
    .social-info {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .enter-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .sidebar-menu { 
        gap: 8px;
        padding: 12px;
        bottom: 15px;
        width: 98%;
    }
    
    .cyber-button { 
        font-size: 0.85rem; 
        padding: 10px 15px;
        min-width: auto;
    }
    
    .menu-icon { 
        width: 18px; 
        height: 18px; 
        margin-right: 8px;
    }
    
    .content-panel {
        top: 10px;
        left: 1%;
        width: 98%;
        max-width: none;
        height: calc(100vh - 100px);
        padding: 15px;
        margin: 0;
        transform: none;
        overflow-y: auto;
    }
    
    .panel-text { 
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
    
    /* Mejorar grid para móviles */
    .grid {
        height: 50vh;
    }
    
    /* Optimizar efectos para móviles */
    .crt::after {
        opacity: 0.3;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    
    .title-main {
        font-size: clamp(35px, 8vw, 60px);
        letter-spacing: 3px;
        line-height: 1;
    }
    
    .subtitle {
        font-size: clamp(14px, 3vw, 24px);
        letter-spacing: 2px;
    }
    
    .social-info {
        font-size: 12px;
    }
    
    .enter-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .sidebar-menu { 
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 10px;
    }
    
    .cyber-button {
        font-size: 0.75rem;
        padding: 8px 10px;
        flex-direction: column;
        align-items: center;
        min-width: 60px;
        text-align: center;
    }
    
    .cyber-button span { 
        font-size: 0.6rem;
        margin-top: 4px;
        display: block !important;
        line-height: 1;
    }
    
    .menu-icon { 
        width: 16px;
        height: 16px;
        margin: 0 0 2px 0;
    }
    
    .content-panel {
        left: 1%;
        width: 98%;
        padding: 12px;
        font-size: 0.85rem;
        transform: none;
        height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .panel-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .panel-meta p {
        font-size: 0.8rem;
    }
    
    /* Submenu móvil */
    .submenu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .submenu-item {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    /* Grid más sutil en móviles */
    .grid {
        height: 40vh;
        opacity: 0.6;
    }
    
    /* Desactivar algunos efectos pesados */
    .grid-lines {
        display: none;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .main-container {
        padding: 8px;
    }
    
    .title-main {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .cyber-button {
        font-size: 0.7rem;
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .content-panel {
        left: 1%;
        width: 98%;
        padding: 10px;
        top: 5px;
        height: calc(100vh - 80px);
        transform: none;
        overflow-y: auto;
    }
    
    .panel-title {
        font-size: 1.1rem;
    }
}

/* Landscape móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .main-container {
        min-height: auto;
    }
    
    .title-main {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .social-info {
        margin-bottom: 15px;
    }
    
    .grid {
        height: 100vh;
    }
    
    .content-panel {
        height: calc(100vh - 60px);
        top: 10px;
    }
    
    .sidebar-menu {
        bottom: 10px;
        padding: 8px;
    }
}