/* =============================================================================
   Soft Imperio — Home (reconstrucción con carácter)
   Mismo ADN claro + verde, pero roto a mano: hero asimétrico con ilustración de
   activación propia, bento de piezas variadas (incluye tiles oscuro y verde),
   pasos en línea de tiempo, soporte con mini-chat. Sin rótulos en mayúsculas,
   sin banda de "números gigantes", sin iconos flotando.
   ============================================================================= */

/* ============================================================ HERO (foto) === */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(460px, 78vh, 700px); overflow: hidden; isolation: isolate; }
.hero > .container { width: 100%; }
.hero__bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: 64% center; transform: scale(1.06); will-change: transform; animation: kenburns 28s var(--ease-out-soft) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
/* Video de fondo: invisible hasta que carga un fotograma (entonces hace fundido).
   Si el archivo no existe, nunca aparece y queda la foto .hero__bg de respaldo. */
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; transition: opacity 0.8s var(--ease-out); pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
/* Con el video activo, la composición flotante cede el protagonismo (se evita
   que dos "dashboards" compitan). Si el video falla, la composición sigue ahí. */
@media (min-width: 641px) {
  /* !important + animation:none para ganarle a la animación "reveal" que fija
     opacity:1 (las animaciones CSS tienen prioridad sobre las reglas normales). */
  .hero--video .hero__visual { animation: none !important; opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity 0.6s var(--ease-out); }
}
@media (max-width: 640px) { .hero__video { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, oklch(0.045 0.006 156 / 0.93) 0%, oklch(0.05 0.006 156 / 0.8) 30%, oklch(0.05 0.006 156 / 0.42) 56%, oklch(0.05 0.006 156 / 0.12) 82%, oklch(0.05 0.006 156 / 0.02) 100%),
    radial-gradient(95% 85% at 6% 100%, oklch(0.5 0.15 156 / 0.24), transparent 55%),
    linear-gradient(0deg, oklch(0.045 0.006 156 / 0.55), transparent 30%); }
/* En móvil/tablet el texto ocupa todo el ancho sobre la foto: oscurecido uniforme */
@media (max-width: 860px) {
  .hero::after {
    background:
      linear-gradient(180deg, oklch(0.05 0.006 156 / 0.74) 0%, oklch(0.05 0.006 156 / 0.82) 55%, oklch(0.045 0.006 156 / 0.95) 100%),
      radial-gradient(110% 60% at 50% 110%, oklch(0.5 0.15 156 / 0.22), transparent 60%);
  }
}
.hero__watermark { position: absolute; z-index: 0; right: clamp(1.2rem, 5vw, 4rem); bottom: clamp(1.2rem, 5vw, 3rem); width: clamp(96px, 14vw, 168px); opacity: 0.22; filter: drop-shadow(0 6px 16px oklch(0 0 0 / 0.45)); pointer-events: none; }
@media (min-width: 961px) { .hero__watermark { display: none; } }
.hero__content { position: relative; max-width: 640px; color: #fff; padding-block: clamp(3.5rem, 9vw, 6.5rem); }

/* --- Composición 3D del hero (panel de activación + cajas flotando) --- */
@media (min-width: 961px) {
  .hero > .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr); align-items: center; gap: clamp(1.5rem, 3.5vw, 3.5rem); }
}
/* La nueva foto del hero ya muestra el producto, así que la composición flotante
   sería redundante y taparía el monitor: la ocultamos. (Reversible.) */
.hero__visual { display: none; }
@media (min-width: 961px) { .hero > .container { grid-template-columns: minmax(0, 1fr); } }
.hero__beam { position: absolute; width: 130%; height: 130%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 36% at 58% 44%, oklch(0.72 0.18 156 / 0.5), transparent 70%); filter: blur(8px); }
.hero__stage { position: relative; transform-style: preserve-3d; z-index: 1; width: min(410px, 100%); }

.hero__panel { position: relative; z-index: 2; border-radius: var(--r-lg); padding: 1.15rem 1.25rem;
  transform: rotateY(-15deg) rotateX(6deg);
  background: linear-gradient(160deg, oklch(0.21 0.02 156 / 0.92), oklch(0.115 0.014 156 / 0.96));
  border: 1px solid oklch(1 0 0 / 0.12);
  box-shadow: 0 34px 74px oklch(0 0 0 / 0.62), 0 0 0 1px oklch(0.7 0.16 156 / 0.12), inset 0 1px 0 oklch(1 0 0 / 0.1);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  animation: heroFloat 7s var(--ease-out-soft) infinite alternate; will-change: transform; }
@keyframes heroFloat {
  from { transform: rotateY(-15deg) rotateX(6deg) translateY(6px); }
  to   { transform: rotateY(-11deg) rotateX(4deg) translateY(-10px); }
}
.hp__top { display: flex; align-items: center; gap: 0.7rem; }
.hp__app { width: 2.7rem; height: 2.7rem; border-radius: 13px; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.hp__app .brand-glyph { width: 2.7rem !important; height: 2.7rem !important; border-radius: 13px; }
.hp__id { flex: 1; min-width: 0; }
.hp__id b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; }
.hp__id span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.hp__status { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
  color: oklch(0.88 0.16 156); background: oklch(0.7 0.16 156 / 0.16); border: 1px solid oklch(0.7 0.16 156 / 0.3); padding: 0.3rem 0.55rem; border-radius: var(--r-pill); }
.hp__status svg { width: 0.85rem; height: 0.85rem; }
.hp__bar { margin: 1.05rem 0 0.95rem; height: 7px; border-radius: 99px; background: oklch(1 0 0 / 0.1); overflow: hidden; }
.hp__bar > span { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left;
  background: linear-gradient(90deg, oklch(0.6 0.16 156), oklch(0.82 0.17 156));
  box-shadow: 0 0 14px oklch(0.72 0.16 156 / 0.6); animation: hp-fill 1.6s var(--ease-out) 0.4s both; }
@keyframes hp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hp__steps { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.hp__steps li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); }
.hp__steps svg { width: 1rem; height: 1rem; color: oklch(0.82 0.16 156); flex: none; }
.hp__key { margin-top: 0.95rem; display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.65rem; border-radius: var(--r-sm);
  background: oklch(0 0 0 / 0.35); border: 1px solid oklch(1 0 0 / 0.08); }
.hp__key span { font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 700; color: rgba(255, 255, 255, 0.45); }
.hp__key code { flex: 1; font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.06em; white-space: nowrap; }
.hp__key svg { width: 1rem; height: 1rem; color: oklch(0.82 0.16 156); flex: none; }

.hero__float { position: absolute; z-index: 1; width: 4.7rem; height: 4.7rem; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, oklch(0.22 0.02 156 / 0.9), oklch(0.12 0.015 156 / 0.94));
  border: 1px solid oklch(1 0 0 / 0.1); box-shadow: 0 18px 42px oklch(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero__float .brand-glyph { width: 2.6rem !important; height: 2.6rem !important; border-radius: 12px; }
.hero__float--a { top: -2.3rem; right: -1.3rem; transform: rotateY(-15deg) translateZ(40px); animation: heroFloat2 6s var(--ease-out-soft) infinite alternate; }
.hero__float--b { bottom: -2.1rem; left: -1.7rem; transform: rotateY(-15deg) translateZ(22px); animation: heroFloat2 6.6s var(--ease-out-soft) -2s infinite alternate; }
@keyframes heroFloat2 { from { translate: 0 0; } to { translate: 0 -14px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__panel, .hero__float { animation: none; }
  .hp__bar > span { animation: none; }
}

.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); margin-bottom: 1.4rem; }
.hero__eyebrow .tp-stars { display: inline-flex; gap: 2px; }
.hero__eyebrow .tp-stars i { width: 0.95rem; height: 0.95rem; color: #ffc24b; }
.hero__eyebrow .tp-stars svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.hero__eyebrow b { color: #fff; }

.hero h1 { font-size: clamp(1.72rem, 0.45rem + 4.7vw, 4.2rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px oklch(0.1 0 0 / 0.35); }
.hero h1 em { font-style: normal; position: relative; color: oklch(0.85 0.15 159); }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.1em; height: 0.085em; border-radius: 99px;
  background: linear-gradient(90deg, oklch(0.78 0.17 156), oklch(0.86 0.13 162)); transform: scaleX(0); transform-origin: left;
  animation: hl-draw 0.85s var(--ease-out) 0.55s forwards; }
@keyframes hl-draw { to { transform: scaleX(1); } }

.hero__lede { margin-top: 1.3rem; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem); color: rgba(255, 255, 255, 0.9); max-width: 50ch; line-height: 1.55; }
.hero__cta { margin-top: 2.1rem; display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.btn--onphoto { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--onphoto:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.hero__trust { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); }
.hero__trust svg { width: 1.05rem; height: 1.05rem; color: oklch(0.83 0.16 156); }

@media (max-width: 640px) {
  .hero { min-height: clamp(420px, 82vh, 560px); }
  .hero__content { max-width: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ===================================================== MARCAS (strip) ======= */
.brandstrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brandstrip__inner { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); padding-block: 1.4rem; flex-wrap: wrap; }
.brandstrip__label { font-size: 0.82rem; color: var(--ink-faint); max-width: 14ch; line-height: 1.35; font-weight: 500; }
.brandstrip__logos { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brandstrip__track { display: flex; align-items: center; gap: clamp(1.75rem, 3.5vw, 3rem); width: max-content; animation: bs-marquee 30s linear infinite; }
.brandstrip__logos:hover .brandstrip__track { animation-play-state: paused; }
@keyframes bs-marquee { to { transform: translateX(-50%); } }
.brandstrip__logos .bl { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; filter: saturate(0.85); transition: filter var(--t), color var(--t); }
.brandstrip__logos .bl:hover { filter: none; color: var(--ink); }
.brandstrip__logos .bl .brand-glyph { box-shadow: inset 0 0 0 1px oklch(0.24 0.05 255 / 0.06); }

/* =========================================================== BENTO ========== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: clamp(0.8rem, 1.4vw, 1.15rem); }
.bento__tile { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.7rem); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; transition: transform var(--t) var(--ease-out), box-shadow var(--t); }
.bento__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento__tile h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.bento__tile p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.5; margin-top: 0.4rem; }
.bento__tile .spacer { flex: 1; }

/* Tile destacado: oferta/producto (ancho) */
.bento__tile--feature { grid-column: span 2; grid-row: span 2; }
.bt-offer { display: flex; flex-direction: column; height: 100%; }
.bt-offer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bt-offer__top .badge { background: var(--brand-50); color: var(--brand-ink); border: none; }
.bt-offer h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-top: 1rem; line-height: 1.1; }
.bt-offer__glyphwrap { margin: 1.25rem 0; display: flex; align-items: flex-end; gap: 0.9rem; }
.bt-offer__price { display: flex; align-items: baseline; gap: 0.5rem; }
.bt-offer__price .now { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bt-offer__price .old { font-size: 1rem; color: var(--ink-faint); text-decoration: line-through; }
.bt-offer__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; }

/* Tile oscuro (contraste, compromete color) */
.bento__tile--dark { background: var(--logo-tile); border-color: transparent; color: #eaf2ee; grid-column: span 2; grid-row: span 2; }
.bento__tile--dark h3 { color: #fff; }
.bento__tile--dark p { color: oklch(0.82 0 0); }
[data-theme="dark"] .bento__tile--dark { background: oklch(0.255 0 0); }
.bt-mini { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.1rem; }
.bt-mini .row { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: oklch(0.85 0 0); }
.bt-mini .row .d { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #1ed47e; box-shadow: 0 0 0 0 #1ed47e; animation: pulseDot 2.2s var(--ease-out) infinite; }
.bt-mini .row.q .d { background: oklch(0.55 0.02 230); animation: none; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 oklch(0.78 0.18 156 / 0.5); } 70% { box-shadow: 0 0 0 7px oklch(0.78 0.18 156 / 0); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Tile verde (CTA WhatsApp) */
.bento__tile--green { background: var(--brand-strong); border-color: transparent; color: #fff; }
.bento__tile--green h3 { color: #fff; }
.bento__tile--green p { color: rgba(255,255,255,0.9); }
.bento__tile--green .wa-ic { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--r); background: rgba(255,255,255,0.16); color: #fff; margin-bottom: auto; }
.bento__tile--green .wa-ic svg { width: 1.4rem; height: 1.4rem; }
.bento__tile--green .go { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.bento__tile--green .go svg { width: 1.05rem; height: 1.05rem; transition: transform var(--t); }
.bento__tile--green:hover .go svg { transform: translateX(3px); }

/* Tile proof (ancho, prueba integrada — NO números gigantes sueltos) */
.bento__tile--proof { grid-column: span 2; display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.bt-proof__fig { flex: none; width: 96px; height: 96px; display: grid; place-items: center; position: relative; }
.bt-proof__num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bt-proof__txt b { color: var(--ink); }
.bt-proof__flags { display: flex; gap: 0.4rem; margin-top: 0.7rem; flex-wrap: wrap; }
.bt-proof__flags span { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-muted); }

/* Tile simple con micro-ilustración */
.bt-icon { width: 2.8rem; height: 2.8rem; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); margin-bottom: auto; }
.bt-icon svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--feature, .bento__tile--proof { grid-column: span 2; }
  .bento__tile--feature { grid-row: auto; }
  .bento__tile--dark { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile--feature, .bento__tile--proof, .bento__tile--dark { grid-column: auto; grid-row: auto; }
  .bento__tile--proof { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ====================================================== CATEGORÍAS =========== */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.7rem, 1.4vw, 1rem); }
.cat-tile { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--t), transform var(--t) var(--ease-out), box-shadow var(--t); }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.cat-tile .glyphrow { display: flex; align-items: center; justify-content: space-between; }
.cat-tile h4 { font-size: 1rem; }
.cat-tile .cnt { font-size: 0.8rem; color: var(--ink-faint); }
.cat-tile .arrow { color: var(--ink-faint); display: inline-flex; transition: color var(--t), transform var(--t); }
.cat-tile:hover .arrow { color: var(--brand-ink); transform: translateX(2px); }
.cat-tile .arrow svg { width: 1.1rem; height: 1.1rem; }
/* primera categoría destacada (rompe la uniformidad) */
.cat-tile--lead { grid-column: span 2; flex-direction: row; align-items: center; gap: 1.2rem; background: var(--bg-subtle); }
.cat-tile--lead .glyphrow { flex-direction: column; align-items: flex-start; }
.cat-tile--lead .body { flex: 1; }
.cat-tile--lead p { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.25rem; }
@media (max-width: 820px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat-tile--lead { grid-column: span 2; } }
@media (max-width: 460px) { .cats { grid-template-columns: 1fr; } .cat-tile--lead { grid-column: auto; flex-direction: column; align-items: flex-start; } }

/* ====================================================== PRODUCTOS ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.sec-head__t h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -0.025em; }
.sec-head__t p { color: var(--ink-muted); margin-top: 0.5rem; max-width: 48ch; }

/* ==================================================== CÓMO FUNCIONA ========== */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.flow::before { content: ""; position: absolute; top: 1.4rem; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); z-index: 0; }
.flow__step { position: relative; z-index: 1; }
.flow__num { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 1.1rem; transition: border-color var(--t), background-color var(--t), color var(--t); }
.flow__step:hover .flow__num { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-50); }
.flow__step h4 { font-size: 1.05rem; }
.flow__step p { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.4rem; line-height: 1.5; }
.flow__step .ic { color: var(--brand); margin-bottom: 0.6rem; display: inline-flex; }
.flow__step .ic svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr 1fr; } .flow::before { display: none; } }
@media (max-width: 440px) { .flow { grid-template-columns: 1fr; } }

/* ====================================================== SOPORTE + CHAT ======= */
.support2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.support2__copy h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -0.025em; }
.support2__copy p { color: var(--ink-muted); margin-top: 1rem; font-size: 1.05rem; max-width: 42ch; }
.support2__list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; }
.support2__list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--ink-body); }
.support2__list li svg { width: 1.25rem; height: 1.25rem; color: var(--brand); flex: none; margin-top: 0.1rem; }
.support2__cta { margin-top: 1.9rem; }

.chat { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 1.5vw, 1.85rem); box-shadow: var(--shadow-sm); }
.chat__head { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.chat__head .av { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-strong); color: #fff; display: grid; place-items: center; flex: none; }
.chat__head .av svg { width: 1.25rem; height: 1.25rem; }
.chat__head b { display: block; font-size: 0.95rem; color: var(--ink); }
.chat__head span { font-size: 0.8rem; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 0.35rem; }
.chat__head span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }
.chat__thread { display: flex; flex-direction: column; gap: 0.7rem; }
.chat__b { max-width: 82%; padding: 0.7rem 0.95rem; font-size: 0.9rem; line-height: 1.45; border-radius: 1.1rem; }
.chat__b--in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--ink-body); border-bottom-left-radius: 0.3rem; }
.chat__b--out { align-self: flex-end; background: var(--brand-strong); color: #fff; border-bottom-right-radius: 0.3rem; }
.chat__b--ok { align-self: flex-end; background: var(--brand-50); color: var(--brand-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid color-mix(in oklch, var(--brand) 25%, transparent); }
.chat__b--ok svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 800px) { .support2 { grid-template-columns: 1fr; } .chat { order: -1; } }

/* ---- Chat en vivo: la conversación se reproduce sola, como asistencia real --- */
.chat__thread { min-height: clamp(12.5rem, 30vh, 16rem); justify-content: flex-end; }
.chat__b { opacity: 0; transform: translateY(9px) scale(0.985); transform-origin: bottom left; animation: chatIn 0.34s var(--ease-out) forwards; }
.chat__b--out, .chat__b--ok { transform-origin: bottom right; }
@keyframes chatIn { to { opacity: 1; transform: none; } }
.chat__typing {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.1rem; border-bottom-left-radius: 0.3rem;
  opacity: 0; animation: chatIn 0.22s var(--ease-out) forwards;
}
.chat__typing--out { align-self: flex-end; background: var(--brand-strong); border-color: transparent; border-bottom-left-radius: 1.1rem; border-bottom-right-radius: 0.3rem; }
.chat__typing i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--ink-faint); animation: chatDot 1.1s infinite ease-in-out; }
.chat__typing--out i { background: rgba(255, 255, 255, 0.9); }
.chat__typing i:nth-child(2) { animation-delay: 0.16s; }
.chat__typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes chatDot { 0%, 70%, 100% { transform: translateY(0); opacity: 0.45; } 35% { transform: translateY(-0.3rem); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .chat__b { opacity: 1; transform: none; animation: none; }
  .chat__typing i { animation: none; }
}

/* ============================================ DEMO: compra en vivo (web) === */
.demo { display: grid; grid-template-columns: 230px 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.demo__steps { display: flex; flex-direction: column; position: sticky; top: 6rem; }
.demo-step { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0; }
.demo-step:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: -0.25rem; width: 2px; background: var(--border-strong); transition: background-color var(--t); }
.demo-step__n { z-index: 1; flex: none; width: 2.15rem; height: 2.15rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.92rem; background: var(--surface); border: 2px solid var(--border-strong); color: var(--ink-muted); transition: border-color var(--t), background-color var(--t), color var(--t), box-shadow var(--t); }
.demo-step__n svg { width: 1.05rem; height: 1.05rem; }
.demo-step__k { font-weight: 600; color: var(--ink-muted); transition: color var(--t); }
.demo-step.is-active .demo-step__n { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-50); }
.demo-step.is-active .demo-step__k { color: var(--ink); }
.demo-step.is-done .demo-step__n { border-color: var(--brand); background: var(--brand); color: #fff; }
.demo-step.is-done .demo-step__k { color: var(--ink-body); }
.demo-step.is-done:not(:last-child)::after { background: var(--brand); }

.demo__stage { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.demo__app { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.demo__chrome { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.65rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.demo__brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; color: var(--ink-strong); }
.demo__glyph { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 8px; background: var(--brand-strong); color: #fff; font-weight: 800; font-size: 0.9rem; letter-spacing: -0.02em; }
.demo__safe { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--brand-ink); }
.demo__safe svg { width: 0.95rem; height: 0.95rem; color: var(--brand); }
.demo__screen { position: relative; min-height: 360px; padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; align-content: center; }

.dsc { animation: scIn 0.4s var(--ease-out) both; display: flex; flex-direction: column; gap: 0.7rem; }
.dsc--center { align-items: center; justify-content: center; text-align: center; gap: 0.9rem; }
@keyframes scIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dsc h4 { font-size: 1.25rem; letter-spacing: -0.015em; }
.dsc-mut { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.5; max-width: 40ch; }
.dsc--center .dsc-mut { margin-inline: auto; }

.dsc--prod { align-items: center; text-align: center; }
.dsc-tag { align-self: center; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--brand-strong); padding: 0.25rem 0.7rem; border-radius: var(--r-pill); }
.dsc-price { display: flex; align-items: baseline; gap: 0.6rem; justify-content: center; }
.dsc-price b { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.dsc-price s { color: var(--ink-faint); }
.dsc-press { margin-top: 0.4rem; max-width: 320px; align-self: center; animation: press 1.5s var(--ease-out) infinite; }
@keyframes press { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--brand) 45%, transparent); } 55% { box-shadow: 0 0 0 9px transparent; } }

.dsc-h { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink); }
.dsc-h svg { width: 1rem; height: 1rem; color: var(--brand); }
.dsc-sum { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.dsc-sum b { font-size: 1.1rem; }
.dsc-pm { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border: 2px solid var(--brand); border-radius: var(--r); font-weight: 600; background: var(--brand-50); color: var(--ink); }
.dsc-pm svg { width: 1.15rem; height: 1.15rem; color: var(--brand-ink); }
.dsc-pm-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dsc-pm-row span { font-size: 0.78rem; color: var(--ink-muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0.3rem 0.7rem; }
.dsc-secure { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ink-faint); }
.dsc-secure svg { width: 1rem; height: 1rem; color: var(--brand); }

.dsc-spin { width: 3rem; height: 3rem; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dsc-prog { width: min(260px, 80%); height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.dsc-prog i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; animation: prog 1.6s var(--ease-out) forwards; }
@keyframes prog { to { width: 100%; } }

.dsc-check { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; }
.dsc-check svg { width: 2.3rem; height: 2.3rem; }
.dsc-check.ok { background: var(--brand-50); color: var(--brand); animation: pop 0.4s var(--ease-out) both; }
.dsc-check.soft { background: var(--surface-2); color: var(--brand-ink); }
.dsc-check.big { width: 4.8rem; height: 4.8rem; }
.dsc-check.big svg { width: 2.8rem; height: 2.8rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

.dsc-deliver { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.dsc-badge { font-size: 0.74rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-50); padding: 0.25rem 0.65rem; border-radius: var(--r-pill); }
.dsc-lic { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; background: var(--surface-2); border: 1px dashed color-mix(in oklch, var(--brand) 35%, var(--border)); border-radius: var(--r); }
.dsc-lic span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-faint); }
.dsc-lic code { flex: 1; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-strong); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; }
.dsc-lic svg { width: 1rem; height: 1rem; color: var(--ink-faint); }
.dsc-steps__t { font-weight: 700; font-size: 0.85rem; margin-top: 0.3rem; }
.dsc-steps { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-body); }

.dsc-help { font-size: 0.82rem; color: var(--ink-faint); }
.dsc--win .dsc-win__tags { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.3rem; }
.dsc-win__tags span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-50); border-radius: var(--r-pill); padding: 0.4rem 0.8rem; }
.dsc-win__tags svg { width: 1rem; height: 1rem; color: var(--brand); }

.demo__controls { display: flex; gap: 0.7rem; }
.demo__controls button[hidden] { display: none; }

@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; }
  .demo__steps { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1rem; position: static; }
  .demo-step { padding: 0.25rem 0; }
  .demo-step:not(:last-child)::after { display: none; }
  .demo__screen { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .dsc, .dsc-check.ok, .dsc-press { animation: none; }
  .dsc-prog i { width: 100%; animation: none; }
}

/* ==================================== FAQ home (2 columnas + soporte) === */
.faq-layout { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
.faq-aside { position: sticky; top: 6rem; }
.faq-aside h2 { text-wrap: balance; margin-bottom: 0.65rem; }
.faq-aside > p { color: var(--ink-muted); line-height: 1.6; max-width: 38ch; margin-bottom: 1.6rem; }
.faq-help { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; gap: 0.95rem; }
.faq-help__av { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-ink); display: grid; place-items: center; }
.faq-help__av svg { width: 1.35rem; height: 1.35rem; }
.faq-help__body { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.faq-help__body b { color: var(--ink); font-size: 1.02rem; }
.faq-help__body > span { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.5; text-wrap: pretty; }
.faq-help .btn { margin-top: 0.45rem; }
.faq-help__note { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500; color: var(--brand-ink); }
.faq-help__note svg { width: 0.95rem; height: 0.95rem; color: var(--brand); flex: none; }

.faq-layout .faq { max-width: none; gap: 0.65rem; }
.faq-layout .faq summary { transition: color var(--t); }
.faq-layout .faq summary:hover { color: var(--brand-ink); }
.faq-layout .faq summary:hover .chev { background: var(--brand-50); color: var(--brand-ink); }
.faq-layout .faq details[open] { background: var(--surface-2); }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .faq-aside { position: static; }
  .faq-aside > p { max-width: none; }
}

/* ========================================================== CTA ============== */
.cta-band { position: relative; overflow: hidden; background: var(--brand-strong); border-radius: var(--r-xl); padding: clamp(2.5rem, 1.5rem + 4vw, 4rem); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 100% at 100% 50%, #000, transparent 70%); mask-image: radial-gradient(80% 100% at 100% 50%, #000, transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: -0.025em; }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: 0.9rem; max-width: 44ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: stretch; }
.cta-band .btn--secondary { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--brand-strong); }
.cta-band .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ===================================================== entrada sutil ========= */
.reveal { opacity: 0; animation: reveal-up 0.7s var(--ease-out) forwards; }
.reveal.d1 { animation-delay: 0.04s; } .reveal.d2 { animation-delay: 0.1s; }
.reveal.d3 { animation-delay: 0.16s; } .reveal.d4 { animation-delay: 0.22s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
  .hero h1 .mark .underline path { stroke-dashoffset: 0; animation: none; }
  .actpanel__status .bar > span { width: 100%; animation: none; }
  .actpanel__status .st { opacity: 1; animation: none; }
  .bt-mini .row .d { animation: none; }
}

/* ============================================ PREMIUM: refinamiento + scroll === */

/* Aparición al hacer scroll (la activa motion() añadiendo .has-reveal al <html>).
   Sin JS o con movimiento reducido, el contenido se ve por defecto. */
.has-reveal .r-up { opacity: 0; transform: translateY(22px); }
.has-reveal .r-up.is-in { opacity: 1; transform: none;
  transition: opacity 0.62s var(--ease-out), transform 0.72s var(--ease-out); }

/* Cifra grande con conteo ascendente (comparte la tipografía display) */
.bt-proof__big { font-family: var(--font-display); font-optical-sizing: auto; font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Tile destacado (oferta): gradiente sutil + brillo de marca, detrás del contenido */
.bento__tile--feature {
  background:
    radial-gradient(125% 90% at 100% 0%, oklch(0.70 0.16 156 / 0.13), transparent 56%),
    linear-gradient(165deg, color-mix(in oklch, var(--brand) 10%, var(--surface)), var(--surface) 60%);
}
.bt-offer__top .badge { box-shadow: var(--shadow-xs); }

/* Tile oscuro: borde superior con un toque de luz */
.bento__tile--dark { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06); }

/* El icono de categoría reacciona al hover de su tarjeta */
.cat-tile:hover .icon-tile { transform: translateY(-2px) scale(1.04); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25), var(--shadow-sm); }

/* CTA final con un poco más de profundidad */
.cta-band { box-shadow: var(--shadow-lg), inset 0 1px 0 oklch(1 0 0 / 0.14); }

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: scale(1.04); }
  .hero h1 em::after { animation: none; transform: scaleX(1); }
  .brandstrip__track { animation: none; flex-wrap: wrap; }
  .has-reveal .r-up { opacity: 1; transform: none; }
}
