.app { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.vista { padding: calc(env(safe-area-inset-top) + 18px) 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1180px; width: 100%; margin: 0 auto; min-width: 0; }
.lateral { display: none; }
.abajo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.abajo a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; color: var(--tx3); text-decoration: none; font-weight: 500; }
.abajo a svg { width: 22px; height: 22px; }
.abajo a.on { color: var(--ac); }
@media (min-width: 900px) {
  .app { grid-template-columns: 236px 1fr; }
  .abajo { display: none; }
  .lateral { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg2); }
  .lateral .logo { margin: 0 8px 22px; }
  .lateral nav { display: flex; flex-direction: column; gap: 4px; }
  .lateral a[data-nav] { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--tx2); font-weight: 500; }
  .lateral a[data-nav] svg { width: 20px; height: 20px; }
  .lateral a[data-nav]:hover { background: var(--card); color: var(--tx); }
  .lateral a[data-nav].on { background: var(--acbg); color: var(--ac); }
  .nav-aj { margin-top: auto; }
  .vista { padding: 34px 40px 60px; }
}
.v-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.v-cab h1 { font-size: 32px; }
.may { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.grande { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.fila-tit { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.fila-btn { display: flex; gap: 10px; flex-wrap: wrap; }
.fila-btn > * { flex: 1; }
.sub-tit { margin: 22px 0 10px; font-size: 17px; }
.tabs { display: flex; gap: 6px; }
.mini-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--tx3); flex-shrink: 0; }
.mini-ic:hover { background: var(--card2); color: var(--tx); }
.mini-ic svg { width: 18px; height: 18px; }
.mini-ic.hielo { color: var(--ice); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; background: var(--acbg); border-color: transparent; font-size: 14px; }

/* Hoy */
.hoy-top { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.lista-hoy { display: flex; flex-direction: column; gap: 8px; }
.item-hoy { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 12px; transition: background .2s, border-color .2s; }
.item-hoy.hecho { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.item-hoy.hecho b { color: var(--tx2); text-decoration: line-through; text-decoration-color: var(--tx3); }
.item-hoy.cong { border-color: color-mix(in srgb, var(--ice) 50%, var(--line)); }
.item-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.item-tx b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: all .15s; }
.tick svg { width: 22px; height: 22px; }
.tick:hover { border-color: var(--tx3); }
.hecho > .tick, li.hecho > .tick { background: var(--ok); border-color: var(--ok); color: #0b2a17; animation: pop .25s; }
.cong > .tick { background: var(--icebg); border-color: var(--ice); color: var(--ice); }
.tick.peq { width: 26px; height: 26px; border-radius: 8px; }
.tick.peq svg { width: 15px; height: 15px; }
@keyframes pop { 50% { transform: scale(1.15); } }
.racha { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 15px; color: var(--tx3); min-width: 42px; justify-content: flex-end; }
.racha svg { width: 17px; height: 17px; }
.racha.on { color: var(--ac); }

/* Tareas */
.tareas { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tareas li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.tareas li .mini-ic { opacity: 0; width: 28px; height: 28px; }
.tareas li:hover .mini-ic { opacity: 1; }
@media (hover: none) { .tareas li .mini-ic { opacity: .6; } }
.t-tx { flex: 1; min-width: 0; font-size: 15px; cursor: text; overflow-wrap: anywhere; }
li.hecho .t-tx { color: var(--tx3); text-decoration: line-through; }
.t-edit { padding: 6px 10px; }
.add-tarea .in { background: transparent; border: 1px dashed var(--line); padding: 9px 12px; margin-top: 6px; font-size: 15px; }
.prog-sem { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.barra-prog { flex: 1; height: 10px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.barra-prog i { display: block; height: 100%; background: var(--ac); border-radius: 99px; transition: width .4s; }
.barra-prog.fina { height: 6px; }
.semana { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .semana { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .semana { grid-template-columns: repeat(4, 1fr); } }
.dia-col { padding: 14px; }
.dia-col.hoy { border-color: var(--ac); }
.dia-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dia-cab div { display: flex; flex-direction: column; }
.animo-wrap { overflow-x: auto; }
.animo { width: 100%; border-collapse: separate; border-spacing: 4px; }
.animo th { font-size: 12px; color: var(--tx3); font-weight: 500; text-align: left; white-space: nowrap; }
.animo thead th { text-align: center; }
.animo th.hoy { color: var(--ac); }
.animo-v { width: 100%; min-width: 34px; height: 34px; border-radius: 9px; background: var(--card2); color: var(--tx3); font-weight: 700; font-size: 14px; }
.animo-v.on { color: #111; background: color-mix(in srgb, var(--ac) calc(var(--v) * 10%), var(--card2)); }
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 12px; }

/* Hábitos (cuadrícula) */
.barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.nav-mes { display: flex; align-items: center; gap: 6px; }
.nav-mes b { min-width: 130px; text-align: center; }
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.grid th, .grid td { padding: 3px 2px; text-align: center; }
.grid thead th { color: var(--tx3); font-weight: 500; padding: 10px 2px 6px; font-size: 11.5px; white-space: nowrap; }
.grid thead th span { display: block; font-size: 10px; opacity: .8; }
.grid thead th.hoy { color: var(--ac); font-weight: 700; }
.grid thead th svg { width: 14px; height: 14px; color: var(--ac); }
.g-nom { position: sticky; left: 0; background: var(--card); text-align: left !important; padding: 4px 12px !important; min-width: 130px; max-width: 170px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; }
thead .g-nom { cursor: default; }
.g-pct, .g-r { font-weight: 700; padding: 0 10px !important; color: var(--tx2); }
.g-r { color: var(--ac); }
.cel { width: 26px; height: 26px; border-radius: 7px; background: var(--card2); display: grid; place-items: center; color: var(--ice); transition: transform .1s; }
.cel:hover:not([disabled]) { transform: scale(1.12); }
.cel.on { background: var(--ac); }
.cel.f { background: var(--icebg); }
.cel.f svg { width: 14px; height: 14px; }
.cel.no:not(.on):not(.f) { background: transparent; border: 1px dashed var(--line); }
.cel.fut { opacity: .35; cursor: default; }
.cel.ancha { width: 58px; font-size: 12px; font-weight: 700; color: var(--tx3); }
.cel.ancha.on { color: #fff; }
.cel.parcial { background: var(--acbg); color: var(--ac); }
.grid.sem .cel:not(.ancha) { width: 34px; }

/* Metas */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stats3 .card { padding: 14px; min-width: 0; }
.stats3 .grande { font-size: 24px; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; }
.metas { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .metas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .metas { grid-template-columns: repeat(3, 1fr); } }
.meta { cursor: pointer; display: flex; flex-direction: column; gap: 8px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .15s; }
.meta:hover { border-color: var(--tx3); }
.meta.fija { border-color: color-mix(in srgb, var(--ac) 50%, var(--line)); }
.meta h3 { font-size: 18px; }
.meta-cab { display: flex; justify-content: space-between; }
.meta-area { font-size: 12px; color: var(--tx2); background: var(--card2); padding: 4px 10px; border-radius: 99px; }
.meta-pin { color: var(--ac); } .meta-pin svg { width: 16px; height: 16px; }
.pasos { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pasos li { display: flex; align-items: center; gap: 8px; }
.pasos li .in { padding: 9px 12px; }
.pasos li.hecho .in { text-decoration: line-through; color: var(--tx3); }

/* Progreso */
.grafica { width: 100%; height: auto; display: block; }
.dos-col { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .dos-col { grid-template-columns: 1fr 1fr; } }
.lider { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.lider-n { width: 22px; color: var(--tx3); font-weight: 700; }
.lider-nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.lider .barra-prog { max-width: 110px; }
.lider b { min-width: 42px; text-align: right; }
.refls { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.refl { border-top: 1px solid var(--line); padding-top: 12px; }

.aj { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.aj .fila-btn > * { flex: 0 0 auto; }

/* Vacíos, modales, avisos */
.vacio { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vacio-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--acbg); color: var(--ac); display: grid; place-items: center; }
.vacio-ic svg { width: 28px; height: 28px; }
.vacio p { max-width: 360px; margin-bottom: 8px; }
.modal-fondo { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.modal-fondo.on { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(20px); transition: transform .2s; }
.modal-fondo.on .modal { transform: none; }
@media (min-width: 640px) { .modal-fondo { align-items: center; } .modal { border-radius: 22px; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--tx3); border-radius: 10px; }
.modal-x svg { width: 18px; height: 18px; }
.modal h3 { font-size: 21px; padding-right: 36px; }
.dias-sel { display: flex; gap: 6px; flex-wrap: wrap; }
.dia { width: 40px; height: 40px; border-radius: 11px; background: var(--card2); border: 1px solid var(--line); font-weight: 600; color: var(--tx2); }
.dia.ancho { width: auto; padding: 0 14px; }
.dia.on { background: var(--ac); border-color: var(--ac); color: #111; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--tx); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.hito { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 10px; }
.hito-num { position: relative; width: 110px; height: 110px; color: var(--ac); display: grid; place-items: center; }
.hito-num svg { width: 110px; height: 110px; position: absolute; filter: drop-shadow(0 0 24px rgba(61,123,255,.5)); }
.hito-num span { position: relative; color: #111; font-weight: 800; font-size: 28px; margin-top: 26px; }
.hito h2 { font-size: 26px; }
.hito .btn { margin-top: 10px; }
.demo-tag { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: var(--acbg); color: var(--ac); border: 1px solid var(--ac); padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; z-index: 30; white-space: nowrap; backdrop-filter: blur(10px); }
@media (min-width: 900px) { .demo-tag { left: auto; right: 20px; transform: none; } }
@media (max-width: 899px) { .vista { padding-top: calc(env(safe-area-inset-top) + 50px); } body:not(:has(.demo-tag)) .vista { padding-top: calc(env(safe-area-inset-top) + 18px); } }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.meta .barra-prog, .lider .barra-prog { flex: none; height: 8px; width: 100%; }
.lider .barra-prog { flex: 1; height: 6px; }
@media (min-width: 900px) {
  .grid th, .grid td { padding: 3px 1px; }
  .cel { width: 23px; height: 26px; border-radius: 6px; }
  .demo-tag { top: auto; bottom: 18px; }
}
@media (max-width: 899px) { .vista { padding-top: calc(env(safe-area-inset-top) + 56px); } }
/* Demo automática */
html.auto body { pointer-events: none; overflow: hidden; }
html.auto .demo-tag, html.auto .lateral .btn, html.auto .banner { display: none !important; }
html.auto .vista { padding-top: 24px; }
.cursor-demo { position: fixed; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid #111; box-shadow: 0 4px 14px rgba(0,0,0,.5); z-index: 99; transition: transform .6s cubic-bezier(.45,.05,.25,1); pointer-events: none; }
.cursor-demo::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--ac); opacity: 0; transform: scale(.4); }
.cursor-demo.clic::after { animation: onda .45s ease-out; }
@keyframes onda { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* ===== v2: Hoy estilo anillo central + cuadrícula de círculos + recompensas ===== */
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hoy-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 0 18px; }
.anillo-hoy { position: relative; width: 200px; height: 200px; margin-bottom: 14px; }


.anillo-tx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anillo-tx b { font-size: 50px; letter-spacing: -.05em; line-height: 1; }
.anillo-tx span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--tx2); margin-top: 6px; }
.hoy-fecha { font-weight: 700; letter-spacing: .02em; }
.hielo-tx { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); margin-top: 6px; }
.hielo-tx svg { width: 14px; height: 14px; color: var(--ice); }
.dia-perfecto { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--okbg); color: var(--ok); font-weight: 700; border-radius: 99px; padding: 12px; margin-bottom: 16px; animation: entra .5s cubic-bezier(.2,1.4,.4,1); }
.dia-perfecto svg { width: 18px; height: 18px; }
.dia-perfecto.descanso { background: var(--card); color: var(--tx2); animation: none; }
@keyframes entra { from { transform: scale(.85); opacity: 0; } }
@media (min-width: 900px) { .lista-hoy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
.item-hoy { gap: 10px; }
.item-hoy .tick { width: 30px; height: 30px; border-radius: 9px; }
.item-hoy .tick svg { width: 18px; height: 18px; }
.item-hoy.hecho { border-color: color-mix(in srgb, var(--ac) 35%, var(--line)); background: color-mix(in srgb, var(--ac) 5%, var(--card)); }
.item-hoy.hecho > .tick { background: var(--ac); border-color: var(--ac); color: #111; }
.racha small { color: var(--tx3); font-weight: 600; font-size: 12px; }
.racha.sube { animation: sube .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes sube { 0% { transform: scale(1); } 40% { transform: scale(1.45) translateY(-3px); color: #ffd166; } 100% { transform: scale(1); } }
.item-hoy.pop > .tick { animation: popGrande .45s cubic-bezier(.2,1.8,.4,1); }
@keyframes popGrande { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.item-hoy.pop { animation: brillo .7s ease-out; }
@keyframes brillo { 0% { box-shadow: 0 0 0 0 rgba(61,123,255,.55); } 100% { box-shadow: 0 0 0 14px rgba(61,123,255,0); } }
.chispa { position: fixed; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; z-index: 80; transform: translate(-50%,-50%); animation: chispa .65s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes chispa { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; } }
.confeti { position: fixed; top: -14px; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 80; animation: cae linear forwards; }
@keyframes cae { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* Cabecera de Hábitos */
.hab-cab { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; margin-bottom: 12px; }
.hab-cab p { text-transform: uppercase; }
.hab-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ac); border-radius: 0 3px 3px 0; transition: width .5s; }
.mini-ic.redondo { border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; }
.segm { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.segm button { padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.segm button.on { background: var(--ac); color: #111; }
.barra .btn { flex-shrink: 0; }

/* Cuadrícula de círculos */
.grid { font-size: 12px; }
.grid thead tr:last-child th { border-bottom: 1px solid var(--line); }
.grid .trend th { padding: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ac) 3%, var(--card)); }
.trend-cel { height: 70px; }
.trend-box { position: relative; height: 56px; margin: 8px 0 6px; }
.trend-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trend-pt { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ac); transform: translate(-50%,-50%); }
.prom { display: block; color: var(--ac); font-size: 18px; margin-top: 2px; }
.g-nom { display: table-cell; }
.g-nom .punto { margin-right: 8px; vertical-align: middle; }
tbody .g-nom { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.g-stats { white-space: nowrap; padding: 0 14px !important; text-align: right !important; font-size: 12.5px; }
.g-stats b { margin-right: 6px; }
.st-r { color: var(--ac); font-weight: 700; margin-right: 6px; display: inline-flex; align-items: center; gap: 1px; }
.st-r svg { width: 12px; height: 12px; }
.st-m { color: #ffcc4d; font-weight: 700; }
.grid tbody td { padding: 5px 1px; }
.cel { width: 26px; height: 26px; border-radius: 50% !important; background: transparent; border: 1.5px solid var(--line); color: #111; }
.cel svg { width: 15px; height: 15px; }
.cel.on { background: var(--ac); border-color: var(--ac); }
.cel.f { background: var(--icebg); border-color: var(--ice); color: var(--ice); }
.cel.no:not(.on):not(.f) { border-style: dashed; opacity: .55; }
.cel.fut { opacity: .25; }
td.col-hoy { background: var(--acbg); }
td.col-hoy .cel:not(.on):not(.f) { border-color: var(--ac); border-width: 2px; }
.cel.pop { animation: popGrande .45s cubic-bezier(.2,1.8,.4,1); box-shadow: 0 0 0 6px rgba(61,123,255,.2); }
.grid.sem .cel { border-radius: 10px !important; }
@media (min-width: 900px) { .cel { width: 24px; height: 24px; } }
@media (max-width: 899px) { .barra { flex-direction: column; align-items: stretch; } .segm button { font-size: 11.5px; letter-spacing: .04em; } }
.grid thead .trend-box svg { width: 100%; height: 100%; color: inherit; }
.g-nom { max-width: 150px; min-width: 110px; }
tbody .g-nom { font-size: 11.5px; }
@media (min-width: 900px) { .cel { width: 21px; height: 21px; } .cel svg { width: 13px; height: 13px; } .grid tbody td { padding: 5px 1.5px; } .g-stats { padding: 0 10px !important; } }
.anillo-tx.late b { animation: late .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes late { 40% { transform: scale(1.12); } }
.cursor-demo { transition-timing-function: cubic-bezier(.3,.1,.2,1); }
/* Paleta aqua: llamas naranjas y estrellas doradas como acento de racha */
.racha.on, .st-r, .g-r, .grid thead th svg, .hito-num { color: var(--fuego); }
.hito-num svg { filter: drop-shadow(0 0 24px rgba(255,138,61,.5)); }
.st-m { color: var(--oro); }
.cel { color: var(--sobre-ac); }
.item-hoy.hecho > .tick, .dia.on, .segm button.on, .animo-v.on { color: var(--sobre-ac); }
/* Hoy claro: título del día + bloques con contador */
.hoy-cab { margin-bottom: 6px; }
.hoy-cab h1 { font-size: 34px; }
.hoy-hero { padding: 6px 0 16px; }
.anillo-hoy { width: 180px; height: 180px; margin-bottom: 10px; }
.anillo-tx b { font-size: 46px; }
.ic-in { width: 13px; height: 13px; color: var(--fuego); vertical-align: -1px; }
.bloque-hoy { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.bloque-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bloque-cab h2 { font-size: 21px; }
.bloque-cab p { margin-top: 4px; font-size: 13px; color: var(--tx2); }
.contador { font-weight: 800; font-size: 18px; padding: 6px 14px; border-radius: 99px; background: var(--card2); color: var(--tx2); white-space: nowrap; transition: all .3s; }
.contador.lleno { background: var(--ac); color: var(--sobre-ac); }
.bloque-hoy .item-hoy { background: var(--bg2); }
.bloque-pie { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.bloque-pie .btn { padding-left: 0; }
.bloque-pie .hielo-tx { margin: 0; }
.ver-sem { align-self: flex-start; }
.dia-perfecto { margin-bottom: 0; }
.rachas-hoy { display: flex; gap: 10px; margin-top: 12px; }
.racha-gen { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px 10px 12px; text-align: left; }
.racha-gen > svg { width: 30px; height: 30px; color: var(--tx3); transition: color .3s; }
.racha-gen.viva > svg { color: var(--fuego); filter: drop-shadow(0 0 8px rgba(255,138,61,.55)); }
.racha-gen b { display: block; font-size: 24px; line-height: 1; }
.racha-gen span { font-size: 12px; color: var(--tx2); }
.racha-gen .estrella { font-size: 26px; color: var(--oro); width: 30px; text-align: center; }
.racha-gen.sube { animation: sube .7s cubic-bezier(.2,1.6,.4,1); border-color: var(--fuego); }
.aviso-racha { color: var(--fuego); margin-top: 8px; }

/* Cuadrícula grande: ocupa todo el ancho */
@media (min-width: 900px) {
  .grid { width: 100%; table-layout: fixed; }
  .grid .g-nom { width: 190px; max-width: 190px; }
  .grid .g-stats { width: 168px; }
  .grid:not(.sem) tbody td { padding: 6px 2px; }
  .grid:not(.sem) .cel { width: 100%; max-width: 32px; height: auto; aspect-ratio: 1; margin: 0 auto; }
  .grid:not(.sem) .cel svg { width: 60%; height: 60%; }
  .grid thead th { font-size: 12.5px; }
  tbody .g-nom { font-size: 13px; }
  .g-stats { font-size: 14px; }
  .trend-cel { height: 130px; }
  .trend-box { height: 112px; margin: 12px 0 8px; }
  .trend-pt { width: 8px; height: 8px; border-width: 2px; }
  .prom { font-size: 26px; }
}
.trend-box path[stroke] { stroke-width: 2.5; }
@media (min-width: 900px) {
  .grid .g-nom { width: 165px; max-width: 165px; }
  .grid .g-stats { width: 138px; }
  .grid:not(.sem) tbody td { padding: 9px 1px; }
  .grid:not(.sem) tbody tr:hover { background: color-mix(in srgb, var(--ac) 5%, transparent); }
  .grid:not(.sem) .cel { max-width: 34px; border-width: 2px; }
  .vista:has(.grid) { max-width: 1400px; }
}
@media (min-width: 1500px) { .vista:has(.grid) { padding-left: 32px; padding-right: 32px; } }
/* Modo grabación del tutorial: cursor grande visible */
html.grabar, html.grabar * { cursor: none !important; }
.cursor-grabar { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid #111; box-shadow: 0 4px 16px rgba(0,0,0,.5); z-index: 999; pointer-events: none; transition: transform .08s; }
.cursor-grabar.clic { transform: scale(.75); }
.cursor-grabar::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--ac); opacity: 0; }
.cursor-grabar.clic::after { animation: onda .5s ease-out; }
/* Tutorial en video */
.modal.ancho { max-width: 860px; }
.tuto { display: flex; flex-direction: column; gap: 12px; }
.tuto video { width: 100%; border-radius: 14px; background: #000; aspect-ratio: 16 / 9; }
