/* =========================================================
   Estudio Lapacho — estilos (demo de Tereré Estudio)
   Concepto: libro contable. Hojas rayadas con margen rosa, números en máquina de escribir
   y una calculadora que arma tu mes de vencimientos.
   ========================================================= */
@font-face { font-family: "Bonum"; src: url("../../fonts/bonum-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "LM Mono"; src: url("../../fonts/lm-mono.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --verde: #13261f;
  --verde-2: #1f3b30;
  --verde-3: #2f5747;
  --rosa: #d6337f;
  --rosa-osc: #ad1f63;
  --rosa-claro: #fbe3ee;
  --amarillo: #f5c542;
  --papel: #f6f1e7;
  --hoja: #fffdf8;
  --raya: #e4dac8;
  --tinta: #13261f;
  --suave: #56625c;
  --linea: rgba(19, 38, 31, .16);
  --tit: "Bonum", "Bookman Old Style", "Georgia", serif;
  --txt: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "LM Mono", "Courier New", monospace;
  --te-toast-bg: var(--verde);
  --te-toast-fg: var(--papel);
  --te-demo-bg: var(--verde);
  --te-demo-fg: #ffd6e8;
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1rem/1.55 var(--txt); overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--tit); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
h1 span, h2 span { color: var(--rosa-osc); }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
.sutil { color: var(--suave); font-size: .86rem; font-weight: 400; }
.nota { font-size: .8rem; color: var(--suave); }
.ayuda { font-size: .86rem; color: var(--suave); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 12px; font: 600 1rem/1.1 var(--txt); text-decoration: none; cursor: pointer; text-align: center; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn--rosa { background: var(--rosa-osc); color: #fff; }
.btn--rosa:hover { background: var(--rosa); }
.btn--verde { background: var(--verde); color: var(--papel); }
.btn--linea { background: transparent; border-color: var(--verde); color: var(--verde); }
.btn--chico { min-height: 42px; padding: 8px 14px; font-size: .9rem; }
.btn--ancho { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn--wa { background: #148a47; color: #fff; }
.btn--ig { background: #b4246f; color: #fff; }

/* ---------- Cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: rgba(246, 241, 231, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--raya); }
.cab > a:first-child { margin-right: auto; }
.cab__logo { width: 120px; }
.cab__prox { font-size: .8rem; line-height: 1.15; padding: 6px 10px; border-radius: 10px; background: var(--rosa-claro); color: var(--rosa-osc); font-weight: 600; max-width: 42vw; }
.cab__prox-m { display: none; }
@media (max-width: 520px) { .cab__prox-n { display: none; } .cab__prox-m { display: inline; } .cab__prox { white-space: nowrap; } }
@media (max-width: 400px) { .cab__logo { width: 104px; } .cab { gap: 8px; } .cab .btn--chico { padding: 8px 12px; } }
.cab__prox b { font-family: var(--num); font-weight: 400; font-size: 1.05em; }
@media (min-width: 1000px) { .cab { padding: 10px 40px; gap: 20px; } .cab__logo { width: 160px; } .cab__prox { font-size: .92rem; max-width: none; } }

/* ---------- Inicio ---------- */
.inicio { max-width: 1280px; margin: 0 auto; padding: 32px 16px 56px; display: grid; gap: 22px; }
.inicio h1 { font-size: clamp(2.15rem, 1.2rem + 4.2vw, 3.6rem); }
.inicio h1 span { display: block; }
.inicio__bajada { margin-top: 14px; max-width: 42ch; font-size: 1.08rem; color: var(--suave); }
@media (min-width: 1000px) {
  .inicio { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "texto mes" "calcu mes"; gap: 30px 56px; padding: 56px 40px 80px; align-items: start; }
  .inicio__texto { grid-area: texto; }
  .calcu { grid-area: calcu; }
  .mes { grid-area: mes; }
}

/* Calculadora */
.calcu { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--verde); color: var(--papel); box-shadow: 0 18px 40px rgba(19, 38, 31, .25); }
.calcu__t { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b7c9bf; }
.calcu__nota { font-size: .8rem; color: #b7c9bf; }
.pantalla { padding: 12px 16px; border-radius: 12px; background: #c9d8b6; color: #1d2b17; font: 400 clamp(1.3rem, 1rem + 1.6vw, 1.9rem)/1 var(--num); letter-spacing: .06em; text-align: right; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; }
.pantalla b { font-weight: 400; color: var(--rosa-osc); }
.teclas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tecla { min-height: 54px; border: 0; border-radius: 12px; background: var(--verde-2); color: var(--papel); font: 400 1.6rem/1 var(--num); cursor: pointer; box-shadow: 0 3px 0 #0b1712; transition: transform .1s ease, background-color .15s ease; }
.tecla:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b1712; }
.tecla[aria-checked="true"] { background: var(--rosa); color: #fff; }
.calcu .chips { gap: 8px; }
.calcu .chip { background: var(--verde-2); border-color: transparent; color: var(--papel); }
.calcu .chip[aria-checked="true"] { background: var(--papel); color: var(--verde); }
.interruptor { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.interruptor input { appearance: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--verde-3); position: relative; cursor: pointer; transition: background-color .2s ease; flex: none; }
.interruptor input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--papel); transition: transform .2s ease; }
.interruptor input:checked { background: var(--rosa); }
.interruptor input:checked::after { transform: translateX(20px); }

/* Hoja del mes */
.mes { position: relative; padding: 18px 16px 18px 30px; border-radius: 6px 22px 22px 6px; background: var(--hoja); box-shadow: 0 1px 0 var(--raya), 0 20px 40px rgba(19, 38, 31, .1); display: grid; gap: 12px; min-width: 0; }
.mes::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--rosa); opacity: .7; }
.mes__cab { display: flex; align-items: center; gap: 8px; }
.mes__titulo { flex: 1; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); text-transform: capitalize; }
.mes__flecha { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--linea); border-radius: 50%; background: transparent; cursor: pointer; }
.mes__flecha svg { width: 18px; height: 18px; }
.mes__flecha:disabled { opacity: .3; cursor: default; }
.sello { position: absolute; right: 14px; top: 64px; transform: rotate(6deg); padding: 4px 10px; border: 2px solid var(--rosa); border-radius: 6px; color: var(--rosa-osc); font: 400 .78rem/1 var(--num); text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 253, 248, .85); z-index: 2; }
.grilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--raya); border-left: 1px solid var(--raya); margin-top: 8px; }
.grilla > * { border-right: 1px solid var(--raya); border-bottom: 1px solid var(--raya); min-width: 0; }
.dsem { padding: 6px 0; text-align: center; font-size: .72rem; font-weight: 600; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.celda { position: relative; aspect-ratio: 1 / .9; padding: 4px; display: grid; align-content: start; gap: 2px; font: 400 .95rem/1 var(--num); }
.celda--fuera { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(19, 38, 31, .035) 6px 7px); }
.celda--finde { color: #9aa29d; }
.celda--hoy::after { content: ""; position: absolute; inset: 3px; border: 2px solid var(--verde); border-radius: 8px; pointer-events: none; }
.celda--vence { background: var(--rosa-claro); }
.celda--vence .celda__n { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--rosa); color: #fff; }
.celda--pasado.celda--vence { background: #efe9dd; }
.celda--pasado.celda--vence .celda__n { background: #b8b1a4; }
.celda__eti { font: 600 .62rem/1.1 var(--txt); color: var(--rosa-osc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 560px) { .celda__eti { display: block; } }
.lista { margin: 4px 0 0; padding: 0; list-style: none; display: grid; }
.lista li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--raya); }
.lista__fecha { font: 400 1.5rem/1 var(--num); text-align: center; }
.lista__fecha small { display: block; font: 600 .66rem/1.2 var(--txt); text-transform: uppercase; color: var(--suave); }
.lista__que b { display: block; font-weight: 600; }
.lista__que span { font-size: .84rem; color: var(--suave); }
.falta { font: 600 .8rem/1 var(--txt); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.falta--rojo { background: #fde2e1; color: #a1170f; }
.falta--amarillo { background: #fdf0c8; color: #7a5200; }
.falta--verde { background: #dcefe4; color: #1e5b39; }
.falta--pasado { background: #ece7dc; color: var(--suave); }
.lista li.lista__vacio { display: block; padding: 14px 0; color: var(--suave); }
.mes__pie { display: flex; gap: 10px; flex-wrap: wrap; }
.mes__pie .btn { flex: 1 1 0; min-width: 0; }

/* ---------- Trámites ---------- */
.tramites { background: var(--verde); color: var(--papel); padding: 64px 16px 72px; }
.tramites h2 span { color: #ff8fc0; }
.tramites__cab, .tramites__cuerpo { max-width: 1180px; margin: 0 auto; }
.tramites__cab p { margin-top: 12px; color: #b7c9bf; max-width: 46ch; }
.tramites__cuerpo { margin-top: 28px; display: grid; gap: 18px; }
@media (min-width: 900px) { .tramites__cuerpo { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; } }
.pestanas-tram { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
@media (min-width: 900px) { .pestanas-tram { flex-direction: column; overflow: visible; } }
.tram { flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 2px; text-align: left; padding: 12px 16px; border: 2px solid var(--verde-3); border-radius: 14px; background: transparent; color: var(--papel); cursor: pointer; }
.tram small { color: #b7c9bf; font-size: .78rem; }
.tram[aria-checked="true"] { background: var(--papel); border-color: var(--papel); color: var(--verde); }
.tram[aria-checked="true"] small { color: var(--suave); }
.hoja { position: relative; display: grid; gap: 12px; padding: 22px 18px 22px 34px; border-radius: 6px 22px 22px 6px; color: var(--tinta);
  background: repeating-linear-gradient(180deg, var(--hoja) 0 43px, var(--raya) 43px 44px); }
.hoja::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--rosa); opacity: .7; }
.hoja__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hoja__cab h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.hoja__cuenta { font: 400 1.2rem/1 var(--num); color: var(--rosa-osc); white-space: nowrap; }
.barra { height: 8px; border-radius: 999px; background: #ece4d4; overflow: hidden; }
.barra span { display: block; height: 100%; width: var(--p, 0%); background: var(--rosa); border-radius: inherit; transition: width .3s ease; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; min-height: 44px; }
.checklist input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--verde); border-radius: 6px; background: var(--hoja); cursor: pointer; display: grid; place-items: center; }
.checklist input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--rosa); border-color: var(--rosa); }
.checklist input:checked::after { opacity: 1; }
.checklist input:checked + span { color: var(--suave); text-decoration: line-through; text-decoration-color: var(--rosa); }
.checklist small { display: block; color: var(--suave); font-size: .8rem; text-decoration: none; }
.hoja__falta { font-weight: 600; }
.hoja .btn { justify-self: start; }

/* ---------- Consulta ---------- */
.consulta { padding: 64px 16px 72px; }
.consulta__grilla { max-width: 1180px; margin: 0 auto; display: grid; gap: 26px; align-items: start; }
@media (min-width: 960px) { .consulta__grilla { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } .consulta__intro { position: sticky; top: 90px; } }
.consulta__intro { display: grid; gap: 16px; }
.consulta__intro > p { color: var(--suave); max-width: 46ch; }
.asiento { padding: 18px 20px; border-radius: 18px; background: var(--hoja); border: 1px solid var(--raya); }
.asiento__t { font: 400 .8rem/1 var(--num); text-transform: uppercase; letter-spacing: .12em; color: var(--rosa-osc); margin-bottom: 8px; }
.asiento dl { margin: 0; display: grid; }
.asiento dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--raya); }
.asiento dt { color: var(--suave); }
.asiento dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.asiento__total dd { font: 400 1.6rem/1 var(--num); color: var(--rosa-osc); }
.form, .listo { display: grid; gap: 12px; min-width: 0; }
.campo__t { font-weight: 600; font-size: .95rem; }
.form > .campo__t { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 9px 16px; border: 2px solid var(--linea); border-radius: 12px; background: var(--hoja); cursor: pointer; font-weight: 600; text-align: left; }
.chip small { font-weight: 400; font-size: .78rem; color: var(--suave); }
.chip[aria-checked="true"] { border-color: var(--verde); background: var(--verde); color: var(--papel); }
.chip[aria-checked="true"] small { color: #ffd6e8; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.hora { align-items: center; min-width: 74px; font-family: var(--num); font-weight: 400; font-size: 1.05rem; }
.dias { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.dia { flex: 0 0 auto; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; width: 66px; padding: 10px 4px; border: 2px solid var(--linea); border-radius: 12px; background: var(--hoja); cursor: pointer; }
.dia small { font-size: .72rem; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.dia b { font: 400 1.5rem/1 var(--num); }
.dia[aria-checked="true"] { background: var(--verde); border-color: var(--verde); color: var(--papel); }
.dia[aria-checked="true"] small { color: #ffd6e8; }
.campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo input, .campo select { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--linea); border-radius: 12px; background: var(--hoja); }
.campo input:focus, .campo select:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(214, 51, 127, .3); }
.campo--ancho { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--rosa-osc); }
.error { color: #a1170f; font-weight: 600; min-height: 1.2em; }
.listo { padding: 26px 22px; border-radius: 22px; background: var(--hoja); border: 1px solid var(--raya); justify-items: start; }
.listo__codigo { font: 400 clamp(2rem, 1.4rem + 3vw, 3.2rem)/1 var(--num); color: var(--rosa-osc); }
.listo__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.listo details { width: 100%; }
.listo summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.globo { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #dcf8c6; color: #111b21; white-space: pre-line; font-size: .92rem; overflow-wrap: anywhere; }

/* ---------- Abonos (bento) ---------- */
.abonos { padding: 64px 16px 72px; background: var(--hoja); border-top: 1px solid var(--raya); }
.abonos > h2, .abonos > .nota { max-width: 1180px; margin: 0 auto; }
.abonos > .nota { margin-top: 14px; }
.bento { max-width: 1180px; margin: 26px auto 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.bento__item { flex: 0 0 82%; scroll-snap-align: start; display: grid; align-content: end; gap: 8px; min-height: 230px; padding: 22px; border-radius: 22px; background: var(--papel); border: 1px solid var(--raya); min-width: 0; }
.bento__item h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.bento__item p { color: var(--suave); }
.bento__item--grande { background: var(--verde); color: var(--papel); border-color: var(--verde); }
.bento__item--grande p { color: #b7c9bf; }
.bento__item--rosa { background: var(--rosa-osc); color: #fff; border-color: var(--rosa-osc); }
.bento__item--rosa p { color: #ffe3ef; }
.bento__item--verde { background: #dcefe4; border-color: #dcefe4; }
.bento__eti { font-weight: 600; color: #ff8fc0 !important; }
.bento__precio { font: 400 clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem)/1 var(--num); color: var(--tinta) !important; }
.bento__item--grande .bento__precio { color: #ff8fc0 !important; }
.bento__precio small { font-size: .4em; margin-left: 4px; }
.bento__precio--chico { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
@media (min-width: 760px) {
  .bento { display: grid; overflow: visible; grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "a b b" "a c d"; padding: 0; }
  .bento__item:nth-child(1) { grid-area: a; min-height: 470px; }
  .bento__item:nth-child(2) { grid-area: b; }
  .bento__item:nth-child(3) { grid-area: c; }
  .bento__item:nth-child(4) { grid-area: d; }
}

/* ---------- Quiero una así ---------- */
.quiero { padding: 60px 16px; background: var(--rosa-claro); }
.quiero__fila { max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; align-items: center; }
.quiero h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin-bottom: 12px; }
.quiero p { max-width: 56ch; }
.quiero .btn { justify-self: start; }
@media (min-width: 900px) { .quiero__fila { grid-template-columns: 1fr auto; } }

/* ---------- Pie y páginas internas ---------- */
.pie { background: var(--verde); color: #b7c9bf; padding: 44px 16px 16px; font-size: .92rem; }
.pie__fila { max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; }
.pie__fila > div { display: grid; gap: 8px; align-content: start; }
@media (min-width: 768px) { .pie__fila { grid-template-columns: 1.4fr 1fr; } }
.pie__logo { width: 180px; }
.pie__t { font: 700 1.1rem/1 var(--tit); color: var(--papel); }
.pie a { color: #fff; }
.pie .btn { justify-self: start; min-height: 44px; }
.pie__aviso { max-width: 1180px; margin: 26px auto 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; }
.interna { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; display: grid; gap: 14px; }
.interna h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem); }
.interna h2 { font-size: 1.5rem; margin-top: 10px; }
.interna ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.interna .aviso { padding: 14px 18px; border-radius: 14px; background: var(--hoja); border: 1px solid var(--raya); }
