/* Shell */
.marco { position: fixed; inset: 0; display: flex; flex-direction: column; }
.paginas { flex: 1; overflow: hidden; touch-action: pan-y; }
.pista { display: flex; height: 100%; transition: transform .42s var(--ease); will-change: transform; }
.pagina { flex: 0 0 100%; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.pantalla {
  max-width: 760px; margin: 0 auto; min-height: 100%;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) calc(130px + env(safe-area-inset-bottom));
}
.cabecera { display: flex; align-items: center; gap: 6px; min-height: 64px; margin-bottom: 14px; }
.cabecera .titulo { flex: 1; }
.cabecera .avatar { margin-left: 6px; }
.subtitulo { display: flex; align-items: baseline; gap: 8px; margin: 28px 4px 12px; }
.subtitulo .cuenta { color: var(--ink-3); font-weight: 500; }

.nav {
  position: fixed; z-index: 20; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); display: flex; padding: 8px; border-radius: 30px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); box-shadow: var(--shadow-hi);
  transition: transform .35s var(--ease), opacity .3s;
}
.cubierto .nav { transform: translate(-50%, 140%); opacity: 0; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; color: var(--ink-2); }
.navIcono { display: grid; place-items: center; width: 60px; height: 32px; border-radius: 16px; transition: background .3s var(--ease), color .3s; }
.nav button.activa { color: var(--ink); }
.nav button.activa .navIcono { background: color-mix(in srgb, var(--surface-var) 90%, transparent); }
.navNombre { font-size: 14px; font-weight: 600; letter-spacing: .1px; }
.nav .punto { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s var(--ease); }
.nav .activa .punto { opacity: 1; transform: none; }

.encima {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); animation: entra .38s var(--ease);
}
@keyframes entra { from { opacity: 0; transform: translateX(6%); } }

@media (min-width: 900px) {
  .pantalla { padding-top: 40px; }
  .nav { width: 520px; }
}

/* Login */
.entrada { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; }
.entrada .titulo { margin-top: 8px; font-size: 44px; }
.entrada .voz { margin: 0 0 22px; }
.google { min-height: 44px; transition: opacity .3s; }
.google.ocupado { opacity: .4; pointer-events: none; }
.error { color: var(--error); }

/* The ente */
.ente { position: relative; display: block; flex: none; border-radius: 50%; touch-action: manipulation; transition: transform .5s var(--ease); }
.ente canvas { width: 100%; height: 100%; display: block; }
.ente:active { transform: scale(.985); }

/* Inicio */
.inicio { height: 100%; overflow: hidden; overflow: clip; } /* clip: focusing the text field must not scroll the lotus page into view */
.inicioPaginas { height: 200%; display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.inicioPagina { height: 50%; display: flex; flex-direction: column; max-width: 760px; width: 100%; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) var(--gutter) calc(118px + env(safe-area-inset-bottom)); }
.arriba { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.fecha { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.saludo { font: 400 clamp(40px, 6vw, 56px)/1.12 var(--serif); letter-spacing: -.5px; margin-top: 10px; }
.cielo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
.estadoVoz { min-height: 22px; font-weight: 600; color: var(--ink-2); letter-spacing: .2px; }
.respuesta {
  width: min(560px, 100%); max-height: 230px; overflow: auto; padding: 16px 20px; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--surface-hi) 72%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); animation: aparece .3s var(--ease);
}
.respuesta .dicho { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.respuesta .dice { font-size: 18px; line-height: 1.55; margin: 0; white-space: pre-wrap; }
.porDecir { opacity: .32; transition: opacity .2s; }
.adjuntos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adjuntos a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-var); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.adjuntos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.escribir { width: min(560px, 100%); }
.asaInicio { align-self: center; display: flex; flex-direction: column; align-items: center; padding: 10px 32px; color: var(--ink-3); }
.asaInicio i { width: 44px; height: 5px; border-radius: 3px; background: currentColor; opacity: .5; }
.asaInicio:hover { color: var(--ink-2); }

/* Meeting mode (lotus) */
.lotoArriba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; }
.lotoArriba .derecha { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.lotoEscena { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.reloj { min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.reloj .tiempo { display: flex; align-items: center; gap: 12px; font: 500 46px/1 var(--sans); font-variant-numeric: tabular-nums; }
.reloj .tiempo.pausa { color: var(--ink-2); }
.loto { flex: 1; display: grid; place-items: center; min-height: 0; width: 100%; }
.loto button { display: block; width: min(300px, 72vw, 40vh); }
.loto svg { width: 100%; height: auto; overflow: visible; }
.controles { min-height: 128px; display: flex; gap: 28px; align-items: flex-start; justify-content: center; }
.control { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.control > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-var); color: var(--ink); transition: transform .15s; }
.control.grande > span { width: 72px; height: 72px; background: var(--ink); color: var(--bg); }
.control:active > span { transform: scale(.94); }
.proximo { margin-top: 14px; text-align: center; }

/* Agenda */
.mes { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px; }
.mes .filaTitulo { color: var(--ink-2); }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 6px; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; border-radius: 18px; transition: background .25s, color .25s; }
.dia .pequeno { font-size: 14px; }
.dia b { font-size: 21px; font-weight: 600; }
.dia i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.dia.marca i { background: var(--ink-3); }
.dia.hoy b { color: var(--orange-ink); }
.dia.elegido { background: var(--ink); color: var(--bg); }
.dia.elegido b { color: var(--bg); }
.dia.elegido .pequeno { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.dia.elegido.marca i { background: var(--bg); }
.dia:not(.elegido):hover { background: color-mix(in srgb, var(--surface-var) 70%, transparent); }
.evento { display: grid; grid-template-columns: 62px 22px 1fr auto; align-items: start; gap: 0 8px; width: 100%; padding: 14px 4px; text-align: left; border-radius: 14px; }
button.evento:hover { background: color-mix(in srgb, var(--surface-var) 45%, transparent); }
.evento .hora { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.evento .hora small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.evento .nodo { position: relative; align-self: stretch; display: flex; justify-content: center; }
.evento .nodo::before { content: ''; position: absolute; top: -14px; bottom: -14px; width: 1px; background: var(--line); }
.evento .nodo i { position: relative; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.evento.cal .nodo i { background: var(--bg); border: 1.5px solid var(--ink-2); }
.evento.pasado { opacity: .55; }
.evento .det { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.evento > .icono, .evento > .giratorio, .evento > .boton { align-self: center; }
.ahora { display: grid; grid-template-columns: 62px 22px 1fr; gap: 0 8px; align-items: center; color: var(--orange-ink); font-size: 14px; font-weight: 700; padding: 2px 4px; }
.ahora span { text-align: right; }
.ahora i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); justify-self: center; }
.ahora b { height: 1.5px; background: var(--orange); }
.resultado { display: flex; gap: 14px; padding: 14px 18px; width: 100%; text-align: left; }
.caja { flex: none; width: 52px; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--surface-var); }
.caja b { display: block; font-size: 20px; }

/* Pendientes */
.grupoApp { padding: 12px 18px 0; }
.bandeja { display: flex; gap: 14px; padding: 14px 18px; text-align: left; width: 100%; align-items: flex-start; }
.marcaApp { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-var); color: var(--ink-2); }
.marcaApp.wa, .marcaApp.gm { background: var(--surface-var); color: var(--ink-2); }
.bandeja .foto { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.bandeja.abierta { flex-wrap: wrap; }
.bandeja.abierta .foto { width: 100%; height: auto; max-height: 360px; object-fit: contain; order: 3; }
.burbuja { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-var); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 6px; }
.verMas { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; color: var(--ink-2); font-weight: 600; }
.tarea { display: flex; gap: 2px; align-items: flex-start; width: 100%; padding-right: 14px; }
.anillo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; margin-top: 2px; }
.anillo i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.anillo i svg { opacity: 0; transform: scale(.4); transition: all .3s var(--ease); fill: #fff; }
.tarea.hecha .anillo i, .anillo.marcando i { background: var(--success); border-color: var(--success); }
.tarea.hecha .anillo i svg, .anillo.marcando i svg { opacity: 1; transform: none; }
.tarea .cuerpo { flex: 1; min-width: 0; padding: 14px 0; text-align: left; }
.tarea.hecha .filaTitulo { color: var(--ink-2); text-decoration: line-through; }
.vencida { color: var(--warning); }
.flotante {
  position: fixed; z-index: 15; right: max(22px, calc(50% - 360px)); bottom: calc(118px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-hi); transition: padding .3s var(--ease), transform .3s var(--ease);
}
.flotante.compacto { padding: 0 13px; }
.flotante.compacto span { display: none; }
.cubierto .flotante { transform: scale(0); }
.hechas { display: flex; align-items: center; gap: 6px; margin: 24px 4px 10px; color: var(--ink-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.chip:hover { background: var(--surface-var); }
.chip.activo { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.rojo { color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.de { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); margin: 6px 0 14px; flex-wrap: wrap; }
.de button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; }
.de button:hover { background: var(--surface-var); }
.textoTarea { font: 400 24px/1.35 var(--serif); text-align: center; margin: 8px 0 22px; cursor: text; width: 100%; }
.comentario { max-width: 85%; margin: 8px 0; padding: 10px 14px; border-radius: 18px; background: var(--surface-var); }
.comentario.mio { margin-left: auto; background: color-mix(in srgb, var(--orange) 16%, var(--surface)); }
.barraComentar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.barraComentar .campo { min-height: 46px; border-radius: 999px; padding: 10px 18px; }
.pilas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pilas .menu { margin-left: auto; }
.reunionTarjeta { padding: 16px 18px; margin: 18px 0; }
.archivos { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.archivos a { width: 92px; height: 92px; border-radius: 14px; background: var(--surface-var); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); font-size: 14px; text-align: center; padding: 6px; text-decoration: none; }
.archivos img { width: 100%; height: 100%; object-fit: cover; }
.gente { max-height: 320px; overflow: auto; margin-top: 10px; }

/* Biblioteca */
.estante { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 20px; margin-top: 22px; }
.libro {
  position: relative; aspect-ratio: .72; border-radius: 3px 10px 10px 3px; overflow: hidden; text-align: left;
  color: #F7EFE4; box-shadow: none;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.libro:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: none; }
.libro .lomo { position: absolute; inset: 0 auto 0 0; width: 13%; }
.libro .arte { position: absolute; left: 16%; right: 0; top: 26%; bottom: 0; width: 84%; height: 74%; }
.libro .portada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.libro .nombre { position: absolute; top: 18px; left: 20%; right: 12px; font: 400 21px/1.2 var(--serif); }
.libro .cuantos { position: absolute; bottom: 14px; left: 20%; right: 10px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.lector { max-width: 760px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 80px; }
.papel {
  background: #FBF6E9; color: #2C241B; border-radius: 6px 14px 14px 6px; padding: 40px clamp(22px, 5vw, 56px);
  box-shadow: var(--shadow-hi); line-height: 1.75; font-size: 17px; animation: aparece .35s var(--ease);
}
[data-tema="oscuro"] .papel { background: #231E17; color: #E9E0CF; }
.papel h1 { font: 400 30px/1.25 var(--serif); margin: 0 0 18px; }
.papel h2 { font: 500 22px/1.3 var(--serif); margin: 28px 0 10px; }
.papel h3 { font-weight: 700; font-size: 17px; margin: 22px 0 8px; }
.papel p { margin: 0 0 12px; }
.papel table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.papel td, .papel th { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding: 6px 10px; text-align: left; }
.indice { list-style: none; margin: 0; padding: 0; counter-reset: cap; }
.indice li button { display: flex; gap: 14px; width: 100%; padding: 14px 4px; text-align: left; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); font: 400 18px/1.4 var(--serif); }
.indice li button::before { counter-increment: cap; content: counter(cap); opacity: .5; min-width: 24px; font-family: var(--sans); font-size: 15px; padding-top: 2px; }
.fuentes { display: grid; gap: 10px; margin-top: 18px; }
.pregunta { font: 400 26px/1.3 var(--serif); margin: 20px 0 14px; }
.pie { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); }

/* Ajustes */
.ajustes h2.seccion { margin: 28px 6px 10px; }
.ajustes .etiqueta { padding: 14px 18px 2px; }
.aviso2 { color: var(--warning); }
.codigo { font: 600 28px/1 var(--sans); letter-spacing: 4px; padding: 12px 0; }
.pestanasHoja { margin-bottom: 14px; }
.listaFija { height: min(460px, 60vh); overflow: auto; }

/* Meeting detail */
.estado { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-var); font-weight: 600; font-size: 14px; }
.barra { height: 6px; border-radius: 3px; background: var(--surface-var); overflow: hidden; margin: 14px 0; }
.barra i { display: block; height: 100%; background: var(--orange); transition: width .6s var(--ease); }
.prosa { font-size: 17px; line-height: 1.7; white-space: pre-wrap; }
.puntos { margin: 6px 0 0; padding-left: 20px; }
.puntos li { margin: 6px 0; }
.segmento { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px 4px; }
.segmento .num { color: var(--ink-3); font-size: 14px; padding-top: 3px; }
.propuesta { display: flex; gap: 4px; align-items: flex-start; padding-right: 8px; }
.centro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 0; }
