/* ================================================
   CSS para la página COMO FUNCIONA - Mobile First
   ================================================ */

/* Variables específicas para Como Funciona */
:root {
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --salseo-color: #f59e0b;
    --salseo-light: #fef3c7;
    --champion-color: #8b5cf6;
    --champion-light: #ede9fe;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero-como-funciona {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-como-funciona::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-titlefunciona {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--color-primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ================================================
   CONTENIDO PRINCIPAL
   ================================================ */

.main-content {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================================
   SECCIONES
   ================================================ */

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   PASOS DEL PROCESO
   ================================================ */

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.step-description {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-features {
    list-style: none;
    padding: 0;
}

.step-features li {
    padding: 0.5rem 0;
    color: var(--color-gray);
    position: relative;
    padding-left: 1.5rem;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ================================================
   SISTEMA SALSEOS
   ================================================ */

.salseos-section {
    background: var(--salseo-light);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.salseos-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.salseos-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--salseo-color);
    margin-bottom: 1rem;
}

.salseos-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.salseos-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.benefit-description {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ================================================
   RANKING CHAMPIONS
   ================================================ */

.champions-section {
    background: var(--champion-light);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.champions-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--champion-color);
    margin-bottom: 1rem;
}

.champions-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.podium-place {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

.podium-place.first {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: scale(1.1);
}

.podium-place.second {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
}

.podium-place.third {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
}

.podium-medal {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.podium-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================================
   CTA FINAL
   ================================================ */

.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-top: 4rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: var(--color-primary);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* ================================================
   RESPONSIVE - TABLET (768px+)
   ================================================ */

@media (min-width: 768px) {
    .hero-titlefunciona {
        font-size: 3.5rem;
        color: var(--color-primary);
    }

    .hero-subtitle {
        font-size: 1.4rem;
        color: var(--color-primary);
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 4rem 2rem;
    }
}

/* ================================================
   RESPONSIVE - DESKTOP (1024px+)
   ================================================ */

@media (min-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    animation: fadeInUp 0.6s ease forwards;
}

.step-card:nth-child(2) {
    animation-delay: 0.1s;
}

.step-card:nth-child(3) {
    animation-delay: 0.2s;
}

.step-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Botón Ver Ranking */
.ranking-button-container {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-ver-ranking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--champion-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-ver-ranking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: #7c3aed;
    color: white;
    text-decoration: none;
}

.btn-ver-ranking svg {
    width: 20px;
    height: 20px;
}

/* Banner Compartir WhatsApp */
.share-banner {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.share-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.share-banner-content {
    position: relative;
    z-index: 1;
}

.share-banner-text {
    margin-bottom: 2rem;
}

.share-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.share-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.share-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.btn-share-whatsapp {
    background: white;
    color: #25D366;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-family: 'Poppins', sans-serif;
}

.btn-share-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: #f8f8f8;
}

.btn-share-whatsapp:active {
    transform: translateY(-1px);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .share-banner {
        padding: 2rem 1.5rem;
        margin: 2rem 0 1.5rem;
    }
    
    .share-title {
        font-size: 1.5rem;
    }
    
    .share-description {
        font-size: 1rem;
    }
    
    .btn-share-whatsapp {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .share-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .share-title {
        font-size: 1.25rem;
    }
    
    .share-description {
        font-size: 0.95rem;
    }
}