/* ========================================
   PORTFOLIO SLIDER (SPLIDE)
   Respeta variables globales Healthcare
   ======================================== */

/* ---------- CONTENEDOR GENERAL ---------- */
:root {
    --size-arrow:54.219px;
}

.portfolio-section {
    position: relative;
    width: 100%;
}

/* ---------- SPLIDE ---------- */

.portfolio-splide .splide__track {
    overflow: hidden;
}

.portfolio-splide .splide__list {
    align-items: stretch;
}

.portfolio-splide .splide__slide {
    width: 100%;
    flex-shrink: 0;
}

.portfolio-splide .splide__slide {
    display: flex;
    justify-content: center;
}

/* Flechas portfolio = flechas approach */

.portfolio-splide .splide__arrow {
    width: var(--size-arrow);
    height: var(--size-arrow);
    border: none;
    border-radius: 100%;
    background: var(--primary-05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-splide .splide__arrow::before {
    content: "";
    width: 60%;
    height: 60%;
    inset: 0;
    background-image: url(../images/flecha_blanca.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    
}

.portfolio-splide .splide__arrow--prev::before {
    transform: rotate(180deg);
}

.portfolio-splide .splide__arrow svg {
    display: none;
}

/* Dots */
.portfolio-splide .splide__pagination {
    position: relative;
    margin-top: var(--padding-int);
    bottom: 0;
}

.portfolio-splide .splide__pagination__page {
    width: 13px;
    height: 13px;
    background-color: var(--primary-05);
    opacity: 1;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.portfolio-splide .splide__pagination__page.is-active {
    background-color: var(--primary);
    width: 36px;
    transform: scale(1);
    border-radius: 50px;
}

/* ---------- CARD ---------- */

.portfolio-card {
    display: flex;
    width: 100%;
    background-color: var(--fondo);
    border-radius: 15px;
    overflow: hidden;
    padding: 0;;
}

/* ---------- IMAGEN ---------- */

.portfolio-image {
    width: 45%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

/* ---------- CONTENIDO ---------- */

.portfolio-content {
    width: 55%;
    padding: var(--margin-section);
    padding-right:calc(var(--size-arrow) + var(--margin-section));
    display: flex;
    flex-direction: column;
}

/* Título */
.portfolio-content .title-card {
    color: var(--primary);
    font-family: 'Lora';
    font-size: var(--size-30);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.381px;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* País */
p.portfolio-country {
    color: var(--text-color);
    font-family: Inter;
    font-size: var(--size-24);
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.381px;
    
}

/* Descripción */
.portfolio-content .text-body,
.portfolio-content .text-body p,
.portfolio-asset .text-small{
    color: var(--text-color);
    font-family: Inter;
    font-size: var(--size-18);
    font-style: normal;
    font-weight: 400;
}

.portfolio-content .text-body, .portfolio-asset {
    padding-top: var(--padding-int);
}

/* Footer card */
.footer-card {
    margin-top: auto;
    margin-bottom: 0;
}

/* ---------- ASSET TYPE ---------- */


.portfolio-asset .text-label {
    display: block;
    color: var(--primary);
    font-family: Lora;
    font-size: var(--size-18);
    font-style: normal;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: -0.381px;
}

/* ---------- META (BEDS / COVERAGE / SERVICES) ---------- */

.portfolio-meta {
    display: flex;
    gap: var(--padding-int);
    margin-top: var(--padding-int);
    margin-bottom: var(--padding-int);
}

.portfolio-meta > .meta-block {
    flex: 1;
}

/* 20% */
.portfolio-meta > .meta-block:nth-child(1) {
    flex: 2;
}

/* 40% */
.portfolio-meta > .meta-block:nth-child(2) {
    flex: 4;
}

/* 40% */
.portfolio-meta > .meta-block:nth-child(3) {
    flex: 4;
}

/* Bloque base */
.meta-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label superior */
.meta-label {
    color: var(--primary);
    font-family: Lora;
    font-size: var(--size-16);
    font-style: normal;
    font-weight: 400;
    text-transform: capitalize;
    padding-bottom: var(--padding-small);
    border-bottom: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--padding-small);
}

.beds-label::before {
    content: "";
    background-image: url(../images/bed.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.coverage-label::before {
    content: "";
    background-image: url(../images/coverageratio.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.meta-text {
        color: var(--text-color);
    font-family: Inter;
    font-size: var(--size-13);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.334px;
    text-transform: capitalize;
}

/* ---------- CTA ---------- */

.portfolio-content .btn-secondary.et_pb_button {
    margin-top: auto;
    width: 100%;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {

    .portfolio-content .text-body, .portfolio-content .portfolio-meta{
        display: none;
    }

    .portfolio-image {
        width: 100%;
        position: relative;
    }

    .portfolio-asset {
        display: none;
    }

    .portfolio-image::after {
        content: '';
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: block;
        opacity: 0.6;
        background: linear-gradient(235deg, rgba(81, 142, 170, 0.00) 17.39%, rgba(81, 142, 170, 0.60) 56.66%), url(<path-to-image>) lightgray 50% / cover no-repeat;;
    }


    .portfolio-content{
        position: absolute;
        width: calc(100% - (66px + 2 * var(--margin-section)));
        height: 100%;
        top: 0;
        left: calc(33px + var(--margin-section));
        right: calc(33px + var(--margin-section));
        justify-content: center;
        
    }

    .portfolio-content .title-card, 
    p.portfolio-country{
        color: var(--blanco);
    }

    .portfolio-content .footer-card {
        margin-top:var(--padding-int);
    }

    .portfolio-splide .splide__arrow {
        width: 33px;
        height: 33px;
        background-color: var(--primary-07);
    }

    .section-cta .text-title {
        font-size: var(--size-30);
    }

    
    .title-section br {
        display: none;
    }

}