/* Estilos de /api, compartidos con las páginas por plataforma (welcome/platform). */
body.niopos-marketing-page { font-family: 'Montserrat', sans-serif; }
body.niopos-marketing-page .site-wrapper { background-color: #000A22 !important; }
:root {
    --api-terracotta: #A33B32;
    --api-galaxy: #4A2B4D;
    --api-midnight: #242840;
    --api-light: #000A22;
    --api-surface: #060F2C;
    --api-white: #FFFFFF;
    --api-muted: #697086;
    --api-text: rgba(255, 255, 255, 0.85);
    --api-text-muted: rgba(255, 255, 255, 0.65);
    --api-line: rgba(36, 40, 64, 0.12);
    --api-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.api-page {
    background: var(--api-light);
    color: var(--api-text);
    overflow: hidden;
}

/* Texto e íconos dentro de tarjetas claras: se mantienen oscuros */
.api-card h3,
.api-integration-group h3,
.api-faq-item h3 {
    color: var(--api-midnight);
}
.api-card .api-copy,
.api-integration-group .api-copy,
.api-price-card .api-copy,
.api-faq-item p {
    color: var(--api-muted);
}

.api-section {
    padding: 88px 0;
    position: relative;
}

.api-eyebrow {
    color: var(--api-terracotta);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.api-heading {
    color: var(--api-white);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.api-copy {
    color: var(--api-text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.api-hero {
    background:
        radial-gradient(circle at 19% 19%, rgba(163, 59, 50, 0.45), transparent 28%),
        radial-gradient(circle at 78% 24%, rgba(74, 43, 77, 0.65), transparent 32%),
        linear-gradient(135deg, #181b2e 0%, var(--api-midnight) 48%, #3b223f 100%);
    color: var(--api-white);
    min-height: calc(100svh - 4rem);
    padding: 92px 0 76px;
}

.api-hero h1 {
    color: var(--api-white);
    font-size: clamp(2.7rem, 6.3vw, 5.8rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 0.96;
    margin-bottom: 1.5rem;
}

.api-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.62;
    max-width: 680px;
}

.api-hero-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.5rem;
    margin: 0 0.5rem 0.7rem 0;
    padding: 0.62rem 0.9rem;
}

.api-btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 54px;
    padding: 0.95rem 1.55rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.api-btn:hover {
    transform: translateY(-2px);
}

.api-btn-primary {
    background: var(--api-terracotta);
    border: 1px solid var(--api-terracotta);
    box-shadow: 0 18px 34px rgba(163, 59, 50, 0.34);
    color: var(--api-white) !important;
}

.api-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--api-white) !important;
}

.api-visual {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    padding: 1rem;
}

.api-visual img {
    border-radius: 14px;
    display: block;
    width: 100%;
}

.api-flow-fallback {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-radius: 14px;
    padding: 1.25rem;
}

.api-flow-node {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.85rem;
    padding: 1rem;
}

.api-card {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(36, 40, 64, 0.07);
    height: 100%;
    padding: 1.5rem;
}

.api-icon {
    align-items: center;
    background: rgba(163, 59, 50, 0.1);
    border-radius: 8px;
    color: var(--api-terracotta);
    display: inline-flex;
    font-size: 1.25rem;
    height: 46px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 46px;
}

.api-flow-card {
    position: relative;
}

.api-flow-card::after {
    background: linear-gradient(90deg, var(--api-terracotta), var(--api-galaxy));
    content: "";
    height: 2px;
    left: calc(100% + 15px);
    opacity: 0.55;
    position: absolute;
    top: 47px;
    width: 44px;
}

.api-flow-card.api-flow-card-last::after {
    display: none;
}

.api-integration-group {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 8px;
    height: 100%;
    padding: 1.5rem;
}

.api-logo-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-logo-tile {
    align-items: center;
    background: #fafafa;
    border: 1px solid rgba(36, 40, 64, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 0.85rem;
    text-align: center;
}

a.api-logo-tile {
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.api-logo-tile:hover {
    border-color: var(--api-terracotta);
    transform: translateY(-2px);
}

.api-logo-tile img {
    max-height: 34px;
    max-width: 130px;
    object-fit: contain;
}

.api-logo-tile span {
    color: var(--api-midnight);
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    margin-top: 0.55rem;
}

.api-dark-band {
    background:
        radial-gradient(circle at 80% 10%, rgba(163, 59, 50, 0.4), transparent 32%),
        linear-gradient(135deg, var(--api-midnight), var(--api-galaxy));
    color: var(--api-white);
}

.api-dark-band .api-heading,
.api-dark-band h2,
.api-dark-band h3 {
    color: var(--api-white);
}

.api-dark-band .api-copy,
.api-dark-band p,
.api-dark-band li {
    color: rgba(255, 255, 255, 0.78);
}

.api-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.api-check-list li {
    align-items: flex-start;
    display: flex;
    font-size: 1.02rem;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.api-check-list i {
    color: var(--api-terracotta);
    margin-top: 0.18rem;
}

.api-price-card {
    background: var(--api-white);
    border: 1px solid rgba(163, 59, 50, 0.24);
    border-radius: 8px;
    box-shadow: var(--api-shadow);
    padding: 2.25rem;
    position: relative;
}

.api-price {
    color: var(--api-midnight);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
}

.api-price small {
    color: var(--api-muted);
    font-size: 1.15rem;
    font-weight: 800;
}

.api-quote {
    background: var(--api-white);
    border-left: 4px solid var(--api-terracotta);
    border-radius: 8px;
    color: var(--api-midnight);
    box-shadow: var(--api-shadow);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
    padding: 1.4rem;
}

.api-faq-item {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 8px;
    margin-bottom: 0.85rem;
    padding: 1.25rem 1.35rem;
}

.api-faq-item h3 {
    color: var(--api-midnight);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.api-faq-item p {
    color: var(--api-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991.98px) {
    .api-hero {
        padding-top: 68px;
    }

    .api-flow-card::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .api-section {
        padding: 64px 0;
    }

    .api-hero-badge,
    .api-btn {
        width: 100%;
    }

    .api-logo-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Páginas por plataforma y negocio: fondo sólido continuo ===== */
.pl-page {
    --pl-background: #000A22;
    --pl-deep: #00040F;
    background: var(--pl-background);
}

.pl-page .pl-section,
.pl-page .api-dark-band {
    background: var(--pl-background);
}

.pl-page .footer-area-l-17 {
    background: var(--pl-deep) !important;
}

.pl-page .pl-plan-featured {
    box-shadow: none;
}

.pl-hero {
    background: var(--pl-background, var(--api-light));
    color: var(--api-white);
    padding: 80px 0 72px;
}

.pl-hero-inner {
    max-width: 780px;
}

.pl-brand {
    align-items: center;
    background: var(--api-white);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem 1rem;
}

.pl-brand-niopos,
.pl-brand-name {
    color: var(--api-midnight);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pl-brand-x {
    color: var(--api-muted);
}

.pl-brand img {
    display: block;
    height: 24px;
    max-width: 110px;
    object-fit: contain;
    width: auto;
}

.pl-hero h1 {
    color: var(--api-white);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 1.1rem;
}

.pl-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.pl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pl-trust {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin: 1.25rem 0 0;
}

.pl-trust a {
    color: var(--api-white);
    font-weight: 700;
    text-decoration: underline;
}

.pl-section {
    padding: 80px 0;
}

.pl-section-tight {
    padding: 56px 0;
}

.pl-section-alt {
    background: var(--api-surface);
}

#planes {
    scroll-margin-top: 72px;
}

.pl-section-head {
    margin: 0 auto 3rem;
    max-width: 680px;
    text-align: center;
}

.pl-kicker {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.pl-highlight {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    height: 100%;
    padding-top: 1.25rem;
}

.pl-highlight i {
    color: var(--api-terracotta);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.pl-highlight h3 {
    color: var(--api-white);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.pl-highlight p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

.pl-plan {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.pl-plan-featured {
    border: 2px solid var(--api-terracotta);
    box-shadow: var(--api-shadow);
}

.pl-plan-tag {
    align-self: flex-start;
    background: rgba(163, 59, 50, 0.1);
    border-radius: 999px;
    color: var(--api-terracotta);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    text-transform: uppercase;
}

.pl-plan-tag-muted {
    background: rgba(36, 40, 64, 0.08);
    color: var(--api-midnight);
}

.pl-plan h3 {
    color: var(--api-midnight);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.pl-plan-name {
    color: var(--api-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.pl-plan-price {
    color: var(--api-midnight);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.pl-plan-price small {
    color: var(--api-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.pl-plan-note {
    color: var(--api-muted);
    font-size: 0.85rem;
    margin: 0.45rem 0 1.25rem;
}

.pl-plan-for {
    color: var(--api-midnight);
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.pl-plan ul {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.pl-plan li {
    color: var(--api-muted);
    display: flex;
    gap: 0.6rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.pl-plan li i {
    color: var(--api-terracotta);
    margin-top: 0.25rem;
}

.pl-plan .api-btn {
    margin-top: auto;
    width: 100%;
}

.pl-btn-outline {
    background: transparent;
    border: 1px solid var(--api-midnight);
    color: var(--api-midnight) !important;
}

.pl-step-num {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--api-white);
    display: inline-flex;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 40px;
}

.pl-step h3 {
    color: var(--api-white);
    font-size: 1.15rem;
    font-weight: 800;
}

.pl-step p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.pl-step a {
    color: var(--api-white);
    font-weight: 700;
    text-decoration: underline;
}

.pl-faq {
    margin: 0 auto;
    max-width: 820px;
}

.pl-faq details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pl-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 2.25rem 1.25rem 0;
    position: relative;
}

.pl-faq summary::-webkit-details-marker {
    display: none;
}

.pl-faq summary::after {
    color: var(--api-terracotta);
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 1.25rem;
}

.pl-faq details[open] summary::after {
    content: "\2212";
}

.pl-faq summary h3 {
    color: var(--api-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.pl-faq details p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.pl-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.pl-review-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--api-white) !important;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
}

.pl-stars {
    color: #F5B301;
    letter-spacing: 0.08em;
}

.pl-review {
    background: var(--api-white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 1.75rem;
}

.pl-review blockquote {
    color: var(--api-midnight);
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0.75rem 0 1.25rem;
}

.pl-review figcaption {
    color: var(--api-muted);
    font-size: 0.85rem;
}

.pl-review figcaption strong {
    color: var(--api-midnight);
    display: block;
    font-size: 0.95rem;
}

.pl-review figcaption a {
    color: var(--api-muted);
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .pl-hero {
        padding: 36px 0 48px;
    }

    .pl-section {
        padding: 56px 0;
    }

    .pl-section-tight {
        padding: 44px 0;
    }

    .pl-plan {
        padding: 1.5rem;
    }
}

/* Enlace secundario dentro de una tarjeta de plan (WhatsApp, detalles del plan). */
.industry-plan-link {
    display: block;
    color: var(--api-midnight);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    text-decoration: underline;
}
