/* =========================================================
   ESTILO PROFESIONAL PARA PORTAL OJS (GRID SYSTEM)
   ========================================================= */

/* 1. IMPORTAR FUENTES (Mismas que usaste en Nexo para identidad de marca) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Roboto:wght@300;400;700&display=swap');

/* 2. FONDO GENERAL DEL PORTAL */
body {
    background-color: #f4f6f9; /* Gris muy suave para que resalten las tarjetas blancas */
    font-family: 'Roboto', sans-serif;
}

/* 3. TÍTULO PRINCIPAL ("REVISTAS") */
.pkp_site_index h2 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    color: #0e1b2a; /* Azul Navy */
    margin-top: 20px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    position: relative;
    display: table;     /* Truco para centrar y subrayar solo el texto */
    margin-left: auto;
    margin-right: auto;
}

/* Línea decorativa debajo del título */
.pkp_site_index h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00b4d8; /* Tu color Cian */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 4. GRID SYSTEM (La magia que pone las revistas lado a lado) */
.pkp_site_index .journals {
    display: grid;
    /* Esto crea columnas automáticas. Si caben 2, pone 2. Si caben 3, pone 3 */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; /* Espacio entre tarjetas */
    padding: 0 20px;
    max-width: 1200px; /* Ancho máximo para que no se estire demasiado en pantallas gigantes */
    margin: 0 auto;
}

/* 5. DISEÑO DE LA TARJETA DE REVISTA */
.pkp_site_index .obj_journal_summary {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Sombra elegante */
    border: 1px solid #eaeaea;
    border-top: 5px solid #0e1b2a; /* Detalle de color arriba */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Organiza el contenido verticalmente */
}

/* Efecto al pasar el mouse por la tarjeta */
.pkp_site_index .obj_journal_summary:hover {
    transform: translateY(-10px); /* Flota hacia arriba */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top-color: #00b4d8; /* La línea de arriba cambia a Cian */
}

/* 6. IMAGEN DE PORTADA EN EL LISTADO */
.pkp_site_index .obj_journal_summary .cover {
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.pkp_site_index .obj_journal_summary .cover img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* Zoom suave a la imagen al pasar el mouse */
.pkp_site_index .obj_journal_summary:hover .cover img {
    transform: scale(1.05);
}

/* 7. TÍTULOS DE LAS REVISTAS */
.pkp_site_index h3 a {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.4rem;
    color: #0e1b2a !important;
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.pkp_site_index h3 a:hover {
    color: #00b4d8 !important;
}

/* 8. DESCRIPCIÓN DE LA REVISTA */
.pkp_site_index .description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Empuja los botones hacia abajo para que queden alineados */
}

/* 9. BOTONES (VER REVISTA / NÚMERO ACTUAL) */
.pkp_site_index .obj_journal_summary .links {
    margin-top: auto; /* Fuerza los botones al final de la tarjeta */
    text-align: left;
}

.pkp_site_index .obj_journal_summary .links a {
    display: inline-block;
    background-color: #0e1b2a; /* Fondo oscuro */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px; /* Botones redondos */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 8px;
    border: 2px solid #0e1b2a;
    transition: all 0.3s;
    text-transform: uppercase;
}

/* Botón Hover */
.pkp_site_index .obj_journal_summary .links a:hover {
    background-color: transparent;
    color: #0e1b2a;
    border-color: #0e1b2a;
}

/* 10. OCULTAR BARRA DE ADMIN (Igual que en tu revista) */
.pkp_navigation_user {
    display: none !important;
}

/* 11. PIE DE PÁGINA DEL PORTAL */
.pkp_structure_footer {
    background-color: #0e1b2a;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 4px solid #00b4d8;
}