:root {
    --primary: #00ff88;
    --secondary: #00ccff;
    --background: #0a0a0a;
    --terminal-bg: rgba(15, 15, 15, 0.95);
    --glow: rgba(0, 255, 136, 0.1);
    --font-family: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background: var(--background);
    color: var(--primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 1;
    animation: contentFadeIn 1.2s ease-out forwards;
}

.terminal-effect {
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 30px var(--glow);
    padding: 2rem;
    margin: 2rem 0;
    background: var(--terminal-bg);
    position: relative;
    overflow: hidden;
    word-break: keep-all;
    cursor: default;
    transition: all 0.3s ease;
}

.terminal-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scan 6s infinite;
}

.window-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.window-btn:hover {
    transform: scale(1.15);
}

.window-btn:active {
    transform: scale(0.9);
}

.window-btn.active {
    filter: brightness(1.5);
}
/* Estilos específicos para imágenes */
.article-content img,
.terminal-effect img:not(.profile-img) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--glow);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    transition: all 0.3s ease;
}

.article-content img:hover,
.terminal-effect img:not(.profile-img):hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--glow);
    border-color: var(--secondary);
}

/* Para imágenes en contexto de código o ejemplos técnicos */
.code-block img,
.terminal-effect .code-block img {
    border: 1px solid var(--secondary);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .article-content img,
    .terminal-effect img:not(.profile-img) {
        margin: 1rem auto;
        padding: 2px;
    }
}
/* Colores de botones */
.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px var(--glow);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: rotate(5deg) scale(1.05);
}
/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 40px var(--glow);
    object-fit: contain;
    background: var(--terminal-bg);
    padding: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--primary);
    background: var(--terminal-bg);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px var(--glow);
}

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

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mejorar el cursor para imágenes normales */
.terminal-effect img:not(.profile-img) {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.terminal-effect img:not(.profile-img):hover {
    transform: scale(1.02);
}
.navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: rgba(0, 255, 136, 0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    font-size: 2.5rem;
    text-shadow: 0 0 10px var(--glow);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

.author-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.author-link:hover {
    color: var(--primary);
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    position: relative;
}

.article-content h2::before {
    content: '> ';
    color: var(--secondary);
}

.article-content ul, .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin: 0.5rem 0;
    position: relative;
}

/* Listas */
ul {
    list-style: none;
    padding-left: 1.5rem;
}

li {
    margin: 1.5rem 0;
    position: relative;
    font-size: 1rem;
}

li::before {
    content: '$ ';
    color: var(--secondary);
    position: absolute;
    left: -1.5rem;
}

.article-content li::before {
    content: '$ ';
    color: var(--secondary);
    position: absolute;
    left: -1.5rem;
}

.article-content code {
    background: rgba(0, 255, 136, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
}

.code-block {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.code-block pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0;
}

.code-block pre code {
    background: transparent;
    padding: 0;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.2);
}

.copy-btn.copied {
    background: rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--secondary);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.back-link i {
    margin-right: 0.5rem;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--terminal-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--glow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-card {
    padding: 1rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

@keyframes scan {
    from { left: -100%; }
    to { left: 100%; }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .terminal-effect {
        padding: 1.5rem;
    }

    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copy-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .navigation {
        flex-direction: column;
    }
}
/* Estilos para los botones de compartir */
.share-section {
    margin: 25px 0;
    padding: 15px;
    border-top: 1px solid #3c3c3c;
    border-bottom: 1px solid #3c3c3c;
}

.share-title {
    margin-bottom: 15px;
    color: #00ff00;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #1a1a1a;
    border: 1px solid #3c3c3c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.share-btn:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

.share-btn i {
    margin-right: 8px;
}

.linkedin { color: #0a66c2; }
.twitter { color: #1da1f2; }
.bluesky { color: #0285ff; }
.email { color: #ea4335; }

h1, h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 0 0 10px var(--glow);
}

h2::before {
    content: '> ';
    color: var(--secondary);
}