/* --- Estilos Generales y Cuerpo de la Página --- */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Buena práctica para el manejo de cajas */
}

body {
    background-color: black;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.2em; /* Tamaño base más legible */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea el contenido arriba */
    padding: 5vh 20px; /* Espacio vertical y horizontal */
    min-height: 100vh;
}

/* --- Contenedor Principal --- */
#content {
    width: 100%;
    max-width: 800px;
    text-align: left;
}

/* --- Estilos del Prompt de Terminal --- */
.prompt {
    margin-bottom: 2em;
}

.prompt-user {
    color: #00aaff; /* Color para "usuario" */
}

.prompt-symbol {
    color: #00ff00;
}

.command {
    color: #ffffff; /* Comando en blanco para destacar */
    font-weight: bold;
}

/* --- Animación del Cursor Parpadeante --- */
.cursor::after {
    content: '█'; /* Usar un bloque sólido */
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* --- Estilos de las Tarjetas de Proyecto --- */
.project-card {
    border-left: 2px solid #00ff00;
    padding-left: 15px;
    margin-bottom: 2.5em;
}

.project-title a {
    color: #00ffaa;
    text-decoration: none;
    font-size: 1.1em;
}

.project-title a:hover {
    background-color: #00ffaa;
    color: black;
}

.project-meta, .project-description, .project-tech {
    font-size: 0.8em;
    margin: 8px 0; /* Un poco más de espacio vertical */
    line-height: 1.5; /* Mejora la legibilidad de los párrafos */
}

.comment {
    color: #888; /* Color gris para los comentarios */
    font-style: italic;
}

/* --- Estilos del Pie de Página --- */
footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.7em;
}

footer a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
    padding-bottom: 2px;
}

footer a:hover {
    color: #00ffaa;
    border-bottom: 1px dotted #00ffaa;
}









/* --- Estilos para las Nuevas Secciones --- */

.section-title {
    color: #ffffff;
    font-weight: bold;
    margin-top: 3em;
    margin-bottom: 1.5em;
    font-size: 1.2em;
}

/* Cambiar h3 en lugar de h2 para los títulos de las tarjetas */
.project-card h3.project-title a {
    color: #00ffaa;
    text-decoration: none;
    font-size: 1.1em;
}
.project-card h3.project-title {
    margin-bottom: 0.5em;
}



.publications-list p {
    margin-bottom: 1em;
    line-height: 1.5;
    font-size: 0.9em;
}

.publications-list b {
    color: #ffffff;
}

.publications-list a {
    color: #00aaff;
    text-decoration: none;
}
.publications-list a:hover {
    background-color: #00aaff;
    color: black;
}


/* --- ESTILOS PARA LAS NUEVAS TARJETAS DE PERFIL --- */

.profile-links-container {
    display: flex;
    gap: 20px; /* Espacio entre tarjetas */
    justify-content: center;
    flex-wrap: wrap; /* Para que se adapten a pantallas pequeñas */
    margin-bottom: 3em; /* Espacio antes de la siguiente sección */
}

/* --- ESTILOS PARA LAS TARJETAS DE PERFIL (ACTUALIZADO) --- */

.profile-card-link {
    flex: 1; 
    min-width: 180px; /* Un poco más pequeño para 4 tarjetas */
    padding: 20px;
    border: 1px dotted #00ff00;
    text-align: center;
    text-decoration: none;
    color: #00ff00;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* <<< AÑADIDO: Centra el icono y el texto verticalmente */
    gap: 15px; /* Espacio entre icono y texto */
    min-height: 120px; /* Altura fija para que todas las tarjetas sean iguales */
}

.profile-card-link:hover {
    background-color: #00ff00;
    color: black;
    border-color: #00ff00;
}

.profile-card-link img {
    height: 3em; /* Tamaño del icono */
    filter: invert(72%) sepia(98%) saturate(272%) hue-rotate(79deg) brightness(113%) contrast(101%); /* Filtro para que sea verde */
    transition: filter 0.3s ease;
}

.profile-card-link:hover img {
    filter: invert(0); /* Al pasar el mouse, el icono se vuelve negro */
}

.profile-card-link strong {
    font-size: 1.2em;
    font-weight: bold;
}

.profile-card-link .comment {
    font-size: 0.8em;
    line-height: 1.4;
}



/* --- NUEVOS ESTILOS PARA LA SECCIÓN DE METODOLOGÍA --- */

.methodology-card {
    border: 1px dotted #888;
    background-color: #050505; /* Un fondo muy oscuro para diferenciar */
    padding: 20px;
    margin-top: 1em;
    font-size: 0.9em;
    line-height: 1.6;
}

.methodology-card .comment {
    font-style: italic;
    color: #aaa;
}

.methodology-card b.prompt-user {
    color: #00aaff; /* El mismo color azul del prompt */
    font-weight: bold;
}

/* --- ESTILOS PARA EL NUEVO BLOQUE DE INFO DEL SISTEMA --- */

#system-info {
    font-size: 0.8em;
    color: #aaa; /* Un color grisáceo para diferenciarlo del contenido principal */
    margin-bottom: 2em;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
}

#system-info .system-value {
    color: #ffffff; /* Resaltar los valores detectados */
    font-weight: bold;
}

.prompt-host {
    color: #00aaff; /* Un color diferente para tu marca "rudimirz" */
}


/* --- ESTILO PARA EL MENSAJE DE CARGA --- */

#system-info .loading {
    animation: blink 1.5s infinite;
}

/* (Puedes reutilizar la animación @keyframes blink que ya tienes) */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



/* style.css */
#language-selector-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-button {
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 2px 5px; /* Ajusta el padding si es necesario */
    transition: all 0.2s ease-in-out;
    border-radius: 3px;
    /* Centrar la bandera dentro del botón si es necesario */
    display: flex; 
    align-items: center;
    justify-content: center;
}

/* Estilo específico para las banderas de Flag Icon CSS */
.lang-button .fi {
    font-size: 24px; /* Ajusta este tamaño para controlar el tamaño de la bandera */
    line-height: 1; /* Ayuda a alinear verticalmente */
}

.lang-button:hover {
    border: 1px solid #00ff00;
    transform: translateY(-2px);
}

.lang-button.active-lang {
    border: 1px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}



.network-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.network-card {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #1e1e1e;
  color: #cfcfcf;
  border-radius: 0.5rem;
  text-decoration: none;
  font-family: monospace;
}
.network-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}



/* Botón tipo enlace dentro de la grilla de perfiles */
button.profile-card-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #1b254d;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #e9eefc);
  cursor: pointer;
  text-decoration: none;
  transition: transform .06s ease, border-color .2s ease;
}
button.profile-card-link:hover{ transform: translateY(-1px); border-color: var(--brand, #7aa2ff); }
button.profile-card-link svg{ width: 20px; height: 20px; }

/* ===== Modal CV ===== */
.modal[hidden]{ display:none; }
.modal{ position: fixed; inset: 0; z-index: 1000; }
.modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.modal-panel{
  position: absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  width: min(540px, 92vw);
  background: var(--panel,#101935);
  border: 1px solid var(--border,#1b254d);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  padding: 18px;
}
.modal-title{ margin: 0 0 8px 0; }
.modal-close{
  position: absolute; right: 10px; top: 8px;
  background: transparent; border: 0; color: var(--text,#e9eefc);
  font-size: 22px; cursor: pointer; line-height: 1;
}

/* Form dentro del modal (coherente con tu tema) */
.cv-form{ background: transparent; border: 0; padding: 0; }
.cv-form .form-group{ margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.cv-form label{ color:#cfd6ff; font-weight: 600; }
.cv-form input[type="text"], .cv-form input[type="email"], .cv-form textarea{
  background:#0b0f24; border:1px solid #1b254d; color:#e9eefc;
  padding:10px 12px; border-radius:6px;
}
.cv-form textarea{ resize: vertical; }
.cv-form .field-hint{ color:#8fa2d6; font-size:.85em; }
.cv-form .form-actions{ display:flex; gap:10px; margin-top: 6px; }
.cv-form .btn{ background: transparent; border:1px solid var(--brand,#7aa2ff); color: var(--brand,#7aa2ff); padding:8px 12px; border-radius:6px; cursor:pointer; }
.cv-form .btn.primary{ border-color:#00ffaa; color:#00ffaa; }
.cv-form .btn:hover{ background: rgba(122,162,255,.12); }
.cv-form .btn.primary:hover{ background: rgba(0,255,170,.12); }

/* Honeypot */
.cv-form .hp{ display:none !important; }

/* Feedback */
#cv-feedback{ margin-top:8px; font-size:.9em; color:#00ffaa; }

/* Móvil: panel con margen inferior para teclado */
@media (max-width: 480px){
  .modal-panel{ padding-bottom: 22px; }
}

