/* Fábrica de Apps landing: page CSS (inside visuals, the comparison rows, plan details) */


  /* HERO WINDOW: the ARM inbox, drawn as live HTML in the app's own navy theme */
  .hero__window { background:
    radial-gradient(120% 70% at 80% 110%, #9fd877 0 30%, transparent 62%),
    radial-gradient(90% 60% at 10% 0%, #c9d3f4 0 30%, transparent 70%),
    linear-gradient(160deg, #dfe5f7, #eef2e6); }
  .arm-win { background: #13163f; color: #e8eaf6; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text); text-align: left;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(10 12 40 / .7); }
  .arm-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 13px; color: #a3a8c6; }
  .arm-win__bar b { color: #fff; font-weight: 500; }
  .arm-win__dots { display: flex; gap: 6px; } .arm-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3068; }
  .arm-win__sp { flex: 1; }
  .arm-bot { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; background: rgb(129 208 72 / .16); color: #a6e07a; font-weight: 500; }
  .arm-bot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #81d048; }
  .arm-win__body { display: grid; grid-template-columns: 260px 1fr; min-height: 420px; }
  .arm-inbox { border-right: 1px solid rgb(255 255 255 / .08); padding: 10px; display: grid; align-content: start; gap: 2px; }
  .arm-inbox__q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #8a8fb0; font-size: 13px; }
  .arm-t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
  .arm-t.is-on { background: rgb(255 255 255 / .08); }
  .arm-t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-text); font-style: normal; color: #13163f; }
  .arm-t b { font-weight: 500; color: #fff; } .arm-t time { color: #8a8fb0; font-size: 13px; }
  .arm-t span { grid-column: 2 / -1; color: #a3a8c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arm-convo { display: grid; min-width: 0; align-content: start; }
  .arm-chat { display: grid; gap: 8px; align-content: start; padding: 14px 18px; }
  .arm-msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
  .arm-msg--me { justify-self: start; background: #232766; color: #f1f2fb; border-bottom-left-radius: 6px; }
  .arm-msg--bot { justify-self: end; max-width: 86%; background: #d9f7c4; color: #0f2a05; border-bottom-right-radius: 6px; }
  .arm-msg small { display: inline; margin-left: 8px; font-size: 13px; opacity: .65; white-space: nowrap; }
  .arm-tool { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a3a8c6; }
  .arm-tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #81d048; border-right-color: transparent; }
  .arm-attrs { justify-self: end; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .arm-attrs span { height: 26px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; background: rgb(255 255 255 / .08); color: #e8eaf6; }
  .arm-attrs span::before { content: "+"; margin-right: 5px; color: #81d048; font-weight: 600; }
  @media (max-width: 639px) {
    .arm-win__body { grid-template-columns: 1fr; } .arm-inbox { display: none; }
    .arm-win__bar .arm-win__sp ~ span { display: none; }
    .arm-chat { font-size: 13px; padding: 12px 14px; } .arm-tool, .arm-msg small { display: none; }
  }

  /* CRM vs ARM: the ARM column is one navy panel across every row, the CRM column steps back */
  .vs { position: relative; margin-top: var(--s-7); row-gap: 0; }
  .vs__panel { grid-row: 1 / span 7; position: relative; margin: calc(var(--s-4) * -1) 0; border-radius: var(--r-lg);
    background: radial-gradient(120% 60% at 100% 0%, rgb(129 208 72 / .22), transparent 60%), #141633;
    box-shadow: 0 30px 60px -30px rgb(20 22 51 / .55); }
  .vs__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; position: relative; align-items: center; }
  .vs__row > * { margin: 0; padding: 18px 0; display: flex; align-items: center; gap: var(--s-3); }
  .vs__feat { grid-column: 1 / span 4; font-weight: 500; font-size: var(--t-card); letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
  .vs__crm { grid-column: 5 / span 4; color: var(--muted); border-bottom: 1px solid var(--line); }
  .vs__arm { grid-column: 9 / span 4; color: #f6f7fb; font-weight: 500; padding-inline: var(--s-6) !important; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .vs__row:last-child > * { border-bottom: 0; }
  .vs__row:nth-child(2) { grid-row: 1; }
  .vs__row:nth-child(3) { grid-row: 2; }
  .vs__row:nth-child(4) { grid-row: 3; }
  .vs__row:nth-child(5) { grid-row: 4; }
  .vs__row:nth-child(6) { grid-row: 5; }
  .vs__row:nth-child(7) { grid-row: 6; }
  .vs__row:nth-child(8) { grid-row: 7; }
  .vs__row { z-index: 1; }
  .vs__row--head > * { padding-top: 0; font: var(--display-weight) var(--t-lead)/1.3 var(--font-display); letter-spacing: -0.015em; border-bottom: 1px solid var(--ink); }
  .vs__row--head .vs__crm { color: var(--muted); border-bottom-color: var(--line); }
  .vs__row--head .vs__arm { color: #fff; border-bottom-color: rgb(255 255 255 / .18); }
  .vs__dot { width: 10px; height: 10px; border-radius: 50%; background: #81d048; box-shadow: 0 0 0 4px rgb(129 208 72 / .22); flex: none; }
  .vs__ic { width: 22px; height: 22px; flex: none; border-radius: 50%; padding: 4px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .vs__crm .vs__ic { stroke: var(--muted); background: rgb(96 100 122 / .1); }
  .vs__arm .vs__ic { stroke: #141633; background: #81d048; }
  @media (max-width: 1023px) {
    .vs__feat { grid-column: 1 / span 12; border-bottom: 0; padding-bottom: var(--s-2) !important; }
    .vs__crm { grid-column: 1 / span 6; }
    .vs__arm { grid-column: 7 / span 6; }
    .vs__panel { grid-column: 7 / span 6; }
    .vs__row--head .vs__feat { display: none; }
  }
  @media (max-width: 639px) {
    .vs__panel { display: none; }
    .vs__row > * { padding: var(--s-2) 0; }
    .vs__crm { grid-column: 1 / -1; border-bottom: 0; }
    .vs__arm { grid-column: 1 / -1; background: #141633; border-radius: var(--r-md); padding: var(--s-3) var(--s-4) !important; margin-bottom: var(--s-4); }
    .vs__row--head { display: none; }
  }

  /* the app frame (sections-library.md, app-frame) */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }

  /* features 2x2 */
  #funciones .panel { --p-h: 300px; }
  @media (max-width: 639px) { #funciones .panel { --p-h: 180px; } #funciones .ui-chat__day { display: none; } #funciones .stage { --fade-h: 40px; } }

  /* the dark band's diagram frame */
  #flujo .frame--split { --ratio: 108%; }
  @media (max-width: 1023px) { #flujo .frame--split { --ratio: 80%; } }

  /* pricing */
  .card--plan > p { margin: 0; }
  @media (min-width: 640px) and (max-width: 1023px) { #arm, #precios, #preguntas { --h: 2 } }
  @media (max-width: 639px) { #precios { --hm: 2 } #precios .checks li:nth-child(n+5) { display: none; } }
  .card--plan .price { flex-wrap: wrap; }
  .plan__head { display: flex; align-items: center; gap: var(--s-2); }
  .plan__head h3 { margin: 0; }
  .hero--centred .hero__lead { color: var(--ink); }
  @media (max-width: 379px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__toggle { margin-left: auto; } }
  .arm-win .ui-pause:focus-visible { outline: 2px solid #81d048; outline-offset: 2px; }

  /* logo */
  .nav__logo .brand-logo, .nav__logo .brand-logo--lg { height: 48px; width: auto; display: block; }
  .footer__brand .brand-logo--lg { height: 64px; }
  @media (max-width: 639px) { .nav__logo .brand-logo { height: 40px; } }

  /* FAQ: a help card on navy beside six answer cards */
  .faqx { align-items: stretch; }
  .faqx__help { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg);
    background: radial-gradient(110% 55% at 100% 0%, rgb(129 208 72 / .24), transparent 60%), var(--g-dark, #141633); }
  .faqx__help-head { display: flex; align-items: center; gap: var(--s-3); }
  .faqx__help-head img { flex: none; }
  .faqx__help h3 { margin: 0; font: var(--display-weight) var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; }
  .faqx__chat { display: grid; gap: var(--s-2); }
  .faqx__msg { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
  .faqx__msg--me { justify-self: start; background: #232766; color: #f1f2fb; border-bottom-left-radius: 6px; }
  .faqx__msg--us { justify-self: end; background: #d9f7c4; color: #0f2a05; border-bottom-right-radius: 6px; }
  .faqx__help-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .faqx__clients { display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
  .faqx__clients .t-label { margin: 0; color: var(--ink); }
  .faqx__clients ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .faqx__clients li { height: 32px; padding: 0 var(--s-3); display: inline-flex; align-items: center; border-radius: 99px; font-size: 14px; font-weight: 500; background: rgb(129 208 72 / .18); color: #1f4a0b; }
  .faqx__help .faqx__link { color: #fff; }
  .faqx { row-gap: var(--s-5); }
  .faqx__item { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-4); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
  .faqx__item h3 { grid-column: 2; margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
  .faqx__item p { grid-column: 2; margin: 0; color: var(--ink); opacity: .84; }
  .faqx__ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(129 208 72 / .18); }
  .faqx__ic svg { width: 22px; height: 22px; fill: none; stroke: #2f6a12; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 1023px) { .faqx__help { grid-template-columns: 1fr; grid-column: 1 / -1; } .faqx__chat { display: none; } .faqx__item { grid-column: span 6; } .faqx__clients { grid-column: 1 / -1; } }
  @media (max-width: 639px) { #preguntas { --hm: 2; } .faqx__item { grid-column: 1 / -1; padding: var(--s-4); } .faqx__help { padding: var(--s-5); } .faqx__chat { display: none; } }

  /* close: the client's own ARM answering a DEMO request, on the dark footer */
  .closing__cta.close-arm { display: grid; align-items: start; }
  .footer__brand .brand-logo--lg { background: #fff; padding: 8px 12px; border-radius: 12px; box-sizing: content-box; }
  .close-arm__text { display: grid; gap: var(--s-4); justify-items: start; }
  .close-arm h2 { margin: 0; font-size: clamp(34px, 3.6vw, 56px); max-width: 16ch; }
  .close-arm__text p { margin: 0; color: var(--muted); font-size: var(--t-lead); max-width: 42ch; }
  .close-arm__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-2); }
  .close-arm__facts { display: grid; gap: var(--s-2); }
  .close-arm__facts li { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 15px; }
  .close-arm__facts li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #81d048 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23141633' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  footer.closing.footer--dark { background: radial-gradient(60% 50% at 100% 0%, rgb(129 208 72 / .18), transparent 60%), var(--g-dark, #141633); }
  .close-arm__phone { display: flex; justify-content: flex-end; }
  .close-arm__phone .wa { width: 100%; max-width: 420px; }
  .wa { border-radius: 24px; overflow: hidden; background: #0f2224; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -20px rgb(0 0 0 / .6); font: 400 14px/1.45 var(--font-text); }
  .wa__bar { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; background: #1b3a3c; color: #fff; }
  .wa__bar img { border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }
  .wa__bar span { display: grid; } .wa__bar b { font-weight: 500; } .wa__bar small { font-size: 13px; color: #a6e07a; }
  .wa__body { display: grid; gap: 8px; padding: 14px 16px; background: #0b1b1d; }
  .wa__msg { margin: 0; font-size: 14px; line-height: 1.45; max-width: 84%; padding: 8px 12px; border-radius: 12px; color: #eef2f2; }
  .wa__msg small { margin-left: 8px; font-size: 13px; color: rgb(255 255 255 / .55); white-space: nowrap; }
  .wa__msg--me { justify-self: end; background: #1f5c45; border-bottom-right-radius: 4px; }
  .wa__msg--us { justify-self: start; background: #1d2b2d; border-bottom-left-radius: 4px; }
  .wa__opts { display: flex; gap: 6px; }
  .wa__opts span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid rgb(129 208 72 / .5); color: #a6e07a; font-size: 13px; font-weight: 500; }
  @media (max-width: 1023px) { .close-arm .close-arm__text { grid-column: 1 / -1; min-width: 0; } .close-arm .close-arm__phone { display: none; } }
  @media (max-width: 639px) { .closing__cta.close-arm { display: block; } .close-arm .close-arm__row { display: grid; width: 100%; } .close-arm .btn { width: 100%; } .close-arm h2 { font-size: 34px; } }

  /* one primary button page-wide: the brand green with a navy label (the client's old landing used the same) */
  .btn.btn--primary { --action: #81d048; --action-ink: #141633; }
  .btn.btn--primary:focus-visible { outline: 2px solid #1d2054; outline-offset: 2px; }
  .ground-inverse .btn.btn--primary:focus-visible { outline-color: #fff; }

  /* pricing: the month first, the day as the hook, the one-time setup under it; the middle plan on navy */
  .plans { align-items: stretch; }
  .card--plan .price { align-items: baseline; gap: var(--s-2); }
  .card--plan .price .t-stat { font-size: clamp(36px, 3.2vw, 48px); letter-spacing: -0.03em; }
  .plan__per { font-size: var(--t-lead); color: var(--muted); }
  .plan__who { color: var(--muted); }
  .plan__day { margin-left: var(--s-1); align-self: center; display: inline-flex; width: fit-content; height: 28px; padding: 0 var(--s-3); align-items: center; border-radius: 99px;
    font-size: 14px; font-weight: 500; background: rgb(129 208 72 / .18); color: #1f4a0b; }
  .plan__impl { font-size: 15px; color: var(--muted); }
  .plan--hot { border: 0; box-shadow: 0 30px 60px -28px rgb(20 22 51 / .6);
    background: radial-gradient(90% 50% at 100% 0%, rgb(129 208 72 / .26), transparent 60%), var(--g-dark, #141633); }
  .plan--hot .plan__day { background: #81d048; color: #141633; }
  .plan--hot .plan__who, .plan--hot .plan__per, .plan--hot .plan__impl { color: #c5c9de; }
  .plan--hot .plan__badge { background: #81d048; color: #141633; }
  .plan--hot .checks li::before { filter: none; }
  .plans-note { display: grid; gap: var(--s-1); margin-top: var(--s-6); font-size: 15px; }
  .plans-note p { margin: 0; }
  .plans-note b { font-weight: 500; }
