/* Sección Por qué elegirnos — diseño corporativo */

body.modern-ui .why-section {
    position: relative;
    padding: 100px 0 110px !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    overflow: hidden;
    background: transparent !important;
}

body.modern-ui .why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

body.modern-ui .why-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 92%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
}

body.modern-ui .why-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* —— Encabezado —— */
body.modern-ui .why-section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

body.modern-ui .why-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 999px;
}

body.modern-ui .why-section-title {
    font-family: var(--mx-display, 'Poppins', sans-serif);
    font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 0 18px !important;
    color: #f8fafc !important;
}

body.modern-ui .why-title-accent {
    background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.modern-ui .why-section-lead {
    margin: 0 !important;
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
    color: #f0f4f8 !important;
    font-weight: 400;
}

/* —— Grid —— */
body.modern-ui .why-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* —— Tarjetas —— */
body.modern-ui .why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 26px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left;
    background: linear-gradient(
        165deg,
        rgba(18, 26, 46, 0.92) 0%,
        rgba(10, 14, 28, 0.88) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 20px !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
    overflow: hidden;
}

body.modern-ui .why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.35), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

body.modern-ui .why-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.modern-ui .why-card:hover::before {
    opacity: 1;
}

body.modern-ui .why-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

body.modern-ui .why-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #7dd3fc;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.modern-ui .why-card:hover .why-card-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

body.modern-ui .why-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.modern-ui .why-card-num {
    font-family: var(--mx-display, 'Poppins', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.45);
    padding-top: 4px;
}

body.modern-ui .why-card-title {
    margin: 0 0 10px !important;
    font-family: var(--mx-display, 'Poppins', sans-serif) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

body.modern-ui .why-card-text {
    margin: 0 !important;
    margin-top: auto !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: #f0f4f8 !important;
}

/* —— CTA inferior —— */
body.modern-ui .why-cta {
    margin-top: 56px;
    padding: 36px 32px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.45), rgba(15, 23, 42, 0.65));
    border: 1px solid rgba(96, 165, 250, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

body.modern-ui .why-cta-text {
    margin: 0 0 22px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #e2e8f0;
}

body.modern-ui .why-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

body.modern-ui .why-cta-actions .btn {
    min-width: 180px;
}

/* Entrada escalonada */
body.modern-ui .why-grid .why-card:nth-child(1) { transition-delay: 0.02s; }
body.modern-ui .why-grid .why-card:nth-child(2) { transition-delay: 0.05s; }
body.modern-ui .why-grid .why-card:nth-child(3) { transition-delay: 0.08s; }
body.modern-ui .why-grid .why-card:nth-child(4) { transition-delay: 0.11s; }
body.modern-ui .why-grid .why-card:nth-child(5) { transition-delay: 0.14s; }
body.modern-ui .why-grid .why-card:nth-child(6) { transition-delay: 0.17s; }

@media (max-width: 1024px) {
    body.modern-ui .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    body.modern-ui .why-section {
        padding: 72px 0 80px !important;
    }

    body.modern-ui .why-section-inner {
        padding: 0 16px;
    }

    body.modern-ui .why-section-intro {
        margin-bottom: 40px;
    }

    body.modern-ui .why-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    body.modern-ui .why-card {
        min-height: 0;
    }

    body.modern-ui .why-cta {
        margin-top: 40px;
        padding: 28px 20px;
    }

    body.modern-ui .why-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.modern-ui .why-cta-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
