/* pay.css — estados visibles, comparación de planes, sección Pagos, concepto de tarjeta y FAQ
 * agrupada. Solo se carga cuando esas secciones están en la página (build.mjs, SHOW_PAY).
 * Contrastes (texto sobre su fondo, WCAG): now #166534/#dcfce7 6,5:1 · pilot #1e3a8a/#dbeafe 9,0:1 ·
 * dev #92400e/#fef3c7 6,4:1 · soon #334155/#f1f5f9 9,4:1 · pending #6b21a8/#f3e8ff 7,6:1. */

/* ── Estado: color + icono + texto. Un sello, no un control: cursor normal, sin hover. ─────── */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: default; user-select: text; vertical-align: middle;
}
.status__ico { width: 16px; height: 16px; stroke-width: 2.2; flex: none; }
.status--lg { font-size: 0.9rem; padding: 6px 12px 6px 10px; }
.status--lg .status__ico { width: 18px; height: 18px; }
.status--now { color: #166534; background: #dcfce7; border-color: #86efac; }
.status--pilot { color: #1e3a8a; background: #dbeafe; border-color: #93c5fd; }
.status--dev { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.status--soon { color: #334155; background: #f1f5f9; border-color: #cbd5e1; white-space: normal; }
.status--pending { color: #6b21a8; background: #f3e8ff; border: 1px dashed #c084fc; }
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; }
/* v261: la nota «En desarrollo» de una función va APARTE, al final del texto, separada por una línea: no puede
   leerse como el estado de la captura que tiene al lado (el portal en vivo SÍ está disponible). */
.soon-row--aside { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* Dato pendiente (solo vista previa): punteado, inconfundible con un dato real. */
.pend { color: #6b21a8; background: #f3e8ff; border: 1px dashed #c084fc; border-radius: 6px; padding: 0 6px; font-size: 0.9em; }

/* ── Comparación de planes ─────────────────────────────────────────────── */
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 0.9rem; }
.cmp-wrap { display: none; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.cmp th, .cmp td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { font-weight: 800; font-size: 1.05rem; background: var(--bg); }
.cmp__feat { width: 30%; color: var(--ink-soft); font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.06em; }
.cmp__price th, .cmp__price td { background: var(--bg); }
.cmp__price th { font-weight: 600; color: var(--ink-soft); }
.cmp__action td { background: var(--bg); padding-bottom: 18px; }
.cmp tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.cmp__group th { background: var(--tint); color: var(--accent-hover); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 10px; padding-bottom: 10px; }
.cmp tbody:first-of-type td { font-weight: 700; }
.cmp__all { color: var(--ink); text-align: center !important; }
.cmp__all-tag { display: inline-block; margin-left: 10px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.plan-price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.plan-price--none { color: var(--ink-soft); }
.plan-price__note { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.plans__note { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; max-width: 62em; }

/* Móvil: selector de plan (pestañas) + una ficha + «en todos» + «qué cambia». */
.cmp-m { display: grid; gap: 18px; }
/* v261 · FASE D: 3 planes (sin Free) → 3 columnas en cualquier ancho (con 2 quedaba «Business» solo en otra fila). */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.seg__btn { min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }
.seg__btn:hover { color: var(--ink); background: var(--bg); }
.seg__btn[aria-selected="true"] { background: var(--accent-strong); color: #fff; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.plan-card[hidden] { display: none; }
.plan-card:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.plan-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plan-card__t { font-size: 1.25rem; font-weight: 800; }
.plan-card__price { margin: 0; }
.plan-card__list { display: grid; gap: 0; margin: 0; }
.plan-card__list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.plan-card__list dt { color: var(--ink-soft); }
.plan-card__list dd { margin: 0; font-weight: 700; text-align: right; }
.plan-card .btn { justify-self: start; }
.cmp-m__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cmp-m__box h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.cmp-m__all { display: grid; gap: 8px; }
.cmp-m__all li { position: relative; padding-left: 26px; }
.cmp-m__all li::before { content: ''; position: absolute; left: 2px; top: 0.35em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-strong); border-bottom: 2.5px solid var(--accent-strong); transform: rotate(-45deg); }
.cmp-m__chg { display: grid; gap: 10px; color: var(--ink-soft); }
.cmp-m__chg strong { color: var(--ink); }
@media (min-width: 900px) {
  .cmp-wrap { display: block; }
  .cmp-m { display: none; }
}
@media (min-width: 560px) and (max-width: 899.98px) { .seg { grid-template-columns: repeat(3, 1fr); } }

/* ── Sección Pagos: tres bloques separados ─────────────────────────────── */
.pay { display: grid; gap: 20px; }
.pay__block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; border-top-width: 5px; }
@media (max-width: 639.98px) { .pay__block { padding: 18px 12px; } }
.pay__block--now { border-top-color: #22c55e; }
.pay__block--pilot { border-top-color: #3b82f6; }
.pay__block--dev { border-top-color: #f59e0b; }
.pay__block > .status { justify-self: start; }
.pay__block h3 { font-size: 1.25rem; font-weight: 800; }
.pay__block > p { color: var(--ink-soft); max-width: 60em; }
.pay__shots { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 6px; }
.pay__shot { width: min(100%, 320px); margin: 0; }
.pay__phone { width: min(100%, 220px); }

@media (max-width: 639.98px) {
  .pay__shots {
    justify-content: flex-start; flex-wrap: nowrap; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .pay__shots > * { flex: 0 0 auto; scroll-snap-align: center; }
  /* v258 QA: el ancho se mide contra el CARRUSEL (no contra la ventana): cada ítem cabe entero en lo visible. */
  .pay__shots .pay__phone { width: min(300px, 88%); }
  .pay__shots .pay__shot { width: min(320px, 100%); }
  .pay__shots:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 12px; }
}
.pay__dev { display: grid; gap: 22px; align-items: start; }
.pay__steps { display: grid; gap: 14px; counter-reset: none; }
.pay__step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.pay__step h4 { font-size: 1rem; font-weight: 700; margin: 4px 0 2px; }
.pay__step p { margin: 0; }
.pay__step p { color: var(--ink-soft); }
.pay__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; color: #92400e; font-weight: 800; }
@media (min-width: 1024px) {
  .pay__dev { grid-template-columns: 1fr auto; }
}

/* Concepto: boceto en grises, con su rótulo siempre visible. No es una captura. */
.concept { margin: 0; justify-self: center; width: min(100%, 300px); padding: 12px 12px 6px; border-radius: var(--radius);
  border: 2px dashed #cbd5e1; background: repeating-linear-gradient(135deg, #f8fafc 0 10px, #f1f5f9 10px 20px); }
.concept__flag { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; font-weight: 700; color: #334155; margin-bottom: 8px; }
.concept__flag .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.concept__svg { width: 100%; height: auto; display: block; }
.cs-phone { fill: #fff; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 6 5; }
.cs-card { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 1.5; }
.cs-chip { fill: #cbd5e1; }
.cs-line { stroke: #94a3b8; stroke-width: 5; stroke-linecap: round; opacity: 0.6; }
.cs-opt { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 1.5; stroke-dasharray: 4 4; }
.cs-dot { fill: none; stroke: #94a3b8; stroke-width: 2; }
.cs-receipt { fill: #f8fafc; stroke: #94a3b8; stroke-width: 1.5; }
.cs-txt { font: 600 11px/1 Inter, system-ui, sans-serif; fill: #475569; }
.cs-cap { font: 700 12px/1 Inter, system-ui, sans-serif; fill: #334155; text-anchor: middle; }
.cs-flag { font: 700 10px/1 Inter, system-ui, sans-serif; fill: #475569; text-anchor: middle; }

/* ── FAQ agrupada (planes y pagos) ─────────────────────────────────────── */
.faq-groups { margin-top: 40px; }
.faq-groups__t { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.faq-group { margin-top: 20px; }
.faq-group__t { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-hover); margin-bottom: 10px; }

/* FASE F · precios: el importe mensual no se parte («$29.99 /mes» en una línea) y la unidad va más chica. */
.plan-price { white-space: nowrap; }
.plan-price__per { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.plans__cta { margin-top: 20px; }
/* El botón bajo la tabla puede ocupar dos líneas en 320 px (EN «Create an account and choose a plan»): sin desborde. */
.plans__cta .btn { max-width: 100%; white-space: normal; text-align: center; }
