.hoja::before{   content:"";position:absolute;inset:0;z-index:-2;transform:rotate(-.5deg);
  background-color:#F4E2D6;
  background-image:
    radial-gradient(70% 60% at 18% 40%, rgba(232,186,160,.55), transparent 70%),
    radial-gradient(50% 55% at 84% 70%, rgba(214,226,200,.6), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch' seed='3'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='1.1'%3E%3CfeDistantLight azimuth='120' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .3 -.7 0 0 0 .78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-size:auto,auto,260px 260px;
  clip-path:polygon(0% 1.00%,2% 1.19%,4% 1.27%,6% 1.51%,8% 1.18%,10% 1.48%,12% 0.05%,14% 0.74%,16% 1.51%,18% 1.04%,20% 1.44%,22% 0.18%,24% 0.75%,26% 0.39%,28% 0.87%,30% 0.92%,32% 0.02%,34% 0.35%,36% 0.45%,38% 1.47%,40% 1.23%,42% 0.26%,44% 1.28%,46% 0.22%,48% 0.99%,50% 0.20%,52% 0.00%,54% 1.39%,56% 0.34%,58% 0.34%,60% 1.57%,62% 1.40%,64% 0.46%,66% 1.54%,68% 0.86%,70% 1.08%,72% 0.33%,74% 1.51%,76% 1.11%,78% 1.55%,80% 1.43%,82% 0.48%,84% 0.58%,86% 0.27%,88% 0.23%,90% 0.10%,92% 0.48%,94% 0.96%,96% 0.01%,98% 1.08%,100% 0.54%,99.85% 0%,99.59% 4%,99.76% 8%,99.84% 12%,99.76% 16%,99.65% 20%,99.97% 24%,99.51% 28%,99.99% 32%,99.63% 36%,99.58% 40%,99.99% 44%,99.61% 48%,99.82% 52%,99.71% 56%,100.00% 60%,99.98% 64%,99.91% 68%,99.52% 72%,99.90% 76%,99.62% 80%,99.54% 84%,99.53% 88%,99.83% 92%,99.82% 96%,99.74% 100%,100% 98.76%,98% 99.83%,96% 98.80%,94% 98.72%,92% 98.62%,90% 99.94%,88% 98.49%,86% 99.85%,84% 99.45%,82% 99.02%,80% 98.53%,78% 99.46%,76% 98.52%,74% 99.13%,72% 99.50%,70% 99.49%,68% 99.72%,66% 99.87%,64% 99.76%,62% 98.90%,60% 98.41%,58% 99.74%,56% 99.92%,54% 98.42%,52% 99.15%,50% 99.35%,48% 99.62%,46% 99.05%,44% 98.68%,42% 99.27%,40% 99.33%,38% 99.91%,36% 98.53%,34% 99.95%,32% 99.21%,30% 98.66%,28% 99.79%,26% 98.83%,24% 98.48%,22% 98.99%,20% 98.74%,18% 99.83%,16% 99.30%,14% 99.76%,12% 98.65%,10% 99.53%,8% 99.27%,6% 98.40%,4% 98.64%,2% 98.44%,0% 99.27%,0.24% 100%,0.36% 96%,0.24% 92%,0.15% 88%,0.20% 84%,0.07% 80%,0.19% 76%,0.49% 72%,0.48% 68%,0.31% 64%,0.25% 60%,0.17% 56%,0.04% 52%,0.14% 48%,0.39% 44%,0.43% 40%,0.18% 36%,0.39% 32%,0.39% 28%,0.35% 24%,0.33% 20%,0.38% 16%,0.18% 12%,0.35% 8%,0.14% 4%,0.24% 0%);
  filter:drop-shadow(0 18px 22px rgba(90,60,40,.25));
}
.hoja::after{   content:"";position:absolute;inset:14px 10px -12px 16px;z-index:-3;transform:rotate(-.5deg);background:rgba(80,60,50,.16);filter:blur(16px)
}
.calc-cab .franja{opacity:1}
.volver{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;font-size:.86rem;color:var(--tinta);padding-top:10px}
.volver svg{width:18px;height:18px;color:var(--acento)}
.volver:focus-visible{outline:2px dashed var(--acento);outline-offset:4px}
.hoja{position:relative;isolation:isolate;max-width:1120px;margin:clamp(34px,5vw,60px) auto clamp(40px,6vw,80px);padding:clamp(60px,7vw,96px) clamp(22px,5vw,72px) clamp(56px,6vw,84px)}
.hoja-cab{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:end}
.hoja-cab h1{font-family:var(--f-titulo);font-weight:800;letter-spacing:-.03em;color:#5A3D58;font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:1.02;margin-top:10px;text-wrap:balance}
.hoja-cab h1 .cursiva{font-family:var(--f-cursiva);font-style:italic;font-weight:400;color:#9A4F35;letter-spacing:-.005em}
.hoja-cab p{margin-top:14px;max-width:46ch;color:var(--tinta-suave);line-height:1.6}
.calc-llave{width:clamp(70px,9vw,110px);overflow:visible}
.calc-llave .tr{fill:none;stroke:#5A3D58;stroke-width:3.2;filter:url(#lapiz)}
.calc-llave .lavado{filter:url(#acuarela)}
.pestanas{display:flex;flex-wrap:wrap;gap:6px;margin-top:clamp(28px,4vw,44px);border-bottom:1.5px solid rgba(90,61,88,.35)}
.pestana{appearance:none;border:0;cursor:pointer;font:inherit;font-weight:700;font-size:.9rem;color:#7C5444;background:rgba(251,247,240,.55);padding:12px 18px 10px;border-radius:6px 6px 0 0;box-shadow:inset 0 0 0 1px rgba(90,61,88,.18);transform:translate3d(0,3px,0);transition:transform .25s var(--curva),background-color .25s}
.pestana small{display:block;font-family:"Caveat",cursive;font-weight:600;font-size:1rem;color:var(--acento);margin-bottom:1px}
.pestana[aria-selected="true"]{background:var(--papel);color:#5A3D58;transform:translate3d(0,1.5px,0);box-shadow:inset 0 0 0 1px rgba(90,61,88,.3),0 -4px 10px -6px rgba(90,60,40,.3)}
.pestana:focus-visible{outline:2px dashed var(--acento);outline-offset:2px}
.panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);background:rgba(251,247,240,.7);padding:clamp(22px,3.5vw,40px);box-shadow:inset 0 0 0 1px rgba(90,61,88,.12)}
.panel[hidden]{display:none}
.campo{display:block;margin-bottom:22px}
.campo > span{display:flex;justify-content:space-between;gap:10px;font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7A6E66;margin-bottom:8px}
.campo > span em{font-style:normal;letter-spacing:0;text-transform:none;font-size:.95rem;color:var(--acento);font-variant-numeric:tabular-nums}
.campo input[type=number],.campo select{width:100%;font:inherit;font-size:1.15rem;font-weight:600;color:#5A3D58;background:transparent;border:0;border-bottom:1.5px solid rgba(90,61,88,.45);padding:6px 2px 8px;border-radius:0;font-variant-numeric:tabular-nums}
.campo input[type=number]:focus,.campo select:focus{outline:none;border-bottom-color:var(--acento);box-shadow:0 2px 0 var(--acento)}
.campo input[type=range]{width:100%;accent-color:var(--acento);height:24px}
.campo .tope{display:flex;justify-content:space-between;font-size:.74rem;color:#9A8E86;margin-top:2px}
.aviso-mano{font-family:"Caveat",cursive;font-size:1.2rem;line-height:1.25;color:#9A4F35;transform:rotate(-1deg);margin-top:6px}
.recibo{position:relative;background:#FFFDF8;padding:26px 24px 22px;box-shadow:0 18px 28px -20px rgba(90,60,40,.5),0 1px 2px rgba(90,60,40,.15);transform:rotate(.6deg);align-self:start}
.recibo::after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:10px;background:radial-gradient(circle at 7px 0,transparent 6px,#FFFDF8 6.5px) 0 0/14px 10px repeat-x}
.recibo .rot{font-size:.7rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#7A6E66}
.recibo .grande{font-family:var(--f-titulo);font-weight:800;font-size:clamp(2rem,4vw,2.8rem);letter-spacing:-.02em;color:#5A3D58;margin-top:6px;font-variant-numeric:tabular-nums}
.recibo .chico{font-size:.88rem;color:var(--tinta-suave);margin-top:2px}
.dos{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lineas{list-style:none;margin-top:18px;border-top:1.5px dashed rgba(90,61,88,.3)}
.lineas li{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:end;padding:9px 0;font-size:.92rem;color:#6E5A4E}
.lineas li::after{content:"";order:2;border-bottom:1px dotted rgba(90,61,88,.35);margin-bottom:5px}
.lineas li b{order:3;font-weight:700;color:#5A3D58;font-variant-numeric:tabular-nums}
.lineas li.total{border-top:1.5px solid rgba(90,61,88,.4);margin-top:4px;font-weight:700;color:#5A3D58}
.lineas li.resta b{color:#A4553C}
.calc-barra{display:flex;height:10px;margin-top:18px;background:var(--rosa);border-radius:5px;overflow:hidden}
.calc-barra i{display:block;height:100%;background:var(--salvia);transition:width .4s var(--curva)}
.calc-ley{display:flex;gap:18px;margin-top:8px;font-size:.78rem;color:#7A6E66}
.calc-ley span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px;background:var(--c)}
.cierre-calc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 30px;margin-top:clamp(30px,4vw,44px)}
.cierre-calc p{max-width:48ch;font-size:.9rem;line-height:1.6;color:var(--tinta-suave)}
.hablar{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;color:#5A3D58;padding-bottom:6px;border-bottom:2px solid var(--acento)}
.hablar svg{width:20px;height:20px;color:var(--acento)}
@media (max-width:760px){
  .panel{grid-template-columns:1fr}
  .hoja-cab{grid-template-columns:1fr}
  .calc-llave{position:absolute;top:22px;right:22px;width:46px;transform:rotate(14deg)}
}
@media (max-width:560px){
  .hoja{margin:24px 10px 50px;padding:56px 18px 60px}
  .pestana{padding:10px 12px 8px;font-size:.82rem}
  .pestana small{display:none}
  .panel{padding:20px 16px}
  .recibo{padding:22px 18px 18px}
  .dos{grid-template-columns:1fr}
  .volver span{display:none}
}
