﻿/*/// Ticket GLPI 9589*/

@font-face {
    font-family: 'Gotham-Light';
    src: url('/fonts/Gotham/Gotham-Light.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Gotham-Medium';
    src: url('/fonts/Gotham/Gotham-Medium.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Gotham-Bold';
    src: url('/fonts/Gotham/Gotham-Bold.otf') format('opentype');
    font-style: normal;
}

/* ===== Overlay ===== */
.ctp-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.60);
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    z-index: 9999;
    opacity: .5;
    transition: opacity .25s ease;
}

    .ctp-overlay.open {
        display: flex;
    }

    .ctp-overlay.visible {
        opacity: 1;
    }

/* ===== Modal (890×465) ===== */
.ctp-modal {
    width: 61.80555556vw;
    max-width: 90vw;
    height: 32.29166667vw;
    max-height: 32.29166667vw;
    background: var(--background-primary,#FFFFFF);
    border-radius: 0.97222222vw;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0.27777778vw 0.41666667vw -0.13888889vw var(--blacka5), 0 0.69444444vw 1.04166667vw -0.20833333vw var(--blacka10);
    transform: translateY(0.55555556vw);
    transition: transform .25s ease, opacity .25s ease;
    display: block;
}

.ctp-overlay.visible .ctp-modal {
    transform: translateY(0);
}

/* ===== Contenido (2 columnas ) ===== */
.ctp-content {
    box-sizing: border-box;
    height: 100%;
    display: grid;
    grid-template-columns: 28.95833333vw 28.95833333vw;
    gap: 1.66666667vw;
    padding: 1.66666667vw;
    align-items: stretch;
}

/* Modal solo texto */
.ctp-modal.is-text-only .ctp-content {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
}

/* ===== Panel ===== */
.ctp-panel {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.83333333vw;
    align-items: start;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ctp-panel {
        align-items: center;
    }
}
/* Área scrolleable interna */
.ctp-text {
    box-sizing: border-box;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1vw;
    display: flex;
    flex-direction: column;
    gap: 0.83333333vw;
    max-height: 25vw;
}

.ctp-title {
    margin-bottom: 1vw !important;
    font-family: "Gotham-Bold";
    font-weight: 500;
    font-size: 1.38888889vw !important;
    line-height: 1.66666667vw;
    color: var(--text-secondary,#606060) !important;
    width: 100%;
    text-align: initial;
}

/* Descripción */
.ctp-desc {
    margin: 0;
    font-family: "Gotham-Light";
    font-weight: 300;
    font-size: 0.83333333vw !important;
    line-height: 1.11111111vw;
    color: var(--text-secondary,#606060) !important;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: justify;
}

/* Acciones / botón */
.ctp-actions {
    margin-top: 0.83333333vw;
    flex: 0 0 auto;
}

.ctp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 2.5vw;
    border-radius: 0.55555556vw;
    padding: 0.55555556vw 1.66666667vw;
    gap: 0.55555556vw;
    background: var(--background-brand,#FF6600);
    color: #FFF !important;
    text-decoration: none;
    font-family: "Gotham-Medium";
    font-weight: 500;
    font-size: 0.97222222vw !important;
    line-height: 1.38888889vw;
    cursor: pointer;
    border: 0;
    margin-left: 1vw;
}

    .ctp-btn:focus-visible {
        outline: 0.20833333vw solid rgba(255,102,0,.35);
        border-radius: 0.69444444vw;
    }

/* ===== Imagen ===== */
.ctp-image {
    width: 96%;
    height: 100%;
    border-radius: 0.97222222vw;
    background-size: cover;
    background-position: center center;
    display: block;
}

.ctp-image-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.ctp-image-slide {
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0.85vw;
}

@media (max-width: 767px) {
    .ctp-image-slide {
        border-radius: 2vw;
    }
}
/* Ocultar imagen cuando no existe */
.ctp-modal.is-text-only .ctp-image {
    display: none;
}

/* ===== Scrollbar del texto ===== */
.ctp-text::-webkit-scrollbar {
    width: 0.41666667vw;
    height: 0.41666667vw;
}

.ctp-text::-webkit-scrollbar-thumb {
    background: var(--background-neutral,#E5E5E5);
    border-radius: 0.45347222vw;
}

.ctp-text::-webkit-scrollbar-track {
    background: transparent;
}

.cont-pop {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: end;
    gap: 0.5vw;
}

/* Botón cerrar */
.ctp-close {
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5vw;
    height: 2.5vw;
    padding: 0;
}

    .ctp-close img {
        width: 100%;
        height: 100%;
    }

@media (max-width: 767px) {
    .ctp-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 3.155vw 0;
    }

    .ctp-modal {
        width: 88.349vw;
        max-width: 88.349vw;
        height: auto;
        max-height: none;
        margin: 0 auto;
        border-radius: 3.398vw;
    }

    .ctp-content {
        display: grid;
        grid-template-columns: 1fr;
        /* gap: 4.854vw; */
        padding: 0 3.883vw 5.339vw;
        height: auto;
        align-items: start;
    }

    .ctp-panel {
        height: 90vw;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2.913vw;
        overflow: hidden;
        border-right: 0;
    }

    .ctp-title {
        width: 100%;
        /*min-height: 13.107vw;*/
        margin: 0;
        font-family: "Gotham-Bold";
        font-weight: 500;
        font-size: 4vw !important;
        line-height: 5vw;
        letter-spacing: 0;
        text-align: center;
        color: var(--text-secondary,#606060) !important;
    }

    .ctp-text {
        width: 100%;
        max-height: 65.272vw;
        margin-top: 4vw;
        padding: 0 4vw;
        display: flex;
        flex-direction: column;
        gap: 2.913vw;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ctp-desc {
        font-family: "Gotham-Light";
        font-weight: 300;
        font-size: 3.107vw !important;
        line-height: 4.369vw;
        letter-spacing: 0;
        color: var(--text-secondary,#606060) !important;
        white-space: pre-wrap;
        overflow-wrap: break-word;
        border: none;
        border-radius: 0;
        text-align: justify;
        /* padding: 1vw; */
    }

    .ctp-actions {
        display: flex;
        justify-content: center;
        /* margin-top: 3.155vw; */
        flex: 0 0 auto;
    }

    .ctp-btn {
        width: 55vw;
        height: 10vw;
        border-radius: 2vw;
        padding: 1.942vw 5.825vw;
        gap: 1.942vw;
        font-family: "Gotham-Medium";
        font-weight: 500;
        font-size: 3.398vw !important;
        line-height: 4.854vw;
        margin: 0;
        margin-bottom: 2vw;
    }

    .ctp-image {
        width: 100%;
        height: 82.039vw;
        margin: 0 auto;
        border-radius: 3.398vw;
        padding: 0;
        background-size: cover;
        background-position: center;
        display: block;
    }

    .ctp-text::-webkit-scrollbar {
        width: 1.456vw;
        height: 1.456vw;
    }

    .ctp-text::-webkit-scrollbar-thumb {
        background: var(--background-neutral,#E5E5E5);
        border-radius: 1.585vw;
    }

    .ctp-text::-webkit-scrollbar-track {
        background: transparent;
    }

    .ctp-close {
        width: 8vw;
        height: 8vw;
        padding: 0;
    }

        .ctp-close img {
            width: 100%;
            height: 100%;
        }
}


.ctp-image {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.ctp-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.ctp-image-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    width: 100%;
    height: 100%;
    transition: transform 280ms ease;
    will-change: transform;
}

.ctp-image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 100% !important;
    border-radius: 0 !important;
    position: relative;
}

.ctp-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ctp-nav {
    position: absolute;
    top: 50%;
    /*transform: translateY(-50%);*/
    width: 2.6vw;
    height: 2.6vw;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6600;
    border: 0.2vw solid #fff;
    z-index: 5;
    padding: 0;
}

.ctp-nav--prev {
    left: 0.8vw;
}

.ctp-nav--next {
    right: 0.8vw;
}

.ctp-nav.is-disabled,
.ctp-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.ctp-nav--prev.is-disabled + .ctp-nav--next.is-disabled,
.ctp-nav--prev:disabled + .ctp-nav--next:disabled {
    opacity: 0;
}

.ctp-nav--prev.is-disabled:has(+ .ctp-nav--next.is-disabled),
.ctp-nav--prev:disabled:has(+ .ctp-nav--next:disabled) {
    opacity: 0;
}

.ctp-nav img, .ctp-detalle-nav img {
    width: 1.5vw;
    height: 1.5vw;
}

.ctp-nav--prev, .ctp-detalle-nav--prev {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .ctp-nav {
        width: 8vw;
        height: 8vw;
        border: 0.3vw solid #fff;
    }

        .ctp-nav img, .ctp-detalle-nav img {
            width: 4vw;
            height: 4vw;
        }

    .ctp-detalles-nav {
        justify-content: center !important;
        gap: 4vw !important;
    }

    .ctp-detalle-nav {
        width: 8vw !important;
        height: 8vw !important;
    }

    .ctp-nav--prev {
        left: 2.5vw;
    }

    .ctp-nav--next {
        right: 2.5vw;
    }
}

/* Estilos para navegación de detalles */
.ctp-detalles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ctp-detalles-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.ctp-detalle-nav {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem !important;
    color: #333 !important;
    transition: all 0.2s ease;
}

    .ctp-detalle-nav.is-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.ctp-detalle-contador {
    font-size: 0.875rem !important;
    color: #666 !important;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Ajustes responsivos */
@media (max-width: 767px) {
    .ctp-detalles-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ctp-detalles-nav {
        margin-left: 0;
        align-self: flex-end;
    }
}

.ctp-detalles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 !important;
}

.ctp-detalles-nav {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 1vw;
    margin-left: 1vw;
    /* height: 9vw; */
}

@media (max-width:767px) {
    .ctp-detalles-nav {
        margin-left: 0;
    }
}

.ctp-detalle-nav {
    display: flex;
    background: #ff6600;
    border: none;
    border-radius: 50%;
    width: 2.6vw;
    height: 2.6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ctp-detalle-nav.is-disabled {
        cursor: not-allowed;
        opacity: 1;
        background: #c7c7c7;
    }

.ctp-image-track.modo-detalles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: none !important;
    transition: none !important;
}

    .ctp-image-track.modo-detalles .ctp-image-slide {
        flex: 0 0 auto;
        width: 100%;
    }

    .ctp-image-track.modo-detalles .ctp-image-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
