/* Causa Penal — production styles (oxblood palette) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --display-font: "Instrument Serif", serif;
  --sans-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono-font: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1320px;
  --pad: clamp(24px, 4vw, 64px);

  --bg: #F2EEE6;
  --ink: #14110D;
  --muted: #6B6760;
  --line: #D9D2C2;
  --accent: #6B1414;
  --accent-ink: #FBF8F1;
}

body {
  font-family: var(--sans-font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }

.serif-display {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.mono-label {
  font-family: var(--mono-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* NAV ---------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 230, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--display-font);
  font-size: 18px; font-style: italic;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display-font); font-size: 20px; }
.brand-tld {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { position: relative; }
.nav-links a:not(.nav-cta):hover { opacity: 0.6; }
.nav-cta {
  padding: 10px 18px;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
}

/* HERO --------------------------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--pad) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.hero-grid { display: flex; flex-direction: column; gap: 40px; max-width: 880px; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; }
.meta-row { display: flex; gap: 12px; align-items: center; }
.mono-tag {
  font-family: var(--mono-font);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-title { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-title .eyebrow {
  font-family: var(--mono-font);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 24px;
}
.title-line {
  font-family: var(--display-font);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.title-line.italic { font-style: italic; }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 640px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  font-family: var(--mono-font);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-primary .arrow { font-family: var(--sans-font); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 16px;
}
.stat { padding-right: 24px; }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat-n { font-family: var(--display-font); font-size: clamp(32px, 3.5vw, 44px); line-height: 1; }
.stat-l { font-family: var(--mono-font); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; line-height: 1.5; }

.hero-side {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end; gap: 32px;
  padding-top: 80px;
  color: var(--ink);
}
.seal {
  width: 240px; height: 240px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 8px;
}

/* DIVIDER ------------------------------ */
.divider {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

/* SECTIONS ----------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 140px) var(--pad);
}
.section-header {
  display: flex; align-items: baseline; gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0;
}
.section-intro {
  font-size: clamp(17px, 1.3vw, 20px);
  max-width: 720px;
  margin: -24px 0 56px;
  line-height: 1.55;
}

/* POSTURA ------------------------------ */
.postura-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.postura-statement h2 {
  font-size: clamp(44px, 5.5vw, 72px);
  margin: 0 0 24px;
}
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; max-width: 580px; font-weight: 300; }
.pull-quote {
  font-family: var(--display-font);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  margin: 0;
  padding-left: 32px;
  position: relative;
  font-style: normal;
}
.pull-quote .mark {
  position: absolute; left: 0; top: -12px;
  font-size: 72px; line-height: 1;
}
.pull-quote em { font-style: italic; }

.compromisos { padding-top: 8px; }
.compromisos > .mono-label { margin-bottom: 16px; display: block; }
.compromiso-list { list-style: none; padding: 0; margin: 0; }
.compromiso {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.compromiso:last-child { border-bottom: 1px solid var(--line); }
.compromiso-k { font-family: var(--display-font); font-size: 28px; font-style: italic; }
.compromiso-t { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.compromiso-d { font-size: 14px; line-height: 1.5; }

/* METODOLOGIA -------------------------- */
.method-list { list-style: none; padding: 0; margin: 0; }
.method-item {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.method-item:last-child { border-bottom: 1px solid var(--line); }
.method-n .roman { font-size: clamp(60px, 6vw, 88px); line-height: 1; font-style: italic; }
.method-t { font-family: var(--display-font); font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 12px; }
.method-d { font-size: 16px; line-height: 1.6; max-width: 580px; }
.method-meta { justify-self: end; }

/* DEUDORES BAND ------------------------ */
.deudores-band {
  padding: clamp(72px, 9vw, 120px) var(--pad);
  background: var(--ink);
  color: var(--bg);
  max-width: none;
}
.band-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.band-eyebrow { color: var(--muted); }
.band-title {
  font-size: clamp(44px, 5.5vw, 80px);
  margin: 16px 0 0;
}
.band-right p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  margin: 0 0 24px;
  font-weight: 300;
}
.band-list { list-style: none; padding: 0; margin: 0 0 36px; }
.band-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px; line-height: 1.55;
  display: flex; gap: 12px; align-items: baseline;
}
.band-list li > span:last-child { flex: 1; }
.bullet { font-family: var(--mono-font); flex-shrink: 0; }
.band-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono-font); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.band-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* CONTACTO ----------------------------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.contacto-aside h3 { font-size: clamp(36px, 4vw, 52px); margin: 0 0 16px; }
.contacto-aside p { font-size: 15px; line-height: 1.55; }
.contact-dl {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.dl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 12px 0;
  align-items: baseline;
}
.dl-row dt { margin: 0; }
.dl-row dd { margin: 0; font-size: 14px; font-weight: 500; }
.aside-note {
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed var(--line);
  line-height: 1.6;
  font-size: 10.5px;
}

.contacto-form-wrap {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 48px);
}

/* FORM --------------------------------- */
[hidden] { display: none !important; }
.form { display: flex; flex-direction: column; gap: 28px; }
.tipo-row { display: flex; flex-direction: column; gap: 10px; }
.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
}
.seg {
  padding: 12px 16px;
  font-family: var(--mono-font); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: none; background: transparent; color: var(--ink);
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.seg:hover { opacity: 0.85; }
.seg.active { background: var(--ink); color: var(--bg); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field-label { display: block; }
.req { color: var(--accent); }
.field-input {
  display: block;
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field-input input, .field-input textarea {
  width: 100%;
  border: 0; outline: 0; background: transparent;
  font-family: var(--sans-font); font-size: 15px; color: inherit;
  resize: vertical;
}
.field-input input::placeholder,
.field-input textarea::placeholder { opacity: 0.4; }
.field.has-err .field-label,
.field.has-err .field-label .req { color: var(--accent); }
.field.has-err .field-input {
  border-color: var(--accent);
  background: rgba(107, 20, 20, 0.04);
}
.field-err {
  font-size: 12px;
  font-family: var(--mono-font);
  letter-spacing: 0.04em;
  color: var(--accent);
  min-height: 0;
}
.field-err:empty { display: none; }

.form-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
}
.form-disclaimer { max-width: 380px; line-height: 1.6; font-size: 10.5px; }
.submit { border: none; background: var(--accent); color: var(--accent-ink); }

.form-success {
  border: 1px solid var(--line);
  padding: 48px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.form-success h3 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.form-success p strong { color: var(--ink); }

.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  background: rgba(107, 20, 20, 0.04);
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* FOOTER ------------------------------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--pad) 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 2fr;
  gap: 64px; align-items: start;
}
.footer-mark { font-size: clamp(48px, 6vw, 88px); line-height: 1; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fc-h {
  font-family: var(--sans-font);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}
.footer-base {
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

/* PROMISE BLOCK ------------------------ */
.promise {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-top: 4px;
  max-width: 640px;
}
.promise-tag { display: block; margin-bottom: 10px; }
.promise-text {
  font-family: var(--display-font);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0;
}
.promise-text em { font-style: italic; }

/* RESPONSIVE --------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  .hero-side { display: none; }
  .hero-grid { gap: 28px; }
  .hero-title .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .title-line { font-size: clamp(48px, 13vw, 84px); }
  .hero-sub { font-size: 16px; }
  .promise-text { font-size: clamp(20px, 5.5vw, 28px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: space-between; padding: 18px 20px; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .stat {
    padding: 18px 0;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: 0; }
  .postura-grid, .band-grid, .contacto-grid, .footer-inner {
    grid-template-columns: 1fr; gap: 40px;
  }
  .postura-statement h2 { font-size: 38px; }
  .pull-quote { font-size: 22px; padding-left: 24px; }
  .pull-quote .mark { font-size: 56px; top: -8px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-header {
    margin-bottom: 32px; padding-bottom: 16px;
    gap: 12px; flex-direction: column; align-items: flex-start;
  }
  .section-title { font-size: 32px; }
  .section-intro { font-size: 16px; margin-bottom: 32px; }
  .method-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
  .method-n .roman { font-size: 48px; }
  .method-t { font-size: 22px; }
  .method-d { font-size: 15px; }
  .method-meta { grid-column: 2; justify-self: start; margin-top: 8px; }
  .band-title { font-size: 40px; }
  .deudores-band { padding-top: 56px; padding-bottom: 56px; }
  .band-list li { font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .contacto-form-wrap { padding: 24px; }
  .form-success { padding: 28px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .submit { width: 100%; justify-content: space-between; }
  .seg { padding: 12px 10px; font-size: 10px; letter-spacing: 0.1em; }
  .nav-inner { padding: 14px var(--pad); }
  .brand-tld { display: none; }
}
@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 10px; }
}
