/* css/testimonios-videos.css - VERSIÓN "REELS" LIMPIA */

/* AJUSTE CLAVE: Espacio para que no se encime a los botones */
.swiper-video-reels {
    padding-top: 20px !important;
    padding-bottom: 50px !important; /* Espacio para la sombra al hacer hover */
    overflow: visible !important; /* Permite que las sombras salgan de la caja */
}

/* --- CARD ESTILO TIKTOK/REELS (SIN FOOTER BLANCO) --- */
.video-reel-card {
    position: relative;
    background: #000;
    border-radius: 30px; /* Bordes muy redondos estilo App */
    overflow: hidden;
    height: 550px; /* Altura fija para uniformidad */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra elegante */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

    /* Efecto Hover: Sube y brilla */
    .video-reel-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        z-index: 10; /* Asegura que quede encima de todo al hacer hover */
    }

/* El Video ocupa TODO el espacio */
.video-viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

    .video-viewport video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.7; /* Un poco oscuro por defecto para leer texto */
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

.video-reel-card:hover video {
    opacity: 1; /* Se ilumina al pasar el mouse */
    transform: scale(1.05); /* Zoom sutil */
}

/* --- TEXTOS Y ELEMENTOS FLOTANTES --- */

/* Badge "En vivo" o "Testimonio" arriba a la izquierda */
.video-badge-status {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Degradado negro abajo para que se lea el texto */
.video-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 100px 25px 30px 25px; /* Mucho padding arriba para el degradado */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: white;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Títulos y textos */
.reel-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.reel-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Sección del Cliente (Avatar pequeño abajo) */
.reel-client-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.reel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.reel-client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.reel-client-loc {
    font-size: 0.75rem;
    color: #ccc;
    display: block;
}

/* Estrellas */
.reel-stars {
    color: #FFD700;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Botón Play central (aparece al hover) */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.video-reel-card:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
/* =========================================
   RESPONSIVE: AJUSTES PARA MÓVIL
   ========================================= */
@media (max-width: 768px) {

    /* 1. Reducimos la altura drásticamente */
    .video-reel-card {
        height: 400px; /* Mucho más cómodo para hacer scroll */
        border-radius: 20px; /* Curva un poco menos agresiva */
    }

    /* 2. Ajustamos la tipografía para que no grite */
    .reel-title {
        font-size: 1.1rem; /* Más pequeño y elegante */
        margin-bottom: 2px;
    }

    .reel-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    /* 3. Ajustamos el degradado y espaciado interno */
    .video-overlay-info {
        padding: 50px 15px 20px 15px; /* Menos espacio, más contenido */
    }

    /* 4. Avatar y datos del cliente más compactos */
    .reel-avatar {
        width: 35px;
        height: 35px;
    }

    .reel-client-name {
        font-size: 0.8rem;
    }

    .reel-client-loc {
        font-size: 0.65rem;
    }

    /* 5. Icono de Play más discreto */
    .play-icon-overlay {
        font-size: 2.5rem; /* Un poco más chico */
    }

    /* 6. Asegurar que los botones de arriba no se peguen */
    .swiper-video-reels {
        padding-top: 10px !important; /* Ajuste fino para móvil */
    }
}