/* ============================================
   PAIN POINTS SECTION - ESTILO SERVICIOS V3
   Similar a "Nuestras Soluciones", Mobile-First
   Version: 2025100507
   ============================================ */

/* Pain Points Section */
.pain-points-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, 
        rgba(0, 255, 170, 0.015) 0%,
        var(--bg-primary) 8%,
        var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Desktop padding fix - BALANCED SOLUTION */
@media (min-width: 768px) {
    .pain-points-section {
        padding: calc(var(--spacing-3xl) + 3rem) 0 var(--spacing-3xl) 0;
    }
}

/* Subtle radial glow */
.pain-points-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(
        ellipse 80% 100% at center,
        rgba(0, 255, 170, 0.03) 0%,
        rgba(0, 255, 170, 0.01) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.pain-points-content {
    position: relative;
    z-index: 2;
}

/* Header - EXACT copy from Services */
.pain-points-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pain-points-section h2 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
    font-weight: var(--font-black);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(
        180deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pain-points-header .accent {
    color: var(--neon-green);
    background: linear-gradient(
        90deg, 
        var(--neon-green) 0%, 
        #00FFD4 50%,
        var(--neon-green) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pain-points-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

/* Industries Grid - EXACT copy from Services */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

/* Industry Cards - Identical to Service Cards */
.industry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    overflow: hidden;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateY(-4px);
}

/* Industry Icon - Like Service Icon */
.industry-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-xl);
    color: var(--neon-green);
    transition: all 0.2s ease;
    flex-shrink: 0;
    stroke-width: 1.2;
}

.industry-card:hover .industry-icon {
    transform: scale(1.05);
}

/* Industry Content - Like Service Content */
.industry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.industry-title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Pain Description */
.pain-description {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    flex: 1;
}

.pain-summary {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.pain-summary strong {
    color: var(--neon-green);
    font-weight: var(--font-semibold);
}

.pain-details {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-style: italic;
}

/* CTA Section - Minimal like screenshot */
.pain-points-cta {
    text-align: center;
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-3xl) 0;
}

.cta-message {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-highlight {
    color: var(--neon-green);
    font-weight: var(--font-semibold);
}

.simple-cta-button {
    background: var(--neon-green);
    color: var(--bg-primary);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: var(--font-bold);
    padding: var(--spacing-lg) var(--spacing-3xl);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: auto;
    min-width: 400px;
}

.simple-cta-button:hover {
    background: #00e6aa;
    transform: translateY(-2px);
}

/* Responsive Design - EXACT copy from Services */
/* Desktop Large (xl ≥1280px) */
@media (min-width: 1280px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 1100px;
    }
    
    .industry-card {
        min-height: 360px;
        padding: 3rem;
    }
    
    .industry-icon {
        width: 36px;
        height: 36px;
    }
}

/* Desktop (lg 1024-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    .industry-card {
        min-height: 340px;
        padding: 2.5rem;
    }
}

/* Tablet (md 640-1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .pain-points-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .industry-card {
        padding: 2rem;
        min-height: 300px;
    }
    
    .industry-icon {
        width: 30px;
        height: 30px;
    }
}

/* Mobile (sm <640px) */
@media (max-width: 639px) {
    .pain-points-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .pain-points-header {
        margin-bottom: var(--spacing-3xl);
    }
    
    .pain-points-section h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-md);
        line-height: 0.9;
    }
    
    .pain-points-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.5;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 var(--spacing-md);
    }
    
    .industry-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .industry-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 1.25rem;
    }
    
    .industry-title {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .pain-summary {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.6;
    }
}