/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/



/*Add your own styles here:*/



/*FULL-WIDTH*/

#zabalera-osoa .container {
    width: 98% !important;
max-width: none !important;
}


/*RESPONSIVE BREAKPOINT PERTSONALIZATUAK*/

@media only screen and (max-width: 1500px) {

  .flex_column_table:has(.break-1500) {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .break-1500 {
    display: block !important;
    width: 48% !important;
    flex: 0 0 48% !important;
    max-width: 48% !important;
    margin: 0 1% 20px 1% !important;
  }

  .flex_column_table:has(.break-1500) .av-flex-placeholder {
    display: none !important;
  }

}

@media only screen and (max-width: 989px) {

  .break-1500 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

}


/*ELEMENTU EZKUTUAK*/

.ezkutuan {
   display: none;
}

/*MEGA MENU BARNEKO MARGENAK*/

#top #header #avia-menu .avia_mega_div ul.sub-menu > li a {
   margin-top: 10px;
}


/* BREADCRUMBS */

.title_container {
  background-color: #262626;
 }

.title_container .container {
  min-height: 30px !important;
}

span.trail-before {
display: none!important;
}

span.trail-end{
color: #d8534c;
}

.title_container .breadcrumb { 
     position:relative;
     left:-2px; 
     top: 5px;
     font-size: 14px;
}


/*OINEKO MENUA*/

.legal-menu {
   background-color: #d8534c;
}

.kontaktu-datuak {
   font-size: 18px;
   line-height: 20px;
   color: #ffffff;
}


/*ESTEKAK*/

a:hover, a:focus, a:visited, #top .av_inherit_color a {
   text-decoration: none !important;
}


/*IKONO ZERRENDA TESTU ESTILOA*/

.avia-icon-list .iconlist_title {
   text-transform: none !important;
   font-family: "open sans" !important;
   pointer-events: none;
}


/*IKONO ZERRENDA ZENTRATUA*/

.ikono-zerrenda-zentratua {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ikono-zerrenda-zentratua .avia-icon-list {
  width: auto !important;
}

.ikono-zerrenda-zentratua .av_iconlist_title a {
  white-space: nowrap !important;
}

.ikono-zerrenda-zentratua .avia-icon-list li {
  width: auto !important;
  max-width: none !important;
}

.ikono-zerrenda-zentratua .avia-icon-list {
  width: auto !important;
  display: inline-block;
}

.ikono-zerrenda-zentratua .avia-icon-list li {
  width: auto !important;
  max-width: none !important;
  display: flex;
  align-items: center;
}

.ikono-zerrenda-zentratua .avia-icon-list li article {
  overflow: visible !important;
  width: auto !important;
}

.ikono-zerrenda-zentratua .av_iconlist_title,
.ikono-zerrenda-zentratua .av_iconlist_title a {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.ikono-zerrenda-zentratua .av_iconlist_title {
  position: relative;
  z-index: 1;
}

.ikono-zerrenda-zentratua .av_iconlist_title a {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  pointer-events: auto !important;
}

/*SOCIAL ICONS ZERRENDA*/

.zerrenda-horizontala ul.avia-icon-list {
   display: flex;
   justify-content: left;
   align-items: center;
   padding: 0;
}
.zerrenda-horizontala ul.avia-icon-list li {
   float: none;
}
.zerrenda-horizontala .iconlist-char {
   font-size: 14px;
}
.zerrenda-horizontala .iconlist-timeline { 
   display: none;
}
.zerrenda-horizontala .iconlist_icon { 
   margin-right: 30px;
   height: 50px;
   width: 50px;
   line-height: 40px;
}
.zerrenda-horizontala .av-icon-char {
   font-size: 20px;
   pointer-events: none;
  }

/*OINEKO IKONOAK*/

.zerrenda-oina ul.avia-icon-list {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 0;
}
.zerrenda-oina ul.avia-icon-list li {
   float: none;
}
.zerrenda-oina .iconlist-char {
   font-size: 14px;
}
.zerrenda-oina .iconlist-timeline { 
   display: none;
}
.zerrenda-oina .iconlist_icon { 
   margin-right: 30px;
   height: 50px;
   width: 50px;
   line-height: 40px;
}
.zerrenda-oina .av-icon-char {
   font-size: 20px;
  }


/*ICON BOX IKONOA*/

.ikono-kaxa .iconbox_icon.heading-color.avia-svg-icon.avia-font-svg_wp-media-library {
   font-size: 100px !important;
   width: 100px !important;
}

.ikono-logo .iconbox_icon {
    width: 120px !important;
    height: 120px !important;
    line-height: 120px !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ikono-logo .iconbox_icon span {
    display: none;
}

.logo-1 .iconbox_icon {
    background-image: url('https://polymat.adibide.eus/site/files/2026/01/mujeresxafrica.png');
}

.logo-2 .iconbox_icon {
    background-image: url('https://polymat.adibide.eus/site/files/2026/01/emakumeak-zientzian.png');
}

.logo-3 .iconbox_icon {
    background-image: url('https://polymat.adibide.eus/site/files/2026/01/emakunde.png');
}


/*ZENBAKI ANIMATUAK*/

.avia-animated-number-title {
   font-size: 60px;
   font-weight: 600;
}
.avia-animated-number-content {
   color: #262626 !important;
}


/*TABS DISEINUA*/

.av-tab-section-tab-title-container .av-section-tab-title .av-tab-arrow-container {
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-section-tab-title .av-inner-tab-title {
  display: block;
  width: 100%;
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.av-section-tab-title .av-inner-tab-title {
    white-space: normal !important;
    word-break: break-word;
    font-size: 18px;
   }

.av-tab-section-icon {
   font-size: 40px;
   }

.av-section-tab-title {
   background: #ebebeb;
   min-width: 16%;
   }

.av-active-tab-title {
   background: #ffffff !important;
   border-width: 2px;
   border-style: solid;
   border-bottom: none;
}

.av-tab-arrow-container {
  display: none !important;
   }


/*PARTNERS ELEMENTUA*/

a.slide-image {
   background-color: #ffffff !important;
}


/* TEAM MEMBER */
.team-img-container img {
    border-radius: 100%;
}

#top .avia-team-member .team-social {
    background: transparent;
    border: none;
}

@media only screen and (max-width: 989px) {
.responsive.av-no-preview #top .avia-team-member .team-social {
    background: transparent;
    border: none;
    }}

.avia-team-member .team-member-name {
  text-align: center;
}
.avia-team-member .team-member-job-title {
  text-align: center;
}
.team-img-container img {
  width: 75% !important;
}

.avia-team-member .team-social {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 15px;
}

.avia-team-member .team-img-container:hover .team-social {
  opacity: 1 !important;
  visibility: visible !important;
}

.avia-team-member .team-social a {
  display: inline-block;
  margin: 0 6px ;
  padding: 0 !important;
  font-size: 28px;
  color: #d8534c;
  transition: color 0.3s ease;
}

.avia-team-member .team-social a:hover {
  color: #e63946;
 }

.avia-team-member .team-img-container {
  overflow: visible !important;
  padding-bottom: 20px;
  position: relative;
}

.responsive.av-no-preview .team-social a {
   border-style: none;
}

.team-member-description {
   text-align: center;
   font-size: 18px;
}


/*FLIPBOX ESTILOA*/

.avia-icongrid-flipbox .av-icon-cell-item article {
   min-height: 350px !important;
}

@media only screen and (max-width: 1500px) {

  .flipbox-pertsonalizatua.avia-icon-grid-container li.av-icon-cell-item {
    flex: 0 1 calc(50% - 1px) !important;
    flex-basis: calc(50% - 1px) !important;
  }

  .flipbox-pertsonalizatua.avia-icon-grid-container .avia-icongrid {
    gap: 2px !important;
  }

  .flipbox-pertsonalizatua.avia-icon-grid-container .avia-icongrid-flipback * {
    line-height: 1.3 !important;
  }

}

@media only screen and (max-width: 989px) {

  .flipbox-pertsonalizatua.avia-icon-grid-container li.av-icon-cell-item {
    flex: 0 1 100% !important;
    flex-basis: 100% !important;
  }

}

/*ODS TIMELINEA*/

.ods-timeline .avia-timeline .milestone_icon {
   width: 110px;
   height: 110px;
   font-size: 60px;
}

/*STICKY EDUKIA SCROLL EGITERAKOAN*/

.sticky-edukia {
    position: relative;
    will-change: transform;
}
@media (max-width: 989px) {
    .sticky-edukia {
        transform: none !important;
    }
}

/*LOGO KARRUSELA ZENTRATUTA*/

.partners-logo .slide-entry-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.partners-logo .slide-entry {
    width: 100%;
    text-align: center;
}

.partners-logo .slide-entry img {
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
}

.partners-logo .slide-entry img {
    max-width: 90%;
}

/*MASONRY LOGOAK*/

.masonry-logoak .av-masonry-entry {
    padding-bottom: 40px !important;
}

.masonry-logoak .av-masonry-container {
    margin-bottom: -40px !important;
}


/*PERSONAL FITXA*/

#top .personal-titulo {
   font-size: 34px;
   color: #d8534c !important;
}
.separadorea {
   border-color: #d8534c;
}
.separadore-grisa {
   margin: 5% 0 5% 0;
}
.perfil-profesional {
   font-size: 28px;
   font-weight: 600;
}
.puesto {
   font-size: 20px;
   font-weight: 400;
   color: #555;
   margin-top: -16px;
}
.cargo {
   font-size: 24px;
   margin-top: -20px;
   color: #d8534c;
}
.area-investigacion{
   font-weight: 600;
   margin-bottom: 40px;
}
.linea-investigacion {
   font-size: 18px;
   color: #2b2b2b;
   margin-bottom: 8%;
}
.contacto a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.personal-icono {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background-color: #ffffff;
   border: 1px solid #d8534c !important;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.personal-icono svg {
   width: 28px;
   height: 28px;
   fill: #d8534c;
   transition: transform 0.3s ease;
}
.personal-icono:hover {
   transform: scale(1.1);
}
.datos-contacto {
    display: flex;
    align-items: center;
}
.personal-argazkia {
   margin-bottom: 5%;
}
.personal-social {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background-color: #d8534c ;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   margin-right: 30px;
}
.personal-social img {
   width: 20px;
   height: 20px;
   fill: #ffffff;
   transition: transform 0.3s ease;
}
.personal-social:hover {
   transform: scale(1.2);
}

@media only screen and (max-width: 1080px) {

.responsive .flex_column.av_one_half.zutabea-personal {
    width: 100% !important;
    margin-left: 0 !important;
    float: none;
}

}


/* LICENCIAS FITXA*/


.ol-titulo {
    font-size: 34px;
    color: #d8534c !important;
}
.ol-area {
    font-size: 28px;
    font-weight: 600;
}
.ol-background {
    font-size: 18px;
    color: #2b2b2b;
    margin-bottom: 8%;
}
.ol-imagen-destacada {
    margin-bottom: 5%;
}
.ol-section__title {
    font-size: 28px;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 20px;
}
.ol-section {
    margin-bottom: 5%;
}
.ol-section__content {
    font-size: 18px;
    color: #2b2b2b;
}
.ol-list {
    list-style: disc;
    padding-left: 20px;
}
.ol-list li {
    padding: 4px 0;
}

.post-type-licencias .ol-row {
    display: flex;
    align-items: flex-start;
}

.post-type-licencias .ol-row .flex_column {
    float: none;
    flex: 1;
}

@media only screen and (max-width: 1080px) {

.responsive .flex_column.av_one_half.ol-columna-izq,
.responsive .flex_column.av_one_half.ol-columna-der {
    width: 100% !important;
    margin-left: 0 !important;
    float: none;
}

.responsive .ol-row {
    flex-direction: column;
}

}

/* LICENCIAS — Kontaktua */

.ol-contacto-wrap {
    position: relative;
    padding: 60px 0;
    margin-top: 48px;
    margin-bottom: -50px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-image: url('https://polymat.adibide.eus/site/files/2026/02/screenshot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ol-contacto-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.ol-contacto-inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.ol-contacto-titulo {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ol-contacto-separador {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 auto 28px;
}

.ol-contacto-nombre {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.ol-contacto-cargo {
    font-size: 24px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px;
}

.ol-contacto-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ol-contacto-item {
    display: flex;
    align-items: center;
}

.ol-contacto-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
}

.ol-contacto-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.ol-contacto-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background-color: #d8534c;
    color: #ffffff;
}

.ol-contacto-icono svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.ol-contacto-texto {
    font-size: 18px !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    color: #ffffff !important;
    white-space: nowrap;
    line-height: 1.2;
}

@media (hover: hover) {
    .ol-contacto-wrap {
        background-attachment: fixed;
    }
}

/* LICENCIAS flipbox elementua */
.ol-flipbox-section {
    background-color: #ffffff;
    padding: 40px 0;
    width: 100%;
}

.ol-flipbox-section .container {
    max-width: 1500px; /* ajusta al ancho de tu tema */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}



/*LICENCIAS GRID ELEMENTUA*/

/* ── Filtros ── */
.licencias-grid__filters {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.licencias-grid__filters li {
    list-style: none;
}

.licencias-grid__filter-btn {
    background: transparent;
    border: 1px solid #d8534c;
    color: #d8534c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.licencias-grid__filter-btn:hover,
.licencias-grid__filter-btn.active {
    background: #d8534c;
    color: #ffffff;
}

/* ── Grid ── */
.licencias-grid {
    display: flex;
    flex-wrap: wrap;
}

.licencias-grid__item {
    width: 33.333%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Card ── */
.licencias-grid__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #d0dde8;
    border-radius: 0px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.licencias-grid__link:hover {
    box-shadow: none;
    transform: translateY(-2px);
}

/* ── Imagen ── */
.licencias-grid__img-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.licencias-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.licencias-grid__link:hover .licencias-grid__img {
    transform: scale(1.04);
}

.licencias-grid__img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8f4fd;
}

/* ── Título ── */
.licencias-grid__caption {
    padding: 16px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.licencias-grid__title {
    color: #d8534c !important;
    margin: 2%;
}

/* ── Responsive ── */
@media only screen and (max-width: 1080px) {
    .licencias-grid__item {
        width: 100%;
    }
}



/*PERSONAS GRID ELEMENTUA*/

.personal-grid {
    display: flex;
    flex-wrap: wrap;
}

.personal-grid__item {
    width: 20%;
    padding: 1px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.personal-grid__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: none;
    overflow: hidden;
}

.personal-grid__link:hover {
    transform: none;
    box-shadow: none;
}

.personal-grid__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

.personal-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.personal-grid__img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8f4fd;
}

.personal-grid__caption {
    padding: 16px;
    margin-bottom: 25px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.personal-grid__title {
    font-size: 24px !important;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #d8534c !important;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

@media only screen and (max-width: 989px) {
    .personal-grid__item {
        width: 100%;
    }
}

@media only screen and (min-width: 989px) and (max-width: 1400px) {
    .personal-grid__item {
        width: 33.333%;
    }
}


/*PERSONAS GRID OSATUA*/

/* ── Toolbar: una sola línea en escritorio ── */
.pgo-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
}

/* ── Selects ── */
.pgo-select-wrap {
    flex: 1 1 0;
    min-width: 0;
}
.pgo-select-wrap select {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid #d8534c !important;
    background-color: #fff !important;
    font-size: 14px !important;
    border-radius: none !important;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color .2s;
}
.pgo-select-wrap select:focus {
    outline: none;
    border-color: #888;
}

/* ── Input de búsqueda ── */
.pgo-search-wrap {
    flex: 1.4 1 0;
    min-width: 0;
}
.pgo-search-wrap input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d8534c !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #333;
    transition: border-color .2s;
    box-sizing: border-box;
    border-radius: none !important;
}
.pgo-search-wrap input[type="text"]::placeholder {
    color: #aaa;
}
.pgo-search-wrap input[type="text"]:focus {
    outline: none;
    border-color: #888;
}

/* ── Botón ── */
.pgo-search-btn {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: stretch;
    height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: none !important;
}

#top .pgo-search-btn,
#top #wrap_all .pgo-search-btn {
    border-radius: 0 !important;
    margin-top: 0 !important;
    border: 1px solid #d8534c !important;
}

/* ── Hover del botón ── */
.pgo-search-btn:hover,
.pgo-search-btn:focus {
    background-color: #ffffff !important;
    color: #d8534c !important;
    border-color: #d8534c !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Contador ── */
.pgo-counter {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666;
}
.pgo-counter__num {
    font-weight: 700;
    color: #333;
}

/* ── Fade de los ítems al filtrar ── */
.pgo-item {
    transition: opacity .5s ease;
}
.pgo-item.pgo-hidden {
    display: none;
    opacity: 0;
}
.pgo-item.pgo-fade-in {
    animation: pgFadeIn .5s ease forwards;
}
@keyframes pgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Breakpoint 1400px ── */
@media (max-width: 1400px) {
    .pgo-toolbar {
        flex-wrap: wrap;
    }
    .pgo-select-wrap,
    .pgo-search-wrap {
        flex: 1 1 calc(50% - 6px);
    }
    .pgo-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Breakpoint 990px ── */
@media (max-width: 990px) {
    .pgo-select-wrap,
    .pgo-search-wrap {
        flex: 1 1 100%;
    }
    .pgo-search-btn {
        width: 100%;
    }
}




/*TESIS GRID ELEMENTUA*/

.tesis-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tesis-grid__item {
    width: 33.333%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Ficha ── */
.tesis-grid__ficha {
    background: #ffffff;
    border: 1px solid #d0dde8;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 24px 20px;
    box-sizing: border-box;
}

/* ── Título ── */
.tesis-grid__titulo {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #2b2b2b;
    margin: 0 0 20px;
    white-space: normal;
    word-break: break-word;
}

/* ── Imagen ── */
.tesis-grid__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.tesis-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tesis-grid__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8f4fd;
}

/* ── Autor ── */
.tesis-grid__autor {
    font-size: 30px;
    font-weight: 700;
    color: #d8534c;
    margin: 0 0 10px;
}

/* ── Supervisión ── */
.tesis-grid__supervision {
    font-size: 20px;
    color: #2b2b2b;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0dde8;
}

/* ── Datos con icono ── */
.tesis-grid__datos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.tesis-grid__dato {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #2b2b2b;
}

.tesis-grid__icono {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #d8534c;
}

.tesis-grid__dato a {
    color: #2b2b2b;
    text-decoration: underline;
}

.tesis-grid__dato a:hover {
    color: #d8534c;
}

/* ── Responsive ── */
@media only screen and (max-width: 989px) {
    .tesis-grid__item {
        width: 100%;
    }
}

@media only screen and (min-width: 990px) and (max-width: 1450px) {
    .tesis-grid__item {
        width: 50%;
    }
}



/* SINGLE Actualidad */


/* ── SINGLE: Categorías ───────────────────────────────────── */

.act-categorias {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
}

.act-categoria {
    color: #d8534c;
    text-decoration: none;
    transition: color .2s;
}

.act-categoria:hover {
    color: #b03a35;
    text-decoration: none !important;
}

.act-sep {
    color: #999;
    margin: 0 4px;
}

/* ── SINGLE: Título ────────────────────────────────────── */

.act-titulo {
    font-size: 34px;
    text-align: center;
    color: #d8534c !important;
    margin-bottom: 6%;
}

/* ── SINGLE: Subtítulo ────────────────────────────────────── */

.act-subtitulo {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0 !important;
    margin: 10px 0 16px;
    color: #444;
    line-height: 1.45;
    text-align: center;
    margin-bottom: 4%;
}


/* ── SINGLE: Barra de compartir ───────────────────────────── */

ul.act-share-bar {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.act-share-bar li {
    margin: 0;
    padding: 0;
}

.act-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 0;
    text-decoration: none !important;
    transition: color .2s;
    white-space: nowrap;
    cursor: pointer;
}

.act-share-link:hover,
.act-share-link:focus {
    background: transparent;
    color: #d8534c;
    text-decoration: none !important;
}

.act-share-svg {
    flex-shrink: 0;
    fill: #000;
    transition: fill .2s;
    width: 14px;
    height: 14px;
}

.act-share-link:hover .act-share-svg,
.act-share-link:focus .act-share-svg {
    fill: #d8534c;
}

ul.act-share-bar--bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}


/* ── SINGLE: Imagen destacada ─────────────────────────────── */

.act-imagen-destacada {
    margin: 20px 0 0;
    text-align: center;
    line-height: 0;
    margin-top: 2%;
    margin-bottom: 3%;
}

.act-img-destacada {
    max-width: 100%;
    height: auto;
    display: inline-block;
}


/* ── SINGLE: Fecha ────────────────────────────────────────── */

.act-fecha {
    margin: 14px 0 20px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}


/* ── SINGLE: Contenido WYSIWYG ────────────────────────────── */

.act-contenido {
    margin-bottom: 80px;
    font-size: 20px;
    line-height: 1.5;
    text-align: justify;
}


/* ── SINGLE: Galería ──────────────────────────────────────── */

.act-galeria-wrap {
    position: relative;
    padding: 60px 0;
    margin-top: 48px;
    margin-bottom: -50px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #f2f2f2;
    background-size: cover;
}

.act-galeria-inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.act-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 32px;
}

.act-galeria__item {
    width: calc(20% - 4px);
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}

.act-galeria__link {
    display: block;
    width: 100%;
    height: 100%;
}

.act-galeria__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.act-galeria__item:hover .act-galeria__img {
    transform: scale(1.04);
}

@media only screen and (max-width: 1400px) {
    .act-galeria__item {
        width: calc(33.333% - 4px);
    }
}

@media only screen and (max-width: 989px) {
    .act-galeria__item {
        width: calc(50% - 4px);
    }
}


/* ── SINGLE: Botón PDF ────────────────────────────────────── */

.act-pdf-wrap {
    margin-top: 6%;
    margin-bottom: 32px;
    text-align: center;
}

.act-pdf-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.act-pdf-icono {
    flex-shrink: 0;
}

/* ── Enlace externo ─────────────────── */

.act-enlace-externo {
    text-align: center;
    margin: 1.5rem 0;
}

.act-enlace-externo__link {
    display: inline-flex;
    position: relative;
}

/* Tooltip */
.act-enlace-externo__link::after {
    content: "Enlace externo";
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #2b2b2b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.act-enlace-externo__link:hover::after {
    opacity: 1;
}


/* ============================================================
   GRIDS COMPARTIDOS
   ============================================================ */

.act-grid {
    width: 100%;
}

/* ── Grid handia: 3 columnas ─────────────────────────────── */

.act-grid--handia {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -8px;
}

/* ── Fila de 3 columnas ──────────────────────────────────── */

.act-grid__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -8px;
}

.act-grid__item {
    box-sizing: border-box;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.act-grid__item--col3 {
    width: 33.333%;
}

@media only screen and (max-width: 989px) {
    .act-grid__item--col3 {
        width: 100%;
    }
}

@media only screen and (min-width: 790px) and (max-width: 1199px) {
    .act-grid__item--col3 {
        width: 50%;
    }
}

/* ── Paginado ──────────────────────────────────── */

.act-grid__pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.act-page-btn {
    min-width: 2.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.act-page-btn.active,
.act-page-btn:hover:not(:disabled) {
    background: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
}

.act-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}


/* ── Tarjeta base ────────────────────────────────────────── */

.act-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}


/* ── Imagen de tarjeta ───────────────────────────────────── */

.act-card__img-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
}

.act-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.act-card__img-wrap:hover .act-card__img {
    transform: scale(1.04);
}

.act-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8f4fd;
}

.act-card__link {
    display: block;
    line-height: 0;
}

.act-card__img-link {
    display: block;
    line-height: 0;
}


/* ── Badge EVENTO ────────────────────────────────────────── */

.act-card__evento-badge {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2;
    background: #d8534c;
    color: #fff;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 30px;
    line-height: 1;
    pointer-events: none;
}


/* ── Cuerpo de la tarjeta ────────────────────────────────── */

.act-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}


/* ── Título de tarjeta ───────────────────────────────────── */

.act-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.act-card__title a {
    color: #2b2b2b;
    text-decoration: none !important;
    transition: color .2s;
}

.act-card__title a:hover {
    color: #d8534c;
}


/* ── Resumen ─────────────────────────────────────────────── */

.act-card__resumen {
    font-size: 18px;
    color: #000000;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.act-card__resumen--empty {
    flex: 1;
    min-height: 0;
}


/* ── Fecha ───────────────────────────────────────────────── */

.act-card__fecha {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin: 0 0 16px;
}


/* ── Botón Ver más ───────────────────────────────────────── */

.act-card__btn {
    align-self: flex-start;
    text-decoration: none !important;
    font-size: 14px !important;
}


/* ============================================================
   GRID HANDIA — Tarjeta destacada
   ============================================================ */


.act-grid__destacado {
    margin-bottom: 60px;
}

.act-card--destacado {
    flex-direction: row;
    align-items: stretch;
    border: 1px solid #d8534c !important;
}

.act-card__img-wrap--destacado {
    width: 100%;
    height: 500px;
    flex-shrink: 0;
}

.act-card__body--destacado {
    padding: 32px;
    justify-content: center;
}

.act-card__title--destacado {
    font-size: 28px;
    color: #d8534c !important;
    margin-bottom: 14px;
}

@media only screen and (max-width: 989px) {
    .act-card--destacado {
        flex-direction: column;
    }

    .act-card__img-wrap--destacado {
        width: 100%;
        height: 300px;
    }

    .act-card__body--destacado {
        padding: 20px;
    }
}


/* ============================================================
   CPT: OFERTAS DE EMPLEO
   ============================================================ */

#top .oferta-titulo {
    font-size: 34px;
    color: #d8534c !important;
}

.oferta-perfil {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
}

.oferta-deadline.contacto {
    display: flex;
    align-items: center;
    gap: 16px;
}

.oferta-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    margin-bottom: 2px;
}

.oferta-responsable {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.oferta-descripcion {
    font-size: 20px;
    line-height: 1.6;
}

.separadore-grisa-ofertas {
    max-width: 50%;
    margin: 1% 0 1% 0;
}

.linea-investigacion-simple {
   font-size: 18px;
   color: #2b2b2b;
   margin-bottom: 1%;
}

@media only screen and (max-width: 1400px) {

.responsive .flex_column.av_one_third.zutabea-ofertas {
    width: 100% !important;
    margin-left: 0 !important;
    float: none;
}
.responsive .flex_column.av_two_third.zutabea-ofertas {
    width: 100% !important;
    margin-left: 0 !important;
    float: none;
}

}

@media only screen and (max-width: 767px) {

    #top .oferta-titulo {
        font-size: 26px;
    }

    .oferta-perfil {
        font-size: 22px;
    }
}

/* ============================================================
   SHORTCODE: Grid de Ofertas de Empleo [ofertas_empleo]
   ============================================================ */

.oe-grid {
    width: 100%;
}

.oe-grid__empty {
    font-style: italic;
    color: #999;
}

.oe-card {
    width: 100%;
    padding: 20px 24px;
}

.oe-card:nth-child(odd) {
    background-color: #ffffff;
}

.oe-card:nth-child(even) {
    background-color: #f2f2f2;
}


/* ── Título (ancho completo) ─────────────────────────────────── */

.oe-card__titulo-wrap {
    width: 100%;
    margin-bottom: 6px;
}

.oe-card__titulo {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #d8534c !important;
}

.oe-card__titulo a {
    color: #d8534c;
    text-decoration: none !important;
}


/* ── Área (ancho completo) ───────────────────────────────────── */

.oe-card__area-wrap {
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8534c !important;
    margin-bottom: 12px;
}

.oe-card__area {
    display: block;
    font-weight: 600;
    font-size: 18px;
}

.oe-card__linea {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.oe-card__perfil {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-top: 2px;
}


/* ── Fila de 3 columnas ──────────────────────────────────────── */

.oe-card__fila {
    display: flex;
    align-items: center;
    width: 100%;
}

.oe-card__col {
    width: 33.333%;
    box-sizing: border-box;
    padding-right: 16px;
}

.oe-card__col--btn {
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
}

.oe-card__col--deadline,
.oe-card__col--ubicacion {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #555;
}

.oe-card__icono {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 40px;
}

.oe-card__icono svg {
    fill: #d8534c;
    display: block;
}

.oe-card__maps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none !important;
    transition: color .2s;
}

.oe-card__maps-link:hover {
    color: #d8534c;
}

.oe-card__btn {
    white-space: nowrap;
}


/* ── Responsive ──────────────────────────────────────────────── */

@media only screen and (max-width: 1040px) {

    .oe-card__fila {
        flex-wrap: wrap;
    }

    .oe-card__col--deadline,
    .oe-card__col--ubicacion {
        width: 50%;
        margin-bottom: 10px;
    }

    .oe-card__col--btn {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ============================================================
   CPT: Publicaciones científicas
   ============================================================ */

/* ── Título de página ─────────────────────────────────────── */
#top .pub-titulo {
    font-size: 34px;
    color: #d8534c !important;
}

.pub-sin-resultados {
    font-size: 18px;
    color: #2b2b2b;
    margin-top: 40px;
}

/* ── Barra de filtros ─────────────────────────────────────── */
/* Hereda .pgo-toolbar para que el botón Buscar sea idéntico  */
.pub-toolbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
    position: relative;  /* contexto para los paneles absolutos */
}

/* ── Wrapper del dropdown multiselect ────────────────────── */
.pub-multiselect-wrap {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

/* ── Botón que abre el dropdown ───────────────────────────── */
.pub-multiselect-btn {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid #d8534c;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color .2s;
    /* Sin border-radius, igual que los selects del pgo */
    border-radius: 0;
}

.pub-multiselect-btn:focus {
    outline: none;
    border-color: #888;
}

.pub-multiselect-wrap--open .pub-multiselect-btn {
    border-color: #888;
}

/* Label del botón (texto dinámico) */
.pub-multiselect-label {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
}

/* Chevron */
.pub-multiselect-chevron {
    flex-shrink: 0;
    transition: transform .2s;
}

.pub-multiselect-wrap--open .pub-multiselect-chevron {
    transform: rotate(180deg);
}

/* ── Panel desplegable ────────────────────────────────────── */
.pub-multiselect-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d8534c;
    border-top: none;
    z-index: 999;
    padding: 6px 0;
}

/* Panel de autores: scrollable si hay muchos */
.pub-multiselect-panel--scrollable {
    max-height: 260px;
    overflow-y: auto;
}

/* ── Ítem checkbox ────────────────────────────────────────── */
.pub-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color .15s;
    user-select: none;
}

.pub-check-item:hover {
    background-color: #fdf0ef;
}

.pub-check-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #d8534c;
    cursor: pointer;
    margin: 0;
}

/* ── Botón Buscar ─────────────────────────────────────────── */
/* Ya hereda .pgo-search-btn; este selector solo ajusta el ancho */
.pub-search-btn {
    flex-shrink: 0;
}

/* ── Contador ─────────────────────────────────────────────── */
/* Reutiliza .pgo-counter y .pgo-counter__num íntegramente */

/* ── Lista de publicaciones ───────────────────────────────── */
.pub-lista {
    margin-top: 8px;
}

.pub-item {
    padding: 28px 0;
    border-bottom: 1px solid #e2e2e2;
}

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

/* ── Título del artículo ──────────────────────────────────── */
.pub-item__titulo {
    font-size: 18px;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* ── Autores ──────────────────────────────────────────────── */
.pub-item__autores {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-style: italic;
}

/* ── Metadatos en línea: revista · vol · DOI · año ───────── */
.pub-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

/* Separador · entre fragmentos */
.pub-item__meta > span + span::before {
    content: "·";
    margin: 0 8px;
    color: #ccc;
}

.pub-meta__revista {
    color: #555;
    font-weight: 500;
}

.pub-meta__doi {
    font-family: monospace;
    font-size: 13px;
    color: #aaa;
}

.pub-meta__anio {
    font-weight: 700;
    color: #d8534c;
}

/* ── Botones de enlace ────────────────────────────────────── */
.pub-item__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 0;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.pub-link--arxiv {
    background-color: transparent;
    color: #d8534c;
    border: 1px solid #d8534c;
}

.pub-link--arxiv:hover {
    background-color: #d8534c;
    color: #fff;
}

.pub-link--acceso {
    background-color: #d8534c;
    color: #fff;
    border: 1px solid #d8534c;
}

.pub-link--acceso:hover {
    background-color: #b8433c;
    border-color: #b8433c;
    color: #fff;
}

/* ── Responsive 1400px ────────────────────────────────────── */
@media (max-width: 1400px) {
    .pub-toolbar {
        flex-wrap: wrap;
    }
    .pub-multiselect-wrap {
        flex: 1 1 calc(50% - 6px);
    }
    .pub-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Responsive 990px ─────────────────────────────────────── */
@media (max-width: 990px) {
    .pub-multiselect-wrap {
        flex: 1 1 100%;
    }
    .pub-search-btn {
        width: 100%;
    }
    .pub-item__meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .pub-item__meta > span + span::before {
        display: none;
    }
}