/* Portal del cliente «Mi lote» — mismo lenguaje visual que la web: blanco, Inter, verde de la marca. */
:root {
  --bg: #f3f8f5; --surface: #fff; --ink: #10241c; --muted: #59655f; --line: rgb(0 0 0 / .07);
  --green: #00563f; --green-deep: #003d2b; --lime: #d4a017;
  --grad: linear-gradient(135deg, #ffc83d 0%, #d4a017 55%, #b8860b 100%);
  --grad-deep: linear-gradient(135deg, #00563f, #00251c);
  --danger: #c2353a; --warn: #b26b00;
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -24px rgb(0 37 28 / .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, -apple-system, "SF Pro Text", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
:focus-visible { outline: 3px solid rgb(212 160 23 / .45); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo { display: block; height: auto; overflow: visible; }

.pt-boot { min-height: 100vh; display: grid; place-items: center; }
.pt-boot span { width: 12px; height: 12px; border-radius: 50%; background: #d4a017; animation: pt-pulse 1s infinite ease-in-out; }
@keyframes pt-pulse { 50% { transform: scale(1.6); opacity: .4; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 980px; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform 160ms, box-shadow 160ms, background 160ms; }
.btn--primary { color: #00251c; background: var(--grad); box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 10px 22px -12px rgb(212 160 23 / .8); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { color: var(--ink); background: rgb(0 0 0 / .05); }
.btn--ghost:hover { background: rgb(0 0 0 / .08); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn--block { width: 100%; }

/* ── Acceso ── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login__art { position: relative; overflow: hidden; background: #f3f8f5 url("/assets/img/hero-aerea.webp") 50% 30% / cover no-repeat; }
.login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .1) 0%, rgb(0 30 22 / .1) 45%, rgb(0 30 22 / .72) 100%); }
.login__quote { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(28px, 5vw, 60px); z-index: 1; color: #fff; }
.login__quote strong { display: block; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.login__quote span { display: block; margin-top: 10px; color: rgb(255 255 255 / .85); max-width: 40ch; }
.login__side { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px); }
.login__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.login__top .logo--h { width: 140px; color: var(--ink); }
.login__back { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.login__back:hover { color: var(--ink); }
.login__form { width: min(400px, 100%); margin: auto; display: grid; gap: 18px; padding: 32px 0; }
.login__eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 12px; border-radius: 980px; font-size: 12.5px; font-weight: 600; color: var(--green-deep); background: rgb(255 200 61 / .2); }
.login__eyebrow svg { width: 14px; height: 14px; }
.login h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); }
.login__lead { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .textarea, .select { width: 100%; border: 0; border-radius: 14px; padding: 13px 16px; background: #f2f3f0; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 160ms, background 160ms; }
.input:focus, .textarea:focus, .select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px #00563f; }
.input--code { font-size: 20px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300563f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.alert { padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.alert--error { color: #8a1c20; background: #fdecec; }
.alert--ok { color: #003d2b; background: rgb(255 200 61 / .2); }
.login__help { font-size: 13.5px; color: var(--muted); }
.login__foot { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login__art { min-height: 220px; }
  .login__quote strong { font-size: 1.5rem; }
  .login__form { padding: 24px 0 8px; }
}

/* ── Panel del propietario ── */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border-bottom: 1px solid var(--line); }
.top__in { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.top .logo--h { width: 128px; color: var(--ink); }
.top__tag { padding: 3px 10px; border-radius: 980px; font-size: 11.5px; font-weight: 700; color: #00251c; background: var(--grad); }
.top__sp { flex: 1; }
.top__out { min-height: 38px; padding: 0 16px; font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; display: grid; gap: 22px; }
.hello h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.hello p { color: var(--muted); margin-top: 6px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); }
.card h2 { font-size: 1.15rem; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head small { color: var(--muted); }

.lot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; padding: 0; overflow: hidden; }
.lot__main { padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.lot__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-weight: 500; }
.lot__name strong { color: var(--ink); }
.lot h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.035em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 980px; font-size: 12px; font-weight: 700; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { color: #00563f; background: rgb(255 200 61 / .22); }
.chip--warn { color: var(--warn); background: #fff3df; }
.chip--bad { color: var(--danger); background: #fdecec; }
.chip--info { color: #1d5fb8; background: #e8f0fd; }
.bar { height: 12px; border-radius: 99px; background: #f1f7f3; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 900ms cubic-bezier(.22, 1, .36, 1); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nums div { display: grid; gap: 2px; }
.nums small { color: var(--muted); font-size: 12.5px; }
.nums strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.lot__next { position: relative; padding: clamp(22px, 3vw, 32px); color: #fff; background: radial-gradient(90% 80% at 20% 0%, #00563f 0%, #003d2b 55%, #00251c 100%); display: grid; gap: 10px; align-content: center; }
.lot__next small { color: rgb(255 255 255 / .75); font-weight: 600; }
.lot__next .amt { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.lot__next .due { color: rgb(255 255 255 / .9); }
.lot__next .warn { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .12); font-size: 13.5px; }
.lot__next .done { font-size: 1.4rem; font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: st; }
.steps li { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13px; color: var(--muted); }
.steps li::before { counter-increment: st; content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #f1f7f3; color: var(--muted); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; border-radius: 3px; background: #f1f7f3; }
.steps li:last-child::after { display: none; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "✓"; color: #00251c; background: var(--grad); }
.steps li.is-done::after { background: #d4a017; }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps li.is-current::before { color: #fff; background: var(--grad-deep); box-shadow: 0 0 0 5px rgb(255 200 61 / .3); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 8px; }
.tbl td { padding: 11px 10px; border-top: 1px solid var(--line); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.is-next td { background: rgb(255 200 61 / .1); }
.more { margin-top: 12px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.docs li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 14px; }
.docs i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #f1f7f3; color: var(--muted); }
.docs li.is-done i { color: #00251c; background: var(--grad); }
.docs li:not(.is-done) { color: var(--muted); }
.pays { list-style: none; margin: 0; padding: 0; display: grid; }
.pays li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pays li:first-child { border-top: 0; }
.pays small { color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.req { display: grid; gap: 12px; }
.req__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reqs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.reqs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.reqs small { display: block; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .lot { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 34px 1fr; justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 6px 0; }
  .steps li::after { left: 16px; right: auto; top: 40px; width: 3px; height: calc(100% - 28px); }
  .nums { grid-template-columns: 1fr 1fr; }
  .req__row { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  .tbl td { border: 0; padding: 0; }
  .tbl td:nth-child(1) { grid-row: span 2; font-weight: 700; color: var(--muted); }
  .tbl td:nth-child(4) { grid-column: 2 / 4; }
  .top__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bar > i { transition: none; } .pt-boot span { animation: none; } }
