/* MAWA Business Group · concepto "Partida doble"
   Papel columnar, tinta navy, resaltador dorado. 60 papel / 30 tinta / 10 resaltador. */

@font-face { font-family: "Bodoni Moda"; src: url("/assets/mawa_web/web/fonts/bodoni-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/mawa_web/web/fonts/bodoni-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/mawa_web/web/fonts/schibsted-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("/assets/mawa_web/web/fonts/azeret-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f3ea;
  --paper-2: #ece6d4;
  --sheet: #fffdf6;
  --ink: #000f6e;
  --ink-soft: #3a4583;
  --royal: #0018b6;
  --gold: #eed64b;
  --rule: rgba(0, 24, 182, .09);
  --rule-strong: rgba(0, 15, 110, .22);
  --ivory: #f6f3ea;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(1.1rem, 4.5vw, 4.5rem);
  --line: 32px;                 /* alto del renglón del papel */
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background-color: var(--paper);
  /* papel de libro: renglones finos + margen doble dorado a la izquierda */
  background-image:
    linear-gradient(90deg, transparent calc(var(--pad) * .55), rgba(238, 214, 75, .6) calc(var(--pad) * .55), rgba(238, 214, 75, .6) calc(var(--pad) * .55 + 1px), transparent calc(var(--pad) * .55 + 1px), transparent calc(var(--pad) * .55 + 4px), rgba(238, 214, 75, .6) calc(var(--pad) * .55 + 4px), rgba(238, 214, 75, .6) calc(var(--pad) * .55 + 5px), transparent calc(var(--pad) * .55 + 5px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line));
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after { /* grano de papel */
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } }

main { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--ivory); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
em { font-style: italic; }
.nowrap { white-space: nowrap; }

/* ---------- Resaltador ---------- */
.mark {
  font-style: italic;
  background-image: linear-gradient(100deg, transparent 0 1%, var(--gold) 2% 97%, transparent 98%);
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 100% 46%;
  padding: 0 .08em;
  margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.anim .mark { background-size: 0% 46%; transition: background-size 1.1s var(--ease); }
.anim .mark.is-marked { background-size: 100% 46%; }
.mark--dark { color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.35rem; border-radius: 999px;
  font: 600 .98rem/1.1 var(--f-text); text-decoration: none; letter-spacing: -.005em; text-align: center;
  border: 1.5px solid var(--ink); transition: background-color .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.btn--gold:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--royal); border-color: var(--royal); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Loader: cinta de sumadora ---------- */
.loader { display: none; }
.anim .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
}
.loader__tape {
  width: min(250px, 70vw); background: var(--sheet); color: var(--ink);
  padding: 1.1rem 1.2rem 1.3rem; font-family: var(--f-mono); font-size: .82rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 97%, 90% 100%, 85% 97%, 80% 100%, 75% 97%, 70% 100%, 65% 97%, 60% 100%, 55% 97%, 50% 100%, 45% 97%, 40% 100%, 35% 97%, 30% 100%, 25% 97%, 20% 100%, 15% 97%, 10% 100%, 5% 97%, 0 100%);
}
.loader__lines { list-style: none; margin: 0; padding: 0; }
.loader__lines li { display: flex; justify-content: space-between; padding: .2rem 0; border-bottom: 1px dashed var(--rule-strong); }
.loader__total { display: flex; justify-content: space-between; margin: .7rem 0 0; padding-top: .45rem; border-top: 3px double var(--ink); font-weight: 700; }
.loader__n { background: var(--gold); padding: 0 .25rem; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem var(--pad);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(246, 243, 234, .92); box-shadow: 0 1px 0 var(--rule-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: 128px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; isolation: isolate; }
.nav__links a::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 40%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: -1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.nav__burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 6rem var(--pad) 3rem;
}
.menu[hidden] { display: none; }
.menu a { font: 500 clamp(2rem, 9vw, 3rem)/1.15 var(--f-display); text-decoration: none; border-bottom: 1px solid rgba(246,243,234,.14); padding: .35rem 0; }
.menu .menu__wa { margin-top: 1.5rem; font: 600 1rem/1 var(--f-text); background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1rem 1.3rem; text-align: center; border: 0; }
.nav.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
.nav.menu-open .nav__logo img { filter: brightness(0) invert(.95); }

/* ---------- Comunes ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) var(--pad); position: relative; }
.section__head { max-width: 980px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lede { max-width: 56ch; color: var(--ink-soft); font-size: 1.12rem; margin: 1.2rem 0 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin: 0 0 1.2rem; font: 600 .82rem/1.3 var(--f-text); letter-spacing: .06em; text-transform: uppercase; color: var(--royal); }
.eyebrow--light { color: var(--gold); }
.folio { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; padding: .35rem .5rem; border: 1px solid currentColor; border-radius: 4px; }
.title {
  margin: 0; font: 500 clamp(2.5rem, 6.4vw, 5.6rem)/.95 var(--f-display);
  font-variation-settings: "opsz" 96; letter-spacing: -.02em; text-wrap: balance;
}
.title em { font-weight: 500; color: var(--royal); }
.title--light { color: var(--ivory); }
.title--light em:not(.mark) { color: var(--gold); }
.title .mark--dark { color: var(--ink); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 12vw, 9rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero__title {
  margin: 0; font: 500 clamp(3rem, 6.1vw, 6.6rem)/.92 var(--f-display);
  font-variation-settings: "opsz" 96; letter-spacing: -.03em;
}
.hero__title em { font-weight: 500; }
.hero__lede { max-width: 54ch; margin: 1.8rem 0 0; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-soft); }
.hero__lede strong { color: var(--ink); font-weight: 650; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { margin: 1.8rem 0 0; color: var(--ink-soft); }

/* Cuenta T */
.ledger { position: relative; margin: 0; perspective: 1100px; }
.ledger__sheet {
  position: relative; z-index: 2;
  background: var(--sheet);
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(0, 24, 182, .1) 35px 36px);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  padding: 1.4rem clamp(1.1rem, 2.4vw, 2rem) 1.8rem;
  box-shadow: 14px 18px 0 -2px var(--paper-2), 14px 18px 0 -1px var(--rule-strong), 0 30px 60px -30px rgba(0, 15, 110, .35);
  transform: rotate(-1.6deg); transform-style: preserve-3d;
}
.ledger__head { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; color: var(--ink-soft); padding-bottom: .7rem; border-bottom: 1px solid var(--rule-strong); }
.ledger__head b { color: var(--ink); }
.ledger__account { margin: 1rem 0 .4rem; text-align: center; font: italic 500 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--f-display); }
.ledger__t { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.ledger__t::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5px; background: var(--ink); transform-origin: center; }
.ledger__t::before { content: ""; position: absolute; left: 50%; top: 0; bottom: -.4rem; width: 2.5px; background: var(--ink); transform: translateX(-50%); transform-origin: top; }
.ledger__col { padding: .6rem .9rem 0; }
.ledger__side { margin: 0 0 .3rem; color: var(--royal); text-transform: uppercase; }
.ledger__col[data-side="haber"] { text-align: right; }
.ledger__col ul { list-style: none; margin: 0; padding: 0; }
.ledger__col li {
  font-size: clamp(.92rem, 1.15vw, 1.02rem); line-height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 0; padding: 0 .3rem; margin: 0 -.3rem; cursor: default;
}
.ledger__col li::before { content: ""; position: absolute; inset: 7px 0 6px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.ledger__col[data-side="haber"] li::before { transform-origin: right; }
.ledger__col li.is-pair::before { transform: scaleX(1); }
.ledger__foot { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .4rem; margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--ink); position: relative; }
.ledger__foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.55rem; border-bottom: 3px double var(--ink); transform-origin: left; }
.ledger__foot b { color: var(--ink); font-weight: 700; }
.ledger__diff { text-align: right; }
.ledger__diff b { background: var(--gold); padding: 0 .25rem; }
.stamp {
  position: absolute; right: -5%; bottom: -1.6rem; z-index: 3;
  font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--royal); border: 3px double var(--royal); border-radius: 6px; padding: .45rem .8rem;
  transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .88; pointer-events: none;
}
.bars { position: absolute; z-index: 1; left: -2.2rem; top: -2rem; display: flex; gap: 10px; align-items: flex-end; transform: skewX(-21deg); }
.bars i { display: block; width: 14px; transform-origin: bottom; }
.bars i:nth-child(1) { height: 170px; background: var(--ink); }
.bars i:nth-child(2) { height: 140px; background: var(--royal); }
.bars i:nth-child(3) { height: 104px; background: var(--gold); }

/* ---------- Cinta ---------- */
.tape {
  position: relative; overflow: hidden; background: var(--sheet); border-block: 1px solid var(--rule-strong);
  padding: 1.15rem 0; transform: rotate(-.6deg); margin: 1rem -1rem 0; box-shadow: 0 10px 25px -18px rgba(0,15,110,.4);
}
.tape::before, .tape::after { /* perforaciones */
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--paper-2) 2px, transparent 2.5px) 0 0 / 14px 6px repeat-x;
}
.tape::before { top: 3px; } .tape::after { bottom: 3px; }
.tape__track { display: flex; width: max-content; gap: 2.4rem; padding-right: 2.4rem; font: 500 clamp(.95rem, 1.6vw, 1.3rem)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; animation: tape 42s linear infinite; }
.anim .tape__track { animation: none; }
.tape__tot { background: var(--gold); padding: .15rem .4rem; font-weight: 700; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Catálogo de cuentas ---------- */
.accounts__list { border-top: 2.5px solid var(--ink); }
.acct { border-bottom: 1px solid var(--rule-strong); position: relative; }
.acct__row {
  width: 100%; display: grid; grid-template-columns: 5.5rem 1fr auto 2.6rem; align-items: center; gap: 1.2rem;
  padding: 1.35rem .4rem; background: none; border: 0; cursor: pointer; text-align: left; position: relative; isolation: isolate;
}
.acct__row::before { content: ""; position: absolute; inset: 18% -.4rem; background: var(--gold); opacity: .55; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: -1; }
.acct__row:hover::before, .acct.is-open .acct__row::before { transform: scaleX(1); }
.acct__code { color: var(--royal); font-size: .9rem; }
.acct__name { font: 500 clamp(1.5rem, 3.2vw, 2.6rem)/1.05 var(--f-display); letter-spacing: -.015em; transition: transform .5s var(--ease); }
.acct__row:hover .acct__name { transform: translateX(.5rem); }
.acct__tag { color: var(--ink-soft); text-align: right; }
.acct__sign { width: 2.4rem; height: 2.4rem; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 400 1.4rem/1 var(--f-mono); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.acct.is-open .acct__sign { transform: rotate(45deg); background: var(--ink); color: var(--gold); }
.acct__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; padding: 0 3.6rem 0 6.9rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, padding .5s var(--ease); }
.acct.is-open .acct__body { max-height: 560px; opacity: 1; padding-bottom: 1.8rem; }
.acct__body p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.acct--feature .acct__name { font-size: clamp(1.8rem, 4.2vw, 3.4rem); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.9rem; border-bottom: 1px dashed var(--rule-strong); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .75rem; width: .9rem; height: .5rem; border-left: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(-45deg); }

/* ---------- Calendario fiscal ---------- */
.due {
  background-color: var(--ink); color: var(--ivory);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(246, 243, 234, .06) calc(var(--line) - 1px) var(--line));
  border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.due__lede { color: rgba(246, 243, 234, .78); max-width: 46ch; font-size: 1.1rem; margin: 1.3rem 0 2rem; }
.due__form { display: grid; gap: 1.3rem; }
.due__form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.due__form legend { color: var(--gold); margin-bottom: .6rem; padding: 0; }
.due__form label { position: relative; cursor: pointer; }
.due__form input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.due__form label span {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgba(246, 243, 234, .4); font-weight: 600; transition: background-color .25s, color .25s, border-color .25s;
}
.due__form label span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; transition: background-color .2s; }
.due__form label:hover span { border-color: var(--gold); }
.due__form input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.due__form input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.due__form input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

.due__sheet {
  background: var(--sheet); color: var(--ink); border-radius: 8px; padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: 16px 18px 0 -2px rgba(246, 243, 234, .14); transform: rotate(.8deg);
}
.due__head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; border-bottom: 2.5px solid var(--ink); padding-bottom: .8rem; }
.due__head p { margin: 0; }
.due__head b { font: italic 600 1.35rem/1 var(--f-display); letter-spacing: 0; }
.due__next { font: 500 .95rem/1.3 var(--f-text); color: var(--royal); }
.due__next strong { background: var(--gold); color: var(--ink); padding: 0 .3rem; font-weight: 700; }
.due__list { list-style: none; margin: 0; padding: 0; min-height: 240px; }
.due__row { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--rule-strong); position: relative; isolation: isolate; }
.due__row .mono { font-size: .95rem; color: var(--royal); }
.due__row b { display: block; font: 600 1.06rem/1.2 var(--f-text); }
.due__row small { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.35; }
.due__left { font: 600 .74rem/1 var(--f-mono); padding: .4rem .55rem; border: 1px solid var(--rule-strong); border-radius: 4px; white-space: nowrap; }
.due__row.is-next::before { content: ""; position: absolute; inset: .35rem -.6rem; background: var(--gold); border-radius: 3px; z-index: -1; transform-origin: left; animation: marker .9s var(--ease) both; }
.due__row.is-next .due__left { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.due__row.is-past { opacity: .5; }
.due__row.is-past b { text-decoration: line-through; text-decoration-color: var(--royal); text-decoration-thickness: 2px; }
@keyframes marker { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.due__note { font-size: .84rem; color: var(--ink-soft); margin: 1.1rem 0 1.3rem; }
.due__cta { width: 100%; }

/* ---------- Proceso ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2.5px solid var(--ink); }
.step { position: relative; padding: 1.6rem 1.4rem 2.2rem; border-right: 1px solid var(--rule-strong); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step__n { color: var(--royal); }
.step h3 { font: 500 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--f-display); margin: .9rem 0 .7rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-soft); }
.tick { width: 46px; margin-top: 1.3rem; overflow: visible; }
.tick path { fill: none; stroke: var(--royal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.anim .tick path { stroke-dashoffset: 60; }

/* ---------- Notas (preguntas) ---------- */
.notes__list { border-top: 2.5px solid var(--ink); max-width: 1080px; }
.note { border-bottom: 1px solid var(--rule-strong); }
.note summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 5.5rem 1fr 2rem; gap: 1rem; align-items: baseline;
  padding: 1.3rem 0; font: 500 clamp(1.25rem, 2.3vw, 1.75rem)/1.2 var(--f-display);
}
.note summary::-webkit-details-marker { display: none; }
.note summary .mono { color: var(--royal); font-size: .8rem; }
.note summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); justify-self: end; transition: transform .35s var(--ease); }
.note[open] summary::after { transform: rotate(45deg); }
.note summary:hover { color: var(--royal); }
.note p { margin: 0 0 1.6rem 6.5rem; max-width: 64ch; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--royal); color: var(--ivory); padding: clamp(5rem, 11vw, 9rem) var(--pad); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(246, 243, 234, .08) calc(var(--line) - 1px) var(--line)); pointer-events: none; }
.contact__inner { position: relative; }
.contact__title { margin: 0 0 3rem; font: 500 clamp(3rem, 9vw, 8.5rem)/.9 var(--f-display); letter-spacing: -.03em; font-variation-settings: "opsz" 96; }
.contact__title em { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.contact__wa {
  background: var(--gold); color: var(--ink); text-decoration: none; border-radius: var(--r); padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 220px; box-shadow: 0 6px 0 var(--ink);
}
.contact__wa b { font: 500 clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-display); }
.contact__go { font-weight: 700; }
.contact__data { margin: 0; display: grid; gap: 1rem; align-content: start; }
.contact__data div { border-bottom: 1px solid rgba(246, 243, 234, .25); padding-bottom: .8rem; }
.contact__data dt { color: var(--gold); margin-bottom: .2rem; }
.contact__data dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__data a { text-decoration-color: rgba(238, 214, 75, .7); text-underline-offset: 3px; }
.contact__map { border: 1.5px solid rgba(246, 243, 234, .35); border-radius: var(--r); padding: 1rem; text-decoration: none; display: flex; flex-direction: column; gap: .7rem; transition: border-color .3s; }
.contact__map:hover { border-color: var(--gold); }
.contact__map svg { flex: 1; width: 100%; }
.map__road { fill: none; stroke: var(--ivory); stroke-width: 9; stroke-linecap: round; opacity: .9; }
.map__road--thin { stroke-width: 3; opacity: .45; }
.map__pin { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.map__label { fill: var(--ivory); font: 500 11px var(--f-mono); }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--ivory); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.foot__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(246, 243, 234, .3); padding-bottom: .8rem; position: relative; }
.foot__total::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; border-bottom: 3px double rgba(246, 243, 234, .55); }
.foot__total .mono { color: var(--gold); }
.foot__total b { font: italic 500 clamp(3rem, 11vw, 10rem)/.9 var(--f-display); letter-spacing: -.03em; }
.foot__row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; margin-top: 3rem; }
.foot__row img { width: 150px; }
.foot__row p { margin: 0; color: rgba(246, 243, 234, .7); line-height: 1.7; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--gold); }
.foot__legal { margin: 2.5rem 0 0; color: rgba(246, 243, 234, .6); }
.credit { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 120; }
.chat__fab {
  display: flex; align-items: center; gap: .65rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--ivory); border: 0; box-shadow: 0 4px 0 var(--gold), 0 14px 30px -10px rgba(0, 15, 110, .6);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.chat__fab:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold), 0 18px 34px -10px rgba(0, 15, 110, .6); }
.chat__fab-m { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--ink); font: 600 1.35rem/1 var(--f-display); }
.chat__fab-t { font-weight: 600; font-size: .95rem; }
.chat.is-open .chat__fab { display: none; }
.is-menu .chat { display: none; }
.chat__panel {
  width: min(390px, calc(100vw - 2rem)); height: min(600px, calc(100svh - 2rem));
  display: flex; flex-direction: column; background: var(--sheet); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 8px 10px 0 var(--ink), 0 30px 60px -20px rgba(0, 15, 110, .5);
  transform-origin: bottom right; animation: chatIn .45s var(--ease);
}
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .9rem; background: var(--ink); color: var(--ivory); border-bottom: 3px solid var(--gold); }
.chat__title { margin: 0; font: italic 600 1.35rem/1.1 var(--f-display); }
.chat__sub { margin: .3rem 0 0; color: rgba(246, 243, 234, .7); font-size: .68rem; }
.chat__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(246, 243, 234, .4); background: none; color: var(--ivory); font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.chat__log {
  list-style: none; margin: 0; padding: 1rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(0, 24, 182, .07) 27px 28px);
  overscroll-behavior: contain;
}
.msg { max-width: 88%; font-size: .96rem; line-height: 1.5; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px 14px 14px 14px; padding: .7rem .85rem; }
.msg--bot::before { content: "MAWA"; display: block; font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; color: var(--royal); margin-bottom: .35rem; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--ivory); border-radius: 14px 4px 14px 14px; padding: .6rem .85rem; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.msg__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.msg__actions a { font: 600 .82rem/1 var(--f-text); text-decoration: none; padding: .55rem .75rem; border-radius: 999px; background: var(--gold); color: var(--ink); }
.msg__actions a.alt { background: none; border: 1px solid var(--ink); }
.msg--typing { display: flex; gap: 4px; }
.msg--typing::before { display: none; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--royal); animation: dot 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; transform: translateY(-3px); } }
.chat__chips { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 1rem; border-top: 1px dashed var(--rule-strong); scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex: none; font: 500 .82rem/1 var(--f-text); padding: .55rem .75rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--sheet); cursor: pointer; }
.chat__chips button:hover { background: var(--gold); border-color: var(--gold); }
.chat__form { display: flex; gap: .5rem; padding: .7rem; border-top: 1.5px solid var(--ink); }
.chat__form input { flex: 1; min-width: 0; font: 400 1rem var(--f-text); padding: .75rem .9rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.chat__form input:focus { outline: 2px solid var(--royal); outline-offset: 0; }
.chat__form button { width: 48px; border-radius: 10px; border: 0; background: var(--ink); color: var(--gold); font-size: 1.2rem; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 1.1rem; }
  .acct__tag { display: none; }
  .acct__row { grid-template-columns: 4.5rem 1fr 2.6rem; }
  .acct__body { padding-left: 5.9rem; padding-right: 0; grid-template-columns: 1fr; gap: 1rem; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__map { grid-column: 1 / -1; min-height: 220px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7.5rem; }
  .ledger { max-width: 560px; width: 100%; margin: 1rem auto 2rem; }
  .bars { left: -.6rem; }
  .due { grid-template-columns: 1fr; }
  .due__sheet { transform: none; }
  .foot__row { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .nav__logo img { width: 104px; }
  .hero__ctas .btn { width: 100%; }
  .ledger__col { padding: .5rem .5rem 0; }
  .ledger__col li { font-size: .84rem; white-space: normal; line-height: 1.25; padding-block: .55rem; }
  .ledger__head span:last-child { display: none; }
  .ledger__foot { grid-template-columns: 1fr 1fr; }
  .ledger__diff { grid-column: 1 / -1; text-align: left; }
  .stamp { bottom: -1.4rem; right: -2%; }
  .bars i:nth-child(1) { height: 110px; } .bars i:nth-child(2) { height: 90px; } .bars i:nth-child(3) { height: 66px; }
  .bars i { width: 10px; }
  .acct__row { grid-template-columns: 3.3rem 1fr 2.4rem; gap: .7rem; padding: 1.1rem 0; }
  .acct__body { padding-left: 0; }
  .steps__list { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:nth-child(3) { padding: 1.4rem 0; border-right: 0; border-top: 1px solid var(--rule-strong); }
  .step:first-child { border-top: 0; }
  .note summary { grid-template-columns: 1fr 1.6rem; gap: .3rem 1rem; }
  .note summary .mono { grid-column: 1 / -1; }
  .note p { margin-left: 0; }
  .due__row { grid-template-columns: 3.4rem 1fr; }
  .due__left { grid-column: 2; justify-self: start; }
  .contact__grid { grid-template-columns: 1fr; }
  .chat__fab-t { display: none; }
  .chat__fab { padding: .45rem; }
  .chat__panel { height: min(560px, calc(100svh - 1.5rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::after { display: none; }
}
