/* ==========================================================================
   VOY VIDEO TESTIMONIALS - PUBLIC STYLES
   ========================================================================== */

/* Contenedor exterior para las flechas de navegación */
.vvt-carousel-outer-wrapper {
    width: 100%;
    position: relative;
    background: transparent;
    min-height: 665px !important; /* Altura fija para prevenir saltos en el layout */
}

/* Carousel Wrapper */
.vvt-carousel-wrapper {
    width: 100%;
    background: transparent;
    overflow: visible;
}

.vvt-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 665px !important; /* Altura fija igual al carrusel real */
}

/* Swiper Container */
.vvt-video-carousel {
    padding-bottom: 0px;
    overflow: hidden;
    /* Prevenir flash de contenido sin estilo */
    min-height: 400px;
}

/* El carrusel se oculta con inline styles en el HTML */

.vvt-video-carousel .swiper-wrapper {
    padding: 10px 0;
}

.vvt-video-carousel .swiper-slide {
    height: auto;
}

/* Video Item */
.vvt-video-item {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 20px hsla(0, 0%, 0%, 0.1);
}

.vvt-video-item:hover {
    transform: translateY(-4px);
}

/* Video Container */
.vvt-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    background: #000;
    overflow: hidden;
}

.vvt-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Video Overlay - Sistema simplificado */
.vvt-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

/* Ocultar overlay cuando está reproduciendo */
.vvt-playing .vvt-video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Botón de Play Inicial (antes de reproducir) */
.vvt-play-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 60px;
}

.vvt-play-initial .vvt-play-circle {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.vvt-play-initial .vvt-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vvt-play-initial:hover .vvt-play-circle {
    opacity: 1;
}

.vvt-play-initial:hover .vvt-play-circle circle {
    fill: #2795F8;
}

.vvt-play-initial svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) blur(0.5px);
}

/* Grupo de controles (Play, Pause, Stop) */
.vvt-controls-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vvt-control-icon {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #1a202c;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vvt-control-icon svg {
    width: 32px;
    height: 32px;
}

.vvt-control-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.vvt-control-icon:active {
    transform: scale(0.95);
}

/* Colores específicos para cada botón - Solo los colores del cliente */
.vvt-play-resume {
    color: #2795F8;
}

.vvt-pause {
    color: #1a202c;
}

.vvt-stop {
    color: #D60772;
}

.vvt-play-resume:hover {
    background: #2795F8;
    color: #fff;
}

.vvt-pause:hover {
    background: rgba(255, 255, 255, 1);
    color: #1a202c;
}

.vvt-stop:hover {
    background: #D60772;
    color: #fff;
}

/* Control de Volumen - Simple Toggle */
.vvt-volume-toggle {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    opacity: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #2795F8;
    padding: 0;
}

.vvt-video-item:hover .vvt-volume-toggle,
.vvt-playing .vvt-volume-toggle {
    opacity: 1;
}

.vvt-volume-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.vvt-volume-toggle:active {
    transform: scale(0.95);
}

.vvt-volume-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.vvt-volume-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .vvt-volume-toggle {
        opacity: 1;
        width: 40px;
        height: 40px;
        bottom: 12px;
        left: 12px;
    }
    
    .vvt-volume-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Video Info */
.vvt-video-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    flex-grow: 1;
}

.vvt-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.vvt-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vvt-author-details {
    flex-grow: 1;
}

.vvt-author-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #1a202c;
    line-height: 1.3;
}

.vvt-author-role {
    font-size: 13px;
    margin: 0;
    color: #718096;
    line-height: 1.4;
}

/* Navigation Buttons - Fuera del overflow hidden */
.vvt-navigation {
    position: absolute;
    top: 37%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100; /* Aumentado para estar sobre todo */
}

.vvt-nav-button {
    background: #2795F8;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(39, 149, 248, 0.4);
    transition: all 0.3s ease;
    color: #fff;
    pointer-events: all;
    position: absolute;
}

.vvt-nav-prev {
    left: -70px;
}

.vvt-nav-next {
    right: -70px;
}

.vvt-nav-button svg {
    width: 24px;
    height: 24px;
}

.vvt-nav-button:hover {
    background: #D60772;
    box-shadow: 0 6px 16px rgba(214, 7, 114, 0.5);
    transform: scale(1.1);
}

.vvt-nav-button:active {
    transform: scale(0.95);
}

.vvt-nav-button.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.vvt-nav-button.swiper-button-disabled:hover {
    background: #2795F8;
    transform: scale(1);
}

/* Responsive adjustments for navigation */
@media (max-width: 1200px) {
    .vvt-nav-prev {
        left: -50px;
    }
    
    .vvt-nav-next {
        right: -50px;
    }
}

@media (max-width: 1024px) {
    .vvt-nav-button {
        width: 48px;
        height: 48px;
    }
    
    .vvt-nav-button svg {
        width: 20px;
        height: 20px;
    }
    
    .vvt-nav-prev {
        left: -35px;
    }
    
    .vvt-nav-next {
        right: -35px;
    }
}

@media (max-width: 768px) {
    .vvt-navigation {
        display: block !important;
        visibility: visible !important;
        z-index: 100 !important;
    }
    
    .vvt-nav-button {
        width: 44px;
        height: 44px;
        opacity: 1 !important; /* Siempre visible en mobile */
        display: flex !important;
        visibility: visible !important;
        z-index: 101 !important; /* Por encima del video */
        background: rgba(39, 149, 248, 0.95) !important; /* Más sólido en mobile */
        box-shadow: 0 4px 16px rgba(39, 149, 248, 0.6) !important;
    }
    
    .vvt-nav-button svg {
        width: 20px;
        height: 20px;
        min-width: 20px !important;
        min-height: 20px !important;
        display: block !important;
        fill: currentColor;
        flex-shrink: 0;
    }
    
    .vvt-nav-prev {
        left: 8px; /* Más cerca del borde */
    }
    
    .vvt-nav-next {
        right: 8px; /* Más cerca del borde */
    }
}

/* Pagination */
.vvt-pagination {
    margin-top: 40px !important;
    position: relative !important;
}

.vvt-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #D1D5DB;
    opacity: 1;
    transition: all 0.3s ease;
}

.vvt-pagination .swiper-pagination-bullet-active {
    background: #2795F8;
    width: 24px;
    border-radius: 5px;
}

/* Empty Message */
.vvt-empty-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #646970;
}

.vvt-empty-message a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.vvt-empty-message a:hover {
    text-decoration: underline;
}

/* Loading State */
.vvt-video-player[poster] {
    background-size: cover;
    background-position: center;
}

/* Skeleton Loader */
.vvt-skeleton-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 60px;
    min-height: 665px; /* Misma altura que el carrusel real */
}

.vvt-skeleton-container {
    background: transparent;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.vvt-skeleton {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vvt-skeleton-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.vvt-skeleton-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vvt-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.vvt-skeleton-text {
    flex: 1;
}

.vvt-skeleton-name {
    height: 16px;
    width: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.vvt-skeleton-role {
    height: 12px;
    width: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.vvt-skeleton-pagination {
    margin-top: 40px;
}

.vvt-skeleton-dot {
    transition: all 0.3s ease;
}

/* Skeleton Pagination */
.vvt-skeleton-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

/* Skeleton Responsive */
@media (max-width: 1024px) {
    .vvt-skeleton-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .vvt-skeleton-wrapper {
        /* Mismo padding que el carousel en mobile */
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .vvt-skeleton-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .vvt-skeleton-info {
        padding: 12px;
        gap: 10px;
    }
    
    .vvt-skeleton-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .vvt-skeleton-container {
        grid-template-columns: 1fr !important;
    }
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vvt-video-item {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .vvt-carousel-title {
        font-size: 36px;
    }
    
    .vvt-carousel-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }
}

@media (max-width: 768px) {
    .vvt-carousel-wrapper {
        padding: 40px 0;
    }
    
    .vvt-carousel-container {
        padding: 0 60px; /* Más espacio para las flechas en mobile */
    }
    
    .vvt-carousel-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .vvt-carousel-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .vvt-video-carousel {
        padding-bottom: 0px;
    }
    
    .vvt-video-info {
        padding: 16px;
        gap: 12px;
    }
    
    .vvt-author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .vvt-author-name {
        font-size: 14px;
    }
    
    .vvt-author-role {
        font-size: 13px;
    }
    
    .vvt-nav-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .vvt-carousel-wrapper {
        padding: 32px 0;
    }
    
    .vvt-carousel-title {
        font-size: 28px;
    }
    
    .vvt-carousel-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .vvt-video-item {
        border-radius: 12px;
    }
    
    .vvt-navigation {
        gap: 12px;
        margin-top: -20px;
    }
    
    .vvt-nav-button {
        width: 36px;
        height: 36px;
    }
    
    .vvt-pagination {
        margin-top: 24px !important;
    }
}

/* Cards con fondo blanco */
.vvt-video-item {
    background: #fff !important;
}

.vvt-video-info {
    background: #fff !important;
}

/* Accessibility */
.vvt-play-button:focus,
.vvt-pause-button:focus,
.vvt-nav-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .vvt-video-item,
    .vvt-video-overlay,
    .vvt-video-controls,
    .vvt-nav-button,
    .vvt-play-button,
    .vvt-pause-button {
        transition: none !important;
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .vvt-navigation,
    .vvt-pagination,
    .vvt-video-controls {
        display: none !important;
    }
}
