/* =====================================================
   TEMAS DE CIENCIA Y TECNOLOGIA - EQUIPO EDITORIAL
   Agregar al final del archivo CSS personalizado de OJS.
   ===================================================== */

.pagina-equipo-editorial.temas-equipo {
    --temas-ink: #171a1f;
    --temas-muted: #59636d;
    --temas-blue: #087da9;
    --temas-blue-bright: #68c7ea;
    --temas-blue-pale: #eaf6fb;
    --temas-line: #d9e3e8;

    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: var(--temas-ink);
}

.pagina-equipo-editorial.temas-equipo *,
.pagina-equipo-editorial.temas-equipo *::before,
.pagina-equipo-editorial.temas-equipo *::after {
    box-sizing: border-box;
}

/* Corrige la justificacion global que tenia la version anterior de la pagina. */
.pagina-equipo-editorial.temas-equipo p {
    margin-top: 0;
    text-align: left !important;
    text-justify: auto;
}

.temas-equipo__intro {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    padding: clamp(24px, 5vw, 44px);
    border-top: 5px solid var(--temas-blue-bright);
    background:
        linear-gradient(115deg, rgba(104, 199, 234, 0.2), rgba(234, 246, 251, 0.55) 48%, #ffffff 100%);
}

.temas-equipo__intro::after {
    position: absolute;
    right: -45px;
    bottom: -72px;
    width: 190px;
    height: 190px;
    border: 28px solid rgba(104, 199, 234, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.temas-equipo__kicker,
.temas-equipo__eyebrow {
    margin-bottom: 8px !important;
    color: var(--temas-blue);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.temas-equipo__lead {
    position: relative;
    z-index: 1;
    max-width: 710px;
    margin-bottom: 18px !important;
    color: var(--temas-ink);
    font-size: clamp(1.04rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.temas-equipo__issn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    color: var(--temas-muted);
    font-size: 0.9rem;
    letter-spacing: 0.035em;
}

.temas-equipo__issn span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--temas-ink);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.temas-equipo__director {
    display: grid;
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: center;
    margin-bottom: 52px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--temas-line);
    border-left: 7px solid var(--temas-blue-bright);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 39, 49, 0.07);
}

.temas-equipo__label {
    color: var(--temas-blue);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.temas-equipo__director h2,
.temas-equipo__section-heading h2 {
    margin: 0;
    color: var(--temas-ink);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.temas-equipo__director h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.temas-equipo__person {
    margin-bottom: 4px !important;
    color: var(--temas-ink);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.temas-equipo__person--large {
    margin-bottom: 4px !important;
    font-size: clamp(1.18rem, 2.4vw, 1.45rem);
}

.temas-equipo__institution {
    margin-bottom: 0 !important;
    color: var(--temas-muted);
    line-height: 1.55;
}

.temas-equipo__section {
    margin-bottom: 54px;
}

.temas-equipo__section--tinted {
    padding: clamp(26px, 4vw, 40px);
    border-top: 1px solid #ccebf6;
    border-bottom: 1px solid #ccebf6;
    background: var(--temas-blue-pale);
}

.temas-equipo__section-heading {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--temas-line);
}

.temas-equipo__section-heading .temas-equipo__eyebrow {
    margin-bottom: 2px !important;
}

.temas-equipo__section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.temas-equipo__grid {
    display: grid;
    gap: 16px;
}

.temas-equipo__grid--members,
.temas-equipo__grid--roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.temas-equipo__grid--authorities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.temas-equipo__member,
.temas-equipo__role,
.temas-equipo__authority {
    min-width: 0;
}

.temas-equipo__member {
    padding: 20px 20px 18px;
    border: 1px solid var(--temas-line);
    border-left: 4px solid var(--temas-blue-bright);
    background: #ffffff;
}

.temas-equipo__member h3,
.temas-equipo__role h3,
.temas-equipo__authority h3 {
    margin: 0;
    font-family: inherit;
}

.temas-equipo__member h3 {
    margin-bottom: 9px;
    color: var(--temas-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.38;
}

.temas-equipo__member p {
    margin-bottom: 3px !important;
    color: var(--temas-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.temas-equipo__role {
    padding: 21px;
    border: 1px solid rgba(8, 125, 169, 0.2);
    background: rgba(255, 255, 255, 0.86);
}

.temas-equipo__role h3 {
    margin-bottom: 12px;
    color: var(--temas-blue);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.temas-equipo__role .temas-equipo__person:last-child {
    margin-bottom: 0 !important;
}

.temas-equipo__authority {
    padding: 18px 0 17px;
    border-top: 3px solid var(--temas-ink);
}

.temas-equipo__authority h3 {
    margin-bottom: 7px;
    color: var(--temas-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.45;
    text-transform: uppercase;
}

.temas-equipo__authority p {
    margin-bottom: 0 !important;
    color: var(--temas-ink);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.5;
}

@media (hover: hover) {
    .temas-equipo__member {
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .temas-equipo__member:hover {
        border-color: #b7ddea;
        box-shadow: 0 10px 24px rgba(20, 39, 49, 0.08);
        transform: translateY(-2px);
    }
}

@media screen and (max-width: 760px) {
    .temas-equipo__director,
    .temas-equipo__section-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .temas-equipo__director {
        margin-bottom: 42px;
    }

    .temas-equipo__grid--members,
    .temas-equipo__grid--roles,
    .temas-equipo__grid--authorities {
        grid-template-columns: 1fr;
    }

    .temas-equipo__section {
        margin-bottom: 42px;
    }

    .temas-equipo__authority {
        padding-bottom: 8px;
    }
}

@media print {
    .temas-equipo__intro,
    .temas-equipo__section--tinted {
        background: #ffffff !important;
    }

    .temas-equipo__member,
    .temas-equipo__director {
        break-inside: avoid;
        box-shadow: none;
    }
}
