/* ============================================================
   MiLiquidación — design system
   Paleta inspirada en la bandera argentina, tono institucional
   ============================================================ */
:root {
  --celeste: #75AADB;
  --celeste-50: #EAF3FB;
  --celeste-100: #D4E6F4;
  --azul: #1B365D;
  --azul-700: #0F2747;
  --sol: #F4B400;
  --verde: #1F8A5B;
  --rojo: #C0392B;
  --warn: #B7791F;

  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --border: #E1E7EF;
  --text: #1F2937;
  --muted: #6B7280;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 71, 0.04);
  --shadow: 0 4px 12px rgba(15, 39, 71, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 39, 71, 0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--azul); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.xsmall { font-size: .8rem; }
.center { text-align: center; }
.center-block { text-align: center; padding: 4rem 0; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 720px; }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul);
  text-decoration: none;
}
.logo-tld { color: var(--celeste); font-weight: 600; }
.topnav { display: flex; gap: 1.5rem; }
.topnav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
@media (max-width: 640px) { .topnav { display: none; } }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(117, 170, 219, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 920px) {
  .hero { padding: 2rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hero-copy .kicker {
  display: inline-block;
  background: var(--celeste-100);
  color: var(--azul-700);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-copy .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero-bullets { list-style: none; padding: 0; margin: 0; }
.hero-bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--verde);
  font-weight: 700;
}

.lawyer-endorsement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--celeste);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lawyer-endorsement img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--celeste-100);
  background: var(--celeste-50);
}
.lawyer-endorsement figcaption { display: flex; flex-direction: column; gap: .15rem; }
.lawyer-endorsement .end-kicker {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--celeste);
}
.lawyer-endorsement .end-name { font-weight: 600; margin: 0; color: var(--azul); font-size: .95rem; line-height: 1.3; }
.lawyer-endorsement .end-role { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.upload-card {
  position: sticky;
  top: 88px;
}
@media (max-width: 920px) { .upload-card { position: static; } }

/* ---------- FORM ---------- */
.field { display: block; margin-bottom: 1rem; }
.field-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: .35rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"] {
  width: 100%;
  padding: .65rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(117, 170, 219, 0.25);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--rojo); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.checkbox {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
  margin: .5rem 0 1rem;
}
.checkbox input { margin-top: .2rem; }

/* ---------- DROPZONE ---------- */
.dropzone {
  border: 2px dashed var(--celeste);
  background: var(--celeste-50);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragover {
  background: var(--celeste-100);
  border-color: var(--azul);
  outline: none;
}
.dz-content svg { color: var(--azul); margin-bottom: .5rem; }
.dz-content p { margin: .25rem 0; }
.dropzone.has-file { background: #E8F5EE; border-color: var(--verde); border-style: solid; }
.dropzone.has-file .dz-content svg { color: var(--verde); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 39, 71, 0.20);
}
.btn-primary:hover { background: var(--azul-700); }
.btn-primary:disabled { background: #94A3B8; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--azul);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--celeste-50); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- LOADER ---------- */
.loader {
  width: 56px;
  height: 56px;
  border: 4px solid var(--celeste-100);
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- STEPS / GRID ---------- */
.step { padding: 3rem 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.span-2 { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

/* ---------- CONCEPTOS TABLE ---------- */
.conceptos-table-wrap { overflow-x: auto; }
.conceptos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.conceptos-table th {
  text-align: left;
  font-weight: 600;
  color: var(--azul);
  border-bottom: 2px solid var(--border);
  padding: .5rem .75rem;
  background: var(--celeste-50);
}
.conceptos-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
}
.conceptos-table .num { text-align: right; }
.conceptos-table input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  padding: .25rem;
  border-radius: 4px;
}
.conceptos-table input:focus {
  outline: none;
  background: var(--celeste-50);
}

/* ---------- HALLAZGOS ---------- */
.analisis-card { background: linear-gradient(180deg, #FFFDF7 0%, var(--surface) 60%); }
.hallazgo {
  border-left: 4px solid var(--warn);
  background: #FFFAF0;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.hallazgo.alta { border-left-color: var(--rojo); background: #FDF2F1; }
.hallazgo.ok { border-left-color: var(--verde); background: #F0FAF4; }
.hallazgo h4 {
  margin: 0 0 .25rem;
  font-size: .95rem;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hallazgo .badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hallazgo.alta .badge { background: var(--rojo); }
.hallazgo.ok .badge { background: var(--verde); }
.hallazgo p { margin: 0; font-size: .9rem; color: var(--text); }
.hallazgo .ref { font-size: .8rem; color: var(--muted); margin-top: .35rem; display: block; }

.disclaimer {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--celeste-50);
  border: 1px solid var(--celeste-100);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--azul-700);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

.success-icon { margin-bottom: 1rem; }

/* ---------- INFO SECTIONS ---------- */
.info { padding: 4rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.info + .info { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--celeste);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: .75rem;
}

.estudio-section h2 { color: var(--azul); }

/* ---------- PEOPLE / TRABAJADORES ---------- */
.people {
  padding: 4rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.people-intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .people-grid { grid-template-columns: 1fr; } }

.person-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.person-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--celeste-50);
}
.person-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.person-card h3 { margin: 0; font-size: 1.05rem; }
.person-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.person-card .role {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--celeste);
}

/* ---------- LEGAL PAGES ---------- */
.legal {
  padding: 3rem 0 4rem;
  background: var(--surface);
}
.legal h1 {
  margin-bottom: .35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.legal h2 {
  margin-top: 2.25rem;
  margin-bottom: .75rem;
  font-size: 1.15rem;
  color: var(--azul);
  border-bottom: 1px solid var(--border);
  padding-bottom: .35rem;
}
.legal p, .legal ul { color: var(--text); font-size: .98rem; }
.legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .35rem; }
.legal .back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--azul-700);
  color: #BDD3E8;
  padding: 2rem 0;
  font-size: .85rem;
}
footer .muted { color: #8FA8C2; }
footer a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
footer a:hover {
  text-decoration-color: #FFFFFF;
}
.footer-inner { text-align: center; }
.footer-inner p { margin: .25rem 0; }
