/* Variables para colores sobrios y científicos */
:root {
    --bg-color: #f4f7f6;
    --text-color: #333333;
    --card-bg: #ffffff;
    --accent-color: #2c3e50; /* Azul muy oscuro y elegante */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 25px 15px;
}

.container {
    max-width: 600px; /* Ancho ideal para celulares, centrado en PC */
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

/* --- Estilos para la nueva cabecera académica --- */
.project-header {
    text-align: left; /* Alineado a la izquierda da un toque más formal y de "paper" */
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.project-header h1 {
    font-size: 22px; /* Un poco más pequeño para que quepan títulos largos en móvil */
    color: var(--accent-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-header .authors {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.project-header .affiliations {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.project-header .divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin-top: 15px;
    margin-bottom: 20px;
}

.project-header h2 {
    font-size: 18px;
    color: var(--accent-color);
    text-align: center;
}

h1 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

header p {
    font-size: 14px;
    color: #7f8c8d;
}

.reference-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre las tarjetas */
}

/* Estado inicial de las tarjetas (ocultas y ligeramente abajo) para la animación */
.ref-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Clase que se agregará con JavaScript para hacer el fade-in */
.ref-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo del enlace para que ocupe toda la tarjeta */
.ref-item a {
    display: flex;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent; /* Quita el cuadro azul feo al tocar en móviles */
    transition: background-color 0.2s, transform 0.1s;
}

/* Efecto al presionar en el celular */
.ref-item a:active {
    background-color: #eef2f5;
    transform: scale(0.98); 
}

.ref-number {
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 16px;
}

.ref-text {
    font-size: 14px;
    color: #555555;
    text-align: left;
}