/*
 * components.css
 *
 * Estilos modularizados para componentes reutilizables del sitio.
 * Ejemplos: botones, tarjetas, modales, formularios, listas, alerts, tooltips, etc.
 * Cada clase define estilos para elementos visuales concretos, listos para reutilización.
 */

.component.promo.shadow,
.component.horizontal.shadow,
.component.ficha.shadow
 {
    width: 100%;
    flex: 1 1 clamp(280px, 80vw, 1337px);
    min-height: 200px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    background-color: #FFFFFF;
    position: relative;
    padding: 24px;
    gap: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.component.horizontal.shadow .content-img {
    flex: 0 1 clamp(200px, 28vw, 344px);
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: stretch; 
}

.component.promo.shadow .content-img,
.component.vertical.shadow .content-img,
.component.sicav.shadow .content-img,
.img1col img,
.component.ficha.shadow .imgficha {
    flex: 0 1 clamp(200px, 28vw, 344px);
    width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.component.promo.shadow .content-img {
    max-height: none;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    align-self: stretch; 
}


.component.promo .content-img img,
.component.horizontal.shadow .content-img img,
.component.vertical.shadow .content-img img,
.component.ficha.shadow .imgficha img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.component.promo .content-img img {
    position: absolute;
    inset: 0;  
}

.component.promo.shadow .content-text,
.component.horizontal.shadow .content-text,
.component.ficha.shadow .infoficha
 {
    flex: 1 1 392px;
    min-width: 0;
    height: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items:flex-start;
    gap: 32px;
    padding: 46px 0;
}

.component.horizontal.shadow .content-text
 {
    padding: 18px 0 0 0;
    justify-content: space-between;
}

.component.ficha.shadow .infoficha h3
 {
    font-family: 'TiemposHeadline-Bold';
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0;
    color: #070E46;
    word-wrap: break-word;
    overflow-wrap:break-word;
}

.component.promo .content-text .card.buttons {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

/*Opcional. Si hay 3 botones o más cambiamos a columnas para mostrar contenido más ordenado*/
@supports selector(:has(*)) {
  .component.promo .content-text .card.buttons:has(:nth-child(n+3)) {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}


.component.promo .content-text .card.buttons a,
.component.sicav.shadow .content-text a,
.wrapper-full .banner .bannerInfo h2 a,
.component.ficha.shadow .infoficha a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 24px;
    color: #FFFFFF;
    background-color: #001391;
    padding: clamp(12px, 2.5vw, 16px) clamp(24px, 5vw, 35px);
    border-radius: 8px;
    height: 56px;
    min-width: 128px;
    flex: 0 1 auto;
}

.wrapper-full .banner .bannerInfo h2 a {
    width: 160px;
    padding: 16px 32px;
}

.component.promo .content-text .card.buttons .linkSimple {
    background-color: #F7F8F8;
    color: #001391;
}

.component.horizontal.shadow .content-text .header,
.component.delegacion.shadow .infodelegacion .contact .infocontact,
.component.vertical.shadow .content-text .header {
    display: flex;
    flex-flow: column nowrap;
    gap: 8px;
}

.component.vertical.shadow .content-text .header {
    gap: 24px;
}

.component.horizontal.shadow .content-text .links,
.component.vertical.shadow .content-text .links {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    gap: 16px;
    height: auto;
}

.component.vertical.shadow .content-text .links a,
.component.img1col a {
    color:#00288F;
}

.component.sicav.shadow,
.component.vertical.shadow,
.component.info.shadow {
    width: 100%;
    flex: 0 1 clamp(180px, 28vw, 392px);
    height: auto;
    padding: 24px;
    margin: 0;
    display: flex;
    flex-flow: column nowrap;
    align-self: stretch;
    justify-content: flex-start;
    gap: 24px;
    border-radius: 16px;
    background-color: #FFFFFF;
    background-size: cover;
}

.component.info.shadow {
  max-width: 360px;
  min-height: clamp(350px, 50vw, 408px);
}

.component.sicav.shadow .content-img,
.img1col img,
.component.info .content-img {
    flex: 0 1 clamp(200px, 28vw, 344px);
    width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.component.sicav.shadow .content-img img,
.component.info.shadow .content-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.component.sicav.shadow .content-text,
.component.vertical.shadow .content-text,
.component.info.shadow .content-text {
    width: 100%;
    height:max-content;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    flex:1;
    gap: 32px;
}
.component.info.shadow .content-text {
    gap: 16px;
    justify-content: space-between;
}

.component.sicav.shadow .content-text h4,
.component.vertical.shadow .content-text h4 {

    margin:0;
    flex:1;
    display: flex;
}

.component.vertical.shadow .content-text h4 {
    align-items: center;
}

.component.sicav.shadow .content-text a {
    max-width: 160px;
}

.component.search.custom-select.shadow {
    width: 100%;
    flex: 1 1 clamp(280px, 80vw, 860px);
    height: auto;
    margin: 0 auto;
    background-color: #FFFFFF;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 24px;
    border-radius: 16px;
}

/* Pseudo-elemento para el archivo png
En lugar de usar dos imágenes, rotamos la que tenemos */
.component.search.custom-select.shadow .select-selected::after {
    content: '';
    width: 24px;
    height: 24px;
    background: url('../../images/2025-Unfold-icon.png') no-repeat center / contain;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 160ms ease;
}

.component.search.custom-select.shadow .select-selected.select-arrow-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.component.search.custom-select.shadow .labelsearch {
    display: flex;
    align-items: center;
}

.component.search.custom-select.shadow .labelsearch label,
.component.delegacion.shadow .infodelegacion .infoadress p span,
.component.delegacion.shadow .infodelegacion .contact .infocontact p span{
    font-family:'BentonSansBBVA-Medium';
    font-size: 15px;
    line-height: 24px;
    color: #070E46;
}

.component.search.custom-select.shadow .select-selected {
    width: 100%;
    max-width: 400px;
    height: 56px;
    border-radius: 8px;
    border: solid 2px #46536D;
    padding: 8px 16px;
    background-color: #FFFFFF;
    font-family: 'BentonSansBBVA-Book';
    font-size: 15.01px;
    line-height: 24px;
    color: #070E46;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.component.search.custom-select.shadow select {
    display: none;
    pointer-events: none;
}

.component.search.custom-select.shadow .select-items.select-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: transform 160ms ease;
}

.component.search.custom-select.shadow .select-items {
    position: absolute;
    top: 90%;
    right: 24px;
    left: auto;
    width: min(400px, calc(100% - 48px));
    max-width: calc(100% - 48px);
    background: #FFFFFF;
    border: 1px solid #46536D;
    border-radius: 8px;
    padding:  16px;
    z-index: 2;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transform-origin: top center;
    transition: transform 160ms ease; 
}

.component.search.custom-select.shadow .select-items div {
    padding: 10px 16px;
    font-family: 'BentonSansBBVA-Book';
    font-size: 15px;
    color: #070E46;
    cursor: pointer;
}

.component.search.custom-select.shadow .select-items div:hover,
.component.search.custom-select.shadow .select-items div[aria-selected="true"] {
    background: #EEF2F7;
}

.component.delegacion.shadow {
    width: 100%;
    flex: 1 1 clamp(280px, 80vw, 860px);
    min-height: 200px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background-color: #FFFFFF;
    position: relative;
    padding: 24px;
    gap: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.component.delegacion.shadow .infodelegacion {
    display: flex;
    flex-flow: row nowrap;
}

.component.delegacion.shadow .infodelegacion .infoadress,
.component.delegacion.shadow .infodelegacion .contact {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-flow: column nowrap;
    gap: 8px;
}

.component.delegacion.shadow .infodelegacion .infoadress .delegaciontitle,
.component.delegacion.shadow .infodelegacion .contact .infocontact .delegaciontitle,
.wrapper table.blueTable thead tr th {
    font-family: 'BentonSansBBVA-Medium';
    font-size: 20px;
    line-height: 32px;
    color: #070E46;
    margin-bottom: 8px;
}

.component.list-blue h5,
.component.list h5,
.wrapper table.blueTable thead tr th {
    margin-bottom: 0;
}

.component.delegacion.shadow .infodelegacion .contact .infocontact p,
.component.delegacion.shadow .infodelegacion .contact .infocontact p span,
.component.delegacion.shadow .infodelegacion .contact .infocontact a,
.component.delegacion.shadow .map a {
    display: flex;
    gap:8px;
    align-items: center;
    overflow-wrap: anywhere;
    word-break: break-word;    
    min-width: 0;
}

.component.list-blue,
.component.list {
    position: relative;
    height: auto;
    padding: 24px;
    background-color: #FFFFFF;
    flex: 1 1 250px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 20px;
    border-radius: 16px;
    max-width: 376px;
}

/*Regla para centrar las listas cuando el layout sea centrado
.wrapper .area-main-centered .component.list-blue,
.wrapper .area-main-centered .component.list {
    margin: 0 auto;
}
    */

.component.double {
    max-width: 808px;
    flex: 1 1 500px;
}
.component.list-blue ul,
.component.list ul {
    display: flex;
    flex-flow: column nowrap;
    gap: 16px;
}

/*Tabla formulario operaciones sospechosas
revisar que el modelo encaje con otras tablas*/

.wrapper table.blueTable {
    width: 100%;
    flex: 0 1 auto;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    background-color: #FFFFFF;
    padding: 56px clamp(32px, 10vw, 312px);
    border-radius: 16px;
    text-align: center;
}

.wrapper table.blueTable thead tr th{
    display: block;
}

/*Añado regla para tablas con más elementos*/
.wrapper table.blueTable tbody {
    /*
    display: flex; */
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.wrapper table.blueTable tbody tr {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.wrapper table.blueTable tbody tr td a {
    display: flex;
    flex-flow: row nowrap;
    gap: 8px;
}

.wrapper table.blueTable tbody tr td {
    word-break: break-word;
}

.img1col {
    width: 100%;
    max-width: 392px;
    flex: 1 1 clamp(180px, 35vw, 310px);
    height: auto;
    padding: 24px;
    margin: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-self: stretch;
    gap: 24px;
    border-radius: 16px;
    background-color: #FFFFFF;
}

.img1col img,
.component.sicav.shadow .content-img {
    flex: 0 1 clamp(200px, 28vw, 344px);
    width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.img1col a {
    margin-top: auto;
}

.wrapper-full .banner {
    box-sizing: border-box;
    width: 1553px;
    height: 480px;
    max-width: 100%;
    background-color: #FFFFFF;
    margin: 0 auto;
    border-radius: 16px;
    min-height: 326px;
    display:flex;
    flex-flow: column;
    justify-content: space-between;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.wrapper-full .banner img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
}

.wrapper-full .banner .bannerInfo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: clamp(24px, 10.25%, calc(100% - 600px - 24px));
    width: min(600px, calc(100% - 48px));
    box-sizing: border-box;
    aspect-ratio: 600 / 248;
    height: auto;
    background-color: #FFFFFF;
    padding: 24px;
    gap: 16px;
    border-radius: 16px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

/*Regla para que no se muestre cuadro vacío si no hay contenido*/
.wrapper-full .banner .bannerInfo:not(:has(> *)) {
    display: none;
}

.wrapper-full .banner .bannerInfo h1 {
    overflow-wrap: break-word;
    text-shadow: none;
    margin: auto;
    word-break: break-word;
}

/**
======================
[PAGE] imagen_col.php
======================
 */
.component.img2cols {
    position: relative;
    display: inline-block;
    width: 752px;
    height: auto;
    min-height: 360px;
    background-position: center center;
    background-size: cover;
    float: left;
}

.component.img2cols img {
    max-width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
}

.component.img2cols h3 {
    font-family: 'BentonSansBBVA-Medium';
    font-size: 24px;
    color: #FFFFFF;
    letter-spacing: 0;
    line-height: 24px;
    position: absolute;
    bottom: 0;
    display: block;
    background-color: rgba(0, 19, 145, 0.8);
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 0px 0px 16px 16px;
    min-height: 100px;
    padding: 20px;
}

.component.img2cols h3 a {
    color: #FFFFFF;
}

.component.img2cols h3 a:hover {
    opacity: 0.8;
}

.component.img2cols.half {
    width: 556px;
}

.component.img2cols.full {
    width: calc(100% - 32px);
}

.component.img2colspubli {
    min-height: 277px;
}
/*Table accordion animation*/

table thead::after {
    content: "";
    display: block;
    height: 0;
    transition: height 0.3s ease;
}

table.open thead::after {
    height: 24px;
}

table thead th:first-child::after {
    content:url('../../images/2025-Unfold-icon.png');
    margin-left: 6px;
    transform: translateY(15%);
    display: inline-block;
    transition: transform 0.25s ease;
}

table thead.open th:first-child::after {
    transform: translateY(-10%) rotate(180deg);
}

tbody tr{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

tbody.open {
    display: flex;
}

tbody.open tr{
    max-height: 3000px;
}
tbody tr td {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

tbody.open tr td {
    opacity: 1;
    transform: translateY(0);
}

.component.blueTable thead {
    cursor: pointer;
}