/* Revista Derecho y Salud - CSS personalizado OJS */

:root {
    --rds-accent:       #d0661c;
    --rds-accent-dark:  #a84e14;
    --rds-accent-light: #f0e8df;
    --rds-text-dark:    #1a1a1a;
    --rds-text-mid:     #444444;
    --rds-text-light:   #ffffff;
    --rds-border:       #e0d5cc;
    --rds-bg:           #ffffff;
    --rds-header-h:     90px;
    --rds-nav-h:        42px;
}



/* Banda superior */

.rds-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--rds-header-h);
    gap: 24px;
}

/* Logos izquierda */

.rds-header__logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.rds-header__logo {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.rds-header__logo:hover {
    opacity: 0.85;
}

.rds-header__logo-sep {
    width: 1px;
    height: 48px;
    background-color: var(--rds-border);
    flex-shrink: 0;
}

/* Nombre de la revista centro */

.rds-header__title {
    flex: 1;
    text-align: center;
    line-height: 1.15;
}

.rds-header__title a {
    text-decoration: none;
    color: inherit;
}

.rds-header__title-main {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--rds-text-dark);
    letter-spacing: 0.01em;
}

.rds-header__title-main span {
    color: var(--rds-accent);
}

.rds-header__title-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rds-text-mid);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 3px;
    font-family: Trebuchet MS, sans-serif;
}

/* Pad derecho para equilibrar flex */

.rds-header__right-pad {
    flex-shrink: 0;
    width: 160px;
}

/* === 3. BANDA DE NAVEGACION === */

.rds-header__nav {
    background-color: var(--rds-accent);
    border-top: 1px solid var(--rds-accent-dark);
}

.rds-header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--rds-nav-h);
}

/* Menu primario */

.rds-header__primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rds-header__primary-menu li a,
.rds-header__primary-menu li button {
    display: block;
    padding: 0 16px;
    height: var(--rds-nav-h);
    line-height: var(--rds-nav-h);
    color: var(--rds-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.rds-header__primary-menu li a:hover,
.rds-header__primary-menu li button:hover,
.rds-header__primary-menu li.current a {
    background-color: var(--rds-accent-dark);
}

/* Menu nativo OJS dentro de la banda */

.rds-header__nav .pkp_navigation_primary,
.rds-header__nav nav[id*="navigation"],
.rds-header__nav ul.nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.rds-header__nav .pkp_navigation_primary > li > a,
.rds-header__nav nav[id*="navigation"] > ul > li > a,
.rds-header__nav ul.nav > li > a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: var(--rds-nav-h);
    color: var(--rds-text-light) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: none !important;
    transition: background-color 0.15s ease;
}

.rds-header__nav .pkp_navigation_primary > li > a:hover,
.rds-header__nav nav[id*="navigation"] > ul > li > a:hover {
    background-color: var(--rds-accent-dark) !important;
}

/* Botones de acceso y registro */

.rds-header__user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rds-header__user-nav a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.rds-header__user-nav .rds-btn-login {
    color: var(--rds-text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.rds-header__user-nav .rds-btn-login:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--rds-text-light);
}

.rds-header__user-nav .rds-btn-register {
    color: var(--rds-accent);
    background-color: var(--rds-text-light);
}

.rds-header__user-nav .rds-btn-register:hover {
    background-color: var(--rds-accent-light);
}

/* === 4. RESPONSIVE === */

@media (max-width: 768px) {

    .rds-header__top {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px 8px;
        gap: 12px;
    }

    .rds-header__logos {
        order: 1;
    }

    .rds-header__title {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .rds-header__right-pad {
        display: none;
    }

    .rds-header__title-main {
        font-size: 1.15rem;
    }

    .rds-header__nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 6px 16px;
        gap: 6px;
    }

    .rds-header__primary-menu {
        flex-wrap: wrap;
    }

    .rds-header__primary-menu li a {
        padding: 6px 10px;
        height: auto;
        line-height: 1.4;
    }

    .rds-header__user-nav {
        width: 100%;
        justify-content: flex-end;
        padding-bottom: 6px;
    }

    .rds-header__logo {
        height: 48px;
    }
}

@media (max-width: 480px) {

    .rds-header__logos {
        gap: 10px;
    }

    .rds-header__logo {
        height: 38px;
    }

    .rds-header__title-main {
        font-size: 1rem;
    }

    .rds-header__title-sub {
        display: none;
    }
}
