/*
Theme Name: ASOR
Theme URI: https://www.asor.cl
Author: ASOR
Description: Tema para el Instituto Milenio ASOR. Incluye Personas, Eventos, Publicaciones y noticias mediante entradas.
Version: 1.0.0
Text Domain: asor
*/

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

html {
    scroll-behavior: smooth;
}

:root {
    /* Colores */
    --crema: #f5f5f1;
    --blanco: #ffffff;
    --celeste: #5bc0cc;
    --celeste-claro: rgba(91, 192, 204, 0.4);
    --azul-oscuro: #1a355c;
    --azul-mult: rgba(26, 53, 92, 0.3);

    /* Escala tipográfica */
    --base: 16px;
    --h1: calc(var(--base) * 3);
    --h2: calc(var(--base) * 2.5);
    --h3: calc(var(--base) * 2);
    --h4: calc(var(--base) * 1.75);
    --h5: calc(var(--base) * 1.4);
    --h6: calc(var(--base) * 1.2);
    --micro: calc(var(--base) * 0.8);

    /* Familias */
    --font-sans: 'Work Sans', system-ui, sans-serif;
    --font-serif: "Source Serif 4", 'Georgia', serif;

    /* Interlineados */
    --line-height-default: 1.3em;
    --line-height-spaced: 1.5em;
    --line-height-tight: 1em;
    --tracking-spaced: 0.05em;

    /* Botones */
    --btn-padding: 10px;
    --btn-radius: 8px;
    --btn-border: solid 1px var(--azul-oscuro);
    --btn-transition: all 0.3s ease;

    /*Tarjetas*/
    /* The widths below subtract the total horizontal gap so that
       3 (or 2) cards + gaps always exactly fill the track width. */
    --card-gap: 24px;
    --card-w-desktop: calc((100% - 2 * var(--card-gap)) / 3); /* 3 cards */
    --card-w-tablet: calc((100% - 1 * var(--card-gap)) / 2);  /* 2 cards */
    --card-w-mobile: 100%;
}

a {
    text-decoration: none;
    color: var(--azul-oscuro);
}

body {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: var(--base);
    font-weight: 400;
    line-height: 1.3em;
    font-style: normal;
    color: var(--azul-oscuro);
    background-color: var(--crema);
    text-wrap: pretty;
    font-variation-settings: 'opsz' 16;
}
h1 {
    font-family: var(--font-sans);
    font-size: var(--h1);
    font-weight: 300;
    line-height: var(--line-height-default);
}

h2 {
    font-family: var(--font-sans);
    font-size: var(--h2);
    font-weight: 300;
    line-height: var(--line-height-default);
}

h3 {
    font-family: var(--font-sans);
    font-size: var(--h3);
    font-weight: 500;
    line-height: var(--line-height-default);
}

h4 {
    font-family: var(--font-sans);
    font-size: var(--h4);
    font-weight: 500;
    line-height: var(--line-height-default);
}

h5 {
    font-family: var(--font-sans);
    font-size: var(--h5);
    font-weight: 700;
    line-height: var(--line-height-default);
}

h6 {
    font-family: var(--font-sans);
    font-size: var(--h6);
    font-weight: 600;
    line-height: var(--line-height-default);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
}

.base-source {
    font-family: var(--font-serif);
    font-size: var(--base);
    font-weight: 400;
    line-height: var(--line-height-default);
}

.h1-source {
    font-family: var(--font-serif);
    font-size: var(--h1);
    font-weight: 400;
    line-height: var(--line-height-default);
}

.h2-source {
    font-family: var(--font-serif);
    font-size: var(--h2);
    font-weight: 500;
    line-height: var(--line-height-default);
}

.h4-source {
    font-family: var(--font-serif);
    font-size: var(--h4);
    font-weight: 400;
    line-height: var(--line-height-default);
}

.micro {
    font-family: var(--font-sans);
    font-size: var(--micro);
    font-weight: 400;
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
}

.btn {
    font-family: var(--font-sans);
    font-size: var(--h6);
    font-weight: 400;
    line-height: var(--h6);
    background-color: transparent;
    color: var(--azul-oscuro);
    border: var(--btn-border);
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--btn-transition);
    align-self: flex-start;

}

.btn:hover {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    transform: translateX(20px);
}

.btn--filled {
    font-weight: 600;
    background-color: var(--crema);
}

header {
    top: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--azul-oscuro);
    width: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 99;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    display: block;
    padding: 20px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    margin-right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--crema);
    transition: color 0.3s ease;
}

.burger:hover {
    color: var(--celeste);
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.nav-open .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

header.nav-open .burger-line:nth-child(2) {
    opacity: 0;
}

header.nav-open .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo img,
.logo .custom-logo-img {
    height: auto;
    width: 400px;
    max-width: 100%;
}

nav .asor-nav-list {
    display: flex;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 400;
    justify-content: space-around;
    font-size: var(--base);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
    align-self: center;
}

nav .asor-nav-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .asor-nav-list a {
    color: var(--celeste);
    transition: all 500ms ease;
}

nav .asor-nav-list a:hover {
    color: var(--crema);
}

hr {
    border: 0;
    height: 0.5px;
    background-color: var(--crema);
}

.hr-azul {
    border: 0;
    height: 0.5px;
    background-color: var(--azul-oscuro);
}

nav {
    display: flex;
    width: 100%;
    font-weight: 400;
    justify-content: space-around;
    font-size: var(--base);
    text-transform: uppercase;
    padding: 10px 20%;
    letter-spacing: var(--tracking-spaced);
    align-self: center;
}

nav a {
    color: var(--celeste);
    transition: all 500ms ease;
}

nav a:hover {
    color: var(--crema)
}

 section {
    padding: 40px;
 }
 

 #hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100svh;   /* or height: 100vh; */
    background-color: var(--celeste);
    padding-top: 204px;
    top: 0;
 }

#hero-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10svh;
}

 #hero-text {
    width: 50vw;
    font-size: 2.5em;
 }


 #hero-text span {
    text-transform: uppercase;
 }

#hero-btn {
    margin-top: auto;
    align-self: flex-start;
}

 #hero-btn span {
    vertical-align: -2px;
}

#hero-svg img{
    display: block;
    width: 200px;
    height: auto;
    padding-right: 40px;
}

  /* ─── Carousel Wrapper ───────────────────────────── */
  .carousel-section {
    width: 100%;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--card-gap);
    cursor: pointer;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  /* ─── Cards ──────────────────────────────────────── */
  .card {
    flex: 0 0 var(--card-w-desktop);
    min-width: var(--card-w-desktop);
    scroll-snap-align: start;
    background: var(--celeste-claro);
    border: 1px solid var(--azul-oscuro);
    padding: 3rem 2.5rem 3.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
  }


  .card:hover {
    background: var(--celeste);
  }

  .card:hover::before {
    transform: scaleX(1);
  }

  .card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--azul-oscuro);
  }

  .card-body {
    font-size: 0.8rem;
    line-height: var(--line-height-spaced);
    color: var(--azul-oscuro);
    flex-grow: 1;
  }

  .card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    background: rgba(26, 53, 92, 0.08);
  }

  .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .carousel-empty {
    padding: 2rem 0;
    font-size: var(--micro);
  }
 
.section-title {
    text-transform: uppercase;
    font-weight: 600;
}

/* ─── Carousel header / arrows ───────────────────────── */

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--azul-oscuro);
    background-color: transparent;
    color: var(--azul-oscuro);
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
    background-color: var(--azul-oscuro);
    color: var(--crema);
}


.fecha-tarjeta-noticias {
    display: flex;
    flex-direction: row;    
    align-items: center;
    flex: 1;
    gap: 12px;
}

.fecha-tarjeta-noticias .line-container {
    flex: 1;
    height: 2;
    background: var(--azul-oscuro);
}

#lista-eventos {
    display: flex;
    flex-direction: column;
}

#eventos .section-title {
    margin-bottom: 1rem;
}

.evento-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid var(--azul-oscuro);
    flex: 1;
    gap: 2rem;
}

.evento-card:last-child {
    border-bottom: none;

}

.evento-card:hover {
    background-color: var(--celeste-claro)
}

.evento-img {
    flex: 2;
    background-color: var(--azul-oscuro);
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}

.evento-img.has-image {
    background-color: transparent;
}

.evento-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evento-txt {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 3;
}

.tit-evento-card {
    font-family: var(--font-serif);
    font-weight: 400;
}

.btn--micro {
    font-size: var(--micro);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
    padding: 6px;
    color: var(--crema);
    background-color: var(--azul-oscuro);
}

.btn--micro:hover {
    color: var(--azul-oscuro);
    background-color: var(--crema);
    transform: translateX(0);
}

.data-evento-card {
    font-size: var(--h6);
}

.evento-link {
    width: auto;
}

.evento-txt .evento-link a {
    font-size: var(--h6);
    text-transform: uppercase;
    width: auto;
    position: relative;
}



.evento-txt a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--azul-oscuro);
    transition: width 300ms ease-in;
}


.evento-card:hover .evento-txt a::after {
    width: 100%;
}

footer {
    display: flex;
    flex-direction: column;
    background-color: var(--celeste);
    padding: 20px 40px;
    border-top: 1px solid var(--azul-oscuro);
}

.footer-l1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer-logo img {
    max-width: 40vw;
}

.footer-l2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.footer-l3 {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid var(--azul-oscuro);
}

.footer-l3 img {
    max-height: 40px;
}

.footer-l3 img:nth-child(4) {
    max-height: 35px;
}

.footer-l3 img:nth-child(2) {
    max-height: 45px;
}

#investigacion,
#acerca-de,
#personas,
#single-noticia,
#blog-index,
.asor-page-section {
    padding: 204px 60px 60px 60px;
}

.tit-seccion {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--azul-oscuro);
}

#investigacion span {
    font-weight:600;
    text-transform: uppercase;
}



.linea-card {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    justify-content: center;
    padding: 2rem;
    border-bottom: 1px solid var(--azul-oscuro);
    gap: 10vw;
    width: 100%;
}

.linea-img{
    max-width: 150px;
}

.linea-txt {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.linea-card:last-child {
    border-bottom: none;
}

#publicaciones {
    padding: 60px;
}

.pub-card {
    display: flex;
    flex: 1;
    border-bottom: 1px solid var(--azul-oscuro);
    padding-top: 30px;
}

.pub-card:last-child {
    border-bottom: none;
}

.pub-title {
    flex: 2;
    font-size: var(--h4);
    font-weight:500
}

.pub-txt {
    display:flex;
    flex-direction: column;
    gap: 5px;
    flex: 3;
    align-self: baseline;
    transition: all 300ms ease-in-out;
}

.pub-txt a:hover {
    font-weight: 600;
    text-decoration: underline;
}

.pub-txt a {
    padding-bottom: 20px;
}

/* Tablet */

@media (max-width: 1024px) { 
    nav {
        padding: 10px 12%;
    }
    .card {
        flex: 0 0 var(--card-w-tablet);
        min-width: var(--card-w-tablet);
      }

    section {
        padding: 32px 24px;
    }

    #hero {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        padding-top: 200px;
    }

    #hero-text {
        width: 60%;
        font-size: 3.5vw;
    }

    .footer-l2 span {
        font-size: var(--micro);
    }
    
    .footer-l3 img {
        max-height: 30px;
    }
        
    .footer-l3 img:nth-child(4) {
        max-height: 25px;
    }

    .footer-l3 img:nth-child(2) {
        max-height: 32px;
    }

 }


/* Mobile */

@media (max-width: 860px) { 
    .header-top {
        justify-content: space-between;
    }

    .burger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-top: 1px solid rgba(245, 245, 241, 0.2);
    }

    nav a {
        padding: 12px 0;
        font-size: var(--h6);
    }

    header.nav-open nav {
        display: flex;
    }

    header {
        position: static;
    }
    .card {
        flex: 0 0 var(--card-w-mobile);
        min-width: var(--card-w-mobile);
      }
  

    section {
        padding: 24px 20px;
    }

    .logo img {
        width: 260px;
    }

    .evento-card {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .evento-img {
        width: 100%;
    }

    .footer-l1 {
        flex-direction: column;
        align-items: start;
        gap: 20px;

    }


    .footer-l3 {
        flex-wrap: wrap;
        padding: 24px 0 0 0;
        gap: 16px;
        justify-content: space-between;
        align-items:baseline;
    }


    #footer-logo img {
        max-width: 80vw;
    }

    #hero-svg img {
        display:none;
    }

    #hero-text {
        width: 80%;
        font-size: 6.1vw;
    }

    #hero {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-top: 80px;
        padding-bottom: 0;
    }

 }


/* ─── About page responsive tweaks ───────────────────── */

@media (max-width: 1024px) {
    #investigacion,
    #publicaciones,
    #acerca-de,
    #personas,
    #single-noticia,
    #blog-index,
    .asor-page-section {
        padding: 200px 24px 40px;
    }

    .linea-card {
        padding: 1.5rem 0;
        gap: 5vw;
    }
}

@media (max-width: 860px) {
    #investigacion,
    #publicaciones,
    #acerca-de,
    #personas,
    #single-noticia,
    #blog-index,
    .asor-page-section {
        padding: 60px 24px 40px;
    }
}

@media (max-width: 768px) {
    #investigacion,
    #publicaciones,
    #acerca-de,
    #personas,
    #single-noticia,
    #blog-index,
    .asor-page-section {
        padding: 60px 24px 32px;
    }

    .linea-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .linea-img {
        max-width: 120px;
    }

    .pub-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pub-title {
        margin-bottom: 0.5rem;
    }

    .pub-txt a {
        padding-bottom: 12px;
        font-size: var(--micro);
    }
}

/* ─── Acerca de page layout ─────────────────────────── */


.acerca-card {
    display: flex;
    flex-direction: row; /* image on the left, text on the right */
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--azul-oscuro);
}

.acerca-txt {
    flex: 3;
    max-width: 700px;
}

.acerca-img-1 {
    flex: 2;
    max-width: 460px;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--azul-oscuro);
}

/* Invisible placeholder image to match first card's text width */
.acerca-img-ghost {
    visibility: hidden;
}

#cuatro-lineas {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--azul-oscuro);
}

.linea-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    width: 40vw;
}

.linea-wrapper span {
    font-weight: 500;
    text-transform: uppercase;
    font-size: var(--micro);
}

.acerca-img {
    max-width: 90px;
}

#acerca-2 {
    padding: 2.5rem 0;
}

.acerca-card:last-child {
    border-bottom: 0;
}

@media (max-width: 1024px) {
    .acerca-card {
        gap: 1.5rem;
    }
}

@media (max-width: 860px) {
    .acerca-card {
        flex-direction: column;
        padding: 1.5rem 0;
    }

    .acerca-img-1 {
        max-width: 100%;
    }
    .acerca-img {
        max-width: 120px;
    }

    #cuatro-lineas {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .linea-wrapper {
        align-items: center;
        text-align: left;
        width: 48%;
        padding-top: 40px;
    }


}

@media (max-width: 768px) {
    #cuatro-lineas {
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .linea-wrapper {
        width: 100%;
        padding-top: 20px;

    }

    .acerca-img {
        max-width: 80px;
    }


    .acerca-txt {
        max-width: 100%;
    }

    /* On small screens we don't need the ghost block spacing */
    .acerca-img-ghost {
        display: none;
    }
}

@media (max-width: 400px) {
    #cuatro-lineas {
        align-items: center;
        flex-wrap: wrap;
    }

    .acerca-img {
        max-width: 120px;
    }

}

/* ═══════════════════════════════════════════════════
   PERSONAS (panel + grid)
   ═══════════════════════════════════════════════════ */

#socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#socials a img {
    display: block;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--card-gap);
    row-gap: var(--card-gap);
    margin-top: 1.5rem;
}

.persona-card {
    border: 1px solid var(--azul-oscuro);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.35s ease;
}

.persona-card:hover {
    background-color: var(--celeste-claro);
}

.persona-card[data-no-panel] {
    cursor: default;
}

.persona-card[data-no-panel]:hover {
    background-color: transparent;
}

.persona-card.is-active {
    background-color: var(--celeste-claro);
}

.persona-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: rgba(26, 53, 92, 0.12);
}

.persona-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.45s ease;
}

.persona-img-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--celeste-claro);
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.persona-card:hover .persona-img,
.persona-card.is-active .persona-img {
    filter: grayscale(0%);
}

.persona-card:hover .persona-img-overlay,
.persona-card.is-active .persona-img-overlay {
    opacity: 0;
}

.persona-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.persona-name {
    font-family: var(--font-sans);
    font-size: var(--h5);
    font-weight: 700;
    line-height: var(--line-height-default);
}

.persona-short {
    font-size: var(--micro);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: var(--tracking-spaced);
    line-height: var(--line-height-spaced);
    opacity: 0.75;
}

.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.persona-tag {
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.persona-tag:hover {
    transform: none;
}

.persona-panel-data {
    display: none;
}

.persona-panel {
    grid-column: 1 / -1;
    border: 1px solid var(--azul-oscuro);
    border-radius: 8px;
    background-color: var(--celeste-claro);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.25s ease;
}

.persona-panel.is-open {
    max-height: 900px;
    opacity: 1;
    pointer-events: auto;
}

.persona-panel .persona-bio {
    white-space: pre-line;
}

.persona-panel-inner {
    padding: 2.5rem 5rem 2.5rem 2.5rem;
    display: flex;
    gap: 3rem;
    position: relative;
    align-items: flex-start;
}

.persona-panel .persona-bio {
    font-size: var(--base);
    line-height: var(--line-height-spaced);
    flex: 0 0 45%;
    max-width: 45%;
}

.persona-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.persona-orcid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--base);
    flex-wrap: wrap;
}

.persona-orcid svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.persona-orcid strong {
    font-size: var(--micro);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
}

.persona-centros {
    font-size: var(--base);
}

.persona-centros strong {
    font-size: var(--micro);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
    display: block;
    margin-bottom: 0.3rem;
}

.persona-centros a {
    display: inline;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.persona-centros .panel-centros-list a {
    display: inline;
}

.persona-centros .panel-centros-list a + a::before {
    content: ', ';
}

.persona-email-block {
    font-size: var(--base);
}

.persona-email-block .persona-email-label {
    font-size: var(--micro);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
}

.persona-email-block .panel-email-link {
    display: inline;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.panel-pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
    text-transform: uppercase;
    color: var(--azul-oscuro);
    text-decoration: none;
    border-bottom: 1px solid var(--azul-oscuro);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.panel-pub-link:hover {
    opacity: 0.6;
}

.panel-pub-link svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.persona-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.persona-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--azul-oscuro);
    border-radius: 6px;
    color: var(--azul-oscuro);
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.persona-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.persona-social-link:hover {
    background-color: var(--azul-oscuro);
    color: var(--crema);
}

.persona-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 26px;
    height: 26px;
    background: none;
    border: 1px solid var(--azul-oscuro);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-oscuro);
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.persona-close:hover {
    background-color: var(--azul-oscuro);
    color: var(--crema);
}

.persona-close svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (max-width: 1280px) {
    .personas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .personas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .persona-panel-inner {
        gap: 2rem;
        padding: 2rem 4.5rem 2rem 2rem;
    }

    .persona-panel .persona-bio {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

@media (max-width: 860px) {
    .personas-grid {
        grid-template-columns: 1fr;
    }

    .persona-panel-inner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 3.5rem 1.5rem 1.75rem;
        font-size: var(--micro);
        line-height: var(--line-height-spaced);
    }
    

    .persona-panel .persona-bio {
        flex: unset;
        max-width: 100%;
    }

    .persona-panel.is-open {
        max-height: 1000px;
    }
}

@media (max-width: 500px) {

    .persona-panel.is-open {
        max-height: 1400px;
    }
}

@media (max-width: 400px) {


    .persona-panel .persona-bio {
        font-size: var(--micro);
        line-height: var(--line-height-spaced);
    }
}

/* —— Publicaciones: filtros y entradas —— */

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.pub-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: var(--micro);
    text-transform: uppercase;
    letter-spacing: var(--tracking-spaced);
}

.pub-filter-label select {
    font-family: var(--font-sans);
    font-size: var(--base);
    color: var(--azul-oscuro);
    border: 1px solid var(--azul-oscuro);
    border-radius: var(--btn-radius);
    padding: 8px 12px;
    background: var(--crema);
    min-width: 12rem;
}

.pub-filter-reset {
    align-self: flex-end;
}

.pub-filter-reset:hover {
    transform: none;
}

.pub-year-block .pub-year-heading {
    margin-top: 0.75rem;
}

a.pub-entry {
    display: block;
}

.pub-empty {
    padding: 1rem 0 2rem;
}

/* — Contenido de páginas (editor) — */

.asor-entry-content {
    max-width: 900px;
    font-size: var(--base);
    line-height: var(--line-height-spaced);
}

.asor-entry-content p {
    margin-bottom: 1em;
}

.asor-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.asor-entry-content .wp-block-image {
    margin: 1.5rem 0;
}

.asor-investigacion-intro {
    margin-bottom: 1rem;
}

.noticia-single .noticia-date {
    margin-top: 0.4rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.noticia-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}

.noticia-content {
    flex: 3;
    max-width: 700px;
}

.noticia-featured {
    flex: 2;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.noticia-featured img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .noticia-layout {
        flex-direction: column;
    }

    .noticia-featured {
        order: -1;
        max-width: 100%;
        position: static;
    }
}

.blog-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-index-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--celeste-claro);
}

@media (max-width: 860px) {
    nav .asor-nav-list {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    nav .asor-nav-list a {
        padding: 12px 0;
        font-size: var(--h6);
    }

    .logo img,
    .logo .custom-logo-img {
        width: 260px;
    }
}




