/* Ajuste Alquiler: brand tokens */
:root {
  --ink: #17212b;
  --muted: #55606b;
  --paper: #faf7f1;
  --surface: #ffffff;
  --line: #e2dccf;
  --brand: #0f5c4d;
  --brand-ink: #0a4237;
  --brand-tint: #e6f0ec;
  --amber: #f2b43c;
  --amber-tint: #fdf3dc;
  --danger: #a3301f;
  --ok: #1e6b3a;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--font); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
.h3 { font-size: 21px; margin-top: 28px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.head-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.head-nav a { text-decoration: none; color: var(--muted); font-size: 16px; font-weight: 600; }
.head-nav a:hover { color: var(--brand); }

/* hero + calculator */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } .hero { padding: 64px 0; } }
.lead { font-size: 20px; color: var(--muted); }
.fresh { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; color: var(--brand-ink); background: var(--brand-tint); border-radius: 999px; padding: 6px 14px; }
.fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(23,33,43,.04), 0 8px 24px rgba(23,33,43,.06); min-width: 0; }
@media (min-width: 600px) { .card { padding: 28px; } }
.field { margin-bottom: 16px; min-width: 0; }
label, .label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
input, select { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--surface); border: 1.5px solid #cfc8b9; border-radius: 10px; padding: 12px 14px; min-height: 50px; min-width: 0; }
input:focus, select:focus { outline: 3px solid rgba(15,92,77,.25); border-color: var(--brand); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.money { display: flex; align-items: center; border: 1.5px solid #cfc8b9; border-radius: 10px; background: var(--surface); }
.money:focus-within { outline: 3px solid rgba(15,92,77,.25); border-color: var(--brand); }
.money span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; }
.money.suffix span { padding: 0 14px 0 4px; }
.money input { border: 0; outline: 0; min-height: 47px; }
.money.suffix input { padding-left: 14px; }
.hint { font-size: 16px; color: var(--muted); margin: 6px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 480px) { .row2 { grid-template-columns: 1fr 1fr; } }
.adv { margin: 4px 0 18px; }
.adv summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 16px; padding: 4px 0; }
.adv[open] summary { margin-bottom: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; margin: 4px 0 16px; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-weight: 700; font-size: 18px; border-radius: 12px; padding: 14px 22px; min-height: 54px; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; width: 100%; }
.btn.primary:hover { background: var(--brand-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); }
.btn[disabled] { opacity: .6; cursor: wait; }
.form-error { color: var(--danger); background: #fbeae6; border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.form-ok { color: var(--ok); background: #e6f3ea; border-radius: 10px; padding: 12px 14px; font-size: 17px; font-weight: 600; }

/* result: the receipt-ticket motif */
.result-wrap { padding: 8px 0 48px; }
.ticket { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: 0 1px 2px rgba(23,33,43,.05), 0 12px 32px rgba(23,33,43,.08); max-width: 760px;
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 26px 100% repeat-x;
          mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 26px 100% repeat-x; padding-bottom: 34px; }
.ticket-main { border-bottom: 2px dashed var(--line); padding-bottom: 18px; margin-bottom: 16px; }
.eyebrow { font-size: 16px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.big { font-size: clamp(40px, 9vw, 60px); font-weight: 800; line-height: 1.05; margin: 0 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.delta { display: inline-block; background: var(--amber-tint); color: #6b4a00; font-weight: 700; border-radius: 999px; padding: 4px 14px; margin: 0; }
.ticket-rows { display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin: 0; }
@media (min-width: 600px) { .ticket-rows { grid-template-columns: max-content 1fr; } }
.ticket-rows dt { color: var(--muted); font-size: 16px; }
.ticket-rows dd { margin: 0 0 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 600px) { .ticket-rows dd { margin: 0; } }
.notes p { background: var(--amber-tint); border-radius: 10px; padding: 10px 14px; font-size: 16px; margin: 14px 0 0; }
.notes .pending { background: var(--brand-tint); }
.notes button { margin-top: 10px; }

/* projection stepper */
.steps { list-style: none; padding: 0; margin: 8px 0 8px; display: grid; gap: 0; max-width: 760px; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.steps li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid var(--brand-tint); margin-top: 3px; }
.dot.est { background: var(--surface); border: 3px dashed var(--muted); }
.dot.past { background: #b8b1a3; border-color: #ece7dd; }
.step-body { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-width: 0; }
.step-date { font-weight: 600; }
.step-amt { font-variant-numeric: tabular-nums; font-weight: 700; }
.step-tag { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.step-tag.now { color: var(--brand); }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; max-width: 760px; }
.next-actions .btn { flex: 1 1 260px; width: auto; }

/* sections */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.aviso { padding: 48px 0; }
.two { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.band .card { box-shadow: none; background: var(--paper); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.contract-sum { background: var(--brand-tint); border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 2px; margin: 0 0 16px; min-width: 0; }
.opt legend { font-size: 16px; font-weight: 700; color: var(--muted); padding: 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.radios label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.radios input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.faq { padding: 48px 0 56px; background: var(--surface); border-top: 1px solid var(--line); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq details p { margin: 0 0 14px; }

.site-foot { background: var(--ink); color: #d9dee3; padding: 32px 0 40px; font-size: 16px; }
.site-foot a { color: #fff; }
.site-foot p { margin-bottom: .6em; }

/* simple content pages */
.page { padding: 40px 0 56px; }
.page h2 { font-size: 24px; margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }

/* print: only the receipt */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; font-size: 12pt; }
  body > *:not(#printReceipt) { display: none !important; }
  #printReceipt { display: block !important; }
}
.rcpt { color: #000; font-family: var(--font); }
.rcpt-box { border: 1.5px solid #000; border-radius: 6px; padding: 18px 22px; }
.rcpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
.rcpt-head h1 { font-size: 20pt; margin: 0; }
.rcpt-num { text-align: right; font-size: 12pt; }
.rcpt table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rcpt td { padding: 6px 0; border-bottom: 1px solid #ccc; }
.rcpt td.amt { text-align: right; font-variant-numeric: tabular-nums; }
.rcpt tr.total td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid #000; font-size: 13pt; }
.rcpt .line { margin: 4px 0; }
.rcpt .adj { font-size: 10pt; color: #333; margin-top: 10px; }
.rcpt .sign { margin-top: 48px; display: flex; justify-content: flex-end; }
.rcpt .sign div { border-top: 1px solid #000; padding-top: 4px; width: 60%; text-align: center; font-size: 10pt; }
.rcpt .foot { font-size: 8.5pt; color: #555; margin-top: 18px; }
