/* EL CHAT DE LA LANDING (lo primero que se ve): escribes tu meta y te arma la ruta al momento.
   El registro (el pase de abordar) llega después, para guardarla. Claro y liviano. */
.ruta-chat { padding: 28px 0 8px; }
/* El sistema hace cada sección de una pantalla; el chat mide lo que ocupa y la portada morada va justo debajo */
main > section#chat.ruta-chat { height: auto; min-height: 0; padding-bottom: 28px; }
main > #chat + section.hero { padding-top: 12px; }
.rc { max-width: 780px; margin: 0 auto; padding: 26px 24px 20px; border-radius: 28px; color: #1c0f5c;
  background: linear-gradient(180deg, color-mix(in oklab, #FFE14D 12%, #fff), #fff 160px);
  border: 1px solid color-mix(in oklab, #ff2e93 22%, rgb(28 15 92 / .12));
  box-shadow: 0 0 0 6px color-mix(in oklab, #ff2e93 6%, transparent), 0 28px 60px -34px rgb(58 10 64 / .4); }
.rc__kicker { margin: 0; font: 800 12px/1 Figtree, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ff2e93; }
.rc__title { margin: 10px 0 0; font: 800 clamp(30px, 5vw, 48px)/1.05 Gabarito, system-ui, sans-serif; letter-spacing: -.02em; color: #1c0f5c; }
.rc__title em { font-style: normal; color: #ff2e93; }
.rc__sub { margin: 10px 0 0; font-size: 18px; line-height: 1.45; color: #5d547f; }

.rc__list { margin-top: 18px; display: grid; gap: 12px; max-height: min(520px, 62vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgb(28 15 92 / .15) transparent; }
.rc__list:empty { display: none; }
.rc-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 94%; animation: rc-pop .35s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes rc-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.rc-msg__ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FFE14D; color: #3a0a40; }
.rc-msg__ava svg { width: 17px; height: 17px; }
.rc-bubble { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: color-mix(in oklab, #5c1466 6%, #fff); font-size: 16px; line-height: 1.45; }
.rc-bubble b { color: #5c1466; }
.rc-msg--me { margin-left: auto; flex-direction: row-reverse; }
.rc-msg--me .rc-bubble { background: #3a0a40; color: #fff; border-radius: 18px 18px 6px 18px; }
.rc-typing .rc-bubble { display: inline-flex; gap: 5px; padding: 15px 16px; }
.rc-typing i { width: 8px; height: 8px; border-radius: 50%; background: #5c1466; opacity: .4; animation: rc-dot 1s infinite; }
.rc-typing i:nth-child(2) { animation-delay: .15s; } .rc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rc-dot { 50% { opacity: 1; transform: translateY(-3px); } }

/* La ruta, al momento */
.rc-ruta { margin-top: 2px; padding: 16px; border-radius: 18px; background: #fff; border: 1.5px solid color-mix(in oklab, #5c1466 22%, transparent); }
.rc-ruta__k { margin: 0; font: 800 11px/1 Figtree, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ff2e93; }
.rc-ruta h3 { margin: 6px 0 0; font: 800 22px/1.15 Gabarito, system-ui, sans-serif; color: #1c0f5c; }
.rc-ruta__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rc-ruta__chips span { padding: 6px 10px; border-radius: 999px; background: color-mix(in oklab, #5c1466 7%, #fff); font: 700 12.5px/1 Figtree, system-ui, sans-serif; }
.rc-ruta ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rc-ruta li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; font-size: 15px; }
.rc-ruta li b { display: grid; place-items: center; height: 24px; border-radius: 8px; background: #3a0a40; color: #fff; font: 800 11.5px/1 Figtree, system-ui, sans-serif; }
.rc-ruta li.is-repaso b { background: #FFE14D; color: #3a0a40; }
.rc-ruta details summary { margin-top: 8px; cursor: pointer; font-weight: 700; color: #5c1466; font-size: 14px; }
.rc-ruta__extra { margin: 12px 0 0; display: grid; gap: 4px; font-size: 14px; color: #5d547f; }
.rc-ruta__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rc-ruta__cta a, .rc-ruta__cta button { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; font: 800 15px/1 Figtree, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.rc-ruta__save { background: #ff2e93; color: #fff; border: 0; box-shadow: 0 3px 0 #c01a6c; }
.rc-ruta__again { background: #fff; color: #3a0a40; border: 1.5px solid rgb(28 15 92 / .18); }
.rc-ruta__fine { margin: 8px 0 0; font-size: 13px; color: #5d547f; }
.rc-ruta__lesson { color: #5c1466; font-weight: 700; }

.rc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rc__chips button { flex: none; border: 1.5px solid rgb(28 15 92 / .14); background: #fff; color: #1c0f5c; border-radius: 999px; padding: 10px 14px; font: 600 14.5px/1 Figtree, system-ui, sans-serif; cursor: pointer; transition: border-color .2s, background .2s; }
.rc__chips button:hover, .rc__chips button:focus-visible { border-color: #5c1466; background: color-mix(in oklab, #5c1466 6%, #fff); }
.rc__chips.is-busy button { opacity: .5; pointer-events: none; }
.rc__form { display: flex; gap: 8px; margin-top: 12px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; border: 1.5px solid color-mix(in oklab, #5c1466 28%, transparent); transition: border-color .2s, box-shadow .2s; }
.rc__form:focus-within { border-color: #ff2e93; box-shadow: 0 0 0 4px rgb(255 46 147 / .12); }
.rc__form input { flex: 1; min-width: 0; border: 0; background: none; font: 500 16px Figtree, system-ui, sans-serif; color: #1c0f5c; }
.rc__form input:focus { outline: none; }
.rc__form input:disabled { opacity: .55; }
.rc__form button { border: 0; border-radius: 999px; padding: 12px 18px; background: #ff2e93; color: #fff; font: 800 15px/1 Figtree, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.rc__form button:disabled { opacity: .45; cursor: default; }
.rc__alt { margin: 12px 0 0; font-size: 15px; color: #5d547f; }
.rc__alt a { color: #5c1466; font-weight: 700; }
.rc__note { margin: 6px 0 0; font-size: 12.5px; color: #5d547f; }

@media (max-width: 639px) {
  .ruta-chat { padding: 16px 0 4px; }
  .rc { padding: 20px 16px 16px; border-radius: 24px; }
  .rc__sub { font-size: 16px; }
  .rc__chips { gap: 6px; }
  .rc__chips button { padding: 9px 11px; font-size: 13.5px; }
  .rc__form { padding-left: 14px; }
  .rc__form button { padding: 11px 14px; }
  .rc-msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rc-msg, .rc-typing i { animation: none; } }
