/* Clowi Web — estilo v2 «cristal de lujo» (12-nov-2026).
   Capa sobre el panel clásico. Todo vive bajo #clowi-web con prefijo cw-.
   Usa el kit CJ-INTELLIA-CRISTAL (cristal.css): los paneles llevan .cristal y refractan el fondo.
   Reglas que NO se rompen aquí:
   - nada de opacity/filter/mask en un ANCESTRO de un .cristal (crea «backdrop root» y el vidrio se apaga):
     las entradas animan cada pieza, nunca el contenedor;
   - nada de backdrop-filter propio dentro de un .cristal;
   - ninguna variable de :root cambia por cuadro: las luces del puntero van por elemento. */

body.cw-activa { overflow: hidden; }
body.cw-activa .pagina,
body.cw-activa #pestanas { display: none !important; }
body.cw-activa .toast { z-index: 70; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(249, 180, 224, .22); }

#clowi-web, .cw-volver, .cw-cielo {
  --cw-rosa: #f9b4e0;
  --cw-lila: #cdb6fc;
  --cw-menta: #a5f3e4;
  --cw-durazno: #fecdb0;
  --cw-cielo: #a9d2fd;
  --cw-tinta: #2a0d24;
  --cw-degradado: linear-gradient(135deg, #fbb5e1 0%, #d5b6fb 55%, #abc9fd 100%);
  --cw-degradado-vivo: linear-gradient(120deg, #ff9fd6, #c8a6ff 42%, #8fd0ff 72%, #a5f3e4);
  --cw-resorte: cubic-bezier(.34, 1.56, .64, 1);
  --cw-salida: cubic-bezier(.22, 1, .36, 1);
}
#clowi-web {
  --cw-lado: 284px;
  --cw-barra: 70px;
  --cw-acento: var(--cr-acento);
  --cw-suave: var(--cr-texto-2);
  --cw-linea: rgba(255, 255, 255, .10);
  --cw-linea-2: rgba(255, 255, 255, .20);
  --cw-velo: rgba(255, 255, 255, .07);
  --cw-velo-2: rgba(255, 255, 255, .13);
  --cw-hundido: rgba(4, 6, 20, .36);
  --cw-solido: rgba(26, 20, 48, .96);
  --cw-burbuja-chloe: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .07));
  --cw-ok: #86efac;
  --cw-alerta: #fca5a5;
  --cw-aviso: #fcd34d;
  --cw-luz: rgba(255, 255, 255, .13);
  --cw-luz-borde: rgba(251, 181, 225, .95);
  --cw-brillo-acento: rgba(249, 180, 224, .34);
  --cw-sombra-alta: 0 26px 60px -26px rgba(0, 0, 0, .75);
  --cw-velo-modal: radial-gradient(120% 90% at 50% 40%, rgba(10, 6, 26, .62), rgba(4, 4, 14, .84));
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--cw-lado) minmax(0, 1fr);
  gap: 18px;
  padding: calc(18px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  color: var(--cr-texto);
  font-family: var(--cr-fuente);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  #clowi-web, .cw-volver, .cw-cielo {
    --cw-rosa: #c0368d;
    --cw-lila: #7c3aed;
    --cw-menta: #0f766e;
    --cw-durazno: #c2410c;
    --cw-cielo: #1d4ed8;
    --cw-tinta: #ffffff;
    --cw-degradado: linear-gradient(135deg, #c93a93 0%, #8b3fe8 58%, #4f7df0 100%);
    --cw-degradado-vivo: linear-gradient(120deg, #d6409f, #8b3fe8 45%, #3b82f6 75%, #0f9f8f);
  }
  #clowi-web {
    --cw-linea: rgba(40, 20, 80, .10);
    --cw-linea-2: rgba(40, 20, 80, .20);
    --cw-velo: rgba(255, 255, 255, .46);
    --cw-velo-2: rgba(255, 255, 255, .72);
    --cw-hundido: rgba(255, 255, 255, .58);
    --cw-solido: rgba(255, 255, 255, .97);
    --cw-burbuja-chloe: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62));
    --cw-ok: #15803d;
    --cw-alerta: #b91c1c;
    --cw-aviso: #b45309;
    --cw-luz: rgba(255, 255, 255, .55);
    --cw-luz-borde: rgba(192, 54, 141, .85);
    --cw-brillo-acento: rgba(192, 54, 141, .22);
    --cw-sombra-alta: 0 26px 60px -30px rgba(60, 30, 120, .45);
    --cw-velo-modal: radial-gradient(120% 90% at 50% 40%, rgba(240, 232, 255, .55), rgba(214, 204, 240, .80));
  }
}
#clowi-web [hidden], .cw-volver[hidden] { display: none !important; }
:where(#clowi-web) *, :where(#clowi-web) *::before, :where(#clowi-web) *::after { box-sizing: border-box; }
:where(#clowi-web) :is(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
:where(#clowi-web) button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(#clowi-web) :is(input, textarea, select) { font-family: inherit; color: inherit; }
#clowi-web :is(button, a, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--cw-rosa); outline-offset: 2px; }
:where(#clowi-web) svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(#clowi-web) ul { list-style: none; margin: 0; padding: 0; }
:where(#clowi-web) a { color: var(--cw-rosa); text-underline-offset: 3px; }
#clowi-web ::selection { background: var(--cw-brillo-acento); }
#clowi-web * { scrollbar-width: thin; scrollbar-color: var(--cw-linea-2) transparent; }
#clowi-web ::-webkit-scrollbar { width: 10px; height: 10px; }
#clowi-web ::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background: var(--cw-linea-2); background-clip: padding-box; }
#clowi-web ::-webkit-scrollbar-thumb:hover { background: var(--cw-rosa); background-clip: padding-box; }

/* ---------- cielo: orbes lentos, estrellas y luz que sigue al puntero (detrás del vidrio) ---------- */
.cw-cielo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
body.cw-activa .cw-cielo { display: block; }
.cw-orbe { position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%; will-change: transform; }
.cw-orbe-1 { left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(214, 92, 196, .34), rgba(214, 92, 196, 0)); animation: cw-deriva-1 64s ease-in-out infinite alternate; }
.cw-orbe-2 { right: -22vmax; bottom: -26vmax; background: radial-gradient(closest-side, rgba(88, 110, 240, .34), rgba(88, 110, 240, 0)); animation: cw-deriva-2 78s ease-in-out infinite alternate; }
.cw-orbe-3 { left: 34%; top: 42%; width: 40vmax; height: 40vmax; background: radial-gradient(closest-side, rgba(64, 214, 190, .20), rgba(64, 214, 190, 0)); animation: cw-deriva-3 92s ease-in-out infinite alternate; }
.cw-estrellas { position: absolute; inset: -2px; background-repeat: repeat; }
.cw-estrellas-1 { background-image: radial-gradient(1.2px 1.2px at 22px 34px, rgba(255, 255, 255, .85), transparent 60%), radial-gradient(1px 1px at 148px 96px, rgba(255, 220, 245, .8), transparent 60%), radial-gradient(1.4px 1.4px at 236px 212px, rgba(210, 225, 255, .8), transparent 60%), radial-gradient(1px 1px at 88px 262px, rgba(255, 255, 255, .7), transparent 60%); background-size: 320px 320px; animation: cw-titila 7s ease-in-out infinite alternate; }
.cw-estrellas-2 { background-image: radial-gradient(1px 1px at 64px 128px, rgba(255, 255, 255, .7), transparent 60%), radial-gradient(1.6px 1.6px at 312px 60px, rgba(255, 214, 240, .9), transparent 60%), radial-gradient(1px 1px at 402px 330px, rgba(200, 245, 235, .8), transparent 60%), radial-gradient(1.2px 1.2px at 188px 410px, rgba(255, 255, 255, .75), transparent 60%); background-size: 470px 470px; animation: cw-titila 11s ease-in-out -4s infinite alternate-reverse; }
.cw-luz-puntero { position: absolute; left: -280px; top: -280px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 170, 225, .20), rgba(170, 150, 255, .10) 45%, rgba(170, 150, 255, 0)); opacity: 0; transition: opacity .6s; will-change: transform; }
.cw-luz-puntero.cw-viva { opacity: 1; }
@media (prefers-color-scheme: light) {
  .cw-estrellas { display: none; }
  .cw-orbe-1 { background: radial-gradient(closest-side, rgba(255, 150, 215, .42), rgba(255, 150, 215, 0)); }
  .cw-orbe-2 { background: radial-gradient(closest-side, rgba(150, 160, 255, .40), rgba(150, 160, 255, 0)); }
  .cw-orbe-3 { background: radial-gradient(closest-side, rgba(120, 230, 210, .34), rgba(120, 230, 210, 0)); }
  .cw-luz-puntero { background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
}

/* ---------- luz del puntero sobre cada panel (variables por elemento: --mx, --my) ---------- */
.cw-foco { --mx: 50%; --my: 0%; }
.cw-foco::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx) var(--my), var(--cw-luz), transparent 62%); opacity: 0; transition: opacity .35s; }
.cw-foco.cw-foco-on::after { opacity: 1; }
#clowi-web .cw-foco.cw-foco-on::before { background: radial-gradient(220px circle at var(--mx) var(--my), var(--cw-luz-borde), transparent 72%), var(--cr-canto); }

/* ---------- columna lateral ---------- */
.cw-lado { display: flex; flex-direction: column; gap: 16px; padding: 20px 14px 14px; min-height: 0; border-radius: 30px; animation: cw-entra-lado .7s var(--cw-salida) backwards; }
.cw-marca { display: flex; align-items: center; gap: 12px; padding: 0 8px 2px; }
.cw-marca-img { width: 46px; height: 46px; border-radius: 15px; flex: none; box-shadow: 0 8px 20px -6px rgba(214, 92, 196, .6), 0 0 0 1px rgba(255, 255, 255, .18); }
.cw-marca b { display: block; font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; background: var(--cw-degradado-vivo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: cw-tinte 9s ease-in-out infinite alternate; }
.cw-marca span { display: block; font-size: .8rem; color: var(--cw-suave); }
.cw-lado-buscar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; min-height: 42px; padding: 8px 10px 8px 14px; border: 1px solid var(--cw-linea); border-radius: 999px; background: var(--cw-hundido); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .16); color: var(--cw-suave); font-size: .92rem; text-align: left; transition: border-color .25s, color .25s, box-shadow .3s; }
.cw-lado-salir, .cw-hoja-salir { display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--cw-linea); border-radius: 999px; background: var(--cw-velo); color: var(--cr-texto); font-weight: 650; transition: background .25s, border-color .25s, color .25s, transform .3s var(--cw-resorte); }
.cw-lado-salir svg, .cw-hoja-salir svg { width: 18px; height: 18px; flex: none; color: var(--cw-rosa); }
.cw-lado-salir:hover, .cw-hoja-salir:hover { background: var(--cw-velo-2); border-color: var(--cw-rosa); }
.cw-lado-salir:active, .cw-hoja-salir:active { transform: scale(.96); }
.cw-hoja-salir { margin-top: 12px; }
.cw-lado-buscar svg { width: 18px; height: 18px; flex: none; }
.cw-lado-buscar > span:first-of-type { flex: 1; min-width: 0; }
.cw-lado-buscar:hover, .cw-lado-buscar[aria-current="page"] { color: var(--cr-texto); border-color: var(--cw-rosa); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 3px var(--cw-brillo-acento); }
.cw-nav { position: relative; display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px; margin: -2px; }
.cw-nav-b { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; flex: none; width: 100%; min-height: 46px; padding: 9px 14px; border: 0; border-radius: 16px; background: none; font-size: .96rem; font-weight: 620; text-align: left; color: var(--cw-suave); transition: color .25s, transform .3s var(--cw-resorte); }
.cw-nav-b svg { transition: transform .45s var(--cw-resorte); }
.cw-nav-b:hover { color: var(--cr-texto); }
.cw-nav-b:hover svg { transform: scale(1.14) rotate(-5deg); }
.cw-nav-b:active { transform: scale(.96); }
.cw-nav-b[aria-current="page"] { color: var(--cw-tinta); text-shadow: none; background: var(--cw-degradado); box-shadow: 0 10px 24px -10px var(--cw-brillo-acento); }
.cw-nav.con-gota .cw-nav-b[aria-current="page"] { background: none; box-shadow: none; }
.cw-nav-b > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-nav-sep { flex: none; height: 1px; margin: 8px 12px; background: linear-gradient(90deg, transparent, var(--cw-linea-2), transparent); }
.cw-nav-mas { display: none; }
.cw-gota { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 16px; pointer-events: none; background: var(--cw-degradado); box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .8), inset -1px -1px 0 -.5px rgba(255, 255, 255, .35), 0 12px 26px -10px var(--cw-brillo-acento), 0 0 22px -4px var(--cw-brillo-acento); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.4, .5, 1), width .6s cubic-bezier(.34, 1.4, .5, 1), height .6s cubic-bezier(.34, 1.4, .5, 1), opacity .25s; }
.cw-gota.cw-lista-ya { opacity: 1; }
.cw-gota.cw-estira-y { animation: cw-estira-y .6s ease-out; }
.cw-gota.cw-estira-x { animation: cw-estira-x .6s ease-out; }
.cw-quien { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; padding: 7px 12px 7px 7px; border: 1px solid var(--cw-linea); border-radius: 999px; background: var(--cw-velo); text-align: left; transition: background .25s, border-color .25s, transform .3s var(--cw-resorte); }
.cw-quien:hover { background: var(--cw-velo-2); border-color: var(--cw-linea-2); }
.cw-quien:active { transform: scale(.97); }
.cw-inicial { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--cw-degradado); color: var(--cw-tinta); font-weight: 800; text-shadow: none; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), 0 6px 14px -6px rgba(0, 0, 0, .5); }
.cw-inicial[data-c="1"] { background: linear-gradient(135deg, #a5f3e4, #8fc8ff); color: #06302c; }
.cw-inicial[data-c="2"] { background: linear-gradient(135deg, #fecdb0, #fba4c8); color: #3a1408; }
.cw-inicial[data-c="3"] { background: linear-gradient(135deg, #c7b6ff, #8fb4ff); color: #170d3d; }
.cw-inicial[data-c="4"] { background: linear-gradient(135deg, #fde68a, #fdb38a); color: #3a2204; }
.cw-inicial[data-c="5"] { background: linear-gradient(135deg, #b9f6c4, #8fe3d9); color: #06301a; }
.cw-quien-n { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-quien-c { font-size: .76rem; color: var(--cw-suave); }

/* ---------- zona principal ---------- */
.cw-principal { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cw-vista { --cw-ancho: 1160px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 28px; }
.cw-vista > * { width: 100%; max-width: var(--cw-ancho); margin-inline: auto; flex: none; }
.cw-vista > .cw-cab { animation: cw-sube .55s var(--cw-salida) backwards; }
.cw-vista > :nth-child(2) { animation: cw-sube .6s var(--cw-salida) .05s backwards; }
.cw-vista > :nth-child(3) { animation: cw-sube .6s var(--cw-salida) .1s backwards; }
.cw-vista > :nth-child(n+4) { animation: cw-sube .6s var(--cw-salida) .15s backwards; }
.cw-vista > .cw-rejilla, .cw-vista > .cw-dos, .cw-vista > .cw-mensajes { animation: none; }
.cw-cab { display: flex; align-items: center; gap: 14px; padding: 6px 4px 2px; }
.cw-cab > div { flex: 1; min-width: 0; }
.cw-titulo { font-size: 1.9rem; font-weight: 800; line-height: 1.12; letter-spacing: -.028em; background: linear-gradient(100deg, var(--cr-texto) 30%, var(--cw-rosa) 62%, var(--cw-lila) 82%, var(--cw-menta)); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: cw-tinte 12s ease-in-out infinite alternate; padding-bottom: 2px; }
.cw-sub { color: var(--cw-suave); font-size: .95rem; margin-top: 3px; }
.cw-btn-icono { position: relative; overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--cw-linea); background: var(--cw-velo); color: var(--cw-suave); transition: background .25s, color .25s, border-color .25s, transform .35s var(--cw-resorte), box-shadow .3s; }
.cw-btn-icono:hover { background: var(--cw-velo-2); color: var(--cr-texto); border-color: var(--cw-linea-2); box-shadow: 0 0 22px -6px var(--cw-brillo-acento); transform: translateY(-1px); }
.cw-btn-icono:active { transform: scale(.9); }
.cw-btn-icono.cw-girando svg { animation: cw-giro .9s linear infinite; }
.cw-btn-icono.cw-peligro:hover { color: var(--cw-alerta); }
.cw-boton { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--cw-degradado); color: var(--cw-tinta); font-size: .96rem; font-weight: 720; text-shadow: none; text-decoration: none; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 12px 26px -12px var(--cw-brillo-acento); transition: transform .35s var(--cw-resorte), box-shadow .3s, filter .2s; }
.cw-boton::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 46%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); opacity: 0; pointer-events: none; }
.cw-boton:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), 0 18px 34px -12px var(--cw-brillo-acento), 0 0 26px -6px var(--cw-brillo-acento); }
.cw-boton:hover::before { animation: cw-barrido .9s ease-out; }
.cw-boton:active { transform: scale(.95); }
.cw-boton[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.cw-boton svg { width: 19px; height: 19px; }
.cw-boton.cw-boton-2 { background: var(--cw-velo); border-color: var(--cw-linea-2); color: var(--cr-texto); box-shadow: none; }
.cw-boton.cw-boton-2:hover { background: var(--cw-velo-2); box-shadow: 0 0 24px -8px var(--cw-brillo-acento); }
.cw-boton.cw-boton-peligro { background: none; border-color: color-mix(in srgb, var(--cw-alerta) 55%, transparent); color: var(--cw-alerta); box-shadow: none; }
.cw-boton.cw-chico { min-height: 38px; padding: 6px 16px; font-size: .88rem; }
.cw-onda { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .45); transform: scale(0); animation: cw-onda .6s ease-out forwards; }

/* ---------- tarjetas ---------- */
.cw-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; align-items: stretch; }
.cw-tarjeta, .cw-panel, .cw-dos > .cw-editor { padding: 20px; min-width: 0; border-radius: 26px; }
.cw-tarjeta { transition: transform .45s var(--cw-salida), box-shadow .45s; animation: cw-sube .65s var(--cw-salida) backwards; }
.cw-tarjeta:nth-child(2) { animation-delay: .06s; }
.cw-tarjeta:nth-child(3) { animation-delay: .12s; }
.cw-tarjeta:nth-child(4) { animation-delay: .18s; }
.cw-tarjeta:nth-child(5) { animation-delay: .24s; }
.cw-tarjeta:nth-child(n+6) { animation-delay: .3s; }
@media (hover: hover) {
  .cw-tarjeta:hover { transform: translateY(-3px); box-shadow: var(--cr-sombra), var(--cw-sombra-alta); }
}
.cw-tarjeta.cw-ancha { grid-column: 1 / -1; }
.cw-tarjeta-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cw-tarjeta-cab h2 { flex: 1; min-width: 0; font-size: 1.08rem; font-weight: 720; letter-spacing: -.01em; }
.cw-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; color: var(--cw-rosa); background: linear-gradient(145deg, color-mix(in srgb, currentColor 26%, transparent), color-mix(in srgb, currentColor 7%, transparent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -10px currentColor; transition: transform .5s var(--cw-resorte); }
.cw-tarjeta:hover .cw-ico { transform: scale(1.08) rotate(-4deg); }
.cw-ico.cw-menta { color: var(--cw-menta); }
.cw-ico.cw-lila { color: var(--cw-lila); }
.cw-ico.cw-durazno { color: var(--cw-durazno); }
.cw-ico.cw-cielo { color: var(--cw-cielo); }
.cw-cuenta { min-width: 30px; padding: 3px 10px; border-radius: 999px; background: var(--cw-velo-2); border: 1px solid var(--cw-linea); font-size: .8rem; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.cw-lista { display: grid; }
.cw-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 11px 8px; margin: 0 -8px; border-radius: 12px; border-top: 1px solid var(--cw-linea); transition: background .25s; }
.cw-item:hover { background: var(--cw-velo); }
.cw-item:first-child { border-top-color: transparent; }
.cw-item-hora { min-width: 46px; font-variant-numeric: tabular-nums; font-weight: 750; color: var(--cw-rosa); }
.cw-lista:not(:has(.cw-item-hora:not(:empty))) .cw-item { grid-template-columns: minmax(0, 1fr) auto; }
.cw-lista:not(:has(.cw-item-hora:not(:empty))) .cw-item-hora { display: none; }
.cw-lista:not(:has(.cw-item-hora:not(:empty))) .cw-item-d { grid-column: 1 / -1; }
.cw-item-t { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.cw-item-d { grid-column: 2 / -1; color: var(--cw-suave); font-size: .88rem; overflow-wrap: anywhere; }
.cw-item.cw-hecho .cw-item-t { text-decoration: line-through; opacity: .55; }
.cw-etq { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--cw-linea); background: var(--cw-velo); font-size: .74rem; font-weight: 720; letter-spacing: .02em; white-space: nowrap; }
.cw-etq.cw-etq-ok { color: var(--cw-ok); border-color: color-mix(in srgb, var(--cw-ok) 40%, transparent); }
.cw-etq.cw-etq-alerta { color: var(--cw-alerta); border-color: color-mix(in srgb, var(--cw-alerta) 40%, transparent); }
.cw-etq.cw-etq-aviso { color: var(--cw-aviso); border-color: color-mix(in srgb, var(--cw-aviso) 40%, transparent); }
.cw-etq.cw-etq-rosa { color: var(--cw-tinta); background: var(--cw-degradado); border-color: transparent; text-shadow: none; }
.cw-nada { color: var(--cw-suave); font-size: .93rem; }
.cw-pista { margin-top: 12px; padding: 10px 13px; border-radius: 14px; background: var(--cw-velo); border: 1px dashed var(--cw-linea-2); color: var(--cw-suave); font-size: .86rem; }
.cw-subtitulo { margin: 16px 0 6px; font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--cw-suave); }
.cw-subtitulo:first-child { margin-top: 0; }
.cw-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cw-error { padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--cw-alerta) 40%, transparent); background: var(--cw-velo); color: var(--cw-alerta); font-size: .93rem; }
.cw-esqueleto { height: 14px; margin: 10px 0; border-radius: 8px; background: linear-gradient(100deg, var(--cw-velo) 20%, var(--cw-velo-2) 40%, color-mix(in srgb, var(--cw-rosa) 30%, transparent) 50%, var(--cw-velo-2) 60%, var(--cw-velo) 80%); background-size: 240% 100%; animation: cw-brillo 1.5s linear infinite; }
.cw-esqueleto:nth-child(2) { width: 72%; }
.cw-esqueleto:nth-child(3) { width: 48%; }

/* ---------- Chloe con halo ---------- */
.cw-halo { position: relative; display: inline-grid; place-items: center; flex: none; isolation: isolate; }
.cw-halo::before { content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, #ff9fd6, #c8a6ff, #8fd0ff, #a5f3e4, #fecdb0, #ff9fd6); filter: blur(16px); opacity: .62; will-change: transform; animation: cw-giro 14s linear infinite; }
.cw-halo::after { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); animation: cw-respira 4.6s ease-in-out infinite; }
.cw-halo > img { animation: cw-flota 6s ease-in-out infinite; }
.cw-halo.cw-halo-chico::before { filter: blur(9px); inset: 2%; }

/* ---------- chat ---------- */
.cw-vista.cw-chat { --cw-ancho: 900px; overflow: hidden; gap: 10px; padding-bottom: 4px; }
.cw-chloe-av { width: 54px; height: 54px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.cw-mensajes { flex: 1 1 0 !important; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 10px 8px 14px; }
.cw-mensajes > :first-child { margin-top: auto; }
.cw-dia { align-self: center; padding: 3px 13px; border-radius: 999px; background: var(--cw-velo); border: 1px solid var(--cw-linea); color: var(--cw-suave); font-size: .74rem; font-weight: 720; letter-spacing: .04em; }
.cw-m { display: flex; flex-direction: column; max-width: min(78%, 640px); animation: cw-burbuja .5s var(--cw-resorte) backwards; }
.cw-m-yo { align-self: flex-end; align-items: flex-end; transform-origin: 100% 100%; }
.cw-m-chloe { align-self: flex-start; align-items: flex-start; transform-origin: 0 100%; }
.cw-burbuja { position: relative; padding: 11px 16px; border-radius: 22px; font-size: 1rem; line-height: 1.46; white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-m-yo .cw-burbuja { background: var(--cw-degradado); color: var(--cw-tinta); text-shadow: none; border-bottom-right-radius: 7px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 14px 28px -16px var(--cw-brillo-acento); }
.cw-m-chloe .cw-burbuja { background: var(--cw-burbuja-chloe); border: 1px solid var(--cw-linea-2); border-bottom-left-radius: 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 28px -20px rgba(0, 0, 0, .7); }
.cw-burbuja img { display: block; max-width: 220px; max-height: 220px; border-radius: 14px; }
.cw-hora { margin: 3px 8px 0; color: var(--cw-suave); font-size: .72rem; }
.cw-voz { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 13px 5px 8px; border-radius: 999px; border: 1px solid var(--cw-linea-2); background: var(--cw-velo); font-size: .82rem; font-weight: 650; transition: transform .3s var(--cw-resorte), background .25s; }
.cw-voz:hover { background: var(--cw-velo-2); transform: translateY(-1px); }
#clowi-web .cw-voz svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.cw-voz.cw-sonando { background: var(--cw-degradado); color: var(--cw-tinta); text-shadow: none; border-color: transparent; animation: cw-pulso-voz 1.2s ease-in-out infinite; }
.cw-pensando .cw-burbuja { display: flex; gap: 6px; padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 30px -6px var(--cw-brillo-acento); }
.cw-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--cw-degradado); opacity: .4; animation: cw-late 1.1s ease-in-out infinite; }
.cw-punto:nth-child(2) { animation-delay: .16s; }
.cw-punto:nth-child(3) { animation-delay: .32s; }
.cw-vacio { margin: auto; max-width: 480px; padding: 12px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.cw-vacio img { width: 156px; height: 156px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
.cw-vacio h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.cw-vacio p { color: var(--cw-suave); }
.cw-sugerencias { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.cw-sug { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--cw-linea-2); background: var(--cw-velo); font-size: .9rem; font-weight: 600; transition: transform .35s var(--cw-resorte), background .25s, box-shadow .3s; animation: cw-sube .6s var(--cw-salida) backwards; }
.cw-sug:nth-child(2) { animation-delay: .07s; }
.cw-sug:nth-child(3) { animation-delay: .14s; }
.cw-sug:nth-child(n+4) { animation-delay: .21s; }
.cw-sug:hover { background: var(--cw-velo-2); transform: translateY(-2px); box-shadow: 0 0 24px -8px var(--cw-brillo-acento); }
.cw-redactar { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 30px; transition: box-shadow .35s; }
.cw-redactar:focus-within { box-shadow: var(--cr-sombra), 0 0 0 1.5px var(--cw-brillo-acento), 0 0 44px -8px var(--cw-brillo-acento); }
.cw-texto { flex: 1; min-width: 0; max-height: 160px; min-height: 28px; padding: 10px 0; border: 0; outline: 0; resize: none; background: none; color: var(--cr-texto); font: 1rem/1.4 var(--cr-fuente); }
.cw-texto::placeholder { color: var(--cw-suave); opacity: .9; }
#clowi-web .cw-texto:focus-visible { outline: 0; }
.cw-enviar { position: relative; overflow: hidden; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--cw-degradado); color: var(--cw-tinta); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), 0 10px 22px -8px var(--cw-brillo-acento); transition: transform .35s var(--cw-resorte), opacity .2s, box-shadow .3s; }
.cw-enviar:not([disabled]):hover { transform: scale(1.08) rotate(-8deg); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), 0 0 28px -4px var(--cw-brillo-acento); }
.cw-enviar:active { transform: scale(.88); }
.cw-enviar[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.cw-nota { min-height: 1.2em; padding: 0 12px; color: var(--cw-suave); font-size: .78rem; text-align: center; }
.cw-nota.cw-nota-alerta { color: var(--cw-alerta); }
.cw-modos, .cw-hilos { display: flex; gap: 6px; padding: 2px 6px; overflow-x: auto; scrollbar-width: none; }
.cw-modos::-webkit-scrollbar, .cw-hilos::-webkit-scrollbar { display: none; }
.cw-modo, .cw-chip, .cw-hilo { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--cw-linea); background: var(--cw-velo); font-size: .84rem; font-weight: 650; white-space: nowrap; color: var(--cw-suave); transition: background .25s, color .25s, border-color .25s, transform .3s var(--cw-resorte), box-shadow .3s; }
.cw-modo:hover, .cw-chip:hover, .cw-hilo:hover { color: var(--cr-texto); background: var(--cw-velo-2); }
.cw-modo:active, .cw-chip:active, .cw-hilo:active { transform: scale(.94); }
.cw-modo[aria-pressed="true"], .cw-chip[aria-pressed="true"], .cw-hilo[aria-pressed="true"] { background: var(--cw-degradado); border-color: transparent; color: var(--cw-tinta); text-shadow: none; box-shadow: 0 8px 20px -10px var(--cw-brillo-acento); }
.cw-chip svg, .cw-hilo svg, .cw-modo svg { width: 16px; height: 16px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-adjuntar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; margin-left: -10px; border: 0; border-radius: 50%; background: none; color: var(--cw-suave); transition: background .25s, color .25s, transform .35s var(--cw-resorte); }
.cw-adjuntar:hover { background: var(--cw-velo); color: var(--cr-texto); transform: rotate(-8deg) scale(1.06); }
.cw-previa { display: flex; align-items: center; gap: 10px; align-self: flex-start; width: auto !important; margin-left: 8px !important; padding: 6px 8px 6px 6px; border-radius: 16px; border: 1px solid var(--cw-linea-2); background: var(--cw-velo-2); font-size: .84rem; animation: cw-burbuja .4s var(--cw-resorte) backwards; }
.cw-previa img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.cw-previa button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--cw-velo-2); font-size: 1rem; line-height: 1; }
.cw-sticker { width: 120px; height: 120px; object-fit: contain; margin-top: 6px; }
.cw-etq-voz { display: flex; width: fit-content; align-items: center; gap: 4px; margin-bottom: 4px; font-size: .74rem; font-weight: 700; opacity: .75; }

/* ---------- Chloe a la vista ---------- */
.cw-heroe { display: flex; align-items: center; gap: 20px; padding: 20px 24px 20px 14px; border-radius: 30px; overflow: hidden; }
.cw-heroe img { width: 136px; height: 136px; flex: none; object-fit: contain; margin: -8px 0; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.cw-heroe-t { flex: 1; min-width: 0; }
.cw-heroe-t h2 { font-size: 1.42rem; font-weight: 800; letter-spacing: -.02em; }
.cw-heroe-t p { color: var(--cw-suave); margin-top: 4px; }
.cw-medidores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cw-medidor { position: relative; overflow: hidden; min-width: 116px; padding: 11px 15px; border-radius: 18px; border: 1px solid var(--cw-linea); background: var(--cw-velo); transition: transform .4s var(--cw-resorte), border-color .3s; }
.cw-medidor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cw-degradado-vivo); opacity: .8; }
.cw-medidor:hover { transform: translateY(-2px); border-color: var(--cw-linea-2); }
.cw-medidor b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cw-medidor span { display: block; margin-top: 2px; color: var(--cw-suave); font-size: .78rem; }
.cw-linea-t { display: grid; position: relative; }
.cw-ev { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 12px; padding: 10px 0; }
.cw-ev::before { content: ""; position: absolute; left: 4.5px; top: 0; bottom: 0; width: 1px; background: var(--cw-linea-2); }
.cw-ev:first-child::before { top: 14px; }
.cw-ev:last-child::before { bottom: calc(100% - 14px); }
.cw-ev-punto { position: relative; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--cw-rosa); box-shadow: 0 0 0 4px var(--cw-velo), 0 0 12px var(--cw-rosa); }
.cw-ev-punto[data-tipo="medicina"], .cw-ev-punto[data-tipo="clase"], .cw-ev-punto[data-tipo="repaso"] { background: var(--cw-menta); box-shadow: 0 0 0 4px var(--cw-velo), 0 0 12px var(--cw-menta); }
.cw-ev-punto[data-tipo="emergencia"] { background: var(--cw-alerta); box-shadow: 0 0 0 4px var(--cw-velo), 0 0 12px var(--cw-alerta); }
.cw-ev b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.cw-ev p { color: var(--cw-suave); font-size: .9rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cw-ev time { display: block; margin-top: 2px; color: var(--cw-suave); font-size: .76rem; }
.cw-datos { display: grid; margin: 0; }
.cw-datos > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--cw-linea); }
.cw-datos > div:first-child { border-top: 0; padding-top: 2px; }
.cw-datos dt { color: var(--cw-suave); font-size: .92rem; }
.cw-datos dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }

/* ---------- ventanas (¿Quién eres?, confirmar, formularios) ---------- */
.cw-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.cw-modal::before { content: ""; position: absolute; inset: 0; background: var(--cw-velo-modal); animation: cw-aparece .25s ease-out both; }
.cw-modal-caja { position: relative; }
.cw-modal-caja { width: min(460px, 100%); max-height: 100%; overflow-y: auto; padding: 26px 22px 22px; border-radius: 32px; text-align: center; animation: cw-ventana .55s var(--cw-resorte) backwards; box-shadow: var(--cr-sombra), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 70px -20px var(--cw-brillo-acento); }
.cw-modal-caja.cw-form { text-align: left; }
.cw-modal-caja img { width: 116px; height: 116px; object-fit: contain; }
.cw-modal-caja h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.cw-modal-caja p { color: var(--cw-suave); margin-top: 6px; }
.cw-modal-campos { display: grid; gap: 14px; margin-top: 18px; }
.cw-modal-pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.cw-personas { display: grid; gap: 10px; margin-top: 18px; }
.cw-persona { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 20px; border: 1px solid var(--cw-linea); background: var(--cw-velo); text-align: left; transition: transform .35s var(--cw-resorte), background .25s, border-color .25s, box-shadow .3s; animation: cw-sube .55s var(--cw-salida) backwards; }
.cw-persona:nth-child(2) { animation-delay: .06s; }
.cw-persona:nth-child(3) { animation-delay: .12s; }
.cw-persona:nth-child(4) { animation-delay: .18s; }
.cw-persona:nth-child(n+5) { animation-delay: .24s; }
.cw-persona:hover { background: var(--cw-velo-2); border-color: var(--cw-linea-2); transform: translateY(-2px); box-shadow: 0 0 28px -10px var(--cw-brillo-acento); }
.cw-persona:active { transform: scale(.97); }
.cw-persona b { display: block; font-size: 1.02rem; }
.cw-persona span span { display: block; color: var(--cw-suave); font-size: .82rem; }
.cw-persona .cw-inicial { width: 46px; height: 46px; font-size: 1.12rem; }

/* ---------- formularios ---------- */
.cw-grupo { display: grid; gap: 6px; min-width: 0; }
.cw-etiqueta { font-size: .84rem; font-weight: 650; color: var(--cw-suave); }
.cw-ayuda { font-size: .8rem; color: var(--cw-suave); }
.cw-campo { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--cw-linea-2); background: var(--cw-hundido); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18); color: var(--cr-texto); font: 1rem/1.4 var(--cr-fuente); transition: border-color .25s, box-shadow .3s; }
textarea.cw-campo { min-height: 96px; resize: vertical; }
select.cw-campo { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select.cw-campo option { background: #1c1633; color: #f5f0ff; }
@media (prefers-color-scheme: light) {
  #clowi-web { color-scheme: light; }
  select.cw-campo option { background: #fff; color: #1a1330; }
}
.cw-campo::placeholder { color: var(--cw-suave); opacity: .8; }
#clowi-web .cw-campo:focus-visible { outline: 0; border-color: var(--cw-rosa); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .14), 0 0 0 3px var(--cw-brillo-acento); }
.cw-fila { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cw-linea); }
.cw-fila:first-child { border-top: 0; padding-top: 2px; }
.cw-fila > div { flex: 1; min-width: 0; }
.cw-fila b { display: block; font-weight: 650; }
.cw-fila small { display: block; color: var(--cw-suave); font-size: .85rem; }
.cw-interruptor { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; }
.cw-interruptor input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cw-interruptor span { position: absolute; inset: 0; border-radius: 999px; background: var(--cw-hundido); border: 1px solid var(--cw-linea-2); transition: background .3s, border-color .3s, box-shadow .3s; }
.cw-interruptor span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .45s var(--cw-resorte); }
.cw-interruptor input:checked + span { background: var(--cw-degradado); border-color: transparent; box-shadow: 0 0 20px -4px var(--cw-brillo-acento); }
.cw-interruptor input:checked + span::after { transform: translateX(20px); }
.cw-interruptor input:focus-visible + span { outline: 2px solid var(--cw-rosa); outline-offset: 2px; }
.cw-interruptor input:disabled + span { opacity: .5; }
.cw-palomita { display: grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0; border-radius: 50%; border: 1.5px solid var(--cw-linea-2); background: var(--cw-hundido); color: transparent; transition: background .25s, border-color .25s, transform .4s var(--cw-resorte); }
.cw-palomita svg { width: 15px; height: 15px; stroke-width: 3; }
.cw-palomita:hover { border-color: var(--cw-rosa); transform: scale(1.1); }
.cw-palomita[aria-checked="true"] { background: var(--cw-degradado); border-color: transparent; color: var(--cw-tinta); animation: cw-pop .45s var(--cw-resorte); }
.cw-rango { width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: none; }
.cw-rango::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--cw-linea-2); }
.cw-rango::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; border: 0; background: var(--cw-degradado); box-shadow: 0 4px 12px -2px var(--cw-brillo-acento), inset 0 1.5px 0 rgba(255, 255, 255, .6); }
.cw-rango::-moz-range-track { height: 6px; border-radius: 999px; background: var(--cw-linea-2); }
.cw-rango::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #f9b4e0; }
.cw-guardado { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--cw-suave); transition: color .3s; }
.cw-guardado[data-e="ok"] { color: var(--cw-ok); }
.cw-guardado[data-e="mal"] { color: var(--cw-alerta); }
.cw-kbd { display: inline-block; padding: 1px 7px; border-radius: 7px; border: 1px solid var(--cw-linea-2); background: var(--cw-velo); font: 600 .74rem ui-monospace, Consolas, monospace; }

/* ---------- pestañas con gota ---------- */
.cw-pestanas { position: relative; display: flex; gap: 2px; width: fit-content !important; max-width: 100%; margin-inline: 0 !important; padding: 5px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--cw-linea); border-radius: 999px; background: var(--cw-velo); }
.cw-pestanas::-webkit-scrollbar { display: none; }
.cw-pestana { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 7px 16px; border: 0; border-radius: 999px; background: none; font-size: .9rem; font-weight: 650; white-space: nowrap; color: var(--cw-suave); transition: color .25s, transform .3s var(--cw-resorte); }
.cw-pestana svg { width: 18px; height: 18px; }
.cw-pestana:hover { color: var(--cr-texto); }
.cw-pestana:active { transform: scale(.95); }
.cw-pestana[aria-selected="true"] { color: var(--cw-tinta); text-shadow: none; background: var(--cw-degradado); }
.cw-pestanas.con-gota .cw-pestana[aria-selected="true"] { background: none; }
.cw-pestanas .cw-gota { border-radius: 999px; }

/* ---------- dos columnas: lista + detalle (Espacios, Ideas) ---------- */
.cw-dos { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; flex: 1 1 0 !important; min-height: 0; }
.cw-dos > * { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; animation: cw-sube .6s var(--cw-salida) backwards; }
.cw-dos > :nth-child(2) { animation-delay: .08s; }
.cw-fila-nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 16px; background: none; text-align: left; transition: background .25s, border-color .25s, transform .3s var(--cw-resorte); }
.cw-fila-nav:hover { background: var(--cw-velo); }
.cw-fila-nav:active { transform: scale(.98); }
.cw-fila-nav[aria-current="true"] { background: var(--cw-velo-2); border-color: var(--cw-linea-2); box-shadow: inset 3px 0 0 var(--cw-rosa); }
.cw-fila-nav > span:last-child { flex: 1; min-width: 0; }
.cw-fila-nav b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-fila-nav small { display: block; color: var(--cw-suave); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-emoji { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--cw-velo-2); border: 1px solid var(--cw-linea); font-size: 1.3rem; line-height: 1; text-shadow: none; }
.cw-regresar { display: none; }

/* ---------- editor por bloques (Espacios) ---------- */
.cw-editor { display: flex; flex-direction: column; gap: 6px; }
.cw-editor-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cw-editor-cab > small { flex: none; color: var(--cw-suave); font-size: .78rem; white-space: nowrap; }
.cw-editor-titulo { flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0; background: none; color: var(--cr-texto); font: 800 1.6rem/1.2 var(--cr-fuente); letter-spacing: -.02em; }
#clowi-web .cw-editor-titulo:focus-visible { outline: 0; }
.cw-editor-titulo::placeholder { color: var(--cw-suave); opacity: .7; }
.cw-bloques { display: grid; gap: 4px; }
.cw-bloque { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 14px; border: 1px solid transparent; transition: background .25s, border-color .25s; animation: cw-sube .45s var(--cw-salida) backwards; }
.cw-bloque:hover, .cw-bloque:focus-within { background: var(--cw-velo); border-color: var(--cw-linea); }
.cw-bloque-acc { display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.cw-bloque:hover .cw-bloque-acc, .cw-bloque:focus-within .cw-bloque-acc { opacity: 1; }
.cw-bloque-acc button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--cw-suave); }
.cw-bloque-acc button:hover { background: var(--cw-velo-2); color: var(--cr-texto); }
.cw-bloque-acc button svg { width: 17px; height: 17px; }
.cw-bloque-texto { display: block; width: 100%; min-height: 30px; padding: 5px 0; border: 0; outline: 0; resize: none; overflow: hidden; background: none; color: var(--cr-texto); font: 1rem/1.5 var(--cr-fuente); }
#clowi-web .cw-bloque-texto:focus-visible { outline: 0; }
.cw-bloque-texto::placeholder { color: var(--cw-suave); opacity: .65; }
.cw-bloque[data-tipo="titulo"] .cw-bloque-texto { font-size: 1.28rem; font-weight: 760; letter-spacing: -.015em; }
.cw-bloque[data-tipo="nota"] { background: linear-gradient(135deg, color-mix(in srgb, var(--cw-rosa) 16%, transparent), color-mix(in srgb, var(--cw-lila) 10%, transparent)); border-color: color-mix(in srgb, var(--cw-rosa) 30%, transparent); padding-top: 8px; padding-bottom: 8px; }
.cw-bloque[data-tipo="enlace"] .cw-bloque-cuerpo { display: grid; gap: 4px; }
.cw-bloque-liga { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .86rem; font-weight: 650; }
.cw-bloque-liga svg { width: 15px; height: 15px; }
.cw-tareas { display: grid; gap: 2px; }
.cw-tarea { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.cw-tarea input[type="text"] { flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0; background: none; color: var(--cr-texto); font: 1rem/1.4 var(--cr-fuente); }
.cw-tarea.cw-hecho input[type="text"] { text-decoration: line-through; opacity: .55; }
.cw-tarea > button:last-child { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--cw-suave); opacity: 0; }
.cw-tarea:hover > button:last-child, .cw-tarea:focus-within > button:last-child { opacity: 1; }
.cw-tarea > button:last-child svg { width: 15px; height: 15px; }
.cw-agregar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--cw-linea-2); }
.cw-agregar > span { font-size: .8rem; font-weight: 650; color: var(--cw-suave); }

/* ---------- metas, ideas, buscar ---------- */
.cw-anillo { --p: 0; position: relative; display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 50%; background: conic-gradient(from -90deg, #ff9fd6, #c8a6ff calc(var(--p) * .6%), #8fd0ff calc(var(--p) * 1%), var(--cw-linea) 0); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; text-shadow: none; transition: --p .8s; }
.cw-anillo::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--cw-solido); }
.cw-anillo > * { position: relative; }
.cw-barra-p { height: 8px; border-radius: 999px; background: var(--cw-linea); overflow: hidden; }
.cw-barra-p > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cw-degradado-vivo); box-shadow: 0 0 14px var(--cw-brillo-acento); transition: width .9s var(--cw-salida); }
.cw-meta-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cw-meta-cab > div { flex: 1; min-width: 0; }
.cw-meta-cab h2 { font-size: 1.1rem; font-weight: 740; overflow-wrap: anywhere; }
.cw-meta-cab p { color: var(--cw-suave); font-size: .86rem; }
.cw-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; gap: 16px; }
.cw-idea { display: block; width: 100%; min-width: 0; padding: 16px 18px; border-radius: 22px; }
.cw-idea[data-tono="1"] { --cr-velo-panel: linear-gradient(150deg, rgba(249, 180, 224, .26), rgba(20, 12, 40, .34)); }
.cw-idea[data-tono="2"] { --cr-velo-panel: linear-gradient(150deg, rgba(165, 243, 228, .22), rgba(8, 24, 34, .36)); }
.cw-idea[data-tono="3"] { --cr-velo-panel: linear-gradient(150deg, rgba(205, 182, 252, .26), rgba(16, 12, 44, .34)); }
.cw-idea[data-tono="4"] { --cr-velo-panel: linear-gradient(150deg, rgba(254, 205, 176, .24), rgba(34, 16, 12, .34)); }
.cw-idea-t { font-weight: 720; overflow-wrap: anywhere; }
.cw-idea-x { margin-top: 6px; color: var(--cw-suave); font-size: .93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-idea-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--cw-suave); font-size: .76rem; }
.cw-idea-pie > span:last-child { display: flex; gap: 2px; }
.cw-mini { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--cw-suave); transition: background .2s, color .2s, transform .3s var(--cw-resorte); }
.cw-mini:hover { background: var(--cw-velo-2); color: var(--cr-texto); transform: scale(1.08); }
.cw-mini.cw-peligro:hover { color: var(--cw-alerta); }
.cw-mini svg { width: 17px; height: 17px; }
.cw-buscar-campo { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 20px; border-radius: 999px; transition: box-shadow .35s; }
.cw-buscar-campo:focus-within { box-shadow: var(--cr-sombra), 0 0 0 1.5px var(--cw-brillo-acento), 0 0 44px -8px var(--cw-brillo-acento); }
.cw-buscar-campo svg { color: var(--cw-suave); }
.cw-buscar-campo input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: none; color: var(--cr-texto); font: 1.08rem var(--cr-fuente); }
#clowi-web .cw-buscar-campo input:focus-visible { outline: 0; }
.cw-buscar-campo input::placeholder { color: var(--cw-suave); }
.cw-resultados { display: grid; gap: 4px; }
.cw-resultado { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 16px; background: none; text-align: left; transition: background .25s, border-color .25s, transform .3s var(--cw-resorte); animation: cw-sube .45s var(--cw-salida) backwards; }
.cw-resultado:hover { background: var(--cw-velo); border-color: var(--cw-linea); transform: translateX(3px); }
.cw-resultado > span:last-child { flex: 1; min-width: 0; }
.cw-resultado b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.cw-resultado small { display: block; color: var(--cw-suave); font-size: .86rem; overflow-wrap: anywhere; }
#clowi-web mark { padding: 0 3px; border-radius: 5px; background: var(--cw-brillo-acento); color: inherit; }

/* ---------- añadidos de las fases B, C y F ---------- */
.cw-opcion { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 2px; }
.cw-opcion + .cw-opcion, .cw-grupo + .cw-opcion { border-top: 1px solid var(--cw-linea); }
.cw-opcion > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-opcion b { font-weight: 680; font-size: .95rem; }
.cw-opcion small { color: var(--cw-suave); font-size: .8rem; line-height: 1.35; }
.cw-opcion > .cw-interruptor { flex: none; }
.cw-idea { position: relative; background: var(--cr-velo-panel), var(--cw-velo-2); border: 1px solid var(--cw-linea); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .55); transition: transform .35s var(--cw-resorte), border-color .25s; animation: cw-sube .5s var(--cw-salida) backwards; }
.cw-idea:hover { transform: translateY(-3px); border-color: var(--cw-linea-2); }
.cw-idea-pie button[aria-pressed="true"] { color: #ffcf5c; }
.cw-idea-pie button[aria-pressed="true"] svg { fill: currentColor; }
.cw-redactar-idea { display: flex; align-items: flex-end; gap: 12px; }
.cw-redactar-idea textarea { flex: 1; min-width: 0; }
.cw-tarea > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cw-tarea.cw-hecho > span { text-decoration: line-through; opacity: .55; }
.cw-dos > .cw-tema { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cw-tema .cw-editor-cab { margin: 0; padding: 0 6px; }
.cw-tema .cw-editor-cab b { font-size: 1.15rem; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-item > .cw-mini { margin-left: auto; flex: none; }

/* ---------- conexiones, estado y latido ---------- */
.cw-estado { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 650; color: var(--cw-suave); }
.cw-estado::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.cw-estado[data-e="ok"] { color: var(--cw-ok); }
.cw-estado[data-e="ok"]::before { box-shadow: 0 0 0 0 currentColor; animation: cw-radar 2.2s ease-out infinite; }
.cw-estado[data-e="pend"] { color: var(--cw-aviso); }
.cw-estado[data-e="mal"] { color: var(--cw-alerta); }
.cw-latido { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; color: var(--cw-rosa); background: color-mix(in srgb, var(--cw-rosa) 16%, transparent); animation: cw-corazon 1.6s ease-in-out infinite; }
.cw-latido svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.cw-latido[data-e="off"] { animation: none; color: var(--cw-suave); background: var(--cw-velo); }
.cw-pasos { counter-reset: paso; display: grid; gap: 10px; }
.cw-pasos > li { counter-increment: paso; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--cw-suave); font-size: .93rem; }
.cw-pasos > li::before { content: counter(paso); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cw-velo-2); border: 1px solid var(--cw-linea-2); color: var(--cr-texto); font-weight: 750; font-size: .84rem; }
.cw-pasos > li b { color: var(--cr-texto); font-weight: 650; }
.cw-qr { display: grid; place-items: center; width: 220px; max-width: 100%; aspect-ratio: 1; margin: 6px auto; padding: 14px; border-radius: 22px; border: 1.5px dashed var(--cw-linea-2); background: var(--cw-velo); color: var(--cw-suave); font-size: .86rem; text-align: center; }
.cw-qr img, .cw-qr canvas { width: 100%; height: 100%; border-radius: 10px; background: #fff; }
.cw-codigo { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--cw-linea); background: var(--cw-hundido); font: .82rem/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.cw-menu { position: absolute; z-index: 45; min-width: 190px; padding: 6px; border-radius: 16px; border: 1px solid var(--cw-linea-2); background: var(--cw-solido); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7); animation: cw-ventana .3s var(--cw-resorte) backwards; }
.cw-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 11px; background: none; text-align: left; font-size: .93rem; font-weight: 600; }
.cw-menu button:hover { background: var(--cw-velo-2); }
.cw-menu button svg { width: 18px; height: 18px; color: var(--cw-suave); }

/* ---------- hoja «Más» (teléfono) ---------- */
.cw-hoja-fondo { position: fixed; inset: 0; z-index: 44; background: var(--cw-velo-modal); animation: cw-aparece .25s ease-out both; }
.cw-hoja { position: fixed; z-index: 45; left: calc(10px + env(safe-area-inset-left)); right: calc(10px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); max-height: 78vh; overflow-y: auto; padding: 10px 12px 14px; border-radius: 30px; animation: cw-hoja .5s var(--cw-resorte) backwards; }
.cw-hoja-asa { width: 44px; height: 5px; margin: 2px auto 10px; border-radius: 999px; background: var(--cw-linea-2); }
.cw-hoja-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cw-hoja-b { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border: 1px solid var(--cw-linea); border-radius: 20px; background: var(--cw-velo); font-size: .8rem; font-weight: 650; text-align: center; transition: transform .3s var(--cw-resorte), background .25s; animation: cw-sube .5s var(--cw-salida) backwards; }
.cw-hoja-b:nth-child(2) { animation-delay: .04s; }
.cw-hoja-b:nth-child(3) { animation-delay: .08s; }
.cw-hoja-b:nth-child(n+4) { animation-delay: .12s; }
.cw-hoja-b:active { transform: scale(.94); }
.cw-hoja-b[aria-current="page"] { background: var(--cw-degradado); color: var(--cw-tinta); border-color: transparent; text-shadow: none; }
.cw-hoja-b svg { width: 24px; height: 24px; color: var(--cw-rosa); }
.cw-hoja-b[aria-current="page"] svg { color: inherit; }

/* ---------- botón para volver desde el panel clásico ---------- */
.cw-volver { position: fixed; z-index: 30; right: calc(14px + env(safe-area-inset-right)); top: calc(14px + env(safe-area-inset-top)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 12px; border-radius: 999px; border: 0; background: var(--cw-degradado); color: var(--cw-tinta); font: 720 .9rem var(--cr-fuente); cursor: pointer; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 12px 30px -8px rgba(0, 0, 0, .45), 0 0 30px -6px rgba(249, 180, 224, .55); transition: transform .35s var(--cw-resorte); animation: cw-ventana .5s var(--cw-resorte) backwards; }
.cw-volver:hover { transform: translateY(-2px) scale(1.03); }
.cw-volver:active { transform: scale(.95); }
.cw-volver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cw-lado-plegar, .cw-menu-fondo { display: none; }

/* ---------- teléfono y tableta ---------- */
@media (max-width: 899px) {
  #clowi-web { display: block; padding: 0; }
  .cw-principal { position: absolute; inset: 0; padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(var(--cw-barra) + 20px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); }
  .cw-lado { position: absolute; z-index: 2; left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--cw-barra); flex-direction: row; align-items: center; gap: 0; padding: 6px; border-radius: 999px; animation-name: cw-entra-barra; }
  .cw-marca, .cw-nav-sep, .cw-lado .cw-quien, .cw-lado-buscar, .cw-lado-salir, .cw-nav-b.cw-nav-extra { display: none; }
  .cw-nav { flex-direction: row; flex: 1; gap: 2px; overflow: visible; margin: 0; padding: 0; }
  .cw-nav-b, .cw-nav-mas { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; width: auto; min-width: 0; min-height: 58px; padding: 6px 2px; border-radius: 999px; font-size: .68rem; font-weight: 660; text-align: center; }
  .cw-nav-b { order: var(--cw-orden, 0); }
  .cw-nav-mas { display: flex; }
  .cw-gota { border-radius: 999px; }
  .cw-nav-t-largo { display: none; }
  .cw-titulo { font-size: 1.5rem; }
  .cw-rejilla { grid-template-columns: minmax(0, 1fr); }
  .cw-m { max-width: 88%; }
  .cw-heroe { padding: 14px 16px 14px 8px; gap: 10px; }
  .cw-heroe img { width: 98px; height: 98px; }
  .cw-medidor { min-width: 0; flex: 1 1 96px; padding: 9px 12px; }
  .cw-vacio img { width: 124px; height: 124px; }
  .cw-tarjeta, .cw-panel, .cw-dos > .cw-editor { padding: 17px; border-radius: 24px; }
  .cw-dos { grid-template-columns: minmax(0, 1fr); }
  .cw-dos > :nth-child(2) { display: none; }
  .cw-dos[data-detalle="1"] > :first-child { display: none; }
  .cw-dos[data-detalle="1"] > :nth-child(2) { display: block; }
  .cw-dos[data-detalle="1"] > .cw-tema { display: flex; }
  .cw-redactar-idea { flex-direction: column; align-items: stretch; }
  .cw-regresar { display: grid; }
  .cw-bloque-acc, .cw-tarea > button:last-child { opacity: 1; }
  .cw-ideas { grid-template-columns: minmax(0, 1fr); }
  .cw-modal { align-items: end; padding: 10px; }
  .cw-modal-caja { width: 100%; border-radius: 30px; animation-name: cw-hoja; }
}
@media (min-width: 900px) {
  .cw-nav-t-corto { display: none; }
  .cw-hoja, .cw-hoja-fondo { display: none !important; }

  /* menú plegado: sólo iconos; al presionar el botón se despliega encima del contenido */
  #clowi-web { --cw-lado: 78px; }
  #clowi-web .cw-lado { position: relative; z-index: 5; justify-self: start; width: var(--cw-lado); padding: 14px; gap: 12px; transition: width .42s var(--cw-salida), box-shadow .35s; }
  .cw-lado-plegar { display: grid; place-items: center; flex: none; width: 50px; height: 46px; padding: 0; border: 1px solid var(--cw-linea); border-radius: 16px; background: var(--cw-velo); color: var(--cr-texto); transition: background .25s, border-color .25s, transform .3s var(--cw-resorte); }
  .cw-lado-plegar svg { width: 22px; height: 22px; transition: transform .45s var(--cw-resorte); }
  .cw-lado-plegar:hover { background: var(--cw-velo-2); border-color: var(--cw-rosa); }
  .cw-lado-plegar:hover svg { transform: scale(1.12); }
  .cw-lado-plegar:active { transform: scale(.93); }
  #clowi-web[data-menu="mini"] .cw-marca,
  #clowi-web[data-menu="mini"] .cw-nav-b > span,
  #clowi-web[data-menu="mini"] .cw-lado-buscar > span,
  #clowi-web[data-menu="mini"] .cw-quien-n,
  #clowi-web[data-menu="mini"] .cw-quien-c,
  #clowi-web[data-menu="mini"] .cw-lado-salir > span { display: none; }
  #clowi-web[data-menu="mini"] .cw-lado-salir { width: 50px; min-height: 46px; padding: 0; border-radius: 16px; }
  #clowi-web[data-menu="mini"] .cw-nav-b { justify-content: center; gap: 0; padding: 9px 0; }
  #clowi-web[data-menu="mini"] .cw-lado-buscar { justify-content: center; width: 50px; min-height: 46px; padding: 0; border-radius: 16px; }
  #clowi-web[data-menu="mini"] .cw-quien { justify-content: center; width: 50px; padding: 5px; border-color: transparent; background: none; }
  #clowi-web[data-menu="mini"] .cw-nav-sep { margin: 6px 8px; }
  #clowi-web[data-menu="abierto"] .cw-lado { width: 284px; padding: 20px 14px 14px; gap: 16px; box-shadow: var(--cw-sombra-alta); }
  #clowi-web[data-menu="abierto"] .cw-lado-plegar { position: absolute; top: 20px; right: 14px; width: 42px; height: 42px; border-radius: 14px; }
  #clowi-web[data-menu="abierto"] .cw-marca { padding-right: 50px; }
  .cw-menu-fondo:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 4; background: rgba(6, 4, 18, .34); animation: cw-aparece .25s both; }
}

/* ---------- movimiento ---------- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes cw-sube { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cw-entra-lado { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes cw-entra-barra { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes cw-burbuja { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes cw-ventana { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cw-hoja { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes cw-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes cw-late { 0%, 100% { opacity: .35; transform: translateY(0) scale(.9); } 50% { opacity: 1; transform: translateY(-4px) scale(1.1); } }
@keyframes cw-giro { to { transform: rotate(360deg); } }
@keyframes cw-brillo { to { background-position: -240% 0; } }
@keyframes cw-tinte { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes cw-barrido { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.cw-chispa { position: fixed; z-index: 60; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; pointer-events: none; background: var(--c, #fbb5e1); box-shadow: 0 0 10px 1px var(--c, #fbb5e1); animation: cw-chispa .7s var(--cw-salida) forwards; }
@keyframes cw-chispa { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
@keyframes cw-onda { to { transform: scale(1); opacity: 0; } }
@keyframes cw-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes cw-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cw-respira { 0%, 100% { transform: scale(.92); opacity: .5; } 50% { transform: scale(1.12); opacity: .95; } }
@keyframes cw-pulso-voz { 0%, 100% { box-shadow: 0 0 0 0 var(--cw-brillo-acento); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes cw-radar { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes cw-corazon { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.16); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } 48% { transform: scale(1); } }
@keyframes cw-estira-y { 0% { scale: 1 1; } 30% { scale: .9 1.22; } 65% { scale: 1.03 .95; } 100% { scale: 1 1; } }
@keyframes cw-estira-x { 0% { scale: 1 1; } 30% { scale: 1.24 .84; } 65% { scale: .95 1.05; } 100% { scale: 1 1; } }
@keyframes cw-titila { from { opacity: .25; } to { opacity: .95; } }
@keyframes cw-deriva-1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes cw-deriva-2 { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-16vmax, -8vmax, 0) scale(.95); } }
@keyframes cw-deriva-3 { from { transform: translate3d(-10vmax, 6vmax, 0) scale(.9); } to { transform: translate3d(12vmax, -10vmax, 0) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  #clowi-web *, #clowi-web *::before, #clowi-web *::after, .cw-cielo *, .cw-volver { animation: none !important; transition: none !important; }
  .cw-luz-puntero { display: none; }
}

/* ---------- fase E: conexiones ---------- */
.cw-cx { align-items: start; }
.cw-cx-texto { margin: 10px 0 0; color: var(--cw-suave); font-size: .9rem; line-height: 1.5; }
.cw-cx-lista { list-style: none; margin: 14px 0 0; padding: 0; }
.cw-cx-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--cw-linea); }
.cw-cx-cuando { grid-column: 1; font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--cw-suave); }
.cw-cx-ev-t { grid-column: 1; min-width: 0; font-weight: 640; overflow-wrap: anywhere; }
.cw-cx-ev-acc { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 4px; }
.cw-cx-nada { padding: 12px 0; border-top: 1px solid var(--cw-linea); color: var(--cw-suave); font-size: .88rem; }
.cw-cx-b { min-height: 34px; padding: 6px 12px; font-size: .8rem; white-space: nowrap; }
a.cw-boton { text-decoration: none; }
.cw-cx-liga { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--cw-linea); background: var(--cw-hundido); }
.cw-cx-liga small { color: var(--cw-suave); font-size: .82rem; line-height: 1.45; }
.cw-cx-liga .cw-acciones { margin-top: 8px; }
.cw-cx-liga[hidden] { display: none; }
.cw-cx-codigo { font-size: 1.9rem; font-weight: 760; letter-spacing: .12em; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* ---------- Chloe a un lado: panel derecho y burbuja que se mueve ---------- */
#clowi-web .cw-compa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 0; padding: 20px 16px 16px; border-radius: 30px; text-align: center; }
#clowi-web .cw-compa[hidden], #clowi-web .cw-globo[hidden] { display: none; }
.cw-compa:not([hidden]) { animation: cw-compa-entra .55s var(--cw-salida) backwards; }
.cw-compa-cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--cw-linea); border-radius: 50%; background: var(--cw-velo); color: var(--cw-suave); transition: background .25s, color .25s, border-color .25s, transform .3s var(--cw-resorte); }
.cw-compa-cerrar svg { width: 18px; height: 18px; }
.cw-compa-cerrar:hover { background: var(--cw-velo-2); color: var(--cr-texto); border-color: var(--cw-rosa); transform: rotate(90deg); }
.cw-compa-cara { position: relative; flex: none; display: grid; place-items: center; width: 184px; height: 184px; margin-top: 2px; }
.cw-compa-cara::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: var(--cw-degradado); filter: blur(24px); opacity: .34; animation: cw-compa-late 4.6s ease-in-out infinite alternate; }
.cw-compa-cara::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid var(--cw-linea-2); background: radial-gradient(circle at 32% 24%, var(--cw-velo-2), transparent 68%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .28); }
.cw-compa-img { position: relative; z-index: 1; width: 172px; height: 172px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .34)); }
.cw-compa[data-estado="dormida"] .cw-compa-cara::before { opacity: .2; animation-duration: 7s; }
.cw-compa-nombre { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cw-compa-estado { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--cr-texto); }
.cw-compa-punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.cw-compa[data-estado="pensando"] .cw-compa-punto { background: #fcd34d; box-shadow: 0 0 0 4px rgba(252, 211, 77, .22); animation: cw-compa-pulso .8s ease-in-out infinite alternate; }
.cw-compa[data-estado="dormida"] .cw-compa-punto { background: #a5b4fc; box-shadow: 0 0 0 4px rgba(165, 180, 252, .2); }
.cw-compa-para { font-size: .8rem; color: var(--cw-suave); }
.cw-compa-platicar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: 100%; min-height: 46px; margin-top: 6px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--cw-degradado); color: var(--cw-tinta); font-size: .95rem; font-weight: 720; text-shadow: none; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 14px 28px -14px var(--cw-brillo-acento); transition: transform .3s var(--cw-resorte), box-shadow .3s; }
.cw-compa-platicar svg { width: 19px; height: 19px; }
.cw-compa-platicar:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 18px 34px -14px var(--cw-brillo-acento), 0 0 0 4px var(--cw-brillo-acento); }
.cw-compa-platicar:active { transform: scale(.97); }
.cw-compa-cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1; width: 100%; min-height: 0; margin-top: 8px; padding: 2px; overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.cw-compa-sec { flex: none; padding: 12px 14px 13px; border: 1px solid var(--cw-linea); border-radius: 20px; background: var(--cw-velo); }
.cw-compa-sec-t { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--cr-texto); font-size: .9rem; font-weight: 720; text-align: left; }
.cw-compa-sec-t svg { flex: none; width: 17px; height: 17px; color: var(--cw-rosa); }
.cw-compa-ver { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--cw-suave); transition: color .25s; }
.cw-compa-sec-t:hover .cw-compa-ver { color: var(--cw-rosa); }
.cw-compa-ren { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding-top: 9px; font-size: .86rem; }
.cw-compa-hora { font-variant-numeric: tabular-nums; font-weight: 720; color: var(--cw-rosa); }
.cw-compa-txt { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.cw-compa-nada { margin: 8px 0 0; font-size: .84rem; line-height: 1.4; color: var(--cw-suave); }
.cw-compa-meta { padding-top: 10px; font-size: .86rem; }
.cw-compa-meta-l { display: flex; align-items: baseline; gap: 10px; }
.cw-compa-meta-l .cw-compa-txt { flex: 1; -webkit-line-clamp: 1; }
.cw-compa-pct { flex: none; font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 700; color: var(--cw-suave); }
.cw-compa-barra { height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(127, 127, 160, .22); overflow: hidden; }
.cw-compa-barra > i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--cw-degradado); transition: width .6s var(--cw-salida); }

.cw-globo { position: absolute; z-index: 3; right: 26px; bottom: 26px; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cw-globo:not([hidden]) { animation: cw-globo-entra .5s var(--cw-resorte) backwards; }
.cw-globo-aro { position: absolute; inset: 0; border-radius: 50%; background: var(--cw-degradado); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), 0 16px 34px -12px rgba(0, 0, 0, .62), 0 0 28px -4px var(--cw-brillo-acento); transition: transform .35s var(--cw-resorte), box-shadow .3s; }
.cw-globo-aro::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cw-solido); }
.cw-globo img { position: absolute; left: 5px; top: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; animation: cw-globo-flota 3.8s ease-in-out infinite alternate; }
.cw-globo-punto { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #1a1430; background: #34d399; }
.cw-globo[data-estado="pensando"] .cw-globo-punto { background: #fcd34d; animation: cw-compa-pulso .8s ease-in-out infinite alternate; }
.cw-globo[data-estado="dormida"] .cw-globo-punto { background: #a5b4fc; }
.cw-globo:hover .cw-globo-aro { transform: scale(1.07); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), 0 20px 40px -12px rgba(0, 0, 0, .62), 0 0 0 5px var(--cw-brillo-acento); }
.cw-globo.cw-arrastra { cursor: grabbing; }
.cw-globo.cw-arrastra .cw-globo-aro { transform: scale(1.12); }
.cw-globo:focus-visible { outline: 3px solid var(--cw-rosa); outline-offset: 4px; }
@media (prefers-color-scheme: light) { .cw-globo-punto { border-color: #fff; } }

@media (min-width: 1280px) {
  #clowi-web[data-compa="abierto"] { grid-template-columns: var(--cw-lado) minmax(0, 1fr) 320px; }
}
@media (max-width: 1279px) {
  #clowi-web .cw-compa { position: absolute; z-index: 6; top: calc(18px + env(safe-area-inset-top)); right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: min(340px, calc(100% - 36px)); background-color: color-mix(in srgb, var(--cw-solido) 64%, transparent); box-shadow: var(--cw-sombra-alta); }
}
@media (max-width: 899px) {
  #clowi-web .cw-compa { top: auto; left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(var(--cw-barra) + 20px + env(safe-area-inset-bottom)); width: auto; max-height: min(80%, 660px); padding-top: 16px; }
  .cw-compa-cara { width: 148px; height: 148px; }
  .cw-compa-img { width: 138px; height: 138px; }
  .cw-globo { width: 62px; height: 62px; bottom: calc(var(--cw-barra) + 30px + env(safe-area-inset-bottom)); right: 16px; }
}
@keyframes cw-compa-entra { from { opacity: 0; transform: translateX(28px) scale(.97); } }
@keyframes cw-compa-late { from { opacity: .22; transform: scale(.93); } to { opacity: .44; transform: scale(1.05); } }
@keyframes cw-compa-pulso { to { opacity: .35; } }
@keyframes cw-globo-entra { from { opacity: 0; transform: scale(.35); } }
@keyframes cw-globo-flota { from { transform: translateY(1.5px); } to { transform: translateY(-1.5px); } }

/* ---------- Lo que Chloe guardó desde la plática ---------- */
.cw-creado { display: flex; flex-direction: column; gap: 6px; max-width: min(100%, 420px); margin-top: 6px; }
.cw-creado-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 14px 8px 10px; border: 1px solid var(--cw-linea-2); border-radius: 16px; background: var(--cw-velo); color: var(--cr-texto); text-align: left; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .3s var(--cw-resorte), border-color .25s, background .25s; animation: cw-creado-entra .5s var(--cw-resorte) backwards; }
.cw-creado-b:hover { transform: translateY(-2px); border-color: var(--cw-rosa); background: var(--cw-velo-2); }
.cw-creado-b:active { transform: scale(.98); }
.cw-creado-b:focus-visible { outline: 3px solid var(--cw-rosa); outline-offset: 2px; }
.cw-creado-e { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--cw-velo-2); font-size: 1rem; }
.cw-creado-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cw-creado-t b { font-size: .74rem; font-weight: 720; letter-spacing: .02em; color: var(--cw-rosa); }
.cw-creado-t span { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-creado-ver { flex: none; font-size: .76rem; font-weight: 700; color: var(--cw-suave); }
.cw-creado-b:hover .cw-creado-ver { color: var(--cw-rosa); }
@keyframes cw-creado-entra { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .cw-creado-b { animation: none; transition: none; } }

/* ---------- Entrada con QR y Google (Fase I) ---------- */
.cw-entrar-wrap { display: flex; justify-content: center; align-items: center; padding: 24px 14px; min-height: 60vh; }
.cw-entrar-tarjeta { max-width: 440px; width: 100%; margin: 0 auto; text-align: center; padding: 26px 22px; border-radius: 28px; }
.cw-entrar-cab { margin-bottom: 18px; }
.cw-entrar-cab h2 { font-size: 1.38rem; font-weight: 750; margin: 0 0 8px; color: var(--cr-texto, #fff); }
.cw-entrar-cab p { margin: 0; color: var(--cr-texto-2, rgba(255, 255, 255, .7)); font-size: .94rem; line-height: 1.4; }
.cw-entrar-qr-caja { position: relative; display: inline-block; margin: 14px auto; background: #ffffff; padding: 12px; border-radius: 22px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.cw-entrar-qr { display: block; width: 220px; height: 220px; border-radius: 12px; }
.cw-entrar-aviso { margin: 10px 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--cw-linea, rgba(255, 255, 255, .15)); font-size: .88rem; line-height: 1.35; color: var(--cw-aviso, #fcd34d); text-align: left; }
.cw-entrar-aviso.cw-error { color: var(--cw-alerta, #fca5a5); background: rgba(252, 165, 165, .12); border-color: rgba(252, 165, 165, .25); }
.cw-entrar-acciones { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cw-entrar-separador { display: flex; align-items: center; text-align: center; margin: 6px 0; color: rgba(255, 255, 255, .42); font-size: .82rem; }
.cw-entrar-separador::before, .cw-entrar-separador::after { content: ""; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cw-entrar-separador span { padding: 0 10px; }
.cw-vincular-qr { display: grid; justify-items: center; gap: 10px; margin-top: 14px; text-align: center; }
.cw-vincular-qr[hidden] { display: none; }
.cw-vincular-qr img { width: 220px; height: 220px; padding: 10px; border-radius: 20px; background: #fff; }

/* ---------- fases A y B: negocio, apuntes y clientes ---------- */
.cw-ab-total { font-size: 2.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.cw-ab-meta { position: relative; height: 10px; margin: 14px 0 8px; border-radius: 999px; background: var(--cw-velo); border: 1px solid var(--cw-linea); overflow: hidden; }
.cw-ab-meta i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--cw-degradado-vivo); transition: width .8s var(--cw-resorte); }
.cw-ab-barras { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 10px; }
.cw-ab-barra { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; min-width: 0; }
.cw-ab-barra b { font-size: .72rem; font-weight: 600; color: var(--cw-suave); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cw-ab-barra i { display: block; width: 100%; max-width: 38px; min-height: 4px; border-radius: 9px; background: color-mix(in srgb, var(--cw-lila) 70%, transparent); transition: height .8s var(--cw-resorte); }
.cw-ab-barra.cw-hoy i { background: var(--cw-degradado-vivo); }
.cw-ab-barra small { font-size: .78rem; color: var(--cw-suave); }
.cw-ab-barra.cw-hoy small { color: var(--cr-texto); font-weight: 800; }
.cw-ab-form { display: grid; gap: 10px; margin-top: 10px; }
.cw-ab-form textarea.cw-campo { min-height: 96px; resize: vertical; }
.cw-ab-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cw-ab-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cw-ab-suma { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cw-linea); }
.cw-ab-suma div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.cw-ab-suma div span:first-child { color: var(--cw-suave); }
.cw-ab-suma .cw-ab-gran { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.cw-ab-suma .cw-ab-gran span:first-child { color: inherit; }
.cw-ab-falta { color: var(--cw-aviso); font-size: .9rem; margin-top: 6px; }
.cw-ab-nota { color: var(--cw-suave); font-size: .85rem; margin: 14px 2px 4px; }
.cw-ab-notas { display: grid; gap: 8px; margin-top: 8px; }
.cw-ab-notas div { padding: 10px 13px; border-radius: 14px; background: var(--cw-velo); border: 1px solid var(--cw-linea); }
.cw-ab-notas small { display: block; color: var(--cw-suave); font-size: .76rem; margin-bottom: 2px; }
.cw-ab-notas p { margin: 0; }
.cw-ab-datos { display: grid; gap: 4px; margin: 6px 0 10px; }
.cw-ab-datos span { color: var(--cw-suave); }
.cw-lista .cw-item[tabindex] { cursor: pointer; }
@media (max-width: 899px) {
  .cw-ab-dos { grid-template-columns: 1fr; }
  .cw-ab-total { font-size: 2.1rem; }
  .cw-ab-barras { gap: 6px; height: 130px; }
}
.cw-ab-fin { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.cw-ab-fin > .cw-mini { margin-left: 0; }

/* ---------- Fases A y B: que la burbuja de Chloe no tape Negocio, Clientes ni Apuntes ----------
   Sólo en estas 3 vistas: el área de scroll llega hasta la barra como siempre y lleva por dentro
   un espacio final para que lo último quede libre arriba de la burbuja (en teléfono la burbuja
   arranca a 176 px del fondo: 176 + 62 + 12 − (barra + 20) ≈ 160 px). La burbuja no cambia. */
.cw-vista[data-vista="negocio"], .cw-vista[data-vista="clientes"], .cw-vista[data-vista="apuntes"] { padding-bottom: 116px; scroll-padding-bottom: 116px; }
@media (max-width: 899px) {
  .cw-vista[data-vista="negocio"], .cw-vista[data-vista="clientes"], .cw-vista[data-vista="apuntes"] { padding-bottom: 160px; scroll-padding-bottom: 160px; }
}
@media (max-width: 899px) {
  /* El estado vacío de estas 3 vistas cabe completo arriba de la burbuja. */
  .cw-vista[data-vista="negocio"] .cw-vacio, .cw-vista[data-vista="clientes"] .cw-vacio, .cw-vista[data-vista="apuntes"] .cw-vacio { padding: 4px 12px; gap: 6px; }
  .cw-vista[data-vista="negocio"] .cw-vacio img, .cw-vista[data-vista="clientes"] .cw-vacio img, .cw-vista[data-vista="apuntes"] .cw-vacio img { width: 76px; height: 76px; }
}
@media (max-width: 899px) {
  /* Margen derecho donde la burbuja cae al abrir la vista: la nota al pie de Apuntes y la barra de hoy en Ventas. */
  .cw-vista[data-vista="apuntes"] .cw-ab-nota { padding-right: 64px; }
  .cw-vista[data-vista="negocio"] .cw-ab-barras { padding-right: 48px; }
}

/* Lectura grande (fase G): letra grande y alto contraste, guardados en el navegador. */
.cw-accesib { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .95rem; padding: 0 4px; }
.cw-accesib label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.cw-accesib input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--cw-rosa); }
#clowi-web.cw-letra-grande .cw-burbuja, #clowi-web.cw-letra-grande .cw-lectura-tarjeta { font-size: 1.6rem; line-height: 1.5; }
#clowi-web.cw-contraste .cw-burbuja { background: #000 !important; color: #FFD400 !important; border: 3px solid #FFD400; }
#clowi-web.cw-contraste button { border: 3px solid #FFD400 !important; }
.cw-lectura-tarjeta { margin: 8px 0; padding: 14px 16px; border-radius: 18px; background: var(--cw-burbuja-chloe); }
.cw-lectura-texto, .cw-lectura-aviso { margin: 0 0 6px; }
.cw-lectura-aviso { font-size: .95rem; opacity: .9; }
.cw-lectura-fila { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.cw-lectura-btn { min-height: 64px; font-size: 1.25rem; padding: 0 18px; }
