/* Sitio de Coworkithm con el sistema de Apple: mosaicos grandes por producto que alternan blanco, gris claro
   y negro; el nombre del producto como título, una frase corta, botones tipo píldora y la imagen grande.
   Tipografía Inter con interletrado cerrado, mucho aire y nada de bordes decorativos. La portada 3D (el
   cielo de Cowi) se conserva; esto aplica de ahí para abajo. */
body.apple {
    --ap-tinta: #1d1d1f; --ap-sec: #6e6e73; --ap-gris: #f5f5f7; --ap-linea: #d2d2d7;
    --ap-azul: #3b63ee; --ap-azul-osc: #2b52d8; --ap-azul-claro: #7d99ff;
    --ap-fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff; color: var(--ap-tinta); font-family: var(--ap-fuente); letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.apple ::selection { background: rgba(59, 99, 238, .22); }
body.apple .cw-nav { font-family: var(--ap-fuente); }
body.apple .cw-links a { font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
body.apple .cw-nav-fila > .cw-btn { border-radius: 980px; font-size: 14px; font-weight: 600; min-height: 36px; padding: 8px 16px; }

/* ---------- Botones tipo píldora ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 1px solid var(--ap-azul); background: var(--ap-azul); color: #fff; font: 500 17px/1.18 var(--ap-fuente); letter-spacing: -.02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ap-btn:hover { background: var(--ap-azul-osc); border-color: var(--ap-azul-osc); }
.ap-btn:active { transform: scale(.97); }
.ap-btn:focus-visible { outline: 3px solid rgba(59, 99, 238, .45); outline-offset: 3px; }
.ap-btn-borde { background: transparent; color: var(--ap-azul); }
.ap-btn-borde:hover { background: var(--ap-azul); color: #fff; }
.ap-negro .ap-btn-borde { color: var(--ap-azul-claro); border-color: var(--ap-azul-claro); }
.ap-negro .ap-btn-borde:hover { background: var(--ap-azul-claro); color: #000; }
.ap-btn-grande { min-height: 52px; padding: 14px 30px; }
.ap-botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }

/* ---------- Mosaicos ---------- */
.ap-mosaicos, .ap-cuadricula { display: grid; gap: 12px; padding: 12px; background: #fff; }
.ap-cuadricula { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
.ap-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 720px; padding: 56px 20px 0; isolation: isolate; }
.ap-blanco { background: #fff; color: var(--ap-tinta); }
.ap-gris { background: var(--ap-gris); color: var(--ap-tinta); }
.ap-negro { background: #000; color: #f5f5f7; }
.ap-texto { position: relative; z-index: 2; max-width: 760px; }
.ap-tile h2 { font: 600 clamp(36px, 4.6vw, 56px)/1.07 var(--ap-fuente); letter-spacing: -.028em; margin: 0; }
.ap-tile h3 { font: 600 clamp(30px, 3.2vw, 40px)/1.1 var(--ap-fuente); letter-spacing: -.026em; margin: 0; }
.ap-sub { font: 400 clamp(20px, 2.3vw, 28px)/1.16 var(--ap-fuente); letter-spacing: -.02em; margin: 8px 0 0; }
.ap-chico .ap-sub { font-size: clamp(18px, 1.7vw, 21px); max-width: 30ch; margin-left: auto; margin-right: auto; }
.ap-nota { font: 400 17px/1.47 var(--ap-fuente); color: var(--ap-sec); max-width: 48ch; margin: 12px auto 0; }
.ap-negro .ap-nota { color: #a1a1a6; }
.ap-chico { min-height: 600px; padding-top: 48px; }

/* La demostración 3D de cada producto ocupa la parte de abajo del mosaico, sin marco */
.ap-tile .prod-visual.ap-visual { width: min(1040px, 100%); margin-top: auto; flex: 1 1 auto; min-height: 470px; padding: 210px 20px 48px; background: none; border: 0; border-radius: 0; display: grid; place-items: end center; overflow: visible; }
.ap-tile .prod-visual.ap-visual::before { display: none; }
.ap-tile .prod-visual.ap-visual .lienzo-3d { border-radius: 0; }
.ap-tile .v-agenda, .ap-tile .v-ticket, .ap-tile .v-chat { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .32), 0 0 0 1px rgba(0, 0, 0, .04); }
.ap-negro .v-agenda, .ap-negro .v-ticket, .ap-negro .v-chat { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.ap-tile .v-modo { top: 8px; left: 50%; transform: translateX(-50%); background: rgba(29, 29, 31, .78); }
.ap-tile .v-aviso { right: max(16px, calc(50% - 300px)); bottom: 28px; }
.ap-tile .v-stock { left: max(16px, calc(50% - 320px)); bottom: 28px; }

/* A la medida: íconos que flotan en ola */
.ap-iconos { margin: auto 0 56px; display: grid; grid-template-columns: repeat(3, 76px); gap: 18px; }
.ap-iconos i { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; font-size: 32px; color: #8ea6ff; background: #161618; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); }
.ap-iconos i:nth-child(3n + 2) { color: #5eead4; }
.ap-iconos i:nth-child(3n) { color: #f5c451; }
@keyframes ap-ola { 50% { transform: translateY(-10px); } }

/* Factura FEL */
.ap-fel { margin: auto 0 0; width: min(300px, 80%); }
.ap-fel-papel { display: grid; gap: 6px; text-align: left; background: #fff; padding: 26px 24px 34px; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, .25); font: 15px/1.4 var(--ap-fuente); }
.ap-fel-papel b { font-size: 19px; letter-spacing: -.02em; }
.ap-fel-papel span { color: var(--ap-sec); }
.ap-fel-papel .ap-fel-total { font: 700 34px/1.1 var(--ap-fuente); color: var(--ap-tinta); letter-spacing: -.03em; margin-top: 10px; }
.ap-fel-papel em { font-style: normal; display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; color: #0e8c84; font-weight: 600; }

/* Carné digital: un teléfono que asoma desde abajo */
.ap-telefono { margin: auto 0 0; width: 270px; height: 330px; border-radius: 46px 46px 0 0; background: #1d1d1f; padding: 12px 12px 0; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .45); }
.ap-pantalla { height: 100%; border-radius: 36px 36px 0 0; background: linear-gradient(180deg, #e9efff, #f7f9ff 60%); padding: 44px 14px 0; display: grid; align-content: start; gap: 12px; text-align: left; }
.ap-aviso { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 12px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); font: 13px/1.35 var(--ap-fuente); animation: ap-aviso 5s cubic-bezier(.16, 1, .3, 1) infinite; }
.ap-aviso i { color: var(--ap-azul); font-size: 20px; }
.ap-aviso b { display: block; font-size: 13px; }
@keyframes ap-aviso { 0%, 8% { transform: translateY(-14px); opacity: 0; } 18%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.ap-carne { display: grid; gap: 4px; background: linear-gradient(140deg, #3b63ee, #2741b8); color: #fff; border-radius: 20px; padding: 18px 16px; font: 14px/1.3 var(--ap-fuente); }
.ap-carne b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.ap-carne span { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ap-carne em { font-style: normal; opacity: .85; }

/* Terminal dentro de su mosaico */
.ap-term .term { width: min(560px, 100%); margin: auto 0 44px; text-align: left; }
.ap-term .term-cuerpo { height: 230px; }

/* ---------- Secciones ---------- */
.ap-seccion { padding: 120px max(20px, env(safe-area-inset-left, 0px)) 120px max(20px, env(safe-area-inset-right, 0px)); }
.ap-fondo-gris { background: var(--ap-gris); }
.ap-fondo-negro { background: #000; color: #f5f5f7; text-align: center; }
.ap-titulo { font: 600 clamp(36px, 4.6vw, 56px)/1.07 var(--ap-fuente); letter-spacing: -.028em; text-align: center; margin: 0; }
.ap-titulo.ap-izq { text-align: left; }
.ap-lead { font: 400 clamp(18px, 1.7vw, 21px)/1.4 var(--ap-fuente); color: var(--ap-sec); max-width: 640px; margin: 18px 0 28px; letter-spacing: -.015em; }
.ap-fondo-negro .ap-lead { color: #a1a1a6; }
.ap-centro { text-align: center; margin-left: auto; margin-right: auto; }
.ap-logo { height: 34px; width: auto; margin: 0 auto 30px; }
.ap-dos { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; max-width: 1100px; margin: 0 auto; align-items: start; }

.ap-razones { list-style: none; margin: 64px auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; text-align: center; }
.ap-razones i { display: block; font-size: 40px; color: var(--ap-azul); margin-bottom: 14px; }
.ap-razones b { display: block; font: 600 19px/1.25 var(--ap-fuente); letter-spacing: -.02em; }
.ap-razones span { display: block; margin-top: 6px; color: var(--ap-sec); font-size: 15px; line-height: 1.45; }

.ap-pasos { list-style: none; margin: 64px auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ap-pasos li { background: var(--ap-gris); border-radius: 28px; padding: 34px 26px 36px; }
.ap-pasos span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ap-tinta); color: #fff; font: 600 18px var(--ap-fuente); }
.ap-pasos h3 { font: 600 21px/1.2 var(--ap-fuente); letter-spacing: -.02em; margin: 22px 0 0; }
.ap-pasos p { margin-top: 8px; color: var(--ap-sec); font-size: 15px; line-height: 1.5; }

/* Arma tu sistema y contacto sobre gris: tarjetas blancas limpias */
body.apple .piezas { background: #fff; color: var(--ap-tinta); border-radius: 28px; padding: 28px; box-shadow: none; border: 0; }
body.apple .piezas-ayuda { font: 500 15px var(--ap-fuente); color: var(--ap-sec); }
body.apple .pieza { border: 1px solid var(--ap-linea); border-radius: 18px; color: var(--ap-tinta); font-family: var(--ap-fuente); background: #fff; }
body.apple .pieza i { color: var(--ap-sec); }
body.apple .pieza:hover { border-color: var(--ap-tinta); color: var(--ap-tinta); }
body.apple .pieza[aria-pressed="true"] { border-color: var(--ap-azul); background: rgba(59, 99, 238, .08); color: var(--ap-tinta); }
body.apple .pieza[aria-pressed="true"] i { color: var(--ap-azul); }
body.apple .piezas-resumen { background: var(--ap-gris); color: var(--ap-tinta); font-family: var(--ap-fuente); border-radius: 16px; }
body.apple .piezas-resumen b { color: var(--ap-azul); }
body.apple .piezas-resumen a { color: var(--ap-azul); }
body.apple .cw-form { background: #fff; border: 0; border-radius: 28px; box-shadow: none; font-family: var(--ap-fuente); }
body.apple .cw-campos input, body.apple .cw-campos textarea { border-radius: 12px; border: 1px solid var(--ap-linea); background: #fff; font-family: var(--ap-fuente); }
body.apple .cw-interes span { border-radius: 980px; border: 1px solid var(--ap-linea); }
body.apple .cw-interes input:checked + span { background: var(--ap-tinta); border-color: var(--ap-tinta); color: #fff; }
body.apple .cw-datos i { background: #fff; border: 0; color: var(--ap-azul); }

/* ---------- Pie de página con columnas ---------- */
.ap-pie { background: var(--ap-gris); color: var(--ap-sec); font: 12px/1.5 var(--ap-fuente); letter-spacing: -.005em; padding: 34px max(20px, env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)); }
.ap-pie-dentro { max-width: 1000px; margin: 0 auto; }
.ap-pie-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--ap-linea); }
.ap-pie h4 { font: 600 12px var(--ap-fuente); color: var(--ap-tinta); margin: 0 0 10px; }
.ap-pie a, .ap-pie-cols span { display: block; color: #424245; text-decoration: none; padding: 3px 0; }
.ap-pie a:hover { text-decoration: underline; }
.ap-pie-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
.ap-pie-base a { display: inline; padding: 0; }

/* Aparición al bajar, como en Apple: el texto sube suave */
html.anima body.apple .revela { transform: translateY(28px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }

/* ---------- Pantallas medianas y celular ---------- */
@media (max-width: 1068px) {
    .ap-razones, .ap-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-dos { grid-template-columns: 1fr; gap: 40px; }
    .ap-titulo.ap-izq { text-align: center; }
    .ap-dos > div:first-child { text-align: center; }
    .ap-dos > div:first-child .ap-lead { margin-left: auto; margin-right: auto; }
    body.apple .cw-datos { justify-items: center; }
}
@media (max-width: 834px) {
    .ap-cuadricula { grid-template-columns: 1fr; }
    .ap-tile { min-height: 640px; padding-top: 44px; }
    .ap-chico { min-height: 540px; }
    .ap-tile .prod-visual.ap-visual { min-height: 440px; padding-top: 190px; }
}
@media (max-width: 480px) {
    .ap-mosaicos, .ap-cuadricula { gap: 10px; padding-left: 0; padding-right: 0; }
    .ap-tile { min-height: 600px; padding: 40px 18px 0; }
    .ap-btn { font-size: 15px; padding: 10px 18px; min-height: 42px; }
    .ap-razones, .ap-pasos { grid-template-columns: 1fr; gap: 28px; }
    .ap-seccion { padding-top: 80px; padding-bottom: 80px; }
    .ap-pie-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-tile .v-aviso, .ap-tile .v-stock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-iconos i, .ap-aviso { animation: none; }
}

/* ---------- Ajustes de las demostraciones dentro de los mosaicos ---------- */
/* El selector Clínica / Veterinaria va con aire debajo de los botones, y el contenido de las tarjetas a la izquierda */
.ap-tile .prod-visual.ap-visual { margin-top: 30px; text-align: left; }
.ap-tile .v-modo { top: 0; }
/* Cada producto con su color (aviso de "Es tu turno", existencia baja) */
.ap-tile:has([data-escena="citas"]) { --pc: #0E8C84; }
.ap-tile:has([data-escena="pos"]) { --pc: #D97706; }
.ap-tile:has([data-escena="wa"]) { --pc: #16A34A; }
/* Las tarjetas de demostración son papel claro: su texto siempre oscuro, aunque el mosaico sea negro */
.ap-tile .v-ticket, .ap-tile .v-agenda, .ap-tile .v-chat { color: #121A31; text-align: left; }
.ap-tile .v-aviso, .ap-tile .v-stock { color: #fff; text-align: left; }
/* Formulario: "(opcional)" junto a su etiqueta */
body.apple .cw-campos label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; row-gap: 7px; }
body.apple .cw-campos label > input, body.apple .cw-campos label > textarea { flex-basis: 100%; }

/* ---------- Portada: Cowi presentado como producto (negro, luz de estudio, tipografía limpia) ---------- */
html:has(body.apple .cielo) { background: #000; }
body.apple .cielo { background: #000; height: 300vh; }
body.apple .cielo-noche { opacity: 1; background: radial-gradient(48% 42% at 50% 68%, rgba(59, 99, 238, .2), transparent 72%), radial-gradient(30% 22% at 50% 92%, rgba(125, 153, 255, .1), transparent 70%), #000; }
body.apple .cielo-texto { align-items: start; }
body.apple .frase { text-shadow: none; max-width: 820px; }
body.apple .frase-1, body.apple .frase-3 { justify-self: center; text-align: center; margin-top: calc(96px + 3vh); }
body.apple .frase-2 { align-self: center; max-width: 520px; }
body.apple .frase h1, body.apple .frase h2 {
    font: 600 clamp(44px, 6vw, 84px)/1.04 var(--ap-fuente); letter-spacing: -.038em;
    color: #f5f5f7;
}
body.apple .frase h2 { font-size: clamp(40px, 5vw, 72px); }
body.apple .frase .cw-bajada { margin: 14px auto 0; font: 400 clamp(19px, 1.7vw, 24px)/1.3 var(--ap-fuente); letter-spacing: -.016em; color: #a1a1a6; max-width: 40ch; }
body.apple .frase-2 .cw-bajada { margin-left: 0; }
body.apple .frase .ap-botones { margin-top: 26px; }
body.apple .frase .ap-btn-borde { color: #f5f5f7; border-color: rgba(255, 255, 255, .35); }
body.apple .frase .ap-btn-borde:hover { background: #f5f5f7; border-color: #f5f5f7; color: #000; }
body.apple .satelite { padding: 8px 16px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); font: 500 14px var(--ap-fuente); letter-spacing: -.01em; -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
body.apple .satelite:hover, body.apple .satelite:focus-visible { background: rgba(255, 255, 255, .18); }
body.apple .globo { translate: 0 -50%; transform-origin: 0 50%; padding: 8px 14px; border-radius: 980px; background: rgba(40, 40, 44, .72); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .12); font: 500 14px/1.3 var(--ap-fuente); box-shadow: none; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); white-space: nowrap; max-width: none; }
body.apple .globo::after { display: none; }
body.apple .cielo-bajar { color: rgba(255, 255, 255, .5); }
body.apple .cielo-bajar i { font-size: 26px; }
body.apple .cw-nav.flotando { background: rgba(22, 22, 23, .78); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
@media (max-width: 860px) {
    body.apple .cielo { height: 270vh; }
    body.apple .cielo-texto { padding-top: 0; }
    body.apple .frase-1, body.apple .frase-3 { margin-top: 92px; }
    body.apple .frase-2 { align-self: start; margin-top: 92px; text-align: center; justify-self: center; }
    body.apple .frase-2 .cw-bajada { margin-left: auto; }
    body.apple .frase h1 { font-size: clamp(38px, 10.5vw, 54px); }
    body.apple .frase h2 { font-size: clamp(34px, 9.5vw, 48px); }
    body.apple .frase .cw-bajada { font-size: 17px; }
    body.apple .globo { white-space: normal; max-width: 220px; border-radius: 16px; }
    body.apple .satelites { inset: auto 0 calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; }
    body.apple .satelite { position: static; justify-content: center; width: min(100%, 300px); padding: 12px 18px; font-size: 15px; }
    body.apple .cielo-bajar { display: none; }
}

/* ================= Efectos modernos (public/js/efectos.js; se apagan con "reducir movimiento") ================= */
/* Luz que sigue al cursor y borde iluminado */
.con-luz { position: relative; isolation: isolate; transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; will-change: transform; }
.con-luz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 99, 238, .14), transparent 60%); z-index: -1; }
.con-luz::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 1;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 153, 255, .9), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.con-luz:hover::after, .con-luz:hover::before { opacity: 1; }
.ap-pasos li.con-luz:hover, .ap-razones li.con-luz:hover { box-shadow: 0 24px 50px -28px rgba(29, 29, 31, .35); }
.ap-negro.con-luz::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 153, 255, .18), transparent 60%); }
.ap-razones li { border-radius: 24px; padding: 18px 14px; }

/* Botones magnéticos */



/* Linterna: un círculo de luz sigue al cursor y revela una rejilla de puntos escondida en el fondo oscuro */
.linterna { position: relative; isolation: isolate; }
.linterna-capa { position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .5s ease; overflow: hidden; }
.linterna.alumbrada .linterna-capa { opacity: 1; }
.linterna-capa::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(520px circle at var(--lx, 50%) var(--ly, 50%), rgba(110, 140, 255, .22), rgba(59, 99, 238, .08) 40%, transparent 70%); }
.linterna-capa::after { content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(190, 205, 255, .55) 1px, transparent 1.4px); background-size: 22px 22px;
    -webkit-mask: radial-gradient(300px circle at var(--lx, 50%) var(--ly, 50%), #000, transparent 75%); mask: radial-gradient(300px circle at var(--lx, 50%) var(--ly, 50%), #000, transparent 75%); }

/* Título que se enciende donde pasa la luz */
html.efectos .titulo-foco { color: #6e6e73; background: radial-gradient(260px circle at var(--tx, -999px) var(--ty, -999px), #fff 0%, #fff 30%, rgba(255, 255, 255, 0) 70%) no-repeat, #6e6e73; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ================= Por qué Coworkithm: tarjetas bento con una animación que despierta al pasar el mouse ================= */
.bento { max-width: 1080px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.bento-tarjeta { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 300px; padding: 30px; border-radius: 28px; background: var(--ap-gris); border: 1px solid rgba(0, 0, 0, .04); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease; }
.bento-ancha { grid-column: span 2; }
.bento-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(29, 29, 31, .35); }
.bento-texto h3 { font: 600 22px/1.2 var(--ap-fuente); letter-spacing: -.022em; margin: 0; color: var(--ap-tinta); }
.bento-texto p { margin: 8px 0 0; color: var(--ap-sec); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.bento-visual { position: relative; }

/* Código que se escribe solo */
.bv-codigo { align-self: stretch; border-radius: 16px; background: #111216; color: #c9d1e3; font: 500 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .6); }
.bv-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bv-barra i { width: 9px; height: 9px; border-radius: 50%; background: #3a3b42; }
.bv-barra span { margin-left: 8px; font-size: 11.5px; color: #7d8496; }
.bv-lineas { padding: 12px 16px 16px; }
.bv-lineas p { margin: 0; white-space: nowrap; overflow: hidden; }
.bv-lineas b { color: #8ea6ff; font-weight: 600; } .bv-lineas em { color: #c4a7ff; font-style: normal; } .bv-lineas s { color: #7ce0b8; text-decoration: none; } .bv-lineas u { color: #f2c27b; text-decoration: none; }
.bv-escribe { width: 0; border-right: 2px solid #8ea6ff; animation: bv-cursor .9s steps(1) infinite; }
.bento-tarjeta.viva .bv-escribe { width: 33ch; transition: width 1.6s steps(33); }
@keyframes bv-cursor { 50% { border-color: transparent; } }

/* Conversación de soporte */
.bv-chat { display: grid; gap: 8px; }
.bv-msj { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.bv-msj.yo { justify-self: end; background: var(--ap-azul); color: #fff; border-bottom-right-radius: 6px; }
.bv-msj.el { justify-self: start; background: #fff; color: var(--ap-tinta); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .3); }
.bento-tarjeta.viva .bv-msj { opacity: 1; transform: none; }
.bento-tarjeta.viva .bv-msj:nth-child(2) { transition-delay: .7s; }
.bento-tarjeta.viva .bv-msj:nth-child(3) { transition-delay: 1.3s; }
.bv-puntos { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bv-puntos i { width: 6px; height: 6px; border-radius: 50%; background: #a1a1a6; animation: bv-punto 1.2s ease-in-out infinite; }
.bv-puntos i:nth-child(2) { animation-delay: .15s; } .bv-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes bv-punto { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Datos de cada negocio separados, con escaneo */
.bv-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 96px; }
.bv-caja { border-radius: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); display: grid; place-items: end start; padding: 10px; transition: transform .6s cubic-bezier(.16, 1, .3, 1), border-color .4s ease; }
.bv-caja span { font-size: 11.5px; font-weight: 600; color: var(--ap-sec); }
.bento-tarjeta.viva .bv-caja { border-color: rgba(59, 99, 238, .35); }
.bento-tarjeta.viva .bv-caja:nth-child(1) { transform: translateX(-4px); } .bento-tarjeta.viva .bv-caja:nth-child(3) { transform: translateX(4px); }
.bv-candado { position: absolute; left: 50%; top: 50%; translate: -50% -78%; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-tinta); color: #fff; font-size: 19px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.bento-tarjeta.viva .bv-candado { transform: scale(1.08); background: var(--ap-azul); }
.bv-escaneo { position: absolute; left: -4%; right: -4%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ap-azul), transparent); opacity: 0; }
.bento-tarjeta.viva .bv-escaneo { opacity: 1; animation: bv-escaneo 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bv-escaneo { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }

/* Atrapa estrellas con Cowi: tarjeta de cielo nocturno con un mini juego */
.bento-cielo { background: radial-gradient(120% 140% at 80% 0%, #17234d 0%, #0b0f1f 45%, #05060b 100%); border-color: rgba(255, 255, 255, .06); }
.bento-cielo .bento-texto h3 { color: #f5f5f7; }
.bento-cielo .bento-texto p { color: #a1a1a6; }
.bv-juego { position: relative; height: 170px; margin: -10px -10px -10px; border-radius: 20px; }
.bv-marcador { position: absolute; right: 8px; top: -64px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #f5f5f7; font-size: 13px; font-weight: 500; }
.bv-marcador i { color: #fbbf24; }
.bv-marcador b { font-variant-numeric: tabular-nums; }
.bv-estrella { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: #fde68a; font-size: 24px; cursor: pointer; display: grid; place-items: center;
    filter: drop-shadow(0 0 8px rgba(253, 230, 138, .8)); animation: bv-titila 1.8s ease-in-out infinite, bv-aparece .5s cubic-bezier(.16, 1, .3, 1); transition: transform .25s ease; }
.bv-estrella:hover { transform: scale(1.25); }
.bv-estrella:focus-visible { outline: 2px solid #8ea6ff; outline-offset: 3px; }
.bv-estrella.atrapada { animation: bv-atrapada .45s ease-in forwards; pointer-events: none; }
@keyframes bv-titila { 50% { opacity: .65; filter: drop-shadow(0 0 3px rgba(253, 230, 138, .5)); } }
@keyframes bv-aparece { from { transform: scale(0) rotate(-90deg); } }
@keyframes bv-atrapada { to { transform: scale(1.8) rotate(90deg); opacity: 0; } }
.bv-otra { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; background: #fff; color: #1d1d1f; font: 600 14px var(--ap-fuente); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.bv-otra:focus-visible { outline: 2px solid #8ea6ff; outline-offset: 3px; }
.bv-otra[hidden] { display: none; }

@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento-ancha { grid-column: auto; } .bento-tarjeta { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .bv-escribe { width: auto; border: 0; animation: none; } .bv-msj { opacity: 1; transform: none; } }

/* ---------- Pulido (auditoría de diseño) ---------- */
/* Párrafos sin palabras huérfanas al final; cursor de texto del color de la marca */
body.apple p { text-wrap: pretty; }
body.apple input, body.apple textarea { caret-color: var(--ap-azul); }
/* En celular, botones de al menos 44 px de alto para el dedo */
@media (max-width: 734px) { body.apple .ap-btn { min-height: 44px; } }

/* Movimiento al pasar el mouse: las tarjetas suben 2 px; los botones dan un paso y se hunden al hacer click */
body.apple .ap-pasos li.con-luz:hover, body.apple .bento-tarjeta:hover { transform: translateY(-2px); }
body.apple .ap-btn { transition: transform .2s cubic-bezier(.16, 1, .3, 1), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) { body.apple .ap-btn:hover { transform: translateY(-1px); } }
body.apple .ap-btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

/* ---------- Experiencia: accesos a los productos, WhatsApp a mano y terminal a todo el ancho ---------- */
.ap-atajos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ap-atajos a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; color: #f5f5f7; text-decoration: none; text-align: left;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease, border-color .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1); }
.ap-atajos a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.ap-atajos a:focus-visible { outline: 3px solid rgba(125, 153, 255, .7); outline-offset: 3px; }
.ap-atajos i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; color: #8ea6ff; background: rgba(125, 153, 255, .12); }
.ap-atajos span { display: grid; font-size: 12.5px; color: #a1a1a6; line-height: 1.3; }
.ap-atajos b { font-size: 14px; font-weight: 600; color: #f5f5f7; }
.ap-cuadricula .ap-term { grid-column: 1 / -1; }
html { scroll-padding-top: 76px; }

.cw-wa { position: fixed; z-index: 900; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
    background: #1d1d1f; color: #fff; font: 600 14.5px var(--ap-fuente, Inter, sans-serif); text-decoration: none; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1), background .2s ease; }
.cw-wa.ve { opacity: 1; transform: none; pointer-events: auto; }
.cw-wa i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #25d366; color: #fff; font-size: 18px; }
.cw-wa:hover { background: #000; }
.cw-wa:focus-visible { outline: 3px solid rgba(59, 99, 238, .55); outline-offset: 3px; }
@media (max-width: 734px) {
    /* En celular, una fila compacta: ícono y nombre (Cowi queda libre debajo) */
    .ap-atajos { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
    .ap-atajos a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
    .ap-atajos span { font-size: 0; }
    .ap-atajos b { font-size: 13px; }
    .ap-atajos i { width: 30px; height: 30px; font-size: 16px; }
    .cw-wa { left: 16px; right: 16px; justify-content: center; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .cw-wa { transition: opacity .2s ease; transform: none; } }

/* ================= Nosotros: escena de partículas fija mientras se baja ================= */
.particulas { position: relative; background: #000; color: #f5f5f7; }
.particulas-lienzo { display: none; }
.particulas-textos { max-width: 760px; margin: 0 auto; padding: 120px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 28px; text-align: center; }
.particulas-texto p { margin: 0; font: 500 clamp(20px, 2.4vw, 28px)/1.35 var(--ap-fuente); letter-spacing: -.02em; color: #c7c7cc; text-wrap: balance; }
.particulas-final h2 { margin: 0 0 14px; font: 600 clamp(36px, 5vw, 64px)/1.05 var(--ap-fuente); letter-spacing: -.035em; color: #f5f5f7; text-wrap: balance; }
.particulas-final p { font-size: clamp(17px, 1.6vw, 20px); color: #a1a1a6; margin-bottom: 26px; }
.particulas-pista { display: none; }
/* Con WebGL: 4 pantallas de recorrido, el lienzo fijo y cada texto en su fase */
html.con-particulas .particulas { height: 400vh; }
html.con-particulas .particulas-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.con-particulas .particulas-lienzo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.con-particulas .particulas-textos { position: absolute; inset: 0; max-width: none; padding: 0; display: block; pointer-events: none; }
html.con-particulas .particulas-texto { position: absolute; left: 20px; right: 20px; bottom: max(9vh, 64px); max-width: 760px; margin: 0 auto; opacity: 0; will-change: opacity, transform; }
html.con-particulas .particulas-final { bottom: auto; top: 50%; translate: 0 -50%; }
html.con-particulas .particulas-final h2 { text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
html.con-particulas .particulas-final p { text-shadow: 0 1px 20px rgba(0, 0, 0, .9); }
html.con-particulas .particulas-pista { display: block; position: absolute; left: 0; right: 0; bottom: 6vh; margin: 0; text-align: center; font-size: 13px; letter-spacing: .02em; color: #6e6e73; }
@media (max-width: 734px) { html.con-particulas .particulas { height: 360vh; } html.con-particulas .particulas-texto { bottom: 12vh; } }

/* ================= Tarjetas de las demostraciones con vida (public/js/tarjetas-vivas.js) ================= */
/* Superficie: papel con borde de luz, sombras en capas y un brillo que sigue al puntero */
.ap-tile .v-agenda, .ap-tile .v-chat { border-radius: 22px; padding: 18px; position: relative; isolation: isolate; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(18, 26, 49, .06), 0 2px 4px rgba(18, 26, 49, .04), 0 24px 48px -20px rgba(18, 26, 49, .28), 0 60px 90px -50px rgba(18, 26, 49, .3); }
.ap-tile .v-ticket { position: relative; isolation: isolate; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(18, 26, 49, .06), 0 30px 70px -20px rgba(0, 0, 0, .9); -webkit-mask: radial-gradient(6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; padding-bottom: 26px; }
.con-brillo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--bx, 50%) var(--by, 0%), rgba(59, 99, 238, .1), transparent 70%); }
.con-brillo:hover::after { opacity: 1; }
.ap-carne.con-brillo { position: relative; overflow: hidden; }
.ap-carne.con-brillo::after { opacity: 1; background: radial-gradient(200px circle at var(--bx, 30%) var(--by, 0%), rgba(255, 255, 255, .28), transparent 70%); }
.ap-carne::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); animation: tv-credencial 5s cubic-bezier(.4, 0, .2, 1) 1s infinite; pointer-events: none; }
@keyframes tv-credencial { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Agenda: punto "en vivo", estados como píldoras con color, la cita en consulta con su barra */
.v-envivo { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #22c55e; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: tv-latido 2s infinite; }
@keyframes tv-latido { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.ap-tile .v-cita { position: relative; overflow: hidden; background: #f6f7fb; box-shadow: inset 0 0 0 1px rgba(18, 26, 49, .06); transition: background .4s, box-shadow .4s, opacity .4s, max-height .5s cubic-bezier(.16, 1, .3, 1), padding .5s cubic-bezier(.16, 1, .3, 1), margin .5s; max-height: 90px; }
.ap-tile .v-cita::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: .9; }
.ap-tile .v-cita .v-estado { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 2px 9px 2px 8px; border-radius: 999px; font: 600 11.5px/1.5 var(--ap-fuente); color: #475069; background: rgba(18, 26, 49, .06); }
.ap-tile .v-cita .v-estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-estado[data-e="ok"] { color: #0b7a55 !important; background: rgba(16, 185, 129, .12) !important; }
.v-estado[data-e="sala"] { color: #a16207 !important; background: rgba(245, 158, 11, .14) !important; }
.v-estado[data-e="linea"] { color: #2848c4 !important; background: rgba(59, 99, 238, .11) !important; }
.v-estado[data-e="consulta"] { color: #fff !important; background: #0E8C84 !important; }
.v-estado[data-e="hecho"] { color: #6b7280 !important; }
.v-estado.cambia { animation: tv-pildora .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tv-pildora { from { transform: scale(.8); opacity: 0; } }
.ap-tile .v-cita.activa { background: #fff; box-shadow: inset 0 0 0 1.5px #0E8C84, 0 10px 24px -14px rgba(14, 140, 132, .55); }
.v-progreso { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #0E8C84; transform: scaleX(0); transform-origin: left; }
.v-cita.activa .v-progreso { animation: tv-progreso 6s linear forwards; }
@keyframes tv-progreso { to { transform: scaleX(1); } }
.ap-tile .v-cita.atendida { opacity: .55; }
.ap-tile .v-cita.sale { max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; opacity: 0; }
.ap-tile .v-cita.nueva { animation: tv-nueva .7s cubic-bezier(.16, 1, .3, 1); box-shadow: inset 0 0 0 1.5px rgba(59, 99, 238, .5); }
@keyframes tv-nueva { from { transform: translateY(14px) scale(.97); opacity: 0; background: rgba(59, 99, 238, .14); } }

/* Avisos ("Es tu turno", existencia baja): entran cuando la historia llega a ese punto */
html.tarjetas-vivas .ap-tile .v-aviso, html.tarjetas-vivas .ap-tile .v-stock { opacity: 0; translate: 0 14px; scale: .94; transition: opacity .35s, translate .55s cubic-bezier(.34, 1.56, .64, 1), scale .55s cubic-bezier(.34, 1.56, .64, 1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 20px 40px -16px rgba(0, 0, 0, .5); }
html.tarjetas-vivas .ap-tile .v-aviso.ve, html.tarjetas-vivas .ap-tile .v-stock.ve { opacity: 1; translate: 0 0; scale: 1; }
.ap-tile .v-aviso.ve i { animation: tv-campana .9s ease .3s; }
@keyframes tv-campana { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }

/* Ticket: el escáner baja mientras entran los productos, el total cuenta y la factura se sella */
.ap-tile .v-fila { transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1); border-radius: 4px; }
.ap-tile .v-fila.oculta { opacity: 0; transform: translateX(-10px); }
.ap-tile .v-fila.llega { animation: tv-escaneado .9s ease-out; }
@keyframes tv-escaneado { 0% { background: rgba(217, 119, 6, .2); } 100% { background: transparent; } }
.v-escaner { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: #ef4444; box-shadow: 0 0 12px 2px rgba(239, 68, 68, .6); opacity: 0; pointer-events: none; }
.v-ticket.escaneando .v-escaner { opacity: .85; animation: tv-escaner 1.1s ease-in-out infinite alternate; }
@keyframes tv-escaner { to { top: calc(100% - 70px); } }
.ap-tile .v-total span:last-child { font-variant-numeric: tabular-nums; }
.ap-tile .v-fel { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 22px; transition: color .3s; }
.ap-tile .v-fel.certificando::before { content: ""; width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tv-gira .7s linear infinite; }
@keyframes tv-gira { to { transform: rotate(360deg); } }
.ap-tile .v-fel.certificada { color: #0b7a55; font-weight: 700; animation: tv-sello .55s cubic-bezier(.34, 1.56, .64, 1); }
.ap-tile .v-fel.certificada i { font-size: 15px; }
@keyframes tv-sello { from { transform: scale(1.5); opacity: 0; } }

/* Chat: cabecera del negocio, "escribiendo…", palomitas azules y el pedido que avanza */
.ap-tile .v-chat { align-content: end; background: #efeae2 radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1.5px) 0 0 / 14px 14px; padding-top: 64px; overflow: hidden; }
.v-chat-cab { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #075e54; color: #fff; font: 13px/1.2 var(--ap-fuente); }
.v-chat-cab i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #075e54; font-size: 16px; }
.v-chat-cab span { display: grid; gap: 1px; }
.v-chat-cab small { opacity: .75; font-size: 11.5px; }
.ap-tile .v-msj { position: relative; }
.ap-tile .v-msj.aparece { animation: tv-msj .45s cubic-bezier(.34, 1.4, .64, 1); }
.ap-tile .v-msj.cli.aparece { transform-origin: 100% 100%; }
.ap-tile .v-msj.bot.aparece { transform-origin: 0 100%; }
@keyframes tv-msj { from { transform: scale(.6); opacity: 0; } }
.v-visto { margin-left: 6px; font-size: 14px; color: #8696a0; vertical-align: -2px; font-style: normal; transition: color .3s; }
.v-msj.leido .v-visto { color: #34b7f1; }
.v-escribe { display: inline-flex !important; gap: 4px; padding: 12px 14px !important; justify-self: start; }
.v-escribe i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: bv-punto 1.2s infinite; }
.v-escribe i:nth-child(2) { animation-delay: .15s; }
.v-escribe i:nth-child(3) { animation-delay: .3s; }
.v-botones i { transition: background .2s, color .2s, transform .2s; }
.v-botones i.toca { background: #027EB5; color: #fff; transform: scale(.94); }
.v-ruta { display: flex; gap: 4px; margin-top: 10px; }
.v-ruta i { flex: 1; font-style: normal; font: 600 10.5px/1 var(--ap-fuente); color: #8696a0; padding-top: 7px; border-top: 3px solid #e3e0da; transition: color .3s, border-color .4s; }
.v-ruta i.hecho { color: #16A34A; border-color: #16A34A; }

/* Factura FEL: sale de la impresora, cuenta el total y la SAT la sella */
.ap-fel { overflow: hidden; }
html.tarjetas-vivas .ap-fel-papel { transform: translateY(100%); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
html.tarjetas-vivas .ap-fel-papel.impresa { transform: none; }
.ap-fel-papel .ap-fel-total { font-variant-numeric: tabular-nums; }
.ap-fel-uuid { font: 11px/1.4 var(--ap-fuente) !important; color: #86868b !important; }
.ap-fel-uuid i { display: block; font: 500 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; letter-spacing: .02em; word-break: break-all; }
html.tarjetas-vivas .ap-fel-papel em { opacity: 0; transform: scale(1.6) rotate(-6deg); transition: opacity .25s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
html.tarjetas-vivas .ap-fel-papel.sellada em { opacity: 1; transform: none; }
html.tarjetas-vivas .ap-fel-uuid { opacity: 0; transition: opacity .4s .3s; }
html.tarjetas-vivas .ap-fel-papel.sellada .ap-fel-uuid { opacity: 1; }

/* Nav: "Iniciar sesión" para quien ya tiene cuenta (lleva al ingreso de su empresa) */
.cw-ingresar { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 980px; border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .92); font: 600 14px var(--ap-fuente, inherit); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .12s; }
.cw-ingresar:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.cw-ingresar:active { transform: scale(.97); }
.cw-ingresar:focus-visible { outline: 3px solid rgba(59, 99, 238, .55); outline-offset: 2px; }
.cw-ingresar i { font-size: 16px; }
.cw-nav.claro .cw-ingresar { color: #1d1d1f; border-color: rgba(0, 0, 0, .16); }
.cw-nav.claro .cw-ingresar:hover { background: rgba(0, 0, 0, .05); }
.cw-nav.abierto .cw-ingresar { color: #fff; border-color: rgba(255, 255, 255, .28); }
.cw-nav-fila > .cw-ingresar + .cw-btn { margin-left: -16px; }
@media (max-width: 1080px) { .cw-nav-fila > .cw-ingresar { margin-left: auto; } .cw-nav-fila > .cw-ingresar + .cw-btn { margin-left: -16px; } }
@media (max-width: 680px) { .cw-nav-fila > .cw-ingresar { min-height: 40px; padding: 6px 12px; font-size: 14px; } }
@media (max-width: 360px) { .cw-ingresar i { display: none; } }
