﻿:root {
    --blacka5: rgba(0,0,0,0.05);
    --blacka10: rgba(0,0,0,0.10);
    --brand-900: #FF6600;
}

/* ===== Contenedor tarjeta ===== */
.tarjeta-info {
    width: 100%;
    height: calc(35vw + 1vw);
    border-radius: 1.5vw;
    background: #FFFFFF;
    box-shadow: 0px 0.3vw 0.45vw -0.15vw var(--blacka5), 0px 0.75vw 1.125vw -0.225vw var(--blacka10);
    display: grid;
    grid-template-columns: calc(50% - 0.5vw) calc(50% - 0.5vw);
    grid-template-rows: auto;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* ===== Texto (lado izquierdo) ===== */
.tarjeta-info__texto {
    width: 100%;
    height: 100%;
    padding: 0 1.5vw 0 2.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateX(-5vw);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform .8s cubic-bezier(.22,.61,.36,1) .02s, opacity .55s ease .02s;
}

.tarjeta-info.in-view .tarjeta-info__texto {
    transform: translateX(0);
    opacity: 1;
}

/* envoltura interior */
.tarjeta-info__envoltura {
    width: 100%;
    /* width: 90%; */
    display: grid;
    grid-auto-rows: max-content;
    justify-items: start;
    gap: 1vw;
    /* padding-left: 1.5vw; */
}

/* Título */
.tarjeta-info__titulo {
    width: 100%;
    max-width: 100%;
    height: auto;
    line-height: 1.5em;
    margin: 0;
    font-family: "Gotham-Black";
    font-weight: 900;
    font-size: 2.5vw;
    color: #BFBFBF;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: initial;
}

/* Bloque descripción */
.tarjeta-info__descripcion-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 1vw;
    transition: max-height .35s cubic-bezier(.22,.61,.36,1);
}

.tarjeta-info__envoltura[data-has-toggle="true"][data-mode="collapsed"] .tarjeta-info__descripcion-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 20%, #FFFFFF 100%);
}

.tarjeta-info__descripcion {
    margin: 0;
    font-family: "Gotham-Light";
    font-weight: 300;
    font-size: 1.05vw;
    color: #606060;
    text-align: justify;
}

/* Botón Leer más */
.tarjeta-info__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3vw;
    margin-top: 0.2vw;
    border: 0;
    padding: 0;
    background: transparent;
    font-family: "Gotham-Medium";
    font-weight: 350;
    font-size: 1.05vw;
    line-height: 1rem;
    color: var(--brand-900);
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.tarjeta-info__toggle-icon {
    transform: translateY(0.05vw);
    width: 1.5vw;
    height: 1.5vw;
}

.tarjeta-info__toggle-btn[aria-expanded="true"] .tarjeta-info__toggle-icon {
    transform: rotate(180deg);
}


.tarjeta-info__media {
    margin: 1vw;
    min-height: 25vw;
    background: url("ruta-de-tu-imagen.jpg") center/cover no-repeat;
    position: relative;
    border-radius: 1.5vw;
    transform: translateX(5vw);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform .85s cubic-bezier(.22,.61,.36,1) .08s, opacity .55s ease .08s;
}

.tarjeta-info.in-view .tarjeta-info__media {
    transform: translateX(0);
    opacity: 1;
}

.tarjeta-info__velo {
    position: absolute;
    inset: 0;
    border-radius: 1.5vw;
    background: linear-gradient(180deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.6) 100%);
    pointer-events: none;
}


.tarjeta-info:hover .tarjeta-info__media {
    transition-duration: .55s;
}


.tarjeta-info__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8vw;
    height: 8vw;
    border-radius: 50%;
    background: none;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    /* box-shadow: 0 0.45vw 1.35vw rgba(0,0,0,0.18); */
    transition: transform .18s ease, box-shadow .18s ease;
    z-index: 4;
    padding: 0;
    border: none;
    /* border-image-source: linear-gradient(202.36deg, rgba(255, 255, 255, 0.2) 8.26%, rgba(255, 255, 255, 0) 85.43%); */
    /* backdrop-filter: blur(2vw); */
}

    .tarjeta-info__play::before {
        content: "";
        width: 8vw;
        height: 8vw;
        border-radius: 50%;
        display: block;
        box-shadow: 0 0.3vw 0.75vw rgba(0,0,0,0.18);
    }

    .tarjeta-info__play img {
        position: absolute;
        width: 8vw;
        height: 8vw;
        color: #fff;
        z-index: 5;
        pointer-events: none;
    }

    .tarjeta-info__play:hover {
        transform: translate(-50%, -50%) scale(1.04);
    }

    .tarjeta-info__play:active {
        transform: translate(-50%, -50%) scale(.98);
    }

.ti-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 2vw;
    gap: 0.5vw;
}

    .ti-modal.ti-modal--open {
        display: flex;
        opacity: 1;
        transition: opacity .25s ease;
        flex-direction: column;
    }

.ti-modal__box1 {
    display: flex;
    width: 50vw;
    justify-content: end;
}

.ti-modal__box {
    position: relative;
    width: 50vw;
    height: 50vw;
    /* max-width: 92vh; */
    /* max-height: 75vh; */
    background: #000;
    border-radius: 1.5vw;
    overflow: visible;
    box-shadow: 0 1.25vw 3.5vw rgba(0,0,0,0.6);
}

.ti-modal__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-height: 100%;
}

.ti-modal__close {
    position: relative;
    /* top: -5vw; */
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    border: none;
    background: none;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10001;
    /* box-shadow: 0 0.45vw 1.35vw rgba(0,0,0,0.25); */
    /* backdrop-filter: blur(0.15vw); */
    transition: transform .12s ease, background .12s ease;
    padding: 0;
}

    .ti-modal__close img {
        width: 100%;
        height: 100%;
        fill: #FFFFFF;
        pointer-events: none;
    }

    .ti-modal__close:hover {
        /* transform: translateY(-0.25vw); */
        /* background: rgba(255,255,255,0.18); */
    }



@media (max-width: 767px) {

    .ti-modal.ti-modal--open {
        padding: 0;
        overflow-y: auto;
    }

    .tarjeta-info__envoltura {
        gap: 5vw;
        padding: 3.5vw;
    }

    .tarjeta-info.in-view .tarjeta-info__texto {
        padding: 0;
    }

    .tarjeta-info__toggle-icon {
        width: 4.2vw;
        height: 4.2vw;
    }

    .tarjeta-info {
        grid-template-columns: 1fr;
        width: 100%;
        /* margin: 0vw auto; */
        border-radius: 4.2vw;
        height: 100%;
        padding: 0 5.25vw 5.25vw 5.25vw;
        gap: 3.15vw;
    }

    .tarjeta-info__texto {
        order: 1;
        padding: 5.25vw;
        transform: translateY(0);
        text-align: center;
        width: fit-content;
    }

    .tarjeta-info__media {
        order: 2;
        transform: translateY(2.1vw);
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        margin: 0;
        border-radius: 3.15vw;
        background-size: cover;
        background-position: center;
    }

    .tarjeta-info__titulo {
        font-size: 6.37704vw;
        text-align: center;
    }

    .tarjeta-info__descripcion {
        font-size: 3.1vw;
        line-height: 4.4vw;
        font-family: "Gotham-Book";
    }

    .tarjeta-info__toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-size: 3.1vw;
        gap: 1.05vw;
    }

    .tarjeta-info__play {
        width: 15.5vw;
        height: 15.5vw;
    }

        .tarjeta-info__play::before {
            width: 10.5vw;
            height: 10.5vw;
        }

        .tarjeta-info__play img {
            width: 100%;
            height: 100%;
        }

    .ti-modal__box1 {
        width: 90vw;
    }

    .ti-modal__box {
        max-width: 90vw;
        max-height: 90vw;
        border-radius: 4.2vw;
        width: 100%;
        height: 100%;
        min-width: 90vw;
        min-height: 90vw;
    }

    .ti-modal__close {
        /* top: -10.5vw; */
        /* right: 0; */
        width: 8vw;
        height: 8vw;
        /* border-width: 0.21vw; */
    }

        .ti-modal__close img {
            width: 100%;
            height: 100%;
        }
}


/*/// Ticket GLPI 9589 */
