/* Persuasive Enhancements CSS - Taller de Finanzas */

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.pulse-button:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Gradient Badges */
.badge {
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form Enhancements */
.form-control:focus,
.form-check-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: #28a745;
}

/* Icon Enhancements */
.fa-check-circle {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Section Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Testimonial Improvements */
.testimonial-smith img {
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial-smith:hover img {
    transform: scale(1.1);
}

/* Value Proposition Cards */
.value-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
}

/* Urgency & Scarcity Elements */
.urgency-badge {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 10px 0;
}

/* Social Proof Elements */
.social-proof {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.social-proof i {
    color: #ffc107;
    margin-right: 8px;
}

/* CTA Section Enhancements */
.cta-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

/* Improved Buttons */
.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d7a6f 0%, #2bd467 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408e 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Trust Signals */
.trust-signal {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 5px;
}

.trust-signal i {
    color: #28a745;
    margin-right: 8px;
}

/* Responsive Video Container */
.ratio {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

/* Alert Improvements */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e0f7ff 0%, #cce7ff 100%);
    color: #004085;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pulse-button {
        width: 100%;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408e 100%);
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Success Message Animation */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mensajeExito {
    animation: slideInDown 0.5s ease-out;
}

/* Testimonials Section Enhancements */
.section-testimonial-us {
    position: relative;
    overflow: hidden;
}

.zx-swip-testimonial .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.zx-swip-testimonial .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.zx-swip-testimonial .card-body {
    display: flex;
    flex-direction: column;
}

.zx-swip-testimonial .card-body p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-icons i {
    font-size: 1rem;
    margin: 0 2px;
}

/* Swiper Navigation Buttons */
.zx-swip-testimonial .swiper-button-next,
.zx-swip-testimonial .swiper-button-prev {
    color: #667eea;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.zx-swip-testimonial .swiper-button-next:after,
.zx-swip-testimonial .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.zx-swip-testimonial .swiper-button-next:hover,
.zx-swip-testimonial .swiper-button-prev:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* Swiper Pagination */
.zx-swip-testimonial .swiper-pagination-bullet {
    background: #667eea;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.zx-swip-testimonial .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* Emprendedores Showcase */
.emprendedores-showcase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-stack {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 60px;
}

.avatar-stack img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-left: -15px;
    transition: all 0.3s ease;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack img:hover {
    transform: scale(1.2) translateY(-5px);
    z-index: 10 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.avatar-stack .avatar-more {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: -15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.emprendedores-info h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.emprendedores-info p {
    font-size: 0.95rem;
}

.emprendedores-info .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .zx-swip-testimonial .swiper-button-next,
    .zx-swip-testimonial .swiper-button-prev {
        display: none;
    }
    
    .zx-swip-testimonial .card {
        min-height: 300px;
    }
    
    .pulse-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .emprendedores-showcase {
        padding: 15px;
    }
    
    .emprendedores-showcase .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-stack {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .avatar-stack img {
        width: 45px;
        height: 45px;
        margin-left: -12px;
    }
    
    .avatar-stack .avatar-more {
        width: 45px;
        height: 45px;
        margin-left: -12px;
    }
}
