/* ============================================
   BENEFITS SECTION STYLES - MIGRATIVE PARTNERS
   2x2 Grid Layout, Clean Cards, Professional Look
   ============================================ */

/* Benefits Section */
.benefits-section {
    display: none;
}

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

/* Header */
.benefits-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-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;
}

.benefits-section h2 .accent {
    background: linear-gradient(
        90deg, 
        var(--neon-green) 0%, 
        #00FFD4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.benefits-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-light);
    font-weight: var(--font-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* Benefit Cards */
.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Benefit Icon */
.benefit-icon {
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: center;
    width: 100%;
}

.icon-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(0, 255, 170, 0.04);
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Icon placeholder para nuevo diseño blanco */
.benefit-card-new .icon-placeholder {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 120px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.benefit-svg {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Full SVG tile that replaces entire card content */
.benefit-card-full {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.benefit-svg-container {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    align-items: center;
}

.benefit-tile-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg);
}

/* Benefit Content */
.benefit-content h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.015em;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.benefit-content p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    max-width: 280px;
    margin: 0 auto;
}

/* Transparent background card content styling */
.benefit-card-full .benefit-content {
    background: transparent;
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.benefit-card-full .benefit-content h3 {
    color: #FFFFFF;
    max-width: 100%;
    padding: 0;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: var(--spacing-md);
}

.benefit-card-full .benefit-content p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
    padding: 0;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.5;
}

/* Accent text for green highlighting */
.text-accent {
    color: var(--neon-green);
    font-weight: 600;
}

/* Nuevo card con anatomía correcta */
.benefit-card-new {
    background: rgba(15, 16, 30, 0.95);
    border: 1px solid rgba(0, 255, 170, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1/1.1;
    position: relative;
    padding: 32px;
    backdrop-filter: blur(10px);
}

/* Parte superior - Imagen/SVG */
.benefit-card-top {
    width: 100%;
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
    overflow: hidden;
}

.benefit-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.benefit-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Parte inferior - Texto */
.benefit-card-bottom {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    flex-shrink: 0;
    min-height: 120px;
}

.benefit-title {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
}

.benefit-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 0.95rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
}

/* Playbook SVG Styling */
.playbook-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Background Elements - Minimalist */
.benefits-section::before {
    display: none;
}

/* Desktop - SVG más grande y centrado */
@media (min-width: 1025px) {
    .benefit-svg-container {
        aspect-ratio: 4/5; /* Proporción de portada */
        min-height: 300px;
        max-height: 380px;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-lg);
    }
    
    .playbook-svg {
        width: 100%;
        height: 100%;
        max-width: 320px;
        max-height: 400px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .benefits-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .benefits-grid {
        gap: var(--spacing-lg);
        max-width: 800px;
    }
    
    .benefit-card {
        padding: var(--spacing-xl);
    }
    
    .benefit-svg-container {
        aspect-ratio: 4/5; /* Proporción de portada para tablet */
        min-height: 220px;
    }
    
    .icon-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .benefit-svg {
        width: 100px;
        height: 67px;
    }
    
    .benefit-content h3 {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .benefit-content p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        max-width: 250px;
    }
}

/* Responsividad para nuevo card */
/* Mobile (sm <640px) - Cards apilados en 1 columna */
@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }
    
    .benefit-card-new {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1/1.05;
        padding: 28px;
    }
    
    .benefit-card-top {
        margin-bottom: 16px;
        padding: 8px;
    }
    
    .benefit-card-bottom {
        min-height: 120px;
        flex-shrink: 0;
    }
    
    .benefit-title {
        font-size: clamp(1rem, 4vw, 1.125rem);
    }
    
    .benefit-subtitle {
        font-size: clamp(0.8rem, 3vw, 0.875rem);
    }
}

/* Tablet (md 640-1024px) - Cards en 2 columnas */
@media (min-width: 640px) and (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .benefit-card-new {
        aspect-ratio: 1/1.1;
        padding: 30px;
    }
    
    .benefit-card-top {
        margin-bottom: 20px;
        padding: 12px;
        flex: 1.4;
    }
    
    .benefit-card-bottom {
        min-height: 120px;
        flex-shrink: 0;
    }
    
    .benefit-title {
        font-size: clamp(1.125rem, 3vw, 1.2rem);
    }
    
    .benefit-subtitle {
        font-size: clamp(0.875rem, 2.5vw, 0.9rem);
    }
}

/* Desktop (lg ≥1024px) - Cards en grid original */
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .benefit-card-new {
        aspect-ratio: 1/1.1;
        padding: 32px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .benefit-card-top {
        margin-bottom: 20px;
        padding: 12px;
        flex: 1.5;
    }
    
    .benefit-card-bottom {
        min-height: 120px;
        flex-shrink: 0;
    }
    
    .benefit-title {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .benefit-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        font-weight: 400;
    }
}

/* Responsive - Mobile para cards antiguos */
@media (max-width: 768px) {
    .benefits-section {
        padding: var(--spacing-xl) 0;
    }
    
    .benefits-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .benefits-section h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: var(--spacing-md);
        line-height: 0.85;
    }
    
    .benefits-subtitle {
        font-size: var(--text-base);
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        font-weight: var(--font-normal);
    }
    
    .benefit-card {
        padding: var(--spacing-lg);
    }
    
    .benefit-svg-container {
        aspect-ratio: 4/5; /* Proporción de portada para móvil */
        min-height: 280px;
    }
    
    .icon-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .benefit-svg {
        width: 80px;
        height: 53px;
    }
    
    .benefit-content h3 {
        font-size: clamp(1rem, 5vw, 1.125rem);
        margin-bottom: var(--spacing-sm);
        line-height: 1.35;
    }
    
    .benefit-content p {
        font-size: clamp(0.8rem, 3vw, 0.875rem);
        line-height: 1.6;
        max-width: 220px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .benefit-card {
        padding: var(--spacing-lg);
    }
    
    .icon-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .benefit-svg {
        width: 70px;
        height: 47px;
    }
    
    .benefit-content h3 {
        font-size: clamp(0.9rem, 5.5vw, 1rem);
        line-height: 1.4;
    }
    
    .benefit-content p {
        font-size: clamp(0.75rem, 3.5vw, 0.8rem);
        line-height: 1.65;
        max-width: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    /* No animations to remove - already minimal */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .benefit-card {
        border-width: 2px;
    }
    
    .benefit-content h3 {
        -webkit-text-stroke: 1px var(--white);
    }
    
    .icon-placeholder {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .benefits-section {
        padding: var(--spacing-lg) 0;
    }
    
    .benefits-section::before {
        display: none;
    }
    
    .benefit-card {
        break-inside: avoid;
        box-shadow: none;
        border-color: #333;
    }
}