:root {
    --bg-color: #050505;
    --neon-green: #0aff0a;
    --neon-cyan: #00f3ff;
    --dark-green: #003300;
    --text-color: #e0e0e0;
    --card-bg: #0a0a0f;
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Efecto Scanline */
.scanline {
    width: 100%;
    height: 100vh;
    z-index: 999;
    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));
    background-size: 100% 2px, 3px 100%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-display);
    color: var(--neon-green);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10% 0;
    position: relative;
}

.subtitle {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h1.glitch {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
    color: #fff;
}

h1.glitch:hover {
    text-shadow: 2px 2px var(--neon-green), -2px -2px var(--neon-cyan);
}

h2 {
    color: var(--neon-green);
    height: 1.5em;
    font-size: 1.5rem;
}

.description-box {
    margin: 25px 0;
    padding: 15px;
    border-left: 2px solid var(--neon-green);
    background: rgba(10, 255, 10, 0.05);
    font-size: 0.9rem;
}
.kw { color: #ff79c6; }
.func { color: #50fa7b; }
.str { color: #f1fa8c; }
.code-comment { color: #6272a4; margin-bottom: 5px; }

/* Botón Principal (Telegram) */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: 0.3s;
}
.cta-button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Ventana de Código */
.hero-image {
    width: 45%;
    display: flex;
    justify-content: center;
}

.code-window {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: #0f0f13;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0, 243, 255, 0.1);
    position: relative;
}

.window-header {
    background: #191920;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.buttons { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5555; }
.yellow { background: #f1fa8c; }
.green { background: #50fa7b; }

.title {
    margin-left: 15px;
    font-size: 0.75rem;
    color: #888;
}

.code-scroll {
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #0f0f13;
}

.code-content {
    animation: scrollCode 15s linear infinite;
}

@keyframes scrollCode {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

pre {
    padding: 20px;
    color: #f8f8f2;
    font-size: 0.8rem;
    line-height: 1.5;
    background: transparent;
    margin: 0;
}
.code-scroll pre {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.2);
}

/* Secciones Generales */
.container {
    padding: 80px 10%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 10px; 
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.section-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 25px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
}

.card-header {
    color: var(--neon-green);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tags { margin-top: 15px; }
.tag {
    font-size: 0.7rem;
    background: #1a1a1a;
    padding: 5px 10px;
    margin-right: 5px;
    border: 1px solid #333;
    color: #aaa;
}
.link-text {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #111;
    margin-top: 50px;
}
.console-cursor {
    animation: blink 1s infinite;
    display: inline-block;
    color: var(--neon-green);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ESTILOS PARA MINI CONTACTOS (NUEVO) */
.mini-contacts {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #555;
}

.mini-contacts a {
    color: #777;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
    font-family: var(--font-mono);
}

.mini-contacts a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.separator {
    color: #333;
}


/* Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }

    .hero-image { width: 100%; margin-bottom: 40px; }
    h1.glitch { font-size: 2.2rem; }
    .description-box { text-align: left; }
}