/* Evita el scroll horizontal y asegura el ancho correcto */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Aplicar la tipografía Matrix */
body {
    background-color: black;
    color: #00FF00; /* Verde estilo Matrix */
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

a {
    color: #00FF00; 
}




/* Estilo para el encabezado */
#Titulo_central {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: black;
    border: none;
    text-align: center;
    box-sizing: border-box;
}

/* Contenedores tipo terminal */
.terminal {
    border: 2px solid #00FF00;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    background-color: black;
    box-sizing: border-box;
}

/* Efecto de texto tipo comando */
.command-line {
    font-size: 18px;
}

/* Cursor parpadeante */
.blinking-cursor {
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Título */
.title {
    font-size: 48px;
    color: #00FF00;
    text-align: center;
}

/* Contenedor About */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Imagen de About */
.about-image {
    border: 2px solid #00FF00;
    width: 150px;
    height: auto;
    margin-right: 20px;
}

/* Footer */
.footer {
    background-color: black;
    border-top: 2px solid #00FF00;
    color: #00FF00;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;
}

/* Nickname */
.nickname {
    font-weight: bold;
}

/* Email */
.email {
    color: #00FF00;
    text-decoration: none;
}

.email:hover {
    text-decoration: underline;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #00FF00;
    border: 1px solid #00FF00;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #00FF00;
    color: black;
}

/* Páginas ocultas por defecto */
.page {
    display: none;
}

#page1 {
    display: block;
}

/* Menú hamburguesa */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    background-color: #000;
    color: #0f0;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    max-width: calc(100% - 40px);
}

/* Menú desplegable */
#nav-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #111;
    border: 1px solid #0f0;
    padding: 10px;
    border-radius: 5px;
    z-index: 999;
    box-sizing: border-box;
    max-width: calc(100% - 40px);
}

#nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-menu li {
    margin: 10px 0;
}

#nav-menu a {
    text-decoration: none;
    color: #0f0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
}

.hidden {
    display: none;
}

#menu-toggle {
    transition: opacity 0.3s ease;
}

#nav-menu a:hover {
    background-color: #00FF00;
    color: black;
    border-radius: 4px;
    padding: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#nav-menu a {
    text-decoration: none;
    color: #00FF00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    position: relative; /* Necesario para la línea personalizada */
}

/* Subrayado verde animado */
#nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* justo debajo del texto */
    width: 100%;
    height: 2px;
    background-color: #00FF00;
    transform: scaleX(0); /* Oculto por defecto */
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Mostrar la línea al pasar el mouse */
#nav-menu a:hover::after {
    transform: scaleX(1); /* Se extiende la línea */
}

#nav-menu a {
    position: relative;
    text-decoration: none !important;  /* ¡Forzamos quitar la línea predeterminada! */
    color: #00FF00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    display: inline-block;
}

/* Línea verde personalizada */
#nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00FF00;
    transform: scaleX(1); /* Siempre visible */
    transform-origin: left;
}


pre {
    background-color: #1a1a1a; /* Gris oscuro */
    color: #00FF00; /* Verde estilo Matrix */
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #00FF00;
    overflow-x: auto;
    max-width: 100%;
    font-family: 'Share Tech Mono', monospace;
    margin-top: 20px;
}

code {
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
}

.matrix-button {
    display: inline-block;
    padding: 12px 24px;
    color: #00FF00;
    background-color: black;
    border: 2px solid #00FF00;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 20px;
}

.matrix-button:hover {
    background-color: #00FF00;
    color: black;
}

.terminal-alert {
    background-color: #111;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 10px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin: 15px auto;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 0 5px #00FF00;
    animation: parpadeo 1s infinite alternate;
  }


/* Contenedor de imagen responsive */
.image-container {
    width: 100%;
    max-width: 800px; /* puedes ajustar el máximo */
    margin: 20px auto;
    text-align: center;
}

.image-container img {
    width: 100%;
    height: auto;
    border: 2px solid #00FF00;
    border-radius: 5px;
    box-sizing: border-box;
}



/* === Estilo Consola Retro para el Manifiesto Hacker === */

/* Puedes agregar aquí otros estilos personalizados si lo deseas */

/* Responsive para móviles */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 10px;
    }

    .about-image {
        margin: 0 auto 20px auto;
    }

    .terminal {
        max-width: 95%;
    }

    .title {
        font-size: 36px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
}
