/* 26 · «La visita, en tu calendario» (opción C de opciones-visita.html): el jueves de cerca entre dos chats.
 * Escritorio: chat de Mariana con Gu | tu Google Calendar del jueves | tu WhatsApp con Gu soporte.
 * Celular: el jueves arriba y debajo los dos chats turnándose con pestañas (se muestra el que recibe el mensaje).
 * La visita: punteada = propuesta por Gu, borde de luz = confirmada, gris = ya pasó. Sin texto de color. */
.vt-h { margin: 0 auto; max-width: 18ch; text-align: center; font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.vt-sub { margin: 18px auto 56px; max-width: 60ch; text-align: center; color: var(--muted); font-size: 17.5px; text-wrap: balance; }
.vt { display: grid; grid-template-columns: 290px minmax(0, 1fr) 290px; gap: 32px; }
@keyframes vtAparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vtPunto { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes vtClic { 50% { transform: scale(.96); background: var(--kffffff-08); } }

/* ---------- chats ---------- */
.vt-chat { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 520px; font-size: 14px; line-height: 1.45; }
.vt-chat-t { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13.5px; font-weight: 600; }
.vt-chat-t small { display: block; color: var(--dim); font-weight: 400; font-size: 12px; }
.vt-chat-t img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--k1a1b1f); }
.vt-ini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--k1b1c20); font-size: 12px; color: var(--muted); }
.vt-chat-m { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 9px; overflow: hidden; padding-top: 14px; }
/* los mensajes empiezan arriba (se leen sin bajar) y los nuevos llegan debajo; si no caben, salen los más viejos */
.vt-m { max-width: 88%; padding: 8px 12px; border-radius: 14px; animation: vtAparece .35s both; }
.vt-m.in { align-self: flex-start; background: var(--k1b1c20); border-top-left-radius: 4px; }
.vt-m.gu { align-self: flex-end; border-top-right-radius: 4px; border: 1px solid transparent; animation: giraBorde 8s linear infinite, vtAparece .35s both;
  background: linear-gradient(var(--fill), var(--fill)) padding-box, conic-gradient(from var(--ang), var(--b1), var(--b2) 22%, var(--b3) 40%, var(--b4) 55%, var(--b1) 75%, var(--b2) 90%, var(--b1)) border-box; }
.vt-m.sop { align-self: flex-start; background: var(--k141518); border: 1px solid var(--line2); border-top-left-radius: 4px; padding-bottom: 0; }
.vt-btns { display: grid; margin: 9px -12px 0; border-top: 1px solid var(--line); }
.vt-btns span { padding: 8px 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--kd0d3d8); border-bottom: 1px solid var(--line); }
.vt-btns span:last-child { border-bottom: 0; }
.vt-btns span.clic { animation: vtClic .5s both; color: var(--fg); }
.vt-m.sop:not(:has(.vt-btns)) { padding-bottom: 8px; }
.vt-link { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--kffffff-25); text-underline-offset: 3px; }
.vt-sep { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--dim); font-size: 11.5px; animation: vtAparece .35s both; }
.vt-sep::before, .vt-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vt-escribe { align-self: flex-end; display: flex; gap: 4px; padding: 10px 13px; border-radius: 14px; background: var(--k141518); animation: vtAparece .3s both; }
.vt-escribe i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: vtPunto 1s infinite; }
.vt-escribe i:nth-child(2) { animation-delay: .15s; } .vt-escribe i:nth-child(3) { animation-delay: .3s; }

/* ---------- el jueves ---------- */
.vt-dia-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; }
.vt-dia-h b { font-family: var(--disp); font-size: 26px; letter-spacing: -.03em; } .vt-dia-h small { color: var(--muted); font-size: 13px; }
.vt-dia-g { position: relative; }
.vt-f { display: grid; grid-template-columns: 52px 1fr; height: 52px; border-top: 1px solid var(--line); }
.vt-f span { font-size: 11.5px; color: var(--dim); transform: translateY(-8px); }
.vt-pie { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; min-height: 22px; }
.vt-ocup, .vt-vis { position: absolute; left: 60px; right: 0; border-radius: 8px; padding: 6px 9px; font-size: 12.5px; line-height: 1.3; overflow: hidden; }
.vt-ocup { color: var(--muted); background: repeating-linear-gradient(135deg, var(--kffffff-035) 0 6px, transparent 6px 12px); border: 1px solid var(--line); transition: border-color .3s, color .3s; }
.vt-ocup.mira { border-color: var(--kffffff-35); color: var(--fg); }
.vt-ocup b, .vt-vis b { display: block; font-weight: 600; }
.vt-ocup small, .vt-vis small { display: block; font-size: 11.5px; color: var(--dim); }
.vt-vis { transition: opacity .4s, transform .4s; }
.vt-vis small { color: var(--muted); }
.vt-vis.oculta { opacity: 0; transform: scale(.94); }
.vt-vis.prop { border: 1px dashed var(--kffffff-45); background: var(--kffffff-03); }
.vt-vis.conf { border: 1.5px solid transparent; animation: giraBorde 6s linear infinite; box-shadow: 0 10px 30px -12px rgb(var(--t1) / .6);
  background: linear-gradient(var(--cta-fill), var(--cta-fill)) padding-box, conic-gradient(from var(--ang), var(--b1), var(--b2) 22%, var(--b3) 40%, var(--b4) 55%, var(--b1) 75%, var(--b2) 90%, var(--b1)) border-box; }
.vt-vis.conf, .vt-vis.conf small { color: var(--cta-fg); } .vt-vis.conf small { opacity: .8; }
.vt-vis.hecha { border: 1px solid var(--line2); background: var(--k121316); color: var(--muted); }
.vt-scan { position: absolute; left: 52px; right: 0; height: 1px; opacity: 0; pointer-events: none; z-index: 1; transition: top 1.6s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  background: linear-gradient(90deg, transparent, var(--b1) 30%, var(--b2) 50%, var(--b1) 70%, transparent); box-shadow: 0 0 10px rgb(var(--t1) / .8); }
.vt-scan.on { opacity: 1; }
.vt-ahora { position: absolute; left: 52px; right: 0; height: 0; border-top: 1px solid var(--kffffff-5); opacity: 0; transition: top 2s linear, opacity .3s; }
.vt-ahora::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.vt-ahora.on { opacity: 1; }

/* ---------- pestañas (solo en el celular) ---------- */
.vt-tabs { display: none; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: -10px; }
.vt-tabs button { all: unset; position: relative; cursor: pointer; text-align: center; padding: 10px 4px 12px; font-size: 13.5px; font-weight: 600; color: var(--dim); transition: color .3s; }
.vt-tabs button[aria-selected="true"] { color: var(--fg); }
.vt-tabs button:focus-visible { outline: 2px solid var(--b1); outline-offset: -2px; }
.vt-tabs i { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(90deg, transparent, var(--b1) 25%, var(--b2) 50%, var(--b1) 75%, transparent); box-shadow: 0 0 6px rgb(var(--t1) / .7); }
.vt-tabs button[aria-selected="true"] i { opacity: 1; }

@media (max-width: 900px) {
  .vt { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dia" "tabs" "chat"; gap: 28px; }
  .vt-sub { margin-bottom: 36px; }
  .vt-dia { grid-area: dia; } .vt-tabs { grid-area: tabs; display: grid; }
  .vt-cM, .vt-cS { grid-area: chat; height: 400px; transition: opacity .35s; }
  .vt:not([data-chat="S"]) .vt-cS, .vt[data-chat="S"] .vt-cM { opacity: 0; visibility: hidden; }
  .vt-f { height: 36px; } .vt-dia-h b { font-size: 22px; }
  .vt-ocup, .vt-vis { left: 56px; font-size: 11.5px; padding: 4px 8px; } .vt-ocup small, .vt-vis small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-m, .vt-sep, .vt-escribe, .vt-vis.conf { animation: none; }
  .vt-scan, .vt-ahora { transition: none; }
}
