:root {
  --verde: #0E8F34;
  --verde-oscuro: #0C6A38;
  --marino: #0E0737;
  --marino-claro: #1C1566;
  --azul: #015BB1;
  --celeste: #ADCCE9;
  --celeste-suave: #E3EEF8;
  --verde-suave: #DFF2E4;
  --amarillo: #F2B705;
  --rojo: #C8402E;
  --rojo-suave: #FBE7E3;
  --morado: #7A4DB8;
  --fondo: #EEF2F0;
  --papel: #FFFFFF;
  --papel-2: #F5F7F6;
  --linea: #D9E1DC;
  --tinta: #14211A;
  --tinta-2: #4B5A51;
  --tinta-3: #7B8A81;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--papel-2); color: var(--tinta);
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
a { color: var(--azul); } a:hover { color: var(--verde-oscuro); }
h1, h2, h3, h4 { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-stretch: 80%; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- shell ---- */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--papel-2); }
@media (min-width: 561px) { body { background: var(--fondo); } .app { box-shadow: 0 0 0 1px var(--linea); } }
.screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: none; flex-direction: column; -webkit-overflow-scrolling: touch; }
.screen.on { display: flex; animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.on { animation: none; } }

.head {
  background: linear-gradient(160deg, var(--marino-claro) 0%, var(--marino) 100%);
  color: #fff; padding: calc(20px + var(--safe-t)) 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.head.marino { background: linear-gradient(160deg, var(--marino) 0%, var(--verde-oscuro) 100%); }
.head .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head .row.start { justify-content: flex-start; }
.head h2 { font-stretch: 80%; font-weight: 800; font-size: 25px; line-height: 1.1; }
.head .sub { font-size: 12.5px; opacity: .85; }
.crest { width: 48px; height: 48px; flex: none; background: #fff; border-radius: 50%; image-rendering: auto; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.back { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.content { padding: 18px 16px 26px; display: flex; flex-direction: column; gap: 16px; }

.tabbar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--papel); border-top: 1px solid var(--linea);
  padding: 8px 6px calc(8px + var(--safe-b));
}
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; padding: 6px 4px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--tinta-3); text-align: center; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="true"] { color: var(--verde-oscuro); }
.tabbar button[aria-current="true"] svg { stroke-width: 2.2; }

/* ---- components ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); color: #fff; }
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.card { background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; }
.card.pad { padding: 16px; }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--linea); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title h3 { font-stretch: 80%; font-weight: 800; font-size: 18.5px; }
.section-title .link { font-size: 13px; font-weight: 700; color: var(--azul); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge.nuevo { background: var(--amarillo); color: #3B2E00; }
.badge.gris { background: var(--papel-2); color: var(--tinta-2); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag.nivel { background: var(--papel-2); color: var(--tinta-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 18px; border-radius: 13px; font-weight: 800; font-size: 15px; text-decoration: none; width: 100%; }
.btn.primary { background: var(--verde); color: #fff; }
.btn.ghost { background: var(--papel); border: 1px solid var(--linea); color: var(--tinta); font-weight: 700; font-size: 14px; }
.empty { padding: 22px 16px; text-align: center; color: var(--tinta-3); font-size: 13.5px; }
.pill-seg { display: inline-flex; background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px; }
.pill-seg button { min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff; opacity: .8; }
.pill-seg button[aria-pressed="true"] { background: #fff; color: var(--verde-oscuro); opacity: 1; }
.seg { display: inline-flex; background: var(--papel-2); border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.seg button { min-height: 30px; padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--tinta-2); }
.seg button[aria-pressed="true"] { background: var(--verde-oscuro); color: #fff; }

/* ---- inicio ---- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 15px; display: flex; flex-direction: column; gap: 4px; min-height: 98px; width: 100%; }
.kpi .big { font-stretch: 80%; font-weight: 800; font-size: 33px; line-height: 1; color: var(--verde-oscuro); }
.kpi.marino .big { color: var(--marino); }
.kpi .lbl { font-size: 12.5px; color: var(--tinta-2); }
.next { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 15px; width: 100%; }
.date-block { background: var(--verde); color: #fff; border-radius: 10px; text-align: center; padding: 8px 4px; line-height: 1; }
.date-block b { display: block; font-size: 23px; font-stretch: 80%; font-weight: 800; }
.date-block small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.next h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.next p { margin: 0; font-size: 12.5px; color: var(--tinta-2); }
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; width: 100%; }
.aviso .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.aviso h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.aviso p { margin: 0; font-size: 12.5px; color: var(--tinta-2); }
.aviso time { font-size: 11.5px; color: var(--tinta-3); white-space: nowrap; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; min-height: 86px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--tinta-2); text-align: center; text-decoration: none; }
.quick svg { color: var(--verde); width: 24px; height: 24px; }

/* ---- pronto (tareas / pagos) ---- */
.pronto { padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pronto .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--verde-suave); color: var(--verde-oscuro); display: grid; place-items: center; }
.pronto .ico svg { width: 26px; height: 26px; }
.pronto h3 { font-stretch: 80%; font-weight: 800; font-size: 20px; }
.pronto p { margin: 0; font-size: 14px; color: var(--tinta-2); }
.sync { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--tinta-2); padding: 11px 13px; background: var(--papel); border: 1px solid var(--linea); border-radius: 11px; }

/* ---- agenda ---- */
.month-nav { display: flex; align-items: center; justify-content: space-between; }
.month-nav h3 { font-stretch: 80%; font-weight: 800; font-size: 19px; text-transform: capitalize; }
.month-nav button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--papel); border: 1px solid var(--linea); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px 10px 10px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--tinta-3); letter-spacing: .06em; padding-bottom: 4px; }
.cal .day { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 14px; font-weight: 600; color: var(--tinta); min-height: 44px; }
.cal .day.off { color: var(--tinta-3); font-weight: 400; }
.cal .day.hol { color: var(--rojo); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--verde); }
.cal .day[aria-pressed="true"] { background: var(--verde-oscuro); color: #fff; box-shadow: none; }
.cal .day .dots { display: flex; gap: 3px; height: 5px; }
.cal .day .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal .day[aria-pressed="true"] .dots i { background: #fff !important; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--tinta-2); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ev { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 12px 14px; align-items: start; }
.ev.past { opacity: .55; }
.ev .d { text-align: center; line-height: 1; padding-top: 2px; }
.ev .d b { display: block; font-size: 20px; font-stretch: 80%; font-weight: 800; }
.ev .d b.hol { color: var(--rojo); }
.ev .d small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--tinta-3); margin-top: 3px; }
.ev h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.ev p { margin: 0; font-size: 12.5px; color: var(--tinta-2); }
.ev .tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* ---- circulares ---- */
.circ-list { display: flex; flex-direction: column; gap: 11px; }
.circ { padding: 15px; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.circ.nueva { border-left: 4px solid var(--tipo, var(--verde)); }
.circ .top { display: flex; align-items: center; gap: 8px; }
.circ .top time { font-size: 11.5px; color: var(--tinta-3); margin-left: auto; }
.circ h4 { font-size: 15.5px; font-weight: 700; }
.circ p { margin: 0; font-size: 13px; color: var(--tinta-2); }
.circ-body { padding: 17px; font-size: 14px; line-height: 1.6; color: var(--tinta); white-space: pre-line; }
.adjunto { display: flex; align-items: center; gap: 12px; padding: 14px 15px; text-decoration: none; color: inherit; }
.adjunto svg { color: var(--rojo); width: 24px; height: 24px; }
.adjunto b { font-size: 14px; }
.adjunto small { display: block; font-size: 12px; color: var(--tinta-3); }
.adjunto span.act { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--azul); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- contactos ---- */
.addr { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.addr svg { color: var(--verde); margin-top: 2px; }
.addr p { margin: 0; color: var(--tinta-2); }
.addr strong { color: var(--tinta); }
.hero-contact { display: grid; gap: 12px; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 6px; border-radius: 12px; text-decoration: none; font-size: 12px; font-weight: 700; color: #fff; }
.actions a.call { background: var(--marino); }
.actions a.wa { background: var(--verde); }
.actions a.mail { background: var(--verde-oscuro); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 14px; align-items: center; }
.contact h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.contact p { margin: 0; font-size: 12.5px; color: var(--tinta-3); overflow-wrap: anywhere; }
.contact .ways { display: flex; gap: 6px; }
.contact .ways a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--papel-2); border: 1px solid var(--linea); color: var(--verde-oscuro); }

/* ---- más ---- */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--celeste); color: var(--marino); display: grid; place-items: center; font-size: 19px; font-weight: 800; flex: none; }
.profile h2 { font-size: 21px; }
.mas-row { display: flex; align-items: center; gap: 13px; padding: 15px; width: 100%; font-size: 14.5px; font-weight: 600; text-decoration: none; color: inherit; }
.mas-row svg { color: var(--verde-oscuro); width: 22px; height: 22px; }
.mas-row .chev { margin-left: auto; color: var(--tinta-3); width: 18px; height: 18px; }
.mas-row .badge { margin-left: auto; }
.mas-row .badge + .chev { margin-left: 0; }
.install { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.install h4 { font-size: 15px; font-weight: 800; font-stretch: 80%; }
.install p { margin: 0; font-size: 13.5px; color: var(--tinta-2); }
.install ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--tinta-2); display: grid; gap: 4px; }
.foot { text-align: center; font-size: 11.5px; color: var(--tinta-3); padding-top: 6px; }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); border: 2px solid var(--papel); }
.next .eyebrow { font-size: 11px; color: var(--verde-oscuro); }

/* ---- v1.2: agenda ordenada ---- */
.cal-toggle { display: flex; justify-content: center; padding: 6px 0 10px; }
.cal-toggle button { font-size: 12.5px; font-weight: 700; color: var(--azul); display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 999px; }
.cal-toggle svg { width: 16px; height: 16px; }
.week { display: flex; flex-direction: column; gap: 8px; }
.week-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; }
.week-title .eyebrow { color: var(--verde-oscuro); }
.week-title .eyebrow.pasada { color: var(--tinta-3); }
.week-title small { font-size: 12px; color: var(--tinta-3); }
.ev { grid-template-columns: 46px minmax(0, 1fr) auto; }
.ev .tipo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tipo-bg); color: var(--tipo); }
.ev .tipo svg { width: 18px; height: 18px; }
.ver-anteriores { align-self: center; }
.ver-anteriores button { font-size: 13px; font-weight: 700; color: var(--tinta-2); background: var(--papel); border: 1px solid var(--linea); border-radius: 999px; min-height: 40px; padding: 0 16px; }

/* ---- v1.2: extracurriculares ---- */
.pasos { display: flex; flex-direction: column; gap: 0; }
.paso { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 15px; align-items: start; }
.paso .n { width: 30px; height: 30px; border-radius: 50%; background: var(--verde-oscuro); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; font-stretch: 80%; }
.paso p { margin: 0; font-size: 14px; line-height: 1.5; padding-top: 4px; }
.extra { display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.extra .top { display: flex; align-items: center; gap: 12px; }
.extra .top .tipo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tipo-bg); color: var(--tipo); flex: none; }
.extra .top .tipo svg { width: 22px; height: 22px; }
.extra h4 { font-size: 15.5px; font-weight: 700; }
.extra .meta { font-size: 12.5px; color: var(--tinta-2); }
.extra .resp { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--linea); font-size: 13.5px; }
.extra .resp b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; }
.extra .resp .ways { margin-left: auto; display: flex; gap: 6px; }
.extra .resp .ways a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--papel-2); border: 1px solid var(--linea); color: var(--verde-oscuro); }
.extra .resp .ways a.wa { background: var(--verde); border-color: var(--verde); color: #fff; }
.tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact .nota { margin-top: 6px; font-size: 12px; color: var(--tinta-2); line-height: 1.4; }
.contact .ways { flex-direction: column; }
@media (min-width: 400px) { .contact .ways { flex-direction: row; } }

/* ---- v2: inicio ---- */
.head.morado { background: linear-gradient(160deg, var(--marino-claro) 0%, var(--marino) 100%); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .eyebrow { color: rgba(255,255,255,.8); font-size: 10.5px; }
.stat b { font-size: 13.5px; font-weight: 700; }
.section-title small { font-size: 12px; color: var(--tinta-3); }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lnk { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; min-height: 84px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--tinta-2); text-align: center; text-decoration: none; }
.lnk-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--verde-suave); color: var(--verde-oscuro); display: grid; place-items: center; }
.lnk-ic svg { width: 20px; height: 20px; }
.featured { background: var(--verde-oscuro); color: #fff; border: 0; padding: 16px; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.featured .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.featured .tag.light { background: rgba(255,255,255,.18); color: #fff; }
.featured time { font-size: 12px; opacity: .8; }
.featured h4 { font-size: 17px; font-weight: 800; font-stretch: 80%; line-height: 1.2; }
.featured p { margin: 0; font-size: 13.5px; opacity: .9; }
.featured .more { font-size: 13px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; }
.chips.dark .chip { background: var(--papel); border-color: var(--linea); color: var(--tinta-2); min-height: 38px; padding: 6px 13px; }
.chips.dark .chip[aria-pressed="true"] { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: #fff; }
.brow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; align-items: start; width: 100%; }
.brow .tipo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tipo-bg); color: var(--tipo); }
.brow .tipo svg { width: 18px; height: 18px; }
.bcol { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bmeta { display: flex; align-items: center; gap: 8px; }
.bmeta time { font-size: 11.5px; color: var(--tinta-3); }
.btit { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.bsum { font-size: 12.5px; color: var(--tinta-2); }
.bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--amarillo); margin-top: 6px; }
.prox { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; width: 100%; }
.pdate { border-radius: 10px; text-align: center; padding: 5px 2px; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.pdate small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.pdate b { font-size: 18px; font-stretch: 80%; font-weight: 800; }
.pcol { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptit { font-size: 14px; font-weight: 700; }
.pdet { font-size: 12.5px; color: var(--tinta-2); }
.cal .day.has { background: var(--papel-2); }
.cal .day.hol { background: var(--rojo-suave); }
.cal .day[aria-pressed="true"] { background: var(--verde-oscuro); }

/* ---- v2: extras ---- */
.tag.cupo.ok { background: var(--verde-suave); color: var(--verde-oscuro); }
.tag.cupo.warn { background: #FCF1D2; color: #8A6400; }
.tag.cupo.wait { background: var(--papel-2); color: var(--tinta-2); }
.extra .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.adjunto .ways { margin-left: auto; display: flex; gap: 6px; }
.adjunto .ways a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--papel-2); border: 1px solid var(--linea); color: var(--verde-oscuro); }

/* ---- v2: contactos ---- */
.head-info { display: grid; gap: 8px; }
.head-info .addr { font-size: 13px; }
.head-info .addr svg { color: var(--celeste); }
.head-info .addr p { color: rgba(255,255,255,.85); }
.head-info .addr b { color: #fff; }
.contact.numbered { grid-template-columns: 30px minmax(0, 1fr) auto; }
.contact .n { width: 28px; height: 28px; border-radius: 50%; background: var(--verde-oscuro); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; font-stretch: 80%; }
.contact .rol { color: var(--tinta-2); margin-bottom: 2px; }
.contact .ways a.wa { background: var(--verde); border-color: var(--verde); color: #fff; }
.help { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.help h3 { font-stretch: 80%; font-weight: 800; font-size: 17px; }
.help p { margin: 0; font-size: 13.5px; color: var(--tinta-2); }
.btn.wa { background: var(--verde); color: #fff; margin-top: 4px; }

/* ---- v2.1: azul del colegio en cabeceras, verde en pestañas y widgets ---- */
.head .logo { height: 40px; width: auto; display: block; }
.head .row .logo { margin-left: auto; }
.stat { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.stat b { color: #fff; }
.head-info .addr svg { color: var(--verde); }
.tabbar button[aria-current="true"] { color: var(--verde); }
.tabbar button[aria-current="true"] svg { color: var(--verde); }
.lnk-ic { background: var(--verde-suave); color: var(--verde); }
.paso .n, .contact .n { background: var(--verde); }
.section-title .link, .cal-toggle button { color: var(--verde-oscuro); }
.week-title .eyebrow { color: var(--verde-oscuro); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--verde); }
.cal .day[aria-pressed="true"] { background: var(--verde); }
.btn.primary { background: var(--verde); }
.btn.wa { background: var(--verde); }

/* ---- v2.2: calendario real, pasos en avisos ---- */
.month-nav .valor { display: block; font-size: 11.5px; color: var(--tinta-3); margin-top: 2px; }
.cal .day .dots i.range { width: 5px; height: 5px; }
.ev .rango { font-size: 11px; font-weight: 700; color: var(--verde-oscuro); }
.extra .meta.prog { font-weight: 700; color: var(--tinta-2); }

/* ---- v2.3: promo Recomienda Amigos ---- */
.promo { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%); color: #fff; border: 0; text-decoration: none; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.promo h4 { font-size: 17px; font-weight: 800; font-stretch: 80%; line-height: 1.15; margin-bottom: 4px; }
.promo p { margin: 0; font-size: 13px; opacity: .92; }
.promo .gift { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.promo .gift svg { width: 24px; height: 24px; }
.promo .btn { grid-column: 1 / -1; background: #fff; color: var(--verde-oscuro); min-height: 46px; font-size: 14px; }
.extra .resp { flex-wrap: wrap; }
.extra .resp .insc { font-size: 12.5px; color: var(--tinta-2); }

/* ---- v2.4: pestaña Pagos (Servicios Educativos) ---- */
.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar button { font-size: 10.5px; padding: 6px 2px; }
.intro { margin: 0; font-size: 14px; color: var(--tinta-2); }
.cuenta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; align-items: center; width: 100%; text-align: left; }
.cuenta .banco { font-size: 14.5px; font-weight: 700; }
.cuenta .moneda { font-size: 12px; color: var(--tinta-3); margin-left: 6px; font-weight: 600; }
.cuenta .numero { font-size: 17px; font-weight: 800; font-stretch: 80%; letter-spacing: .04em; color: var(--marino); margin-top: 2px; }
.cuenta .copy { width: 44px; height: 44px; border-radius: 50%; background: var(--papel-2); border: 1px solid var(--linea); color: var(--verde-oscuro); display: grid; place-items: center; }
.cuenta.copied .copy { background: var(--verde); border-color: var(--verde); color: #fff; }
.nota-cuentas { margin: 0; font-size: 13px; color: var(--tinta-2); background: #FCF1D2; border-radius: 10px; padding: 10px 12px; }
.comprobante { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-color: var(--verde); }
.comprobante h3 { font-stretch: 80%; font-weight: 800; font-size: 17px; color: var(--verde-oscuro); }
.comprobante p { margin: 0; font-size: 14px; }
.comprobante .horario { font-size: 12px; color: var(--tinta-3); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--marino); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 5; }
.toast.on { opacity: 1; }
