/* ======================================
   TEMA GLOBAL OJS - ESTILO iOS GALÁCTICO
   Archivo sugerido: ojs-ios-theme.css
   ====================================== */

/* ----- Base tipografía y fondo general ----- */

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", system-ui, sans-serif;
    background: #0b1020;
    color: #1d2433;
    -webkit-font-smoothing: antialiased;
}

/* Capa de “nebulosa” muy suave de fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(94,128,153,0.4) 0, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(60,180,255,0.35) 0, transparent 45%);
    opacity: 0.45;
    z-index: -1;
}

/* Enlaces generales */

a,
a:visited {
    color: #2f9bff;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #63b6ff;
    text-decoration: underline;
}

/* ------------------------------------------------
   CABECERA / BARRA SUPERIOR (NAV estilo iOS card)
   ------------------------------------------------ */

.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_wrapper {
    background: transparent;
    border: none;
}

.pkp_structure_head {
    padding-top: 1.2rem;
}

/* Contenedor tipo “card” para el header */

.pkp_site_name_wrapper,
.pkp_navigation_primary_wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 1rem;
}

.pkp_site_name {
    background: linear-gradient(135deg, #5E8099, #4e9bff);
    border-radius: 24px;
    padding: 0.9rem 1.4rem;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.06);
}

/* Título de la revista / sitio */

.pkp_site_name a,
.pkp_site_name span {
    color: #fdfefe !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Navegación principal (Actual, Archivos, Acerca de…) */

.pkp_navigation_primary_wrapper {
    margin-top: 0.8rem;
}

.pkp_nav_list {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pkp_nav_list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #e8f3ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(10,18,35,0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(140,178,210,0.3);
    transition:
        background 0.2s ease-out,
        border-color 0.2s ease-out,
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out;
}

.pkp_nav_list > li > a:hover,
.pkp_nav_list > li > a:focus,
.pkp_nav_list > li > a[aria-current="page"] {
    background: linear-gradient(135deg,#5E8099,#6ec8ff);
    border-color: transparent;
    color: #05101e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.65);
    transform: translateY(-1px);
}

/* Navegación de usuario (ADMIN, idioma, etc.) */

.pkp_head_wrapper .pkp_navigation_user {
    margin-right: 1.2rem;
}

.pkp_head_wrapper .pkp_navigation_user > li > a,
.pkp_head_wrapper .pkp_navigation_user > li > span {
    color: #f3f7ff;
    font-size: 0.85rem;
}

/* -----------------------------
   CONTENEDOR PRINCIPAL / CARDS
   ----------------------------- */

.pkp_structure_main {
    max-width: 1180px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem 3rem;
}

/* Bloques laterales y principales en modo “tarjeta iOS” */

.pkp_block,
.obj_issue_summary,
.obj_issue_toc,
.obj_article_summary,
.cmp_article_list .article-summary,
.pkp_page_index .pkp_content,
.pkp_page_index .cmp_announcements .obj_announcement_summary,
.page {
    background: rgba(248,250,255,0.96);
    border-radius: 24px;
    border: 1px solid rgba(220,230,245,0.9);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.60),
        0 0 0 1px rgba(255,255,255,0.8);
}

/* Ajuste general de paneles de contenido */

.pkp_page_index .pkp_content,
.page {
    padding: 2rem 2.3rem;
}

.obj_issue_summary,
.obj_issue_toc,
.obj_article_summary,
.cmp_article_list .article-summary {
    padding: 1.35rem 1.7rem;
    margin-block: 1rem;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out;
}

/* Glow suave al pasar el mouse */

.obj_issue_summary::before,
.obj_issue_toc::before,
.obj_article_summary::before,
.cmp_article_list .article-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 110% -10%, rgba(90,170,255,0.25) 0, transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.obj_issue_summary:hover,
.obj_issue_toc:hover,
.obj_article_summary:hover,
.cmp_article_list .article-summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 65px rgba(0,0,0,0.75);
    border-color: rgba(170,210,255,0.9);
}

.obj_issue_summary:hover::before,
.obj_issue_toc:hover::before,
.obj_article_summary:hover::before,
.cmp_article_list .article-summary:hover::before {
    opacity: 1;
}

/* --------------------
   TITULOS Y TEXTOS
   -------------------- */

h1, h2, h3, h4, h5 {
    color: #141b2b;
    font-weight: 650;
}

h1 {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.35rem;
}

p {
    color: #3b4557;
    line-height: 1.55;
}

/* Metadatos / breadcrumbs / textos pequeños */

.cmp_article_list .authors,
.obj_article_summary .authors,
.obj_issue_summary .published,
.cmp_breadcrumbs,
.pkp_helpers_text_sm,
.pkp_form .inline,
.label,
.value {
    color: #7b869b;
}

/* ---------------
   BOTONES iOS
   --------------- */

.cmp_button,
button.pkp_button,
a.pkp_button,
.pkp_modal_panel .pkp_button {
    background: linear-gradient(135deg,#5E8099,#7ad4ff);
    border-radius: 999px;
    border: none;
    color: #02101f !important;
    font-weight: 600;
    padding: 0.55rem 1.7rem;
    font-size: 0.86rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0,0,0,0.55);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        filter 0.15s ease-out;
}

.cmp_button:hover,
button.pkp_button:hover,
a.pkp_button:hover,
.pkp_modal_panel .pkp_button:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.05);
    box-shadow: 0 20px 48px rgba(0,0,0,0.8);
}

/* Botón principal con “pulso” */

.cmp_button_primary,
.pkp_page_index .cmp_button {
    animation: pulso-orbita 2.6s ease-in-out infinite;
}

@keyframes pulso-orbita {
    0%, 100% { box-shadow: 0 0 0 0 rgba(122,212,255,0.7); }
    50%      { box-shadow: 0 0 0 18px rgba(122,212,255,0); }
}

/* ---------------
   FORMULARIOS
   --------------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    border: 1px solid rgba(199,213,234,0.9);
    padding: 0.5rem 0.75rem;
    color: #1f2635;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #5E8099;
    box-shadow: 0 0 0 2px rgba(94,128,153,0.35);
}

/* ---------------
   TABLAS
   --------------- */

table {
    background: #f9fbff;
    border-radius: 20px;
    overflow: hidden;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(90deg,#5E8099,#7cc7ff);
    color: #ffffff;
}

thead th {
    padding: 0.8rem 1rem;
    font-weight: 600;
}

tbody td {
    padding: 0.7rem 1rem;
}

tbody tr:nth-child(even) {
    background: #eef3ff;
}

/* ----------------
   PIE DE PÁGINA
   ---------------- */

/* Quitamos la franja gris fea y lo hacemos discreto */

.pkp_page_footer_wrapper,
.pkp_page_footer {
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
}

.pkp_page_footer {
    max-width: 1180px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    font-size: 0.75rem;
    color: rgba(205, 220, 240, 0.7);
    text-align: right;
}

.pkp_page_footer a {
    color: #a7d4ff;
}

.pkp_page_footer a:hover {
    color: #d1ebff;
}

/* --------------------------
   RESPONSIVE BÁSICO
   -------------------------- */

@media (max-width: 768px) {

    .pkp_site_name {
        text-align: center;
    }

    .pkp_nav_list {
        justify-content: center;
    }

    .pkp_page_index .pkp_content,
    .page {
        padding: 1.3rem 1rem;
    }

    .obj_issue_summary,
    .obj_issue_toc,
    .obj_article_summary {
        padding: 1rem 1rem;
    }
}
