/* ===============================
   CLOSE BUTTON 
================================ */

.tm-close {
    position: absolute;
    top: 24px;
    right: 35px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.tm-close:focus {
    outline: none;
    outline-offset: inherit;
}

.tm-close svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.tm-close svg path {
    stroke: #B3B3B3;
    transition: stroke 0.3s ease;
}

.tm-close:hover {
    opacity: 0.7;
}


/* ===============================
   OVERLAY 
================================ */

.tm-overlay {
    position: fixed;
    inset: 0;
    background: #1c263225;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .35s ease,
        visibility 0s linear .35s;
    z-index: 100000;
}

.tm-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .35s ease;
}


/* ===============================
   MODAL BOX (SLIDE CONTROLADO)
================================ */

.tm-modal-box {
    width: 100%;
    max-width: 100%;
    background: #1C2632;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

.tm-overlay.is-open .tm-modal-box {
    transform: translateX(0);
}


/* ===============================
   BODY
================================ */

.tm-body {
    width: 100%;
    max-width: 100%;
}


/* ===============================
   CONTENT (TERCER STEP REAL)
================================ */

.third-entry {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.tm-overlay.is-active .third-entry {
    opacity: 1;
    transform: translateY(0);
}


/* ===============================
   TABLET LARGE
================================ */

@media (min-width: 1025px) and (max-width: 1439px) {
    .tm-close {
        bottom: 30px;
        right: 27px;
    }

    .img-modal {
        height: 100%;
        max-height: 662px !important;
    }
}


/* ===============================
   TABLET
================================ */

@media (max-width: 1024px) {
    .tm-modal-box {
        width: 90%;
    }
}


/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
    .tm-modal-box {
        background: #2C3B4E;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .tm-close {
        top: 50px;
        right: 24px;
        width: 23px;
        height: 23px;
    }

    .tm-close svg {
        width: 23px;
        height: 23px;
    }

    .tm-close svg path {
        stroke: #B3B3B3;
    }

    .tm-body .team-name {
        position: static;
        width: 100%;
        margin-bottom: 16px;
    }
}