/* Déjalo a la IA — secciones enriquecidas de la home (2026-09-24).
   Estático y completo sin JS; la animación vive en marketing-motion.css. */

/* ── Rubros: pestañas con conversación de demostración ──────────────── */
.x-tablist { display: none; }
.x-panels { display: grid; gap: 22px; }
.x-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; padding: 30px;
  border: 1px solid var(--m-line); border-radius: 26px; background: #fff; }
.x-panel-kicker { margin: 0 0 8px; color: #087048; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.x-panel-copy h3 { margin: 0 0 12px; color: var(--m-ink); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.1; font-weight: 750; }
.x-panel-copy p { margin: 0; color: var(--m-muted); font-size: 16px; line-height: 1.6; }
.x-panel-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.x-panel-copy li { position: relative; padding-left: 26px; color: var(--m-text); font-size: 15px; line-height: 1.45; }
.x-panel-copy li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--m-mint); color: var(--m-green-dark); font-size: 11px; font-weight: 900; }
.x-panel > .x-phone { justify-self: center; }

/* Con JS: pestañas accesibles, un panel por vez */
.x-tabs.is-tabbed .x-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 22px;
  padding: 6px; width: max-content; max-width: 100%; border: 1px solid var(--m-line); border-radius: 999px; background: #fff; }
.x-tablist button { padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--m-muted);
  font: 700 14px/1.1 inherit; font-family: inherit; cursor: pointer; transition: background .25s ease, color .25s ease; }
.x-tablist button:hover { color: var(--m-ink); }
.x-tablist button[aria-selected="true"] { background: var(--m-ink); color: #fff; }
.x-tablist button:focus-visible { outline: 3px solid rgba(25, 185, 107, .45); outline-offset: 2px; }
.x-tabs.is-tabbed .x-panel[hidden] { display: none; }

/* ── Un día con AIA: línea de tiempo ─────────────────────────────────── */
.x-timeline { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; display: grid; gap: 14px; }
.x-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--m-green), #0ea5e9); transform-origin: 50% 0; }
.x-moment { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--m-line); border-radius: 16px; background: #fff; }
.x-moment::before { content: ""; position: absolute; left: -25px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--m-green); }
.x-moment time { color: var(--m-green-dark); font-weight: 850; font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.x-moment h3 { margin: 0 0 4px; color: var(--m-ink); font-size: 16px; font-weight: 750; }
.x-moment p { margin: 0; color: var(--m-muted); font-size: 14.5px; line-height: 1.55; }

/* ── Límites claros ─────────────────────────────────────────────────── */
.x-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.x-trust-col { padding: 28px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .05); }
.x-trust-col h3 { margin: 0 0 16px; color: #fff; font-size: 22px; letter-spacing: -.02em; font-weight: 750; }
.x-trust-col h3 span { color: #76e7a4; }
.x-trust-team h3 span { color: #f5b454; }
.x-trust-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.x-trust-col li { position: relative; padding-left: 22px; color: #d3dce6; font-size: 15px; line-height: 1.5; }
.x-trust-col li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #76e7a4; }
.x-trust-team li::before { background: #f5b454; }
.x-trust-note { max-width: 760px; margin: 26px auto 0; color: #aebbc9; font-size: 14.5px; line-height: 1.6; text-align: center; }

/* ── Todo incluido: grilla tipo bento ───────────────────────────────── */
.x-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.x-tile { padding: 22px; border: 1px solid var(--m-line); border-radius: 20px; background: #fff; }
.x-tile-wide { grid-column: span 2; }
.x-tile-tall { grid-row: span 2; background: linear-gradient(160deg, #0a1628, #14314a); border-color: transparent; }
.x-tile-tall h3 { color: #fff !important; }
.x-tile-tall p { color: #c9d6e2 !important; }
.x-tile-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--m-mint); font-size: 21px; }
.x-tile-tall .x-tile-icon { background: rgba(118, 231, 164, .16); }
.x-tile h3 { margin: 16px 0 6px; color: var(--m-ink); font-size: 17px; letter-spacing: -.01em; font-weight: 750; }
.x-tile p { margin: 0; color: var(--m-muted); font-size: 14.5px; line-height: 1.55; }
.x-included-cta { margin: 26px 0 0; text-align: center; }

/* ── iPhone dibujado en CSS con WhatsApp adentro ─────────────────────── */
.x-phone { --x-w: 272px; position: relative; width: min(var(--x-w), 78vw); margin: 0; flex: none; }
.x-phone-frame { position: relative; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #6b7079 0%, #2a2d33 18%, #4a4f57 50%, #1f2226 82%, #5d626a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 0 0 3px #111316, 0 40px 80px -18px rgba(4, 15, 29, .55), 0 14px 30px rgba(4, 15, 29, .22); }
.x-phone-frame::after { content: ""; position: absolute; inset: 10px; border-radius: 44px; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, transparent 42%); }
.x-side { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #202328, #5b6068); }
.x-side-action { left: -3px; top: 17%; height: 26px; } .x-side-up { left: -3px; top: 25%; height: 46px; }
.x-side-down { left: -3px; top: 34%; height: 46px; } .x-side-power { right: -3px; top: 27%; height: 70px; }
.x-phone-screen { position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 19.5; overflow: hidden;
  border-radius: 44px; background: #efeae2; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', sans-serif; }
.x-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 4px 22px 0 28px;
  background: #f7f7f7; color: #000; font-size: 14px; font-weight: 650; }
.x-status-icons { display: flex; align-items: center; gap: 4px; }
.x-status-icons svg { fill: #000; }
.x-battery { position: relative; width: 23px; height: 11px; border: 1.3px solid rgba(0, 0, 0, .45); border-radius: 3.5px; }
.x-battery i { position: absolute; inset: 1.3px; right: 5px; border-radius: 1.5px; background: #000; }
.x-battery::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(0, 0, 0, .45); }
.x-wa-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: #f7f7f7; border-bottom: 1px solid #e3e3e3; }
.x-back { color: #0a84ff; font-size: 28px; line-height: 1; margin-top: -4px; }
.x-avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #19b96b, #0e7c55); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.x-wa-contact { min-width: 0; flex: 1; display: grid; line-height: 1.2; }
.x-wa-contact b { overflow: hidden; color: #111b21; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.x-wa-contact small { color: #667781; font-size: 11px; transition: color .2s ease; }
.x-wa-contact small.is-typing { color: #1fa855; }
.x-demo { padding: 3px 7px; border-radius: 6px; background: #e7f6ee; color: #087048; font-size: 9.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.x-wa-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  padding: 10px 9px; background-color: #efeae2;
  background-image: radial-gradient(rgba(84, 72, 50, .07) 1px, transparent 1.4px), radial-gradient(rgba(84, 72, 50, .05) 1px, transparent 1.4px);
  background-size: 16px 16px, 16px 16px; background-position: 0 0, 8px 8px; }
.x-phone .m-bubble { position: relative; width: auto; max-width: 84%; margin: 0 0 0 7px; padding: 6px 8px 5px; align-self: flex-start;
  border-radius: 0 10px 10px 10px; background: #fff; color: #111b21; font-size: 12.5px; line-height: 1.38; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.x-phone .m-bubble::before { content: ""; position: absolute; top: 0; left: -7px; border: 7px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 7px 8px 0; }
.x-phone .m-bubble.me { align-self: flex-end; margin: 0 7px 0 0; border-radius: 10px 0 10px 10px; background: #d9fdd3; }
.x-phone .m-bubble.me::before { left: auto; right: -7px; border-width: 0 0 8px 7px; border-color: transparent; border-top-color: #d9fdd3; border-left-color: #d9fdd3; }
.x-meta { float: right; margin: 5px 0 -3px 10px; color: #667781; font-size: 9.5px; line-height: 1; white-space: nowrap; }
.x-ticks { margin-left: 1px; color: #8696a0; letter-spacing: -3px; transition: color .3s ease; }
.m-bubble.x-read .x-ticks { color: #53bdeb; }
.x-phone .x-voice { display: flex; align-items: center; gap: 7px; min-width: 62%; }
.x-voice .x-play { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1fa855; color: #fff; font-size: 9px; }
.x-voice .x-wave { flex: 1; height: 16px; background: repeating-linear-gradient(90deg, #7a9a86 0 2px, transparent 2px 5px);
  clip-path: polygon(0 45%, 6% 20%, 12% 70%, 18% 30%, 24% 60%, 30% 10%, 36% 75%, 42% 35%, 48% 55%, 54% 15%, 60% 80%, 66% 30%, 72% 60%, 78% 25%, 84% 70%, 90% 40%, 100% 50%, 100% 55%, 0 55%); }
.x-voice .x-text { color: #667781; font-size: 10.5px; white-space: nowrap; }
.x-voice .x-meta { position: absolute; right: 8px; bottom: 5px; float: none; margin: 0; }
.x-phone .m-handoff { align-self: center; max-width: 88%; margin: 3px 0; padding: 7px 10px; gap: 7px; border: 0; border-radius: 9px;
  background: #fff5c4; color: #54656f; font-size: 11px; line-height: 1.35; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.x-phone .m-handoff b { color: #087048; }
.x-phone .hm-typing { align-self: flex-start; width: auto; white-space: nowrap; margin-left: 7px; padding: 9px 11px; border-radius: 0 10px 10px 10px; }
.x-phone .hm-typing.me { align-self: flex-end; margin: 0 7px 0 0; border-radius: 10px 0 10px 10px; }
.x-wa-input { display: flex; align-items: center; gap: 8px; padding: 7px 9px 24px; background: #f7f7f7; border-top: 1px solid #e3e3e3; }
.x-plus { color: #0a84ff; font-size: 24px; line-height: 1; }
.x-field { flex: 1; min-height: 30px; padding: 7px 12px; overflow: hidden; border: 1px solid #e0e0e0; border-radius: 18px; background: #fff;
  color: #8696a0; font-size: 12.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.x-field.has-text { color: #111b21; }
.x-mic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1fa855; transition: transform .2s ease; }
.x-mic svg { fill: #fff; }
.x-mic.is-sending { transform: scale(1.18); }
.x-home-bar { position: absolute; left: 50%; bottom: 7px; width: 118px; height: 4.5px; margin-left: -59px; border-radius: 3px; background: #111; }

/* Hero: el teléfono va sobre la foto del comercio */
.m-hero .m-hero-visual { min-height: 600px; }
.m-hero .x-phone { margin: 28px 0 28px -40px; }

@media (max-width: 900px) {
  .m-hero .m-hero-visual { min-height: 0; padding: 26px 0; }
  .m-hero .x-phone { margin: 0 auto; }
  .x-panel { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .x-trust-grid { grid-template-columns: 1fr; }
  .x-bento { grid-template-columns: repeat(2, 1fr); }
  .x-tile-tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .x-tabs.is-tabbed .x-tablist { width: auto; border-radius: 18px; }
  .x-tablist button { padding: 9px 13px; font-size: 13px; }
  .x-panel { padding: 16px; border-radius: 20px; }
  .x-bento { gap: 10px; }
  .x-tile { padding: 15px; border-radius: 16px; }
  .x-tile-icon { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .x-tile h3 { margin: 11px 0 4px; font-size: 15px; }
  .x-tile p { font-size: 13px; line-height: 1.45; }
  .x-moment { grid-template-columns: 1fr; gap: 4px; }
}
