/* ====================================
   �9�0 DEMOS EN HERO SECTION
   ==================================== */

.demo-hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.demo-hero-image {
    flex: 1;
    position: relative;
}

.demo-hero-image img {
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-hero-image img:hover {
    transform: scale(1.02) !important;
}

/* Controles a la derecha */
.demo-hero-controls {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mensaje de instrucci��n */
.demo-hero-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: pulse-soft 2s ease-in-out infinite;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-soft {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
    }
}

/* Botones de demos */
.demo-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 350px;
}

.demo-hero-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.demo-hero-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.demo-hero-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateX(5px);
}

.demo-hero-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: #0A2463;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
}

/* Info de la demo */
.demo-hero-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.demo-hero-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .demo-hero-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .demo-hero-controls {
        flex: 1;
        width: 100%;
        max-width: 500px;
    }
    
    .demo-hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .demo-hero-btn {
        flex: 1;
        justify-content: center;
    }
    
    .demo-hero-btn span {
        display: none;
    }
    
    .demo-hero-btn i {
        font-size: 24px;
    }
}

.demo-qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Para que no bloquee clics */
}

.demo-qr-code {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 10px;
    animation: qrFadeIn 0.5s ease-in-out;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .demo-hero-message {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .demo-hero-btn {
        padding: 12px;
    }
}
