/* Soporte y mantención web: piezas propias de esta página (prefijo mt-). */

/* ── Portada: panel "Tu web está bien" ── */
.mt-panel.status { width: min(100%, 480px); margin: 0; padding: 20px 22px 16px; border-radius: 22px; font-size: 1rem; box-shadow: 0 26px 64px rgba(29, 42, 61, .2); }
.mt-panel .status-head { margin-bottom: 10px; font-size: 1.375rem; }
.mt-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 12px; border-radius: 999px; background: #e3f5ea; color: #13703a; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.mt-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; }
.mt-row { position: relative; align-items: center; margin-inline: -10px; padding: 10px; border-radius: 12px; transition: background-color .3s ease; }
.mt-row + .mt-row { margin-top: 2px; }
.mt-row .mt-l { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ui-ink); font-weight: 500; }
.mt-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef1e0; color: var(--ui-ink); transition: background-color .3s ease, color .3s ease; }
.mt-ico svg { width: 19px; height: 19px; }
.mt-row b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.mt-row .mt-v { color: inherit; }
.mt-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; transition: background-color .25s ease; }
.mt-row.is-busy { background: #f3f6d4; }
.mt-row.is-busy .mt-ico { background: var(--navy); color: var(--lime); }
.mt-row.is-busy .mt-dot { background: #c98a00; }
.mt-row.is-alert { background: #fde9e6; }
.mt-row.is-alert .mt-ico { background: #c2362f; color: #ffffff; }
.mt-row.is-alert .mt-dot { background: #c2362f; }
.mt-bar { position: absolute; left: 58px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(29, 42, 61, .12); overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.mt-bar span { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--navy); transform-origin: left center; }
.mt-row.is-busy .mt-bar { opacity: 1; }
.mt-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ui-line); font-size: .875rem; color: var(--ui-soft); }
.mt-foot b { color: var(--ui-ink); font-weight: 600; }
.mt-escudo { width: clamp(96px, 9vw, 140px); right: clamp(14px, 2vw, 32px); top: clamp(10px, 1.4vw, 22px); }
.mt-toast { position: absolute; z-index: 4; left: clamp(14px, 2.4vw, 40px); bottom: clamp(18px, 2.4vw, 36px); display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; font-size: .9375rem; box-shadow: 0 18px 44px rgba(29, 42, 61, .24); }
.mt-toast b { display: block; font-weight: 600; font-size: 1rem; }
.mt-toast-t { color: var(--ui-soft); }
.mt-toast-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--lime); }
.mt-toast-ico svg { width: 21px; height: 21px; }

/* ── Franja: seis ganancias en dos filas ── */
.mt-gains { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Rutina: calendario + lista ── */
.mt-routine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.mt-cal-3d { width: clamp(80px, 7.4vw, 118px); right: clamp(14px, 1.6vw, 24px); top: clamp(12px, 1.4vw, 20px); }
.mt-cal-tile .h-tile { padding-right: 110px; }
.mt-cal-art { align-items: flex-end; }
.mt-cal { width: 100%; padding: 16px; }
.mt-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mt-wd { padding-bottom: 2px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--ui-soft); }
.mt-day { display: grid; place-items: center; align-content: center; gap: 3px; aspect-ratio: 1; border-radius: 10px; background: var(--ui-line); color: var(--ui-soft); font-size: .8125rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-day b { width: 6px; height: 6px; border-radius: 50%; background: #1f9d55; }
.mt-day.is-empty { background: transparent; }
.mt-day.is-next b { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55; }
.mt-day.is-week { box-shadow: inset 0 0 0 2px var(--navy); color: var(--ui-ink); font-weight: 600; }
.mt-day.is-today { background: var(--lime); color: var(--on-lime); font-weight: 700; box-shadow: none; }
.mt-day.is-today b { background: var(--on-lime); }
.mt-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .8125rem; color: var(--ui-soft); }
.mt-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mt-legend i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.mt-legend .lg-dot { background: #1f9d55; }
.mt-legend .lg-week { border-radius: 3px; box-shadow: inset 0 0 0 2px var(--navy); }
.mt-legend .lg-today { border-radius: 3px; background: var(--lime); }
html.dark .mt-day.is-week, html.dark .mt-legend .lg-week { box-shadow: inset 0 0 0 2px var(--lime); }
html.dark .mt-day b, html.dark .mt-legend .lg-dot { background: #4ade80; }
html.dark .mt-day.is-today b { background: var(--on-lime); }
html.dark .mt-day.is-next b { background: transparent; }

.mt-list-tile { justify-content: center; }
.mt-list-tile .tile-copy { max-width: none; }
.mt-list { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.mt-list li { align-items: flex-start; }
.mt-list li:first-child { border-top: 0; }
.mt-list li > div { flex: 1; min-width: 0; }
.mt-cad { flex: none; align-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(200, 212, 0, .16); color: #dfe65a; font-size: .8125rem; font-style: normal; font-weight: 600; white-space: nowrap; }

/* ── Planes ── */
.mt-plans .plan { position: relative; }
.mt-plans .plan .kicker { font-size: var(--t-tile); letter-spacing: -0.032em; line-height: 1.05; }
.mt-plans .price small { margin-top: 4px; }
.mt-pick { position: absolute; top: clamp(16px, 1.8vw, 24px); right: clamp(16px, 1.8vw, 24px); padding: 5px 12px; border-radius: 999px; background: var(--navy); color: var(--lime); font-size: .8125rem; font-weight: 600; }
.mt-plans .ticks { width: 100%; max-width: 21em; }

/* ── Si algo falla: respuesta por WhatsApp ── */
.mt-reply { display: grid; gap: 6px; }
.mt-reply .mt-note { align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ui-line); }
.mt-note .jr-app { width: 38px; height: 38px; }
.mt-note-t { color: var(--ui-soft); line-height: 1.3; }
.mt-note-t b { display: block; color: var(--ui-ink); font-weight: 600; }

@media (max-width: 1023px) {
  .mt-routine { grid-template-columns: minmax(0, 1fr); }
  .mt-cal { max-width: 460px; margin-inline: auto; }
  .mt-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mt-panel.status { padding: 16px 14px 12px; }
  .mt-panel .status-head { font-size: 1.1875rem; }
  .mt-row { margin-inline: -6px; padding: 9px 6px; }
  .mt-row .mt-l { gap: 10px; }
  .mt-ico { width: 32px; height: 32px; }
  .mt-bar { left: 48px; right: 6px; }
  .mt-escudo { width: 66px; }
  .mt-toast { padding: 10px 14px 10px 10px; }
  .mt-toast b { font-size: .9375rem; }
  .mt-cal-tile .h-tile { padding-right: 80px; }
  .mt-cal-3d { width: 70px; }
  .mt-list li { flex-wrap: wrap; }
  .mt-cad { margin-left: 34px; }
}

/* El H1 vigente es largo (12 palabras): un poco más chico para que quepa en 3 líneas. */
.ph-h.mt-h { font-size: clamp(2.25rem, 3.9vw, 3.5rem); }
@media (max-width: 1023px) { .ph-h.mt-h { font-size: clamp(2.25rem, 6.4vw, 3.5rem); } }
@media (max-width: 720px) { .ph-h.mt-h { font-size: clamp(1.875rem, 8.2vw, 2.5rem); } }
@media (max-width: 720px) {
  /* El escudo y el aviso no tapan el panel en el celular. */
  html:not(.ph-oscura) .ph-stage.mt-stage { padding: 82px 14px 96px; }
  .mt-list li > div { flex: 1 1 calc(100% - 34px); }
  .mt-cad { margin-top: 8px; }
}
@media (min-width: 721px) and (max-width: 1023px) {
  html:not(.ph-oscura) .ph-stage.mt-stage { padding-bottom: 104px; }
}
