/* ============================================================
   NUEVAS SECCIONES HOME V2.0
   ============================================================ */

/* === SECCIONES GENERALES === */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* === CATEGORÍAS POPULARES === */
.popular-categories-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #0ea5e9 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleY(1);
}

.category-card:hover {
    border-color: #0066cc;
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.12);
    transform: translateY(-4px);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    color: #0066cc;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #0066cc;
}

.category-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 600;
}

.category-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    color: #0066cc;
    transform: translateX(4px);
}

/* === CÓMO FUNCIONA === */
.how-it-works-section {
    padding: 80px 20px;
    background: white;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
}

.how-it-works-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.column-title svg {
    color: #0066cc;
    flex-shrink: 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: #f0f9ff;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    transform: translateX(4px);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.step-content p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
    color: white;
}

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

.btn-cta-secondary:hover {
    background: #f0f9ff;
    border-color: #0052a3;
    color: #0052a3;
    transform: translateY(-2px);
}

/* === CTA BANNER EMPRESAS === */
.cta-banner-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: 1.125rem;
    margin: 0 0 32px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.cta-benefits svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: white;
    color: #0066cc;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-cta-large:hover {
    background: #f0f9ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    color: #0052a3;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .cta-benefits {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .popular-categories-section,
    .how-it-works-section,
    .cta-banner-section {
        padding: 60px 16px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 20px;
    }

    .how-it-works-grid {
        gap: 40px;
    }

    .steps-list {
        gap: 16px;
    }

    .step-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-banner {
        gap: 32px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .btn-cta-large,
    .btn-cta-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
}
