/* MAIA-CLAUDE-126 · UI-1a · hoja aparte, cargada DESPUÉS de styles.css (revertir = quitar su <link> de index.html).
   Fuentes visuales: Leo042 A7676F77 (disposición crema/lavanda, cabecera, espacios, tarjeta, Hecha, cuadro de Maia),
   IMG_5221(1) (identidad), IMG_5216 (marca), IMG_5237 (charla). Tema oscuro: sin fuente oscura en las referencias;
   se usan los tokens existentes (--ink, --surface, --accent…) para que el oscuro siga el comportamiento de A15b. */

/* Aviso permanente de revisión aislada (lo pide 042). */
.ui1a-aviso { position: sticky; top: 0; z-index: 60; margin: 0; padding: 5px 12px; text-align: center;
  font: 600 11px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  background: #2A1446; color: #F4E7C8; }

/* Original elegido: el archivo no se toca; el encuadre es solo CSS. */
.ui1a-ref { display: block; position: relative; overflow: hidden; }
.ui1a-ref img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* cara: la cabeza con lentes y rodete dentro de un círculo */
.ui1a-ref-cara { width: 100%; height: 100%; border-radius: 50%; background: #FBF4EC; }
.ui1a-ref-cara img { width: 300%; left: -108%; top: -42%; }
/* cuerpo: la figura entera (sobre fondo claro se funde con multiply; el fondo crema del original no es transparente) */
.ui1a-ref-cuerpo img { position: static; width: 100%; height: auto; mix-blend-mode: multiply; }
/* el fondo crema del original no es transparente: se desvanecen los bordes (solo visual; falta el activo recortado) */
.ui1a-card-maia img, .ui1a-chat-empty img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }

/* Cabecera: «¡hola m.AI.a!» con los lápices como signos y Maia a la derecha */
.ui1a-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 2px 12px; }
.ui1a-word { margin: 0; display: flex; justify-content: center; min-width: 0; }
.ui1a-word > span { display: inline-flex; align-items: flex-end; gap: 2px; font-family: 'Fraunces', var(--font-display); font-weight: 800;
  font-size: clamp(34px, 9.4vw, 46px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.ui1a-ai { background: linear-gradient(180deg, #F2C463 0%, #D69A2D 55%, #A8701A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ui1a-pen { width: .42em; height: 1.18em; flex: none; transform: rotate(14deg); margin: 0 .04em -.06em; }
.ui1a-pen:first-child { transform: rotate(-14deg) scaleX(-1); }
.ui1a-av { width: 58px; height: 58px; padding: 0; border: 3px solid #D9A441; border-radius: 50%; background: none; box-shadow: 0 6px 16px rgb(74 35 120 / .22); flex: none; cursor: pointer; }
span.ui1a-av { cursor: default; }
.ui1a-av:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Selector de espacios: una pastilla clara que contiene las fichas; «Todos» lleno en lavanda */
.spaces-row { gap: 10px; align-items: center; }
.ui1a-top + .spaces-row .spaces, .ui1a-top + .spaces { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: 0 4px 14px rgb(74 35 120 / .07); }
.ui1a-top ~ .spaces-row .spaces .chip, .ui1a-top ~ .spaces .chip { border: 0; background: transparent; font-size: 15px; padding: 7px 14px; }
.ui1a-top ~ .spaces-row .spaces .chip.is-on, .ui1a-top ~ .spaces .chip.is-on { background: #E7DCFB; color: #2A1446; font-weight: 700; }
.ui1a-top ~ .spaces-row .sp-add { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgb(74 35 120 / .1); flex: none; }

/* Saludo y fecha en una línea, con la tipografía de la marca */
.ui1a-top ~ .screen-head h1 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.ui1a-top ~ .screen-head h1 > span:first-child { white-space: nowrap; }
.ui1a-top ~ .screen-head h1 .count { text-align: right; margin-left: auto; }
.ui1a-top ~ .screen-head h1 { font-family: 'Fraunces', var(--font-display); font-style: normal; text-transform: none; letter-spacing: 0; }
.ui1a-top ~ .screen-head h1 > span:first-child { font-size: 21px; font-weight: 600; color: var(--ink); }
.ui1a-top ~ .screen-head h1 .count { font-family: 'Fraunces', var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink); opacity: .85; }

/* Tarjeta lila: texto a la izquierda, Maia a la derecha, «SIGA POR» en versalitas */
.startcard.ui1a-card { position: relative; overflow: hidden; padding-right: 40%; min-height: 300px; }
.ui1a-card .ui1a-card-maia { position: absolute; right: -4%; bottom: 64px; width: 46%; max-width: 300px; pointer-events: none; }
.ui1a-card .startcard-k { font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ui1a-card .startcard-task { font-family: 'Fraunces', var(--font-display); font-weight: 700; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.12; }
.ui1a-card .startcard-msg { font-style: normal; }
.ui1a-card .btn { position: relative; z-index: 1; }
.ui1a-card > .btn { margin-right: -66%; width: calc(100% + 66%); }

/* «Hecha»: tilde en círculo dorado + texto + flecha */
.ui1a-card .btn.on-accent { display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, #4A2378, #2A1446); color: #FFF6E2;
  font-family: 'Fraunces', var(--font-display); font-size: 21px; font-weight: 600; border: 1.5px solid #D9A441; }
.ui1a-ok { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #F6D486, #D9A441); color: #2A1446; }
.ui1a-ok svg { width: 18px; height: 18px; stroke-width: 2.6; }
.ui1a-arrow { display: inline-grid; place-items: center; opacity: .9; }

/* Cuadro de Maia en Hoy: la cara del original reemplaza a la Maia compacta asomada */
.ask-bar { position: relative; }
.ui1a-peek { position: absolute; right: 64px; top: -34px; width: 44px; height: 44px; border: 2px solid #D9A441; border-radius: 50%; box-shadow: 0 4px 12px rgb(74 35 120 / .18); pointer-events: none; }
.ask .send, .composer .send { background: linear-gradient(180deg, #4A2378, #2A1446); }

/* Charla */
.ui1a-mia-av { border-radius: 50% !important; overflow: hidden; border: 2px solid #D9A441; box-shadow: 0 3px 8px rgb(74 35 120 / .16) !important; }
.ui1a-chat-av { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid #D9A441; }
.ui1a-chat-av.is-thinking, .ui1a-chat-av.is-talking { animation: mia-nod 1.1s ease-in-out infinite; }
.ui1a-chat-empty .ui1a-ref-cuerpo { width: 150px; margin: 0 auto; }
.msg.from-me .bubble { background: linear-gradient(180deg, #4A2378, #2A1446); color: #FFF6E2; }
.msg.from-mia .bubble { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 18px rgb(74 35 120 / .08); }

@media (prefers-reduced-motion: reduce) { .ui1a-chat-av { animation: none !important; } }
@media (min-width: 900px) { .ui1a-word > span { font-size: 46px; } }
@media (min-width: 700px) { .ui1a-card .ui1a-card-maia { width: 190px; right: 2%; bottom: 70px; } .startcard.ui1a-card { min-height: 0; padding-right: 220px; } .ui1a-card > .btn { margin-right: -196px; width: calc(100% + 196px); } }
