/* Photo Wrapper - Para reemplazar videos con fotografías */
.photo-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-wrapper:hover {
    transform: translateY(-5px);
}

.electromechanical-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-wrapper:hover .electromechanical-photo {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.photo-wrapper:hover .photo-overlay {
    opacity: 1;
}

.view-button {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-button i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.photo-wrapper:hover .view-button {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.photo-wrapper:hover .view-button i {
    color: #fff;
}

.photo-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Actualizar placeholders para fotografías */
.video-placeholder .view-button {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(108, 117, 125, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: rgba(108, 117, 125, 0.1);
}

.video-placeholder .view-button i {
    font-size: 28px;
    color: #6c757d;
}

.video-item:hover .video-placeholder .view-button {
    border-color: #495057;
    background: rgba(73, 80, 87, 0.2);
    transform: scale(1.1);
}

.video-item:hover .video-placeholder .view-button i {
    color: #495057;
}

/* Videos Container */
.production-videos {
    width: 120% !important;
    min-height: 400px !important;
    padding: 20px 0 !important;
    overflow: hidden !important;
    margin: -90px auto 0 auto !important; /* Posición para fondo azul */
    position: relative !important;
    left: -10% !important; /* Centrar el ancho extra */
}

/* Ajustar posición de videos cuando hay imagen de fondo */
.laptop-carousel-section.has-background-image .production-videos {
    margin: 350px auto 0 auto !important; /* Solo 20% montado cuando hay imagen */
}

.videos-container {
    display: flex !important;
    padding: 40px 40px !important;
    min-height: 400px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 40px; /* Mantener en una fila */
}

.video-item {
    flex: 1 !important; /* Cada video toma el mismo espacio */
    max-width: 310px !important;
    height: 470px !important; /* Más alto para efecto banner */
    position: relative !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin: 0px 40px 0px 40px !important;
    border: 4px solid rgba(255, 255, 255, 0.548) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.video-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

/* Video Elements */
.production-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
}

.video-embed {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.video-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px !important;
}

/* Video Placeholder */
.video-placeholder {
    width: 100% !important;
    height: 100% !important;
    background: rgba(255,255,255,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem !important;
    border-radius: 15px !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.video-placeholder:hover {
    background: rgba(255, 255, 255, 0) !important;
    border-color: rgba(255, 255, 255, 0) !important;
}

.play-button {
    width: 80px !important;
    height: 80px !important;
    background: rgba(255,255,255,0.2) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    font-size: 2rem !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0) !important;
    transform: scale(1.1) !important;
}

/* Video Label */
.video-label {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
    padding: 20px 15px 15px 20px !important;
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* No Videos Message */
.no-videos {
    text-align: center !important;
    color: rgba(255, 255, 255, 0) !important;
    font-size: 1.1rem !important;
    padding: 50px 20px !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .videos-container {
        gap: 15px !important;
        padding: 20px 20px !important;
    }
    
    .video-item {
        max-width: 320px !important;
        height: 380px !important;
    }
}

@media (max-width: 992px) {
    .videos-container {
        gap: 12px !important;
        padding: 20px 15px !important;
    }
    
    .video-item {
        max-width: 280px !important;
        height: 340px !important;
    }
}

@media (max-width: 768px) {
    .production-videos {
        width: 100% !important;
        left: 0 !important;
        margin: -40px auto 0 auto !important;
    }
    
    .laptop-carousel-section.has-background-image .production-videos {
        margin: -10px auto 0 auto !important;
    }
    
    .videos-container {
        padding: 20px 10px !important;
        gap: 8px !important;
    }
    
    .video-item {
        max-width: 200px !important;
        height: 280px !important;
    }
}

@media (max-width: 576px) {
    .videos-container {
        flex-direction: column !important; /* Solo en móviles muy pequeños cambiar a columna */
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .video-item {
        flex: none !important;
        width: 100% !important;
        max-width: 350px !important;
        height: 220px !important;
        margin: 0 auto !important;
    }
    
    .play-button {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* Enhanced Statistics Section */
.enhanced-stats-section {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
    margin-top: -120px;
    z-index: 5;
    border-radius: 0 0 0 0;
    padding-top: 40px;
    padding-bottom: 20px;
}

.enhanced-stats-section .row {
    justify-content: center;
}

.enhanced-stats-section [class*="col-"] {
    display: flex;
    justify-content: center;
}

.enhanced-stat-card {
    background: #838282;
    border-radius: 0 25px 0 0;
    padding: 25px 20px;
    text-align: left;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 15;
    margin-top: 20px;
    border: none;
    max-width: 250px;
    width: 100%;
}

.enhanced-stat-card:hover {
    transform: translateY(-5px);
    background: #8b92a3;
}

.stat-icon {
    display: none;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-content .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 1.20rem;
    color: white;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.3;
    opacity: 0.9;
}