/* home — Inicio (sky and meeting pages), the liquid-glass nav and Ajustes. Loaded last on purpose. */

/* Inicio follows the finger vertically; the pager still takes horizontal drags in JS. */
.inicio { touch-action: none; }
.inicio .respuesta { touch-action: pan-y; }
.inicioPaginas { will-change: transform; transition: transform .62s cubic-bezier(.22, .8, .2, 1); }
.inicioPagina { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

.arriba { min-height: 60px; gap: 12px; }
.fecha { font-size: 17px; font-weight: 600; color: var(--ink-2); letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fecha .clima { font-weight: 500; color: var(--ink-3); }
.saludo { font: 400 clamp(40px, 10.4vw, 58px)/1.1 var(--serif); letter-spacing: -.6px; margin-top: 8px; }

/* The day, in counts. */
.resumenDia { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; margin-top: 18px; }
.pastilla {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px 0 9px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink); animation: aparece .4s var(--ease) both;
  transition: transform .15s var(--ease), background .2s;
}
.pastilla .icono { color: var(--ink-2); }
.pastilla:nth-child(2) { animation-delay: .05s; }
.pastilla:nth-child(3) { animation-delay: .1s; }
button.pastilla:active { transform: scale(.96); }
.pastilla.quieta { color: var(--ink-2); }

.cielo { gap: 18px; }
.cielo .ente { margin: -30px 0 -24px; }
@media (max-width: 440px) { .climaNombre { display: none; } }
@media (max-width: 370px) { .pastilla .icono { display: none; } .pastilla { padding: 0 14px; } }
.estadoVoz { min-height: 24px; font-size: 16px; }
.cielo > .botonIcono.vidrio { width: 52px; height: 52px; }
/* A turn on the sky: what you said, faint and small; LIA's words in ink, the unsaid part waiting. */
.cielo .respuesta {
  width: min(600px, 100%); max-height: min(330px, 40vh); padding: 18px 22px 20px; border-radius: 26px;
  font: 400 16px/1.5 var(--sans); overscroll-behavior: contain; scrollbar-width: none;
  background: var(--lg-fill-hi); border: 1px solid var(--lg-edge); box-shadow: var(--lg-rim), var(--lg-shadow);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent);
}
.cielo .respuesta::-webkit-scrollbar { display: none; }
.cielo .respuesta .dicho {
  display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px; font: 600 14.5px/1.45 var(--sans); letter-spacing: .1px; color: var(--ink-3);
}
.cielo .respuesta .dicho::before { content: ''; flex: none; width: 14px; height: 1.5px; border-radius: 1px; background: color-mix(in srgb, var(--orange) 70%, transparent); transform: translateY(-4px); }
.cielo .respuesta .dice { margin: 0; font: 400 19px/1.55 var(--sans); letter-spacing: .05px; color: var(--ink); text-wrap: pretty; }
.cielo .respuesta .dice.error { color: var(--ink-2); font-size: 17px; }
/* Earlier turns of the same talk: quieter, a scroll above the one being answered. */
.cielo .respuesta .antes { opacity: .5; margin-bottom: 18px; }
.cielo .respuesta .antes .dice { font-size: 16px; }
.cielo .respuesta > i { display: block; }
.cielo .porDecir { opacity: .3; transition: opacity .25s linear; }
.cielo .adjuntos { gap: 8px; margin-top: 14px; }
.cielo .adjuntos :is(a, button) {
  min-height: 38px; padding: 0 14px 0 11px; gap: 7px; border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--surface-hi) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .2s, transform .15s var(--ease);
}
.cielo .adjuntos :is(a, button) .icono { color: var(--orange-press); flex: none; }
:root[data-tema="oscuro"] .cielo .adjuntos a .icono { color: var(--orange); }
.cielo .adjuntos a:has(img) { padding: 0; min-height: 0; border-radius: 14px; background: var(--surface-var); }
.cielo .adjuntos img { width: 76px; height: 76px; border-radius: 14px; display: block; }
.cielo .adjuntos a:hover { background: var(--surface-hi); }
.cielo .adjuntos a:active { transform: scale(.97); }
/* What the answer is about: the photo, the note or the document itself, and faces that open the chat. */
.mostrado { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; animation: aparece .35s var(--ease) both; }
.fotosMostradas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fotosMostradas.una { grid-template-columns: 1fr; }
.fotoWa.fotoMostrada { width: 100%; height: 150px; border-radius: 16px; }
.fotosMostradas.una .fotoMostrada { height: 220px; }
@media (max-width: 560px) { .fotoWa.fotoMostrada { height: 128px; } .fotosMostradas.una .fotoMostrada { height: 176px; } }
.mostrado .notaVoz, .mostrado .docWa { width: 100%; max-width: none; background: color-mix(in srgb, var(--surface-hi) 60%, transparent); }
.personasMostradas { display: flex; flex-wrap: wrap; gap: 8px; }
.personaMostrada {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 52px; padding: 0 18px 0 7px; border-radius: 999px;
  font: 600 17px/1.2 var(--sans); color: var(--ink); text-align: left;
  background: color-mix(in srgb, var(--surface-hi) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  transition: background .2s, transform .15s var(--ease);
}
.personaMostrada:hover { background: var(--surface-hi); }
.personaMostrada:active { transform: scale(.97); }
.personaCara { position: relative; flex: none; display: block; }
.personaCara .cara { border: 0; font: 700 16px/1 var(--sans); }
.personaMarca { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); color: var(--ink-2); }
.personaNombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personaNuevos { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: color-mix(in srgb, var(--orange) 16%, var(--surface)); color: var(--orange-ink); }
:root[data-tema="oscuro"] .personaMostrada, :root[data-tema="oscuro"] .mostrado .notaVoz, :root[data-tema="oscuro"] .mostrado .docWa { background: var(--lg-fill-hi); box-shadow: inset 0 0 0 1px var(--lg-edge); border-color: transparent; }
.cielo .escribir { width: min(600px, 100%); border-radius: 999px; animation: aparece .3s var(--ease) both; }
@media (max-width: 560px) {
  .cielo .respuesta { padding: 16px 18px 18px; border-radius: 24px; max-height: min(320px, 38vh); }
  .cielo .respuesta .dice { font-size: 18px; }
}
.cielo .respuesta.conMostrado { max-height: min(560px, 62vh); }
.cielo:has(.conMostrado) .estadoVoz:empty { display: none; }

/* The handle between the two pages: a small stone you can pull. */
.asaInicio { padding: 14px 40px 8px; color: var(--ink-3); }
.asaInicio i { width: 40px; height: 5px; opacity: .45; }
.cieloPagina .asaInicio i { animation: asoma 2.4s var(--ease) 1.2s 2 both; }
@keyframes asoma { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px); } }

/* Meeting page: the meeting-mode coral wash with its gold hairline, edge to edge behind the floating nav. */
.inicioPagina.lotoPagina { max-width: none; padding: 0; }
.lotoMarco { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lotoContenido {
  flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) calc(var(--gutter) - 10px) calc(102px + env(safe-area-inset-bottom));
}
.lotoPagina .asaInicio { color: color-mix(in srgb, var(--ink-2) 80%, var(--oro)); }

.reloj { min-height: 150px; gap: 0; text-align: center; }
.reloj .tiempo { font: 500 clamp(46px, 13vw, 58px)/1 var(--sans); letter-spacing: -.8px; color: var(--ink); animation: aparece .5s var(--ease) both; }
.reloj .tiempo.pausa { color: var(--ink-2); }
.reloj .tiempo .rubi { width: 10px; height: 10px; }
.reloj .fuenteActual { margin-bottom: 14px; animation: aparece .5s var(--ease) both; }
.reloj .fuenteActual .icono { fill: currentColor; color: var(--orange-press); }
:root[data-tema="oscuro"] .reloj .fuenteActual .icono { color: var(--orange); }
.lotoNombre {
  margin: 12px 0 0; max-width: min(520px, 86vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 21px/1.35 var(--serif); letter-spacing: -.1px; color: var(--ink-2); animation: aparece .6s var(--ease) both;
}
.lotoPausa { margin-top: 4px; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.reloj .volver { margin-top: 14px; }

/* The lotus breathes with the live level (--nivel, 0–1, set from JS). */
.loto { --nivel: 0; position: relative; }
.loto button { position: relative; z-index: 1; -webkit-tap-highlight-color: transparent; }
.lotoFlor { transform-origin: 150px 210px; transform: scale(calc(1 + var(--nivel) * .07)); transition: transform .12s linear; }
.lotoSombra { transform-origin: 150px 268px; transform: scaleX(calc(1 + var(--nivel) * .12)); }
.lotoHalo {
  position: absolute; left: 50%; top: 50%; width: min(340px, 82vw, 46vh); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -54%) scale(calc(.82 + var(--nivel) * .2)); opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--oro-suave) 55%, transparent) 0%, color-mix(in srgb, var(--coral-a) 40%, transparent) 42%, transparent 70%);
  transition: opacity 1.2s var(--ease);
}
.loto.vivo .lotoHalo { opacity: calc(.45 + var(--nivel) * .55); transition: opacity .2s linear; }
:root[data-tema="oscuro"] .lotoHalo { background: radial-gradient(circle, color-mix(in srgb, var(--orange) 26%, transparent) 0%, color-mix(in srgb, var(--oro-suave) 22%, transparent) 40%, transparent 70%); }
.loto button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 50%; }

/* Glass controls around the lotus, in the meeting screen's material. */
.control { font-size: 14px; }
.control > span {
  width: 68px; height: 68px; background: var(--vidrio); color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oro) 24%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.control.grande > span { width: 78px; height: 78px; background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.lotoPagina .controles { min-height: 118px; }
.lotoPagina .controles .control { animation: aparece .45s var(--ease) both; }
.lotoPagina .controles .control + .control { animation-delay: .06s; }
.proximo { font-size: 16px; color: var(--ink-2); }
@media (max-width: 560px) { .lotoContenido { padding-left: 12px; padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { .lotoFlor, .lotoHalo { transition: none; } }

/* Nav: one floating piece of liquid glass. */
.nav {
  background: var(--lg-fill); border: 1px solid var(--lg-edge);
  backdrop-filter: blur(26px) saturate(1.7); -webkit-backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: var(--lg-rim);
  border-radius: 34px; padding: 7px;
}
:root[data-tema="oscuro"] .nav { box-shadow: var(--lg-rim); background: var(--lg-fill), rgba(27, 23, 18, .55); }
.nav button { padding: 6px 0 5px; }
.navNombre { font-size: 14px; }
.navIcono { width: 62px; height: 34px; border-radius: 17px; }
.nav button.activa .navIcono {
  background: var(--lg-fill-hi); box-shadow: var(--lg-rim);
}

/* Ajustes */
.ajustes .cabecera .titulo { font-size: clamp(34px, 8vw, 42px); }
.perfil { display: flex; align-items: center; gap: 18px; padding: 6px 4px 8px; }
.perfil .avatar { font: 400 28px/1 var(--serif); letter-spacing: 0; cursor: default; }
.perfil .avatar:hover { transform: none; }
.perfilTexto { display: flex; flex-direction: column; min-width: 0; }
.perfilNombre { font: 400 26px/1.2 var(--serif); letter-spacing: -.2px; }
.perfilTexto .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajustes h2.seccion {
  margin: 32px 20px 10px; font-size: 14px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3);
}
.ajustes .tarjeta { border-radius: 24px; }
.ajustes .valor { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.ajustes .estado { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: 15px; white-space: nowrap; }
.ajustes .estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.ajustes .estado.ok { color: var(--ink-2); }
.ajustes .estado.ok::before { background: var(--success); }
.ajustes .estado.ok::before { opacity: 1; }
.ajustes .selectorBoton { min-height: 58px; border-radius: 24px; padding: 0 20px; background: var(--lg-fill-hi), var(--surface); border-color: var(--lg-edge); box-shadow: var(--lg-rim), var(--lg-shadow); }
.ajustes .salida { margin-top: 40px; }
.ajustes .conGoogle .gLogo { flex: none; }
.ajustes .consumo { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 6px 18px; padding: 20px 22px 16px; }
.ajustes .consumo > * + * { border-top: 0; }
.consumoCifra { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.consumoCifra + .consumoCifra { padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.consumoCifra .pequeno { font-size: 14px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-3); }
.consumoCifra b { font: 400 30px/1.15 var(--serif); letter-spacing: -.4px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.consumoCifra .meta { font-size: 14px; font-variant-numeric: tabular-nums; }
.consumoCurva { grid-column: 1 / -1; position: relative; height: 56px; margin: 14px 4px 0 0; }
.consumoCurva svg { display: block; width: 100%; height: 100%; overflow: visible; }
.consumoCurva i { position: absolute; left: 100%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }
@media (min-width: 980px) {
  .ajustes .consumo { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 28px; padding: 22px 26px; }
  .consumoCurva { grid-column: 3; margin: 0; height: 64px; }
}
.ente { transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
:root[data-tema="oscuro"] .cielo .adjuntos a:not(:has(img)) { background: var(--lg-fill-hi); box-shadow: inset 0 0 0 1px var(--lg-edge); }
@media (min-width: 980px) {
  .lotoContenido { padding-bottom: 36px; }
  .lotoPagina .reloj { min-height: 170px; }
  .lotoPagina .controles { min-height: 132px; align-items: center; }
}

/* ---- Ajustes: rows that open their own screens, and those screens ---- */
.ajustesMarco { display: contents; }
.ajustes .ajustesLista > * + * { border-top-color: color-mix(in srgb, var(--line) 55%, transparent); }
.ajustes .fila { min-height: 62px; gap: 14px; }
.ajustes .filaTitulo { font-size: 17px; font-weight: 500; letter-spacing: .05px; }
.ajustes .fila .pequeno { font-size: 14px; line-height: 19px; color: var(--ink-3); margin-top: 1px; }
.ajustes .unaLinea { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajustes .irA .valor { font-weight: 500; font-size: 15.5px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajustes .irA .icono { margin-right: -6px; transition: transform .2s var(--ease); }
.ajustes .irA:hover .icono { transform: translateX(2px); }
.ajustes .fila:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 18px; }
.ajustes .estado.ocupado::before { background: var(--orange); opacity: 1; animation: ajustesLate 1.6s ease-in-out infinite; }
@keyframes ajustesLate { 50% { opacity: .35; } }

/* Switches: ink when on (a setting on is a state, not an action). While the server answers, the knob breathes. */
.ajustes .interruptor .palanca { width: 50px; height: 30px; border-width: 1.5px; border-color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.ajustes .interruptor .palanca i { top: 5px; left: 5px; width: 17px; height: 17px; background: color-mix(in srgb, var(--ink-3) 85%, transparent); }
.ajustes .interruptor .palanca.on { background: var(--ink); border-color: var(--ink); }
.ajustes .interruptor .palanca.on i { transform: translateX(20px); width: 22px; height: 22px; top: 2.5px; left: 2.5px; background: var(--bg); box-shadow: none; }
.ajustes .interruptor:active .palanca i { width: 24px; }
.ajustes .interruptor:active .palanca.on i { transform: translateX(18px); }
.ajustes .interruptor.cambiando .palanca i { animation: ajustesLate 1.1s ease-in-out infinite; }
.ajustes .interruptor.inactivo { opacity: .55; cursor: default; }
.ajustes .pequeno.falta { color: var(--warning); }
.ajustes .estado { padding: 0; background: none; border-radius: 0; flex: none; }

/* The consumption card opens the whole month. */
.ajustes .consumoBoton { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s; }
.ajustes .consumoBoton:active { transform: scale(.992); }
.ajustes .consumoBoton:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Sub-screens arrive from the side, like a pushed screen; the frame around them stays put. */
.ajustesSub { animation: ajustesEntra .34s var(--ease) both; }
.ajustes:not(.ajustesSub) { animation: ajustesVuelve .3s var(--ease) both; }
@keyframes ajustesEntra { from { opacity: 0; transform: translateX(14px); } }
@keyframes ajustesVuelve { from { opacity: .4; } }
.ajustesSub > h2.seccion:first-of-type { margin-top: 18px; }
.ajustesCalma { margin: 72px auto 24px; max-width: 26ch; text-align: center; font-size: 21px; color: var(--ink-3); animation: aparece .5s var(--ease) both; }
.ajustesCargando { display: grid; place-items: center; min-height: 180px; }
.ajustesPestanas { margin: 6px 0 4px; }
.ajustesPanel { animation: aparece .3s var(--ease) both; }
.ajustesPanel > .tarjeta { margin-top: 18px; }

/* Conversaciones · Historial: one card per day; what you said on top, LIA's reply under it, folded to two lines. */
.ajustesDia { margin: 26px 6px 10px; font: 600 14.5px/1.3 var(--sans); letter-spacing: .3px; color: var(--ink-3); }
.turnosDia:first-child .ajustesDia { margin-top: 22px; }
.turnosDia { animation: aparece .4s var(--ease) both; }
.turnosDia:nth-child(2) { animation-delay: .04s; }
.turnosDia:nth-child(3) { animation-delay: .08s; }
.ajTurno { transition: background .25s; }
.ajTurno.abierto { background: color-mix(in srgb, var(--surface-var) 32%, transparent); }
.turnoCabeza { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 16px 20px; text-align: left; color: inherit; font: inherit; transition: background .2s; }
.ajTurno:not(.abierto) .turnoCabeza:hover { background: color-mix(in srgb, var(--surface-var) 40%, transparent); }
.turnoCabeza:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 18px; }
.turnoLinea { display: block; }
.turnoDicho { font: 600 16.5px/1.42 var(--sans); color: var(--ink); }
.turnoHora { float: right; margin: 1px 0 0 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.turnoHora .icono { transform: rotate(-45deg) translateY(1px); }
.turnoDice {
  font: 400 15.5px/1.5 var(--sans); color: var(--ink-2); text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ajTurno.abierto .turnoDice { display: block; -webkit-line-clamp: none; font-size: 16.5px; line-height: 1.58; color: var(--ink); margin-top: 4px; user-select: text; }
.turnoMas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 20px 16px; animation: aparece .3s var(--ease) both; }
.turnoAdjuntos { display: flex; flex-wrap: wrap; gap: 8px; }
.turnoAdjuntos :is(a, button) {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden;
  background: color-mix(in srgb, var(--surface-hi) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent);
  transition: background .2s, transform .15s var(--ease);
}
.turnoAdjuntos :is(a, button) span { overflow: hidden; text-overflow: ellipsis; }
.turnoAdjuntos :is(a, button) .icono { flex: none; color: var(--orange-press); }
:root[data-tema="oscuro"] .turnoAdjuntos a .icono { color: var(--orange); }
.turnoAdjuntos a.foto { padding: 0; min-height: 0; border-radius: 16px; background: var(--surface-var); }
.turnoAdjuntos img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }
.turnoAdjuntos a:hover { background: var(--surface-hi); }
.turnoAdjuntos a:active { transform: scale(.97); }
.turnoLeer { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 9px; margin-left: -9px; border-radius: 999px; font: 600 14.5px/1 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.turnoLeer:hover { background: color-mix(in srgb, var(--surface-var) 60%, transparent); color: var(--ink); }
.turnoLeer[aria-pressed="true"] { color: var(--orange-press); }
:root[data-tema="oscuro"] .turnoLeer[aria-pressed="true"] { color: var(--orange); }

/* Conversaciones · WhatsApp and Archivos */
.ajustes .chat .cara { font-size: 15px; border: 0; }
.chatFin { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.chatHora { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chatCuenta {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font: 700 14px/1 var(--sans); color: var(--orange-ink, var(--ink)); background: color-mix(in srgb, var(--orange) 18%, transparent); font-variant-numeric: tabular-nums;
}
.ajustes a.fila { color: inherit; text-decoration: none; }
.ajustes a.fila:hover { background: color-mix(in srgb, var(--surface-var) 45%, transparent); }
.ajArchivo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; overflow: hidden; color: var(--ink-2); background: var(--surface-var); }
.ajArchivo.sheet, .ajArchivo.doc, .ajArchivo.slides { color: var(--orange-press); background: color-mix(in srgb, var(--orange) 11%, var(--surface-var)); }
:root[data-tema="oscuro"] .ajArchivo.sheet, :root[data-tema="oscuro"] .ajArchivo.doc, :root[data-tema="oscuro"] .ajArchivo.slides { color: var(--orange); }
.ajArchivo img { width: 100%; height: 100%; object-fit: cover; }

/* Voz y conexiones */
.voces .voz1 { min-height: 58px; }
.voces .marca { flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: var(--orange-press); }
:root[data-tema="oscuro"] .voces .marca { color: var(--orange); }
.voces .voz1.elegida .filaTitulo { font-weight: 600; }
.conexion { min-height: 68px; }
.conexionIcono { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink-2); background: var(--surface-var); }
.conexionIcono.g { background: color-mix(in srgb, var(--surface-hi) 85%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
.conexionIcono .gLogo { width: 18px; height: 18px; }
.ajustes .conectar {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font: 600 15px/1 var(--sans); color: var(--orange-press);
  background: color-mix(in srgb, var(--orange) 12%, transparent); transition: background .2s;
}
.ajustes .conectar:hover { background: color-mix(in srgb, var(--orange) 20%, transparent); }
:root[data-tema="oscuro"] .ajustes .conectar { color: var(--orange); }
/* Under the WhatsApp row, in the same card: the number field, or the code and its one discreet path line. */
.ajustes .tarjeta > .vincular { border-top: 0; }
.vincular { display: flex; gap: 10px; align-items: center; padding: 2px 16px 16px; animation: aparece .3s var(--ease) both; }
.vincular .campo { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; font-size: 16px; }
.vincular .boton { flex: none; min-height: 46px; border-radius: 14px; padding: 0 16px; }
.vincular .boton .giratorio { width: 18px; height: 18px; }
.codigoVincular { flex-direction: column; align-items: center; gap: 2px; padding: 2px 20px 20px; text-align: center; }
.ajustes .codigo {
  display: inline-flex; align-items: center; gap: 3px; padding: 6px 0; margin-left: -2px; letter-spacing: 0;
  font: 500 30px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; cursor: copy;
}
.ajustes .codigo span { display: inline-block; min-width: .72em; text-align: center; }
.ajustes .codigo .guion { min-width: 0; width: 12px; height: 1.5px; margin: 0 6px; background: var(--ink-3); border-radius: 1px; }
.ajustes .codigo:active { opacity: .7; }
.ajustes .ruta { margin: 0; font-size: 14px; line-height: 19px; color: var(--ink-3); letter-spacing: .1px; }

/* Consumo, day by day: a hairline bar under each figure. */
.consumoCurva.alta { height: 96px; }
.diaConsumo { min-height: 60px; }
.diaBarra { flex: none; width: clamp(56px, 22%, 160px); height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.diaBarra i { display: block; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--orange) 70%, transparent); }
.diaConsumo .valor { min-width: 76px; text-align: right; font-weight: 600; color: var(--ink-2); }

/* Equipos */
.equipo { min-height: 66px; }

/* Marginalia: a crab and two blue roses by day, a sauropod and two tigers by night. You have to look. */
.marginalia { display: flex; justify-content: center; margin: 36px 0 4px; pointer-events: none; }
.marginalia svg { width: min(100%, 360px); height: 78px; overflow: visible; }
.marginalia .trazo { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: var(--a); }
.marginalia .trazo circle:not(.hueco) { fill: var(--ink-2); fill-opacity: var(--a); stroke: none; }
.marginalia .trazo .relleno { fill: var(--ink-2); fill-opacity: calc(var(--a) * .5); stroke: none; }
.marginalia .trazo.azul { stroke: #5B7A99; }
.marginalia .trazo.azul .relleno { fill: #5B7A99; fill-opacity: .09; }
.marginalia .noche { display: none; }
:root[data-tema="oscuro"] .marginalia .dia { display: none; }
:root[data-tema="oscuro"] .marginalia .noche { display: block; }
@media (prefers-reduced-motion: reduce) { .ajustesSub, .ajustes:not(.ajustesSub), .turnosDia, .ajustesPanel { animation: none; } }

/* Modules: a line mark, the name and what is set now; options open under it in plain sections. No shadows. */
.ajustes.modulos { --sangria: 20px; }
@media (min-width: 600px) { .ajustes.modulos { --sangria: 62px; } }
.ajustes .modulos .ajustesLista { box-shadow: none; border-color: var(--lg-edge); }
.ajustes .modulo { min-height: 76px; gap: 16px; padding: 14px 18px; }
.ajustes .modulo .filaTitulo { font-size: 18px; line-height: 25px; font-weight: 600; letter-spacing: 0; }
.ajustes .modulo .resumen { font-size: 17px; line-height: 23px; color: var(--ink-3); margin-top: 1px; }
.ajustes .modulo .resumen.falta { color: var(--warning); }
.ajustes .resumen > span { white-space: nowrap; }
.ajustes .resumen > span + span::before { content: " · "; white-space: normal; }
.moduloIcono { flex: none; width: 28px; height: 28px; align-self: flex-start; margin-top: -1px; color: var(--ink); }
.ajustes .modulo:not(:has(.resumen)) .moduloIcono { align-self: center; margin-top: 0; }
.ajustes .modulo.conOpciones { padding: 0; align-items: stretch; gap: 0; }
.ajustes .moduloAbrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 12px 14px 18px; text-align: left; color: inherit; transition: background .2s; }
.ajustes .moduloAbrir:hover, .ajustes .moduloPalanca:hover { background: color-mix(in srgb, var(--surface-var) 45%, transparent); }
.ajustes .moduloAbrir:focus-visible, .ajustes .moduloPalanca:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 18px; }
.ajustes .flechaModulo { color: var(--ink-3); vertical-align: -5px; margin-left: 4px; transition: transform .3s var(--ease); }
.ajustes .abierto .flechaModulo { transform: rotate(180deg); }
.ajustes .moduloPalanca { flex: none; display: grid; place-items: center; min-width: 80px; padding: 0 18px 0 14px; position: relative; }
.ajustes .moduloPalanca::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: color-mix(in srgb, var(--line) 80%, transparent); }
.ajustes .opcionesModulo { padding: 2px 0 14px; background: color-mix(in srgb, var(--surface-var) 26%, transparent); }
.ajustes .ajustesLista > .opcionesModulo { border-top-color: transparent; }
.ajustes .grupoOpciones + .grupoOpciones { margin-top: 8px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.ajustes .grupoTitulo { margin: 0; padding: 20px 20px 6px var(--sangria); font: 400 20px/1.3 var(--serif); letter-spacing: -.1px; color: var(--ink); }
.ajustes .opcion { padding-left: var(--sangria); min-height: 60px; }
.ajustes .opcion .filaTitulo { font-size: 17px; font-weight: 500; color: var(--ink); line-height: 23px; }
.ajustes .opcion .palanca.on i { box-shadow: none; }
.ajustes .paso { display: inline-flex; align-items: center; flex: none; border: 1px solid color-mix(in srgb, var(--line) 90%, transparent); border-radius: 999px; background: var(--lg-fill); }
.ajustes .paso button { width: 48px; height: 48px; border-radius: 999px; font-size: 23px; line-height: 1; color: var(--ink); transition: background .2s, color .2s; }
.ajustes .paso button:hover:not(:disabled) { background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange-ink); }
.ajustes .paso button:disabled { color: var(--ink-3); opacity: .45; }
.ajustes .paso output { min-width: 34px; white-space: nowrap; padding: 0 2px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ajustes .opcionTexto, .ajustes .opcionElegir { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 12px var(--sangria); }
.ajustes .opcionTexto .campo { width: 100%; font-size: 17px; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--line) 90%, transparent); background: var(--lg-fill); box-shadow: none; }
.ajustes .opcionTexto .campo:focus { border-color: var(--orange); box-shadow: none; }
.ajustes .opcionTexto.corto .campo { width: 6em; font-size: 22px; text-align: center; }
.ajustes .segmentado.opciones { box-shadow: none; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.ajustes .segmentado.opciones .pildora { box-shadow: none; background: var(--ink); border-color: var(--ink); }
.ajustes .segmentado.opciones button.activo { color: var(--bg); }
.ajustes .segmentado.opciones button { font-size: 17px; min-height: 48px; flex: 1 1 auto; padding: 4px 8px; white-space: normal; line-height: 1.15; }

/* ---- Inicio, the picked design: a short greeting, the day's phrase in a light hand, and at night an eclipse ---- */
.saludo { font: 200 clamp(34px, 9.6vw, 50px)/1.14 var(--sans); letter-spacing: -.4px; margin-top: 10px; text-wrap: balance; }
.saludo small { display: block; margin-bottom: 10px; font: 500 15px/1.3 var(--sans); letter-spacing: .1px; color: var(--ink-2); }
.ente.eclipse { display: grid; place-items: center; background: none; }
.ente.eclipse i {
  width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #241a14, #0b0907 70%);
  box-shadow: 0 0 0 1.5px rgba(255, 200, 165, .95), 0 0 calc(34px + 30px * var(--nivel, 0)) calc(7px + 10px * var(--nivel, 0)) rgba(232, 126, 93, .55), 0 0 90px 24px rgba(232, 126, 93, .22);
  transform: scale(calc(1 + .05 * var(--nivel, 0))); animation: eclipseRespira 7s ease-in-out infinite;
}
.ente.eclipse.thinking i { animation: eclipseRespira 1.6s ease-in-out infinite; }
@keyframes eclipseRespira { 50% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .ente.eclipse i { animation: none; } }
/* By day, two thin orbits behind the sphere. */
.cielo .ente canvas { position: relative; z-index: 1; }
:root[data-tema="claro"] .cielo .ente:not(.eclipse)::before, :root[data-tema="claro"] .cielo .ente:not(.eclipse)::after {
  content: ""; position: absolute; inset: 12% -22%; border: 1px solid rgba(120, 90, 60, .2); border-radius: 50%; transform: rotate(-16deg); pointer-events: none;
}
:root[data-tema="claro"] .cielo .ente:not(.eclipse)::after { inset: 24% -42%; transform: rotate(-9deg); border-color: rgba(120, 90, 60, .12); }
/* Short or narrow phones: the phrase gives room to the sphere instead of running under it. */
@media (max-height: 640px), (max-width: 350px) {
  .saludo { font-size: 27px; }
  .saludo small { margin-bottom: 6px; }
}
/* The eclipse's disc is the middle of its box: on phones the empty rim tucks under what is around it. */
@media (max-width: 979px) { .cielo .ente.eclipse { margin: -44px 0 -40px; } }
@media (max-width: 979px) and (max-height: 640px) { .cielo .ente.eclipse { margin: -14px 0 -52px; } .saludo { font-size: 25px; } }
/* On phones the phrase leaves while she listens or answers: one sentence on screen at a time. */
@media (max-width: 979px) { .cieloPagina.hablando .saludo { display: none; } .cieloPagina.hablando .cielo .ente.eclipse { margin-top: 0; } }
.conexionBloque .codigoVincular .pequeno { margin: 4px 0 0; color: var(--ink-2); }
.conexionBloque .codigoVincular .boton { margin-top: 10px; }
.conexionBloque .pasos { margin: 14px 0 0; padding-left: 22px; text-align: left; color: var(--ink); line-height: 1.5; align-self: stretch; }
.conexionBloque .enlace { margin-top: 10px; padding: 8px; background: none; border: 0; font: 600 15px var(--sans); color: var(--orange-ink); cursor: pointer; }
.conexionNota { padding: 0 16px 14px; margin: 0; color: var(--ink-2); }
