:root {
    --bg: #000000;
    --card-bg: rgba(6, 6, 6, 0.98);
    --cyan: #00f3ff;
    --magenta: #ff007c;
    --txt: #ffffff;
    --txt2: rgba(255, 255, 255, 0.5);
}

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

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 243, 255, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 0, 124, 0.04) 0%, transparent 60%);
    color: var(--txt);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    overflow-x: hidden;
}

/* ===== SCANLINES ===== */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 243, 255, 0.02) 0px,
        rgba(0, 243, 255, 0.02) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanFlicker 5s infinite linear;
}

@keyframes scanFlicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* ===== CONTENEDOR ===== */
.hub-container {
    width: 100%;
    max-width: 580px;
    text-align: center;
    z-index: 100;
    padding: 1.5rem 0 3rem;
}

/* ===== LOGO ===== */
.logo-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 28px auto;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    box-shadow:
        0 0 25px var(--cyan),
        0 0 60px rgba(0, 243, 255, 0.2),
        inset 0 0 20px rgba(0, 243, 255, 0.1),
        0 0 8px var(--magenta);
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: neonPulse 3s ease-in-out infinite;
}

.logo-wrapper[data-fallback]::after {
    content: attr(data-fallback);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan);
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 0 25px var(--cyan),
            0 0 50px rgba(0, 243, 255, 0.2),
            0 0 8px var(--magenta);
    }
    50% {
        box-shadow:
            0 0 40px var(--cyan),
            0 0 80px rgba(0, 243, 255, 0.35),
            0 0 20px var(--magenta);
    }
}

/* ===== CABECERA ===== */
.brand-name {
    font-family: 'Space Grotesk', 'Arial Black', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.brand-tagline {
    color: var(--txt2);
    font-size: 0.95rem;
    margin-bottom: 48px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TARJETAS ===== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-card {
    background: var(--card-bg);
    border: 1px solid #1c1c1c;
    border-left-width: 6px;
    border-left-style: solid;
    border-left-color: transparent;
    padding: 20px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--txt);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: #050505;
    border-color: #2a2a2a;
    transform: translateX(4px) scale(1.01);
}

.card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    flex: 1;
}

/* ===== ICONOS XL ===== */
.icon-container {
    font-size: 2.4rem;
    width: 52px;
    min-width: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.link-card:hover .icon-container {
    transform: scale(1.1);
}

/* ===== AURAS POR PLATAFORMA ===== */
.card-web       { border-left-color: var(--cyan) !important; box-shadow: -10px 0 30px rgba(0, 243, 255, 0.12); }
.card-web       .icon-container { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }

.card-telegram  { border-left-color: #0088cc !important; box-shadow: -10px 0 30px rgba(0, 136, 204, 0.12); }
.card-telegram  .icon-container { color: #0088cc; text-shadow: 0 0 12px #0088cc; }

.card-discord   { border-left-color: #5865f2 !important; box-shadow: -10px 0 30px rgba(88, 101, 242, 0.12); }
.card-discord   .icon-container { color: #5865f2; text-shadow: 0 0 12px #5865f2; }

.card-linkedin  { border-left-color: #0a66c2 !important; box-shadow: -10px 0 30px rgba(10, 102, 194, 0.12); }
.card-linkedin  .icon-container { color: #0a66c2; text-shadow: 0 0 12px #0a66c2; }

.card-facebook  { border-left-color: #1877f2 !important; box-shadow: -10px 0 30px rgba(24, 119, 242, 0.12); }
.card-facebook  .icon-container { color: #1877f2; text-shadow: 0 0 12px #1877f2; }

.card-tiktok    { border-left-color: #ff0050 !important; box-shadow: -10px 0 30px rgba(255, 0, 80, 0.12); }
.card-tiktok    .icon-container { color: #ff0050; text-shadow: 0 0 12px #ff0050; }

.card-instagram { border-left-color: #e4405f !important; box-shadow: -10px 0 30px rgba(228, 64, 95, 0.12); }
.card-instagram .icon-container { color: #e4405f; text-shadow: 0 0 12px #e4405f; }

.card-github    { border-left-color: #ffffff !important; box-shadow: -10px 0 20px rgba(255, 255, 255, 0.06); }
.card-github    .icon-container { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.8); }

.card-youtube   { border-left-color: #ff0000 !important; box-shadow: -10px 0 30px rgba(255, 0, 0, 0.12); }
.card-youtube   .icon-container { color: #ff0000; text-shadow: 0 0 12px #ff0000; }

.card-whatsapp  { border-left-color: #25d366 !important; box-shadow: -10px 0 30px rgba(37, 211, 102, 0.12); }
.card-whatsapp  .icon-container { color: #25d366; text-shadow: 0 0 12px #25d366; }

.text-group { text-align: left; }

.label {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

.sub-label {
    font-size: 0.88rem;
    color: var(--txt2);
    display: block;
}

.action-icon {
    font-size: 1.1rem;
    color: #2a2a2a;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.link-card:hover .action-icon {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

/* ===== FOOTER 4 WIDGETS ===== */
.hub-footer { margin-top: 60px; }

.widget-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.widget {
    background: #070707;
    border: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.widget:hover {
    border-color: #333;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.08);
}

.square-box {
    width: 88px;
    height: 88px;
    font-size: 1.8rem;
    color: #ccc;
}

.clock-box {
    width: 156px;
    height: 88px;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(0, 243, 255, 0.4);
    letter-spacing: 2px;
}

#auth-btn i {
    color: var(--magenta);
    text-shadow: 0 0 15px var(--magenta);
    font-size: 2rem;
}

#share-btn i,
#qr-btn i {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

#share-btn:hover i,
#qr-btn:hover i {
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan);
}

/* ===== STATUS BAR ===== */
.system-status {
    font-size: 0.78rem;
    color: var(--txt2);
    letter-spacing: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.status-dot {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan);
    animation: statusPulse 1.5s ease-in-out infinite;
    font-size: 0.7rem;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ===== QR MODAL ===== */
.qr-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qr-overlay.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-modal {
    background: #0a0a0a;
    border: 2px solid var(--cyan);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2), 0 0 80px rgba(0, 243, 255, 0.1);
    max-width: 360px;
    width: 90%;
}

.qr-modal h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--cyan);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--cyan);
}

.qr-modal img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 2px solid #1c1c1c;
    background: #fff;
    padding: 8px;
}

.qr-modal .qr-url {
    color: var(--txt2);
    font-size: 0.8rem;
    margin-top: 16px;
    letter-spacing: 1px;
}

.qr-close {
    margin-top: 20px;
    background: none;
    border: 1px solid #333;
    color: #999;
    padding: 8px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.qr-close:hover {
    border-color: var(--magenta);
    color: var(--magenta);
}

/* ===== SHARE TOAST ===== */
.share-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 3000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    animation: toastSlide 0.4s ease;
}

.share-toast.active { display: block; }

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== TERMINAL DE LOGS INTERACTIVA (CYBERPUNK PRO) ===== */
.terminal-log-wrapper {
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    margin: 0 auto 36px auto;
    max-width: 100%;
    text-align: left;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 243, 255, 0.01);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.terminal-log-wrapper:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 
        0 0 25px rgba(0, 243, 255, 0.05),
        inset 0 0 20px rgba(0, 243, 255, 0.02);
}

.terminal-log-header {
    background: #090909;
    border-bottom: 1px solid #151515;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', monospace;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-log-title {
    font-size: 0.72rem;
    color: var(--txt2);
    letter-spacing: 2px;
    font-weight: 700;
}

.terminal-log-body {
    padding: 14px 18px;
    height: 120px;
    overflow-y: auto;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

/* Scrollbar personalizado para la terminal */
.terminal-log-body::-webkit-scrollbar {
    width: 4px;
}
.terminal-log-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-log-body::-webkit-scrollbar-thumb {
    background: #1c1c1c;
    border-radius: 2px;
}
.terminal-log-body::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

.log-line {
    opacity: 0;
    transform: translateY(5px);
    animation: logFadeIn 0.3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    word-break: break-all;
}

.log-time {
    color: var(--txt2);
    margin-right: 8px;
}

.log-tag {
    font-weight: 700;
    margin-right: 6px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.68rem;
}

.log-tag.system { background: rgba(0, 243, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 243, 255, 0.2); }
.log-tag.click  { background: rgba(255, 0, 124, 0.1); color: var(--magenta); border: 1px solid rgba(255, 0, 124, 0.2); }
.log-tag.hover  { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.log-tag.action { background: rgba(37, 211, 102, 0.1); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.2); }

.log-msg {
    color: #e0e0e0;
}

@keyframes logFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    body { padding: 1.5rem 0.75rem; }
    .brand-name { font-size: 1.8rem; letter-spacing: 5px; }
    .link-card { padding: 16px 18px; }
    .icon-container { font-size: 2rem; width: 44px; min-width: 44px; }
    .card-content { gap: 16px; }
    .label { font-size: 1.05rem; }
    .square-box { width: 72px; height: 72px; font-size: 1.5rem; }
    .clock-box { width: 130px; height: 72px; font-size: 1.15rem; }
    .widget-row { gap: 12px; }
    .terminal-log-body { height: 100px; padding: 10px 14px; font-size: 0.7rem; }
}
