/* ============================================================================= */
/* VARIABLES Y ESTILOS BASE - SIKUANI DESIGN SYSTEM */
/* ============================================================================= */

:root {
    --sikuani-purple: #444190;
    --sikuani-green: #73ab3f;
    --sikuani-orange: #ec6c37;
    --sikuani-purple-light: #5652a9;
    --sikuani-purple-dark: #383578;
    --sikuani-green-light: #89c950;
    --sikuani-green-dark: #5e8a33;
    --sikuani-orange-light: #f48353;
    --sikuani-orange-dark: #d65b28;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ============================================================================= */
/* GRADIENTES Y FONDOS */
/* ============================================================================= */

.hero-gradient {
    background: linear-gradient(135deg, var(--sikuani-purple-dark) 0%, var(--sikuani-purple) 50%, var(--sikuani-purple-light) 100%);
}

.cta-gradient {
    background: linear-gradient(135deg, var(--sikuani-purple-dark) 0%, var(--sikuani-purple) 100%);
}

.whatsapp-cta {
    background: linear-gradient(135deg, var(--sikuani-green-dark) 0%, var(--sikuani-green) 50%, var(--sikuani-green-light) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.package-summary {
    background: linear-gradient(90deg, var(--sikuani-green) 0%, var(--sikuani-green-light) 100%);
    color: white;
}

.stats-section {
    background: linear-gradient(135deg, var(--sikuani-purple) 0%, var(--sikuani-purple-light) 100%);
}

/* ============================================================================= */
/* BOTONES */
/* ============================================================================= */

.btn-primary {
    background-color: var(--sikuani-green);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--sikuani-green-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(115, 171, 63, 0.5);
}

.btn-secondary {
    background-color: var(--sikuani-purple);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--sikuani-purple-light);
    transform: translateY(-2px);
}

.btn-orange {
    background-color: var(--sikuani-orange) !important;
}

.btn-orange:hover {
    background-color: var(--sikuani-orange-light) !important;
}

/* ============================================================================= */
/* CARDS Y COMPONENTES */
/* ============================================================================= */

.card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.instructor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sikuani-purple) 0%, var(--sikuani-orange) 100%);
}

.instructor-card:hover {
    border-color: var(--sikuani-purple);
    box-shadow: 0 15px 30px -10px rgba(68, 65, 144, 0.2);
    transform: translateY(-3px);
}

/* ============================================================================= */
/* PRICE CARDS MEJORADAS */
/* ============================================================================= */

.price-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.price-card.selected {
    border-color: var(--sikuani-green) !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 4px rgba(115, 171, 63, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.price-card.featured {
    border-color: var(--sikuani-orange);
    background: linear-gradient(135deg, #ffffff 0%, rgba(236, 108, 55, 0.05) 100%);
}

.package-btn {
    transition: all 0.3s ease;
}

/* ============================================================================= */
/* CURRICULUM Y CONTENIDO */
/* ============================================================================= */

.curriculum-item {
    border-left: 4px solid var(--sikuani-purple);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin-bottom: 1rem;
}

.curriculum-item:hover {
    border-left-color: var(--sikuani-green);
    background: linear-gradient(135deg, #f1f5f9 0%, rgba(115, 171, 63, 0.05) 100%);
    transform: translateX(5px);
}

.module-number {
    background-color: var(--sikuani-purple);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-bold;
    font-size: 1rem;
}

.module-special {
    background-color: var(--sikuani-orange);
}

/* ============================================================================= */
/* TESTIMONIALS */
/* ============================================================================= */

.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid var(--sikuani-purple);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: var(--sikuani-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================= */
/* BADGES Y ETIQUETAS */
/* ============================================================================= */

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-purple {
    background-color: rgba(68, 65, 144, 0.1);
    color: var(--sikuani-purple);
}

.badge-green {
    background-color: rgba(115, 171, 63, 0.1);
    color: var(--sikuani-green);
}

.badge-orange {
    background-color: rgba(236, 108, 55, 0.1);
    color: var(--sikuani-orange);
}

/* ============================================================================= */
/* STEP INDICATORS MEJORADOS */
/* ============================================================================= */

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    font-weight: bold;
    color: white;
    background: #d1d5db;
    position: relative;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step.completed {
    background: var(--sikuani-green);
    box-shadow: 0 0 0 4px rgba(115, 171, 63, 0.3);
    transform: scale(1.05);
}

.step.active {
    background: var(--sikuani-purple);
    box-shadow: 0 0 0 4px rgba(68, 65, 144, 0.3);
    transform: scale(1.15);
    animation: pulse 2s infinite;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #d1d5db;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.step.completed:not(:last-child)::after {
    background: var(--sikuani-green);
}

/* ============================================================================= */
/* NOTIFICACIONES */
/* ============================================================================= */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

/* ============================================================================= */
/* LOADING Y SPINNER */
/* ============================================================================= */

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--sikuani-purple);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* ============================================================================= */
/* COUNTDOWN */
/* ============================================================================= */

.countdown {
    background: linear-gradient(135deg, rgba(115, 171, 63, 0.15) 0%, rgba(115, 171, 63, 0.05) 100%);
    border: 1px solid rgba(115, 171, 63, 0.3);
    backdrop-filter: blur(5px);
}

/* ============================================================================= */
/* MODAL MEJORADO */
/* ============================================================================= */

.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.1);
}

/* ============================================================================= */
/* FAQ MEJORADO */
/* ============================================================================= */

.faq-toggle {
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background-color: #f8fafc;
}

.faq-content {
    transition: all 0.3s ease;
}

/* ============================================================================= */
/* SCHEDULE Y CONTACT */
/* ============================================================================= */

.schedule-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
}

.social-link {
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.1);
}

/* ============================================================================= */
/* SCROLL TO TOP BUTTON MEJORADO */
/* ============================================================================= */

.scroll-top-btn {
    background: linear-gradient(135deg, var(--sikuani-orange) 0%, var(--sikuani-orange-light) 100%);
    box-shadow: 0 8px 25px -8px rgba(236, 108, 55, 0.6);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 35px -10px rgba(236, 108, 55, 0.8);
}

/* ============================================================================= */
/* COLORES DE TEXTO SIKUANI */
/* ============================================================================= */

.text-sikuani-purple {
    color: var(--sikuani-purple) !important;
}

.text-sikuani-purple-dark {
    color: var(--sikuani-purple-dark) !important;
}

.text-sikuani-green {
    color: var(--sikuani-green) !important;
}

.text-sikuani-orange {
    color: var(--sikuani-orange) !important;
}

.bg-sikuani-purple {
    background-color: var(--sikuani-purple) !important;
}

.bg-sikuani-green {
    background-color: var(--sikuani-green) !important;
}

.bg-sikuani-orange {
    background-color: var(--sikuani-orange) !important;
}

/* ============================================================================= */
/* ANIMACIONES */
/* ============================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

/* ============================================================================= */
/* RESPONSIVE DESIGN */
/* ============================================================================= */

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .step {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin: 0 15px;
    }
    
    .step:not(:last-child)::after {
        width: 60px;
        right: -37px;
    }

    .instructor-card {
        text-align: center;
    }

    .instructor-card .flex {
        flex-direction: column;
    }

    .instructor-card .relative {
        margin-bottom: 1.5rem;
        margin-right: 0;
    }

    .price-card {
        margin-bottom: 1.5rem;
    }

    .curriculum-item {
        padding-left: 1rem;
        transform: none !important;
    }

    .curriculum-item:hover {
        transform: translateX(3px);
    }

    .module-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .whatsapp-cta .flex {
        flex-direction: column;
        gap: 1rem;
    }

    .notification {
        min-width: 280px;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .step {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 10px;
    }
    
    .step:not(:last-child)::after {
        width: 40px;
        right: -25px;
        height: 3px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .card {
        padding: 1.5rem;
    }

    .instructor-card {
        padding: 1.5rem;
    }

    .price-card {
        padding: 1rem;
    }
}

/* ============================================================================= */
/* TRANSICIONES GLOBALES */
/* ============================================================================= */

* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ============================================================================= */
/* FOCUS STATES PARA ACCESIBILIDAD */
/* ============================================================================= */

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--sikuani-orange);
    outline-offset: 2px;
}

/* ============================================================================= */
/* UTILIDADES */
/* ============================================================================= */

.hover\:text-sikuani-purple:hover {
    color: var(--sikuani-purple) !important;
}

.hover\:text-sikuani-green:hover {
    color: var(--sikuani-green) !important;
}

.hover\:text-sikuani-orange:hover {
    color: var(--sikuani-orange) !important;
}

.hover\:bg-sikuani-purple:hover {
    background-color: var(--sikuani-purple) !important;
}

.hover\:bg-sikuani-green:hover {
    background-color: var(--sikuani-green) !important;
}

.hover\:bg-sikuani-orange:hover {
    background-color: var(--sikuani-orange) !important;
}

/* ============================================================================= */
/* PRINT STYLES */
/* ============================================================================= */

@media print {
    .fixed,
    .sticky,
    nav,
    footer,
    .scroll-top-btn,
    .notification {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card,
    .instructor-card,
    .price-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}