/* Aira Suite · sistema visual común (marca AiraNova: azul, lima, naranja sobre negro, estilo Apple futurista).
   Cada demo define --acento con el color de su producto (body style="--acento:#4ea8ff"). */
:root {
  --negro: #000;
  --gris-0: #0b0b0f;
  --gris-1: #131318;
  --gris-2: #1c1c23;
  --gris-3: #26262f;
  --linea: rgba(255, 255, 255, .09);
  --linea-2: rgba(255, 255, 255, .16);
  --texto: #f5f5f7;
  --texto-2: #c7c7cc;
  --mut: #8e8e93;
  --azul: #4ea8ff;
  --lima: #b5d86a;
  --naranja: #ff9f43;
  --verde: #34d399;
  --ambar: #fbbf24;
  --rojo: #f87171;
  --rosa: #f472b6;
  --violeta: #a78bfa;
  --cian: #22d3ee;
  --acento: var(--azul);
  --degradado: linear-gradient(100deg, #4ea8ff 0%, #b5d86a 50%, #ff9f43 100%);
  --ancho: 1180px;
  --radio: 22px;
  font-family: "Inter", "SF Pro Display", -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color: var(--texto);
  background: var(--negro);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--negro); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--azul); }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(78, 168, 255, .35); }
.contenedor { width: min(var(--ancho), 100% - 40px); margin: 0 auto; }
.degradado { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acento { color: var(--acento); }
.mut { color: var(--mut); }
.sobretitulo { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }
.salto { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.salto:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }

/* ---------- Barra superior ---------- */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 56px; background: rgba(0, 0, 0, .6); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linea); }
.barra-in { width: min(var(--ancho), 100% - 32px); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.logo img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(78, 168, 255, .35)); }
.logo b { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { font-size: 11px; font-weight: 600; color: var(--mut); border: 1px solid var(--linea-2); border-radius: 99px; padding: 2px 8px; letter-spacing: .04em; }
.menu { display: flex; gap: 26px; }
.menu a { color: rgba(245, 245, 247, .78); text-decoration: none; font-size: 13px; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
@media (max-width: 760px) { .menu { display: none; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 550; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .18s, filter .18s, background .18s, border-color .18s, opacity .18s; white-space: nowrap; color: var(--texto); background: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn svg { width: 18px; height: 18px; }
.btn-primario { background: var(--degradado); color: #03121a; font-weight: 650; box-shadow: 0 10px 34px -12px rgba(78, 168, 255, .7); }
.btn-primario:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn-acento { background: var(--acento); color: #05080d; font-weight: 650; box-shadow: 0 10px 30px -12px var(--acento); }
.btn-acento:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-borde { border-color: var(--linea-2); background: rgba(255, 255, 255, .04); }
.btn-borde:hover:not(:disabled) { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.btn-fantasma { color: var(--texto-2); padding: 8px 12px; }
.btn-fantasma:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, .06); }
.btn-peligro { background: rgba(248, 113, 113, .14); color: #fecaca; border-color: rgba(248, 113, 113, .35); }
.btn-chico { padding: 7px 14px; font-size: 13px; }
.btn-grande { padding: 15px 28px; font-size: 17px; }
.btn-blanco { background: #f5f5f7; color: #000; font-weight: 650; }
.btn-blanco:hover { background: #fff; }

/* ---------- Héroe de producto ---------- */
.halo { position: absolute; left: 50%; top: -120px; width: 1200px; height: 620px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 34%, transparent), color-mix(in srgb, var(--acento) 10%, transparent) 55%, transparent 78%); filter: blur(34px); opacity: .85; }
.p-hero { position: relative; padding: 118px 0 40px; overflow: hidden; }
.p-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: end; }
.p-hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 720; }
.p-hero .frase { font-size: clamp(18px, 2vw, 23px); color: var(--texto-2); margin-top: 14px; max-width: 680px; }
.p-icono { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, #0b0b0f); border: 1px solid color-mix(in srgb, var(--acento) 35%, transparent); box-shadow: 0 0 40px -8px color-mix(in srgb, var(--acento) 60%, transparent); margin-bottom: 18px; }
.p-icono svg { width: 28px; height: 28px; }
.p-ficha { display: grid; gap: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 20px; }
.p-ficha dt { font-size: 12px; font-weight: 650; color: var(--mut); text-transform: uppercase; letter-spacing: .07em; }
.p-ficha dd { margin: 2px 0 0; color: var(--texto); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .055); border: 1px solid var(--linea); color: var(--texto-2); white-space: nowrap; }
.chip.on, .chip-acento { background: color-mix(in srgb, var(--acento) 16%, transparent); border-color: color-mix(in srgb, var(--acento) 45%, transparent); color: #fff; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--linea-2); color: #fff; }
@media (max-width: 900px) { .p-hero-in { grid-template-columns: 1fr; } }

/* Barra de productos (cambiar de demo) */
.p-sub { position: sticky; top: 56px; z-index: 30; background: rgba(0, 0, 0, .74); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--linea); }
.p-sub-in { width: min(var(--ancho), 100% - 32px); margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 9px 0; scrollbar-width: none; }
.p-sub-in::-webkit-scrollbar { display: none; }
.p-sub a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--texto-2); }
.p-sub a svg { width: 15px; height: 15px; color: var(--c); }
.p-sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.p-sub a.on { background: #f5f5f7; color: #000; font-weight: 600; }
.p-sub a.on svg { color: #000; }

/* ---------- Secciones y paneles ---------- */
.seccion { padding: 34px 0 60px; }
.seccion-titulo { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seccion-titulo h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; }
.seccion-titulo p { color: var(--mut); max-width: 620px; }
.panel { background: var(--gris-1); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; min-width: 0; }
.panel-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-cab h3 { font-size: 16px; font-weight: 650; }
.panel-cab .mut { font-size: 13px; }
.rejilla { display: grid; gap: 18px; }
.r-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r-demo { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
.r-demo-3 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 1040px) { .r-demo-3 { grid-template-columns: 1fr 1fr; } .r-demo-3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .r-2, .r-3, .r-demo, .r-demo-3 { grid-template-columns: 1fr; } .r-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vacio { color: var(--mut); font-size: 14px; padding: 22px 14px; text-align: center; border: 1px dashed var(--linea-2); border-radius: 14px; }
.nota { font-size: 12.5px; color: var(--mut); line-height: 1.5; }
.separador { height: 1px; background: var(--linea); margin: 14px 0; border: 0; }

/* KPI */
.kpi { background: var(--gris-1); border: 1px solid var(--linea); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.kpi .k-et { font-size: 12.5px; color: var(--mut); }
.kpi .k-val { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .k-var { font-size: 12.5px; color: var(--verde); }
.kpi .k-var.mal { color: var(--rojo); }
.kpi.k-acento { background: linear-gradient(160deg, color-mix(in srgb, var(--acento) 18%, #131318), #131318 70%); border-color: color-mix(in srgb, var(--acento) 35%, transparent); }

/* Insignias de estado */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; letter-spacing: .01em; white-space: nowrap; background: rgba(255, 255, 255, .08); color: var(--texto-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-verde { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.b-ambar { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.b-rojo { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.b-azul { background: rgba(78, 168, 255, .15); color: #93c5fd; }
.b-violeta { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.b-gris { background: rgba(255, 255, 255, .08); color: var(--mut); }

/* Tablas */
.tabla-env { overflow-x: auto; border-radius: 14px; border: 1px solid var(--linea); }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; font-weight: 600; color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla td { padding: 11px 12px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background .15s; }
.tabla tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla tr.nuevo td { animation: fila-nueva 2.4s ease; }
@keyframes fila-nueva { 0% { background: color-mix(in srgb, var(--acento) 30%, transparent); } 100% { background: transparent; } }

/* Formularios */
.campo { display: grid; gap: 6px; font-size: 13px; color: var(--texto-2); }
.entrada, select.entrada, textarea.entrada { width: 100%; background: var(--gris-0); border: 1px solid var(--linea-2); border-radius: 12px; padding: 10px 12px; color: var(--texto); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.entrada:focus { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); }
textarea.entrada { resize: vertical; min-height: 90px; line-height: 1.5; }
.rango { width: 100%; accent-color: var(--acento); }
.interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.interruptor input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--gris-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interruptor input:checked { background: var(--acento); }
.interruptor input:checked::after { transform: translateX(16px); }

/* Pestañas segmentadas */
.segmentos { display: inline-flex; padding: 3px; gap: 2px; background: var(--gris-2); border-radius: 12px; border: 1px solid var(--linea); flex-wrap: wrap; }
.segmentos button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; font-size: 13px; color: var(--texto-2); cursor: pointer; }
.segmentos button.on { background: var(--gris-3); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 12px -4px rgba(0, 0, 0, .6); }

/* ---------- Teléfono (llamada) ---------- */
.telefono { width: min(340px, 100%); margin: 0 auto; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #3a3d45, #121318 40%, #050507); box-shadow: 0 50px 100px -40px color-mix(in srgb, var(--acento) 55%, transparent), 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.telefono-pantalla { position: relative; border-radius: 36px; overflow: hidden; min-height: 600px; background: radial-gradient(420px 300px at 50% 0%, color-mix(in srgb, var(--acento) 28%, transparent), transparent 70%), linear-gradient(180deg, #0d1018, #05060a); display: flex; flex-direction: column; }
.telefono-isla { width: 104px; height: 30px; border-radius: 99px; background: #000; margin: 10px auto 0; flex: none; }
.tel-estado { display: flex; justify-content: space-between; padding: 0 26px; margin-top: -24px; font-size: 12px; font-weight: 600; color: #fff; height: 20px; }
.llamada-cab { text-align: center; padding: 34px 18px 14px; display: grid; gap: 6px; justify-items: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #05080d; background: var(--acento); position: relative; flex: none; }
.avatar.chico { width: 34px; height: 34px; font-size: 13px; }
.avatar.ia { background: conic-gradient(from 210deg, #4ea8ff, #b5d86a, #ff9f43, #4ea8ff); }
.avatar.ia img { width: 60%; filter: brightness(0) invert(1); }
.avatar.hablando::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--acento); animation: pulso 1.2s ease-out infinite; }
@keyframes pulso { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.llamada-nombre { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.llamada-sub { font-size: 13px; color: var(--mut); }
.llamada-tiempo { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--texto-2); }
.ondas { display: flex; gap: 3px; align-items: center; justify-content: center; height: 34px; }
.ondas i { width: 3px; border-radius: 3px; background: var(--acento); height: 6px; transition: height .08s; opacity: .85; }
.ondas.activa i { animation: onda 0.9s ease-in-out infinite; }
.ondas.activa i:nth-child(2n) { animation-delay: -.3s; } .ondas.activa i:nth-child(3n) { animation-delay: -.6s; } .ondas.activa i:nth-child(5n) { animation-delay: -.15s; }
@keyframes onda { 0%, 100% { height: 5px; } 50% { height: 30px; } }
.transcripcion { flex: 1; overflow-y: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; max-height: 340px; }
.burbuja { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.42; animation: aparecer .35s ease; }
.burbuja.ia { align-self: flex-start; background: rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; }
.burbuja.cliente { align-self: flex-end; background: color-mix(in srgb, var(--acento) 26%, #10131a); border-bottom-right-radius: 6px; }
.burbuja .quien { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); margin-bottom: 2px; }
.burbuja.sistema { align-self: center; background: none; color: var(--mut); font-size: 11.5px; padding: 2px 8px; text-align: center; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.llamada-botones { display: flex; justify-content: center; gap: 22px; padding: 14px 0 24px; }
.b-redondo { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; transition: transform .15s, filter .15s; }
.b-redondo:hover { transform: scale(1.05); }
.b-redondo svg { width: 26px; height: 26px; }
.b-colgar { background: #ff3b30; }
.b-contestar { background: #34c759; }

/* ---------- WhatsApp ---------- */
.wa { width: min(360px, 100%); margin: 0 auto; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #3a3d45, #121318 40%, #050507); box-shadow: 0 50px 100px -40px rgba(37, 211, 102, .35), 0 0 0 1px rgba(255, 255, 255, .1); }
.wa-pantalla { border-radius: 31px; overflow: hidden; background: #0b141a; display: flex; flex-direction: column; height: 620px; }
.wa-cab { background: #1f2c34; padding: 34px 14px 10px; display: flex; align-items: center; gap: 10px; flex: none; }
.wa-cab .avatar { width: 38px; height: 38px; font-size: 15px; }
.wa-cab b { display: block; font-size: 15px; font-weight: 600; }
.wa-cab span { font-size: 12px; color: #8696a0; }
.wa-chat { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 5px; background-color: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 18px 18px; scroll-behavior: smooth; }
.wa-msj { max-width: 84%; padding: 6px 9px 18px; border-radius: 9px; font-size: 13.5px; line-height: 1.38; position: relative; animation: aparecer .3s ease; white-space: pre-line; overflow-wrap: anywhere; }
.wa-msj time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.wa-msj.entra { align-self: flex-start; background: #202c33; border-top-left-radius: 2px; }
.wa-msj.sale { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.wa-msj.sale time::after { content: " ✓✓"; color: #53bdeb; }
.wa-msj .wa-opciones { display: grid; gap: 4px; margin-top: 8px; }
.wa-msj .wa-opciones span { display: block; text-align: center; color: #53bdeb; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; font-size: 13px; }
.wa-escribiendo { align-self: flex-start; background: #202c33; border-radius: 9px; padding: 9px 12px; display: flex; gap: 4px; }
.wa-escribiendo i, .escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: salto 1.2s infinite; }
.wa-escribiendo i:nth-child(2), .escribiendo i:nth-child(2) { animation-delay: .15s; } .wa-escribiendo i:nth-child(3), .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes salto { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-pie { display: flex; gap: 8px; padding: 8px; background: #1f2c34; flex: none; }
.wa-pie input { flex: 1; border: 0; border-radius: 99px; background: #2a3942; padding: 10px 14px; outline: none; font-size: 14px; }
.wa-pie button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #00a884; color: #fff; cursor: pointer; display: grid; place-items: center; }
.wa-pie button svg { width: 20px; height: 20px; }

/* ---------- Chat (web interno) ---------- */
.chat { display: flex; flex-direction: column; background: var(--gris-1); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; min-height: 560px; }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linea); }
.chat-cuerpo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 520px; }
.msj { display: flex; gap: 10px; align-items: flex-start; animation: aparecer .3s ease; max-width: 92%; }
.msj.yo { align-self: flex-end; flex-direction: row-reverse; }
.msj .texto { padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: 14px; line-height: 1.5; }
.msj.yo .texto { background: color-mix(in srgb, var(--acento) 24%, #14161d); }
.msj .texto p + p { margin-top: 6px; }
.fuente { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--linea); color: var(--texto-2); cursor: pointer; }
.fuente:hover { border-color: var(--acento); color: #fff; }
.escribiendo { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.chat-pie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linea); }
.chat-pie .entrada { border-radius: 999px; }
.sugerencias { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }

/* ---------- Línea de tiempo / registro de eventos ---------- */
.eventos { display: grid; gap: 2px; font-size: 13px; }
.evento { display: grid; grid-template-columns: 54px 18px 1fr; gap: 8px; align-items: start; padding: 7px 4px; border-radius: 10px; animation: aparecer .35s ease; }
.evento time { color: var(--mut); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.evento .punto { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); }
.evento .punto.ok { background: var(--verde); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.evento .punto.alerta { background: var(--rojo); box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.evento .punto.aviso { background: var(--ambar); box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); }
.evento b { font-weight: 600; }

/* Barras de progreso / puntaje */
.barra-p { height: 8px; border-radius: 99px; background: var(--gris-3); overflow: hidden; }
.barra-p > i { display: block; height: 100%; border-radius: inherit; background: var(--acento); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.anillo { --v: 0; --c: var(--acento); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--gris-3) 0); position: relative; flex: none; }
.anillo::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--gris-1); }
.anillo b { position: relative; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Calendario semanal sencillo */
.agenda { display: grid; grid-template-columns: 48px repeat(var(--dias, 5), minmax(0, 1fr)); font-size: 12px; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.agenda > div { border-bottom: 1px solid var(--linea); border-left: 1px solid var(--linea); min-height: 34px; padding: 3px; position: relative; }
.agenda .ag-hora { color: var(--mut); border-left: 0; text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.agenda .ag-dia { text-align: center; font-weight: 600; color: var(--texto-2); padding: 8px 2px; background: rgba(255, 255, 255, .03); }
.cita { display: block; border-radius: 7px; padding: 3px 6px; font-size: 11px; line-height: 1.25; background: color-mix(in srgb, var(--acento) 22%, #14161d); border-left: 3px solid var(--acento); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cita.ok { background: rgba(52, 211, 153, .16); border-color: var(--verde); }
.cita.mover { background: rgba(251, 191, 36, .14); border-color: var(--ambar); }
.cita.nueva { animation: cita-nueva 1.8s ease; }
@keyframes cita-nueva { 0% { transform: scale(.6); opacity: 0; box-shadow: 0 0 0 0 var(--acento); } 40% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 0 6px transparent; } 100% { transform: none; } }

/* ---------- Avisos ---------- */
.avisos { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); }
.aviso { display: flex; gap: 10px; align-items: flex-start; background: rgba(28, 28, 35, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--linea-2); border-left: 3px solid var(--acento); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); animation: aviso-entra .35s cubic-bezier(.2, .8, .2, 1); }
.aviso.ok { border-left-color: var(--verde); } .aviso.alerta { border-left-color: var(--rojo); } .aviso.info { border-left-color: var(--azul); }
.aviso b { display: block; margin-bottom: 2px; }
.aviso.sale { animation: aviso-sale .3s ease forwards; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aviso-sale { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Bloques de venta al pie de cada demo ---------- */
.beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.beneficio { padding: 18px; border-radius: 18px; background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--linea); }
.beneficio h4 { font-size: 15.5px; margin-bottom: 6px; }
.beneficio p { color: var(--mut); font-size: 14px; }
.beneficio .num { font-size: 13px; font-weight: 700; color: var(--acento); margin-bottom: 8px; display: block; }
.integraciones { display: flex; flex-wrap: wrap; gap: 8px; }
.integraciones span { font-size: 13px; padding: 7px 13px; border-radius: 10px; background: var(--gris-1); border: 1px solid var(--linea); color: var(--texto-2); }
.cta-final { margin-top: 26px; position: relative; overflow: hidden; border-radius: 28px; padding: 44px 28px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--acento) 26%, transparent), transparent 70%), var(--gris-1); border: 1px solid var(--linea); display: grid; gap: 14px; justify-items: center; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.035em; max-width: 760px; }
.cta-final p { color: var(--texto-2); max-width: 620px; }
.cta-final .acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* Aviso de demostración (franja) */
.franja-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--texto-2); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--linea); }
.franja-demo b { color: #fff; }
.voz-estado { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--linea); padding: 34px 0 46px; background: var(--gris-0); font-size: 13px; margin-top: 30px; }
.pie-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie-menu { display: flex; gap: 20px; flex-wrap: wrap; }
.pie-menu a { color: var(--mut); text-decoration: none; }
.pie-menu a:hover { color: var(--texto); }
.pie-legal { color: #6e6e73; margin-top: 16px; font-size: 12px; max-width: 900px; }

/* Utilidades */
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila-entre { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.columna { display: grid; gap: 12px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.tnum { font-variant-numeric: tabular-nums; }
.grande { font-size: 20px; font-weight: 650; }
.recorte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Menú desplegable en móvil (/menu-movil.js) ---------- */
.menu-boton { display: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--linea-2); background: rgba(255, 255, 255, .05); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-boton span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: #f5f5f7; transition: transform .25s, opacity .2s; }
.barra.menu-abierto .menu-boton span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.barra.menu-abierto .menu-boton span:nth-child(2) { opacity: 0; }
.barra.menu-abierto .menu-boton span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.barra-der { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .menu-boton { display: inline-flex; }
  .menu { position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 2px; padding: 8px; border-radius: 20px; background: rgba(16, 17, 22, .94); border: 1px solid var(--linea-2); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
  .barra.menu-abierto .menu { display: flex; animation: aparecer .2s ease-out; }
  .menu a { font-size: 16px; padding: 12px 14px; border-radius: 12px; color: #f5f5f7; }
  .menu a:hover { background: rgba(255, 255, 255, .07); }
}
