* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    background-color: rgba(0,0,0,0.8);
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between icon and text */
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

/* Icon inside nav link */
.nav-icon svg {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.section {
    display: none;
    padding: 100px 20px;
    min-height: 100vh;
    animation: fadeIn 0.8s forwards;
    position: relative;
    text-align: center; /* 👈 Esto centra el texto horizontalmente */
    
}

.section.active {
    display: block;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nombre {
    font-size: 3rem;
    letter-spacing: 2px;
}

.subtitulo {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 20px;
}

.about-text {
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 4px;
    margin: 0 auto;
}


.post {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 4px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.form-control {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
}

.btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.blog-article {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.blog-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.blog-article h2 {
    color: #fff;
    font-size: 1 rem;
    font-weight: 600;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
    margin-top: 2em;
    margin-bottom: 0.75em;
    letter-spacing: -0.5px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.blog-article p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.blog-article hr {
    border: 0;
    border-top: 2px solid #000;
    margin: 2.5em 0;
}

.blog-article strong {
    color: #0056b3;
    font-weight: 600;
}

/* Si quieres que el título del post también tenga estilo */
.blog-article h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1em;
    letter-spacing: -0.5px;
}

/* Para que los enlaces se vean bien (opcional) */
.blog-article a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-article a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Ocultar iniciales por defecto */
.nombre-iniciales {
    display: none;
}

/* En pantallas muy pequeñas: mostrar iniciales, ocultar nombre completo */
@media (max-width: 480px) {
    .nombre-completo {
        display: none !important;
    }

    .nombre-iniciales {
        display: block;
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        letter-spacing: 2px;
        margin: 0;
        line-height: 1.1;
    }

    .subtitulo {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        padding: 0 10px;
        line-height: 1.4;
    }
}

/* Estilos base del menú */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 20px;
    z-index: 999;
    background-color: rgba(0,0,0,0.8);
}

.nav-brand {
    color: white;
    font-size: 1.2rem;
    /* Puedes agregar un logo o texto aquí si lo deseas */
}

.menu-toggle {
    display: none; /* Oculto por defecto */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
        justify-content: space-between;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block; /* Mostrar el ícono hamburguesa */
    }

    .nav-menu {
        display: none; /* Ocultar el menú por defecto */
        position: fixed;
        top: 60px; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 998;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu.active {
        display: flex; /* Mostrar cuando esté activo */
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        opacity: 0.8;
        font-size: 1.1rem;
    }

    .nav-link:hover,
    .nav-link.active {
        opacity: 1;
        background: rgba(255,255,255,0.1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}