/* =========================================================
   Mauro José Mendoza · Abogado en Salta
   Sistema visual: papel, tinta y la guarda del poncho salteño.
   ========================================================= */

:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --paper-3: #e2d7c3;
  --ink: #1b1714;
  --ink-2: #3f3832;
  --muted: #655b51;
  --rule: #d6cab6;
  --red: #8c1c22;
  --red-dark: #6c1318;
  --red-soft: #f1dcd6;
  --wa: #1d8a4b;
  --wa-dark: #166d3b;
  --night: #1b1714;
  --night-2: #120f0d;
  --on-night: #f5f0e6;
  --field: #fffdf8;

  color-scheme: light dark;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Guarda de poncho salteño ---------- */
.guarda {
  height: 12px;
  background:
    linear-gradient(to bottom,
      var(--red) 0 58%,
      var(--paper) 58% 70%,
      var(--ink) 70% 100%);
}
.guarda--thin { height: 7px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--red);
}

p { text-wrap: pretty; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}

.section-mark {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); }

.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--paper-2); }

.text-link {
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}
/* Logo Del Valle Asesoría: se pinta con el color de texto del tema */
.brand__logo {
  flex: none;
  display: block;
  width: 136px;
  aspect-ratio: 720 / 170;
  background: var(--ink);
  -webkit-mask: url("img/logo-del-valle-mask.png") center / contain no-repeat;
  mask: url("img/logo-del-valle-mask.png") center / contain no-repeat;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.menu a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.menu a:not(.btn):hover::after,
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu .btn { min-height: 42px; padding: 10px 16px; font-size: 0.92rem; color: #fff; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before,
.menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 450;
  margin: 0 0 28px;
  letter-spacing: -0.025em;
}
.hero h1 .kicker {
  display: flex;
  font-family: var(--sans);
  line-height: 1.4;
  margin-bottom: 22px;
}
.hero__title { display: block; }
.hero h1 em { font-weight: 400; }
.hero .lead { max-width: 36ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__facts {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

.portrait {
  position: relative;
  margin: 0;
}
.portrait__frame {
  position: relative;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait { isolation: isolate; }
.portrait::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--red);
  z-index: -1;
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.portrait figcaption strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--night); color: var(--on-night); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.section-head p { color: var(--ink-2); max-width: 52ch; }

/* ---------- Cláusulas (sin letra chica) ---------- */
.clauses {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.clause {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.clause__n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.1rem;
}
.clause h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.clause p { color: var(--ink-2); }

/* ---------- Índice de áreas ---------- */
.areas {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.area {
  border-bottom: 1px solid var(--rule);
}
.area > a,
.area > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr) 48px;
  gap: 12px 32px;
  align-items: center;
  padding: 30px 12px;
  text-decoration: none;
  transition: background-color .25s;
}
.area > a:hover { background: var(--paper-2); }
.area__n {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--red);
}
.area h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 450;
}
.area p { color: var(--ink-2); font-size: 0.98rem; }
.area__go {
  justify-self: end;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .25s, color .25s, transform .25s;
}
.area__go svg { width: 18px; height: 18px; }
.area > a:hover .area__go {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  transform: translateX(4px);
}
.area--plain .area__go { visibility: hidden; }

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  counter-reset: step;
}
.step {
  counter-increment: step;
  border-top: 1.5px solid currentColor;
  padding-top: 22px;
}
.step::before {
  content: counter(step, upper-roman) ".";
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--red);
  margin-bottom: 18px;
}
.section--ink .step::before { color: #e48a80; }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { opacity: .82; }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq__a {
  padding: 0 0 26px;
  max-width: 70ch;
  color: var(--ink-2);
}
.faq__a p + p { margin-top: 12px; }

/* ---------- Contacto / armador de mensaje ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact h2 em { color: #e48a80; }
.contact .lead { color: color-mix(in srgb, var(--on-night) 80%, transparent); margin-top: 22px; }

.contact-data {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  border-top: 1px solid color-mix(in srgb, var(--on-night) 25%, transparent);
}
.contact-data li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-night) 25%, transparent);
}
.contact-data span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .7;
  padding-top: 3px;
}
.contact-data a { text-decoration: none; font-weight: 600; }
.contact-data a:hover { text-decoration: underline; text-underline-offset: 4px; }

.composer {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.composer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(to bottom, var(--red) 0 58%, var(--paper) 58% 70%, var(--ink) 70% 100%);
}
.composer h3 { font-size: 1.6rem; margin-bottom: 6px; }
.composer > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.composer fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.composer legend,
.composer label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.composer .chip {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
  user-select: none;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.field { margin-bottom: 20px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--field);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.composer .btn { width: 100%; }
.composer__note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night-2);
  color: color-mix(in srgb, var(--on-night) 78%, transparent);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 64px 40px;
}
.site-footer .brand__logo { width: 190px; background: var(--on-night); margin-bottom: 20px; }
.site-footer .brand__name { color: var(--on-night); font-size: 1.3rem; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  position: relative;
  padding-block: 24px 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--on-night) 58%, transparent);
}
.footer-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent);
}
.footer-legal p { max-width: 70ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(27, 23, 20, .28);
  transition: transform .2s, background-color .2s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* =========================================================
   Páginas de área de práctica
   ========================================================= */
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 28px;
}
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

.page-hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  font-weight: 450;
  margin: 20px 0 24px;
  max-width: 16ch;
}
.page-hero .lead { max-width: 58ch; }
.page-hero .hero__actions { margin-top: 32px; }

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 88px);
  align-items: start;
}
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin: 64px 0 18px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 32px 0 10px; }
.prose p,
.prose ul,
.prose ol { margin-bottom: 18px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }

.note {
  border-left: 3px solid var(--red);
  background: var(--paper-2);
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--ink-2);
}
.note strong { display: block; color: var(--ink); margin-bottom: 4px; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li {
  position: relative;
  padding-left: 34px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 6px; height: 11px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.timeline { list-style: none; padding-left: 0 !important; counter-reset: t; }
.timeline li {
  counter-increment: t;
  position: relative;
  padding: 0 0 22px 56px;
  border-left: 1.5px solid var(--rule);
  margin-left: 18px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: counter(t);
  position: absolute;
  left: -19px; top: -4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  display: grid;
  place-items: center;
}
.timeline li + li { margin-top: 0; }

.aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 24px;
}
.aside-card {
  border: 1.5px solid var(--ink);
  padding: 26px;
  background: var(--paper);
}
.aside-card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.aside-card p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-toc h2,
.aside-areas h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.aside-toc ol,
.aside-areas ul { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.aside-toc li,
.aside-areas li { border-bottom: 1px solid var(--rule); }
.aside-toc a,
.aside-areas a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.95rem;
}
.aside-toc a:hover,
.aside-areas a:hover { color: var(--red); }

.cta-band {
  background: var(--red);
  color: var(--paper);
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.cta-band p { opacity: .85; margin-top: 10px; max-width: 52ch; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: 80px; }
.notfound h1 { font-size: clamp(2.6rem, 7vw, 5rem); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .portrait { max-width: 420px; }
  .section-head,
  .contact,
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .clause { grid-template-columns: 1fr; gap: 8px; }
  .area > a,
  .area > div { grid-template-columns: 52px minmax(0, 1fr) 44px; }
  .area p { grid-column: 2 / 3; grid-row: 2; }
  .area__go { grid-column: 3; grid-row: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px rgba(27, 23, 20, .12);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; border-bottom: 0; min-height: 50px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand { gap: 12px; }
  .brand__logo { width: 116px; }
  .brand__text { padding-left: 12px; }
  .brand__name { font-size: 0.98rem; }
  .brand__role { font-size: 0.66rem; }
  .hero__actions .btn { width: 100%; }
  .portrait::before { top: 10px; left: 10px; width: calc(100% - 4px); }
  .area > a,
  .area > div { grid-template-columns: 40px minmax(0, 1fr); padding-inline: 0; }
  .area__go { display: none; }
  .contact-data li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 440px) {
  .site-header .brand__text { display: none; }
  .site-header .brand__logo { width: 132px; }
}

@media (forced-colors: active) {
  .brand__logo { forced-color-adjust: none; background: CanvasText; }
}

/* ---------- Tema oscuro: noche salteña ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16120f;
    --paper-2: #1f1a16;
    --paper-3: #2a231e;
    --ink: #efe7da;
    --ink-2: #cdc2b3;
    --muted: #a69a8c;
    --rule: #3a312a;
    --red: #d8665c;
    --red-dark: #b94a41;
    --night: #0c0a08;
    --night-2: #0a0807;
    --field: #1f1a16;
  }
  .composer { border: 1px solid var(--rule); }
  .portrait__frame img { filter: brightness(.94); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .wa-float, .composer, .menu-btn { display: none !important; }
  body { background: #fff; }
}
