/* ==========================================================================
   LANDING: SOLUCIONES WHATSAPP PARA EMPRESAS
   Alternancia estricta 1-a-1: [Oscura] -> [Clara] -> ... -> [Oscura]
   ========================================================================== */

.wa-hero {
    padding-top: 160px;
    padding-bottom: 3rem;
    background: var(--troop-dark-bg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
}

.wa-hero::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(-45deg, var(--troop-dark-bg), #15212b, #081c16, var(--troop-dark-bg-alt));
    background-size: 400% 400%;
    animation: waHeroGradientMove 15s ease infinite;
    z-index: -1;
    will-change: transform;
}

@keyframes waHeroGradientMove {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(6%, 6%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.wa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 18%, transparent 82%);
    mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 18%, transparent 82%);
    z-index: 0;
}

/* Fondo SVG animado Opción A: Ráfagas de mensajes -> Nodo central IA + ERP
   Animación GPU exclusiva con transform + opacity. */
.wa-hero-flows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 44%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.72) 55%, #000 100%);
    mask-image: radial-gradient(ellipse 80% 78% at 50% 44%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.72) 55%, #000 100%);
}

.wa-hero-flows svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-flows-desktop { display: block; }
.wa-flows-mobile { display: none; }

@media (min-width: 769px) {
    .wa-flows-mobile,
    .wa-flows-mobile * {
        display: none !important;
        animation: none !important;
    }
}

.wa-flow-base {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-flow-node {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(0, 191, 128, 0.25);
    stroke-width: 1;
}

.wa-flow-hub {
    fill: rgba(0, 191, 128, 0.05);
    stroke: rgba(51, 187, 255, 0.26);
    stroke-width: 1.1;
}

.wa-beam {
    opacity: 0;
    will-change: transform, opacity;
}

.wa-beam-left-1 { animation: waBeamLeft 2.9s cubic-bezier(0.25, 1, 0.5, 1) -0.7s infinite; }
.wa-beam-left-2 { animation: waBeamLeft 3.4s cubic-bezier(0.25, 1, 0.5, 1) -1.9s infinite; }
.wa-beam-left-3 { animation: waBeamLeft 3.1s cubic-bezier(0.25, 1, 0.5, 1) -1.1s infinite; }
.wa-beam-right-1 { animation: waBeamRight 3.6s cubic-bezier(0.25, 1, 0.5, 1) -2.4s infinite; }
.wa-beam-right-2 { animation: waBeamRight 2.8s cubic-bezier(0.25, 1, 0.5, 1) -0.4s infinite; }
.wa-beam-right-3 { animation: waBeamRight 3.5s cubic-bezier(0.25, 1, 0.5, 1) -1.6s infinite; }

.wa-beam-mob-down-1 { animation: waBeamMobDown 3.0s cubic-bezier(0.25, 1, 0.5, 1) -0.8s infinite; }
.wa-beam-mob-down-2 { animation: waBeamMobDown 3.3s cubic-bezier(0.25, 1, 0.5, 1) -1.8s infinite; }
.wa-beam-mob-right { animation: waBeamMobRight 2.8s cubic-bezier(0.25, 1, 0.5, 1) -1.1s infinite; }
.wa-beam-mob-left { animation: waBeamMobLeft 3.1s cubic-bezier(0.25, 1, 0.5, 1) -0.5s infinite; }

.wa-node-pulse-1 {
    animation: waNodePulse 2.8s ease-in-out -0.6s infinite;
    transform-origin: center;
    transform-box: fill-box;
    will-change: transform, opacity;
}

.wa-node-pulse-2 {
    animation: waNodePulse 3.3s ease-in-out -1.5s infinite;
    transform-origin: center;
    transform-box: fill-box;
    will-change: transform, opacity;
}

@keyframes waBeamLeft {
    0% { transform: translate3d(-120px, 0, 0); opacity: 0; }
    14% { opacity: 0.95; }
    82% { opacity: 0.95; }
    100% { transform: translate3d(520px, 0, 0); opacity: 0; }
}

@keyframes waBeamRight {
    0% { transform: translate3d(120px, 0, 0); opacity: 0; }
    14% { opacity: 0.95; }
    82% { opacity: 0.95; }
    100% { transform: translate3d(-520px, 0, 0); opacity: 0; }
}

@keyframes waBeamMobDown {
    0% { transform: translate3d(0, -80px, 0); opacity: 0; }
    15% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { transform: translate3d(0, 240px, 0); opacity: 0; }
}

@keyframes waBeamMobRight {
    0% { transform: translate3d(-70px, 0, 0); opacity: 0; }
    15% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { transform: translate3d(95px, 0, 0); opacity: 0; }
}

@keyframes waBeamMobLeft {
    0% { transform: translate3d(70px, 0, 0); opacity: 0; }
    15% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { transform: translate3d(-95px, 0, 0); opacity: 0; }
}

@keyframes waNodePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
    .wa-beam,
    .wa-node-pulse-1,
    .wa-node-pulse-2,
    .wa-hero::after {
        animation: none !important;
    }
    .wa-beam {
        opacity: 0 !important;
    }
}

.low-bandwidth .wa-hero-flows {
    display: none !important;
}

.wa-hero .troop-container {
    position: relative;
    z-index: 1;
}

.wa-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.wa-hero-title {
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.wa-hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #d7dde0;
    margin-bottom: 1.85rem;
    max-width: 660px;
}

.wa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.wa-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, var(--troop-primary), #009f78);
    color: #ffffff;
    font-family: var(--troop-font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 191, 128, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wa-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(0, 191, 128, 0.35);
}

.wa-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-family: var(--troop-font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.78rem 1.85rem;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wa-btn-outline:hover {
    border-color: var(--troop-primary);
    background: rgba(0, 191, 128, 0.14);
    color: var(--troop-primary);
}

.wa-hero-micro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    color: #aab2bd;
    font-size: 0.9rem;
}

.wa-hero-micro svg {
    color: var(--troop-primary);
    flex-shrink: 0;
}

.wa-hero-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0e141e;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

.wa-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.wa-stack-strip {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.wa-stack-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.55rem 1.05rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wa-stack-pill svg {
    color: var(--troop-primary);
}

/* Secciones Oscuras y Claras */
.section-wa-dark {
    padding: 96px 0;
    background-color: var(--troop-dark-bg);
    color: var(--troop-dark-text);
}

.section-wa-dark h2,
.section-wa-dark h3 {
    color: #ffffff;
}

.section-wa-light {
    padding: 96px 0;
    background-color: #f8fafc;
    color: #334155;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.section-wa-light h2,
.section-wa-light h3 {
    color: #0f172a;
}

.section-wa-light .wa-eyebrow {
    color: #007a52;
}

.section-wa-light .wa-section-lead {
    color: #475569;
}

.wa-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.25rem;
}

.wa-eyebrow {
    display: inline-block;
    color: var(--troop-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.wa-section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.wa-section-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

/* 5 Pilares */
.wa-pillar-featured {
    background: linear-gradient(135deg, rgba(0, 191, 128, 0.08), rgba(30, 33, 43, 0.95));
    border: 1px solid rgba(0, 191, 128, 0.35);
    border-left: 4px solid var(--troop-primary);
    border-radius: 14px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.wa-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 191, 128, 0.12);
    border: 1px solid rgba(0, 191, 128, 0.28);
    color: var(--troop-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.wa-pillar-featured h3,
.wa-pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.wa-pillar-featured p,
.wa-pillar-card p {
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
}

.wa-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.wa-pillar-card {
    background: var(--troop-dark-bg-alt);
    border: 1px solid var(--troop-dark-border);
    border-radius: 14px;
    padding: 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wa-pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--troop-primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.wa-pillar-card .wa-pillar-icon {
    margin-bottom: 1.25rem;
}

/* Diseño técnico y costos (Clara) */
.wa-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-wa-light .wa-arch-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.section-wa-light .wa-arch-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 191, 128, 0.1);
    color: #007a52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
}

.section-wa-light .wa-arch-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.section-wa-light .wa-arch-card p {
    color: #475569;
    line-height: 1.65;
    margin: 0;
    font-size: 0.96rem;
}

.section-wa-light .wa-compare-wrap {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.section-wa-light .wa-compare-head {
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.section-wa-light .wa-compare-head h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.section-wa-light .wa-table-scroll {
    overflow-x: auto;
}

.section-wa-light .wa-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.section-wa-light .wa-compare-table th,
.section-wa-light .wa-compare-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    font-size: 0.94rem;
    line-height: 1.55;
    vertical-align: top;
}

.section-wa-light .wa-compare-table thead th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-wa-light .wa-compare-table thead th.wa-col-troop {
    color: #006644;
    background: rgba(0, 191, 128, 0.1);
}

.section-wa-light .wa-compare-table td.wa-col-label {
    font-weight: 700;
    color: #0f172a;
    width: 26%;
}

.section-wa-light .wa-compare-table td.wa-col-saas {
    color: #475569;
    width: 34%;
}

.section-wa-light .wa-compare-table td.wa-col-troop {
    color: #0f172a;
    font-weight: 600;
    background: rgba(0, 191, 128, 0.04);
    width: 40%;
}

/* Experiencia relacionada + Beneficios (Oscura) */
.wa-case-box {
    background: linear-gradient(135deg, rgba(51, 187, 255, 0.07), rgba(30, 33, 43, 0.95));
    border: 1px solid rgba(51, 187, 255, 0.28);
    border-left: 4px solid var(--troop-secondary);
    border-radius: 14px;
    padding: 2.25rem;
    margin-bottom: 2.5rem;
}

.wa-case-tag {
    display: inline-block;
    background: rgba(51, 187, 255, 0.14);
    border: 1px solid rgba(51, 187, 255, 0.35);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.wa-case-box h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.wa-case-box p {
    color: #d7dde0;
    line-height: 1.65;
    margin-bottom: 1.15rem;
}

.wa-case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--troop-primary);
    font-weight: 700;
    text-decoration: none;
}

.wa-case-link:hover {
    color: var(--troop-secondary);
}

.wa-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.wa-impact-card {
    background: var(--troop-dark-bg-alt);
    border: 1px solid var(--troop-dark-border);
    border-radius: 14px;
    padding: 2rem;
}

.wa-impact-card svg {
    font-size: 1.75rem;
    color: var(--troop-primary);
    margin-bottom: 1rem;
}

.wa-impact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.wa-impact-card p {
    color: #aab2bd;
    line-height: 1.65;
    margin: 0;
    font-size: 0.96rem;
}

/* FAQ (Clara) */
.section-wa-light .wa-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-wa-light .wa-faq-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease;
}

.section-wa-light .wa-faq-item.is-open {
    border-color: rgba(0, 191, 128, 0.55);
}

.section-wa-light .wa-faq-heading {
    margin: 0;
    font-size: 1.05rem;
}

.section-wa-light .wa-faq-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.3rem 1.5rem;
    color: #0f172a;
    font-family: var(--troop-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.section-wa-light .wa-faq-arrow {
    color: #007a52;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.section-wa-light .wa-faq-item.is-open .wa-faq-arrow {
    transform: rotate(180deg);
}

.section-wa-light .wa-faq-panel {
    display: none;
    padding: 0 1.5rem 1.4rem;
    color: #475569;
    line-height: 1.65;
    font-size: 0.96rem;
}

.section-wa-light .wa-faq-item.is-open .wa-faq-panel {
    display: block;
}

/* Confianza & 4 Pilares (Clara) */
.section-trust.section-wa-light {
    padding: 96px 0;
    background-color: #f8fafc;
}

.section-wa-light .wa-trust-quote-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--troop-primary);
    border-radius: 14px;
    padding: 2.5rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.section-wa-light .wa-trust-quote-card h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-wa-light .wa-trust-anchor {
    font-size: 1.12rem;
    font-weight: 700;
    color: #007a52;
    margin: 0;
}

.section-wa-light .wa-trust-pillars {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.section-wa-light .wa-trust-pillar {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1.65rem;
}

.section-wa-light .wa-trust-pillar h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.section-wa-light .wa-trust-pillar h3 svg {
    color: #007a52;
    flex-shrink: 0;
}

.section-wa-light .wa-trust-pillar p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 0.94rem;
}

.section-wa-light .wa-support-note {
    max-width: 960px;
    margin: 1.75rem auto 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-left: 4px solid #0284c7;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
}

.section-wa-light .wa-support-note a {
    color: #0369a1;
    font-weight: 700;
}

/* Contacto (Oscura) */
.section-contact {
    padding: 96px 0;
    background-color: var(--troop-dark-bg);
    border-top: 1px solid var(--troop-dark-border);
}

.section-contact #contacto {
    scroll-margin-top: 90px;
}

@media (max-width: 992px) {
    .wa-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .wa-arch-grid,
    .wa-impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wa-hero {
        padding-top: 120px;
        padding-bottom: 2.5rem;
    }
    .wa-flows-desktop,
    .wa-flows-desktop * {
        display: none !important;
        animation: none !important;
    }
    .wa-flows-mobile {
        display: block !important;
    }
    .wa-hero-flows {
        -webkit-mask-image: radial-gradient(ellipse 92% 76% at 50% 48%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.85) 65%, #000 100%);
        mask-image: radial-gradient(ellipse 92% 76% at 50% 48%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.85) 65%, #000 100%);
    }
    .wa-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .wa-btn-primary,
    .wa-btn-outline {
        justify-content: center;
    }
    .wa-pillars-grid,
    .section-wa-light .wa-trust-pillars {
        grid-template-columns: 1fr;
    }
    .wa-pillar-featured {
        flex-direction: column;
        padding: 1.65rem;
    }
    .section-wa-dark,
    .section-wa-light,
    .section-trust.section-wa-light,
    .section-contact {
        padding: 68px 0;
    }
}
