/* Pricing page: stats band and FAQ (below the plan cards). */
.px-stats,
.px-faq {
    --px-ink: #111827;
    --px-text: #4b5563;
    --px-muted: #6b7280;
    --px-accent: #4f46e5;
    --px-accent-soft: #eef2ff;
    --px-line: #e5e7eb;
    --px-surface: #ffffff;
    font-family: "DM Sans", sans-serif;
    color: var(--px-text);
}

.px-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.px-title {
    margin: 0 0 32px;
    text-align: center;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--px-ink);
    text-wrap: balance;
}

/* Stats */
.px-stats {
    padding: 72px 0 56px;
}

.px-stats-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--px-line);
    border-radius: 20px;
    background: var(--px-surface);
    box-shadow: 0 12px 32px -16px rgba(17, 24, 39, 0.18);
    overflow: hidden;
}

.px-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 16px;
    text-align: center;
}

.px-stat + .px-stat {
    border-left: 1px solid var(--px-line);
}

.px-stat-value {
    margin-top: 10px;
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--px-ink);
    font-variant-numeric: tabular-nums;
}

.px-stat-label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--px-muted);
}

.px-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--px-accent-soft);
    color: var(--px-accent);
}

.px-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

.px-icon--sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.px-icon--sm svg {
    width: 20px;
    height: 20px;
}

/* FAQ */
.px-faq {
    padding: 24px 0 88px;
}

.px-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.px-faq-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--px-line);
    border-radius: 16px;
    background: var(--px-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.px-faq-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px -16px rgba(79, 70, 229, 0.45);
}

.px-faq-q {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--px-ink);
}

.px-faq-a {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--px-text);
    text-wrap: pretty;
}

.px-faq-a a {
    color: var(--px-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.px-faq-a a:hover,
.px-faq-a a:focus-visible {
    color: #3730a3;
}

@media (max-width: 991px) {
    .px-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .px-stat + .px-stat {
        border-left: 0;
    }
    .px-stat {
        border-bottom: 1px solid var(--px-line);
    }
    .px-stat:not(:nth-child(3n + 1)) {
        border-left: 1px solid var(--px-line);
    }
    /* Segunda fila (cifras 4 y 5): sin línea inferior contra el borde exterior */
    .px-stat:nth-child(n + 4) {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    .px-stats {
        padding: 48px 0 40px;
    }
    .px-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .px-stat:not(:nth-child(3n + 1)) {
        border-left: 0;
    }
    .px-stat:nth-child(2n) {
        border-left: 1px solid var(--px-line);
    }
    .px-stat:nth-child(n + 4) {
        border-bottom: 1px solid var(--px-line);
    }
    /* La quinta cifra ocupa la fila entera */
    .px-stat:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }
    .px-faq-grid {
        grid-template-columns: 1fr;
    }
    .px-faq-item {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .px-faq-item {
        transition: none;
    }
}
