
.dcvt-widget,
.dcvt-widget * {
    box-sizing: border-box;
}

.dcvt-widget {
    width: 100%;
    position: relative;
    font-family: inherit;
}

.dcvt-slider {
    position: relative;
    width: 100%;
}

.dcvt-track {
    --dcvt-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--dcvt-columns), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.dcvt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 300px;
    padding: 34px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 35px;
    background: rgba(18,18,18,.48);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 45px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.dcvt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%),
        linear-gradient(0deg, rgba(0,0,0,.08), transparent 55%);
}

.dcvt-person,
.dcvt-text,
.dcvt-video-button {
    position: relative;
    z-index: 1;
}

.dcvt-person {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
}

.dcvt-photo {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
}

.dcvt-person-data {
    min-width: 0;
}

.dcvt-name,
.dcvt-date {
    overflow-wrap: anywhere;
}

.dcvt-name {
    margin-bottom: 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
}

.dcvt-date {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.dcvt-text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.dcvt-video-button {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.dcvt-video-button:hover,
.dcvt-video-button:focus-visible {
    opacity: .78;
}

.dcvt-play-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

.dcvt-mobile-arrows,
.dcvt-dots {
    display: none;
}

/* MODAL */
.dcvt-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    background: rgba(0,0,0,.72);
    transition: opacity .25s ease, visibility .25s ease;
}

.dcvt-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.dcvt-modal-dialog {
    position: relative;
    width: min(100%, 420px);
    max-width: 420px;
    padding: 74px 14px 14px;
    overflow: hidden;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}

.dcvt-modal.is-open .dcvt-modal-dialog {
    transform: translateY(0) scale(1);
}

.dcvt-modal-close {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #111;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}

.dcvt-video-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    aspect-ratio: 9 / 16;
}

.dcvt-video-stage iframe,
.dcvt-video-stage video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}

body.dcvt-modal-open {
    overflow: hidden;
}

/* TABLET */
@media (max-width: 1024px) {
    .dcvt-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MÓVIL: CARRUSEL */
@media (max-width: 767px) {
    .dcvt-slider {
        overflow: visible;
    }

    .dcvt-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dcvt-track::-webkit-scrollbar {
        display: none;
    }

    .dcvt-card {
        flex: 0 0 calc(100% - 30px);
        min-height: 360px;
        padding: 28px 24px 24px;
        scroll-snap-align: center;
        border-radius: 30px;
    }

    .dcvt-person {
        gap: 14px;
    }

    .dcvt-photo {
        width: 66px;
        height: 66px;
    }

    .dcvt-name {
        font-size: 19px;
    }

    .dcvt-date {
        font-size: 16px;
    }

    .dcvt-text {
        font-size: 16px;
    }

    .dcvt-video-button {
        font-size: 17px;
    }

    .dcvt-mobile-arrows {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .dcvt-arrow {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 50%;
        background: rgba(20,20,20,.42);
        color: #fff;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .dcvt-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 12px;
    }

    .dcvt-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255,255,255,.42);
        transition: width .2s ease, background .2s ease;
    }

    .dcvt-dot.is-active {
        width: 24px;
        background: #fff;
    }

    .dcvt-modal-dialog {
        width: min(100%, 374px);
        padding: 74px 14px 14px;
        border-radius: 36px;
    }

    .dcvt-video-stage {
        border-radius: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcvt-track,
    .dcvt-modal,
    .dcvt-modal-dialog {
        scroll-behavior: auto;
        transition: none;
    }
}


/* =========================================
   AJUSTES 1.0.3
   Modal editable correctamente desde Elementor
========================================= */

/* Elimina cualquier fondo heredado del tema en el botón */
.dcvt-widget .dcvt-video-button,
.dcvt-widget .dcvt-video-button:hover,
.dcvt-widget .dcvt-video-button:focus,
.dcvt-widget .dcvt-video-button:focus-visible,
.dcvt-widget .dcvt-video-button:active {
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: inherit !important;
    filter: none !important;
    transform: none !important;
}

.dcvt-widget .dcvt-video-button::before,
.dcvt-widget .dcvt-video-button::after {
    content: none !important;
    display: none !important;
}

/* El ancho y el radio NO se fijan aquí:
   Elementor los controla desde la pestaña Estilo > Modal */
.dcvt-widget .dcvt-modal {
    padding: 12px;
}

.dcvt-widget .dcvt-modal-dialog {
    width: min(100%, 420px);
    max-height: calc(100vh - 24px);
    padding: 68px 12px 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Video a todo lo ancho sin barras negras laterales */
.dcvt-widget .dcvt-video-stage {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 104px);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: transparent;
}

.dcvt-widget .dcvt-video-stage video,
.dcvt-widget .dcvt-video-stage iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    background: transparent;
}

.dcvt-widget .dcvt-video-stage video {
    object-fit: cover;
    object-position: center center;
}

.dcvt-widget .dcvt-modal-close {
    top: 12px;
    right: 15px;
    width: 42px;
    height: 42px;
    font-size: 32px;
}

@media (max-width: 767px) {
    .dcvt-widget .dcvt-modal-dialog {
        width: min(100%, 338px);
        padding: 64px 11px 11px;
    }

    .dcvt-widget .dcvt-video-stage {
        max-height: calc(100vh - 96px);
    }
}
