/* ─── Dr. Carlos Yulán · Estudio Jurídico ─────────────────────────── */

:root {
  --ink: #14180F;          /* fondo oscuro */
  --ink-2: #1E2418;
  --cream: #F1EBDF;        /* fondo claro */
  --cream-2: #F6F1E7;
  --sand: #E6D9C6;
  --gold: #D19A3C;
  --gold-light: #EBBB63;
  --rust: #A34C2B;
  --rust-light: #B85833;
  --green: #2C3A26;
  --green-border: #4A5F41;
  --text-dark: #211E17;
  --text-mid: #4A4335;
  --text-soft: #6B6355;
  --text-cream-soft: #9FA891;
  --line-dark: #CDBEA4;
  --serif: "Spectral", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); }
/* el header fijo no debe tapar el inicio de cada sección */
section[id], footer[id] { scroll-margin-top: 78px; }
.section-inner { max-width: 1000px; margin: 0 auto; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(20, 24, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 235, 223, 0.12);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 8px clamp(14px, 3vw, 18px);
  display: flex; align-items: center; gap: clamp(10px, 2vw, 16px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); flex: none; min-width: 0; }
.brand:hover { color: var(--cream); }
/* el archivo está recortado a su contenido: alturas chicas ya se leen bien */
.brand-logo { height: clamp(30px, 4.6vw, 38px); width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
.brand-role { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-cream-soft); white-space: nowrap; }

.main-nav { flex: 1; min-width: 0; display: flex; gap: 2px; justify-content: flex-end; }
.main-nav a {
  padding: 10px 11px; font-size: 13.5px; color: #D9D5C6;
  white-space: nowrap; border-radius: 2px; transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { color: var(--cream); background: rgba(241, 235, 223, 0.07); }

.btn-wa-header {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--cream);
  border: 1px solid var(--green-border);
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; border-radius: 999px;
  transition: background 0.2s; min-height: 40px;
}
.btn-wa-header:hover { background: #3A4C32; color: #FFF; }

/* Botón hamburguesa — sólo aparece cuando el menú colapsa */
.nav-toggle {
  display: none; flex: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid rgba(241, 235, 223, 0.22);
  border-radius: 2px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(209, 154, 60, 0.08); }
.nav-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav-bars span:nth-child(1) { top: 0; }
.nav-bars span:nth-child(2) { top: 6px; }
.nav-bars span:nth-child(3) { top: 12px; }
[data-nav-open] .nav-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
[data-nav-open] .nav-bars span:nth-child(2) { opacity: 0; }
[data-nav-open] .nav-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(10, 13, 8, 0.55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.25s ease;
}
.nav-scrim[hidden] { display: none; }
[data-nav-open] .nav-scrim { opacity: 1; }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; font-size: 16px; border-radius: 2px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--rust); color: #FFF6EC; font-weight: 600;
  box-shadow: 0 14px 30px -18px var(--rust);
}
.btn-primary:hover { background: var(--rust-light); color: #FFF; }
.btn-ghost { border: 1px solid rgba(241, 235, 223, 0.32); color: var(--cream); font-weight: 500; }
.btn-ghost:hover { border-color: var(--gold); color: var(--cream); background: rgba(209, 154, 60, 0.1); }
.btn-block { width: 100%; border: 0; font-family: inherit; cursor: pointer; min-height: 52px; }

/* ─── Kickers ─── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.kicker-line { width: 30px; height: 1px; background: var(--rust); display: inline-block; flex: none; }
/* en pantallas angostas las cuatro provincias no entran en una línea:
   ahí basta con nombrar la región, que la barra de abajo las detalla */
.kicker-corto { display: none; }
.kicker-dark { color: #8A6A48; }

/* ─── Hero ─── */
.hero {
  position: relative; padding: 118px 18px 0;
  background: radial-gradient(120% 90% at 80% 0%, #26301F 0%, #1A2015 42%, var(--ink) 100%);
  overflow: hidden;
}
/* marca de agua: el logotipo en grande, muy tenue, detrás del contenido.
   El parallax al hacer scroll lo agrega GSAP (ver initAnimations). */
.hero-watermark {
  position: absolute;
  top: 88px; right: -5%;
  width: min(620px, 82vw);
  aspect-ratio: 393 / 218;
  background: url("../assets/logo-claro.png") no-repeat center / contain;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero > *:not(.hero-watermark) { position: relative; z-index: 1; }
.hero-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(28px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  align-items: end; padding-bottom: clamp(40px, 6vw, 72px);
}
.hero h1 {
  margin: 0; font-weight: 800;
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--cream-2);
}
.hero .kicker { margin-bottom: 22px; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; white-space: nowrap; }
.line-mask .accent { color: var(--gold); font-style: italic; font-weight: 600; }
.hero-lead {
  margin: 26px 0 0; max-width: 46ch;
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.62;
  color: #CFCCBC; font-weight: 300;
}
.hero-actions { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 26px 0 0; font-size: 13.5px; color: var(--text-cream-soft); }

.hero-photo { position: relative; margin: 0; }
.photo-frame {
  position: absolute; inset: 14px -14px -40px 14px;
  border: 1px solid rgba(209, 154, 60, 0.42); pointer-events: none;
}
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 20%; background: var(--ink-2);
}
.hero-photo figcaption {
  margin: 18px 0 0; font-size: 12.5px; color: var(--text-cream-soft);
  font-style: italic; font-family: var(--serif);
}
.hero-regions {
  max-width: 1180px; margin: 0 auto;
  border-top: 1px solid rgba(241, 235, 223, 0.14);
  padding: 18px 0 20px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
}
.regions-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #7E8873; flex: none; }
.region-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px clamp(16px, 2.6vw, 30px);
}
.region { display: inline-flex; align-items: center; gap: 9px; }
.region-flag {
  flex: none; width: 30px; height: 20px;
  object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(241, 235, 223, 0.28);
  background: rgba(241, 235, 223, 0.06);
}
/* si la bandera no está disponible, queda sólo el nombre */
.region[data-sin-bandera] .region-flag { display: none; }
.region-name { font-family: var(--serif); font-size: clamp(16px, 2.4vw, 22px); color: #E7E1D2; }

/* ─── Manifiesto ─── */
.manifesto { background: var(--cream); color: var(--text-dark); padding: clamp(56px, 9vw, 104px) 18px; }
.manifesto-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.manifesto h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1;
  letter-spacing: -0.015em; color: #1B2016;
}
.manifesto h2 em { font-style: italic; color: var(--rust); }
.manifesto p { margin: 0 0 20px; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.68; color: var(--text-mid); }
.manifesto p:last-of-type { margin-bottom: 0; }
.tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid #C9BCA5; padding: 8px 14px; font-size: 13.5px; color: #4A4335; border-radius: 999px; }

.stats {
  max-width: 1180px; margin: clamp(48px, 7vw, 84px) auto 0;
  display: grid; gap: 2px; background: #DACDB6;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.stat { padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.stat-main {
  background: var(--rust); color: #FFF3E7;
  padding: clamp(28px, 4vw, 44px);
  justify-content: space-between; gap: 18px; min-height: 220px;
}
.stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 243, 231, 0.72); }
.stat-number {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(64px, 11vw, 108px); line-height: 0.85;
  display: block; letter-spacing: -0.03em;
}
.stat-unit { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.stat-main .stat-caption { font-size: 15px; line-height: 1.5; max-width: 24ch; }
.stat-col { display: grid; gap: 2px; }
/* más claro que el fondo de la sección (--cream), para que se lea como ficha */
.stat-light { background: #FFFDF8; }
.stat-light .stat-number-sm { color: #1B2016; }
.stat-light .stat-caption { color: #5A5245; }
.stat-green { background: var(--green); color: var(--cream); }
.stat-green .stat-caption { color: #C3C9B6; }
.stat-number-sm {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(40px, 6vw, 58px); line-height: 1; letter-spacing: -0.02em;
}
.stat-caption { font-size: 14.5px; }

/* ─── Consultas a distancia ─── */
.distance {
  background: var(--green); color: var(--cream);
  padding: clamp(56px, 9vw, 100px) 18px;
}
.kicker-light { color: var(--gold); }
.distance h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--cream-2); max-width: 20ch;
}
.distance-lead {
  margin: 20px 0 0; max-width: 56ch;
  font-size: clamp(16px, 2vw, 18.5px); line-height: 1.65;
  color: #C7CEBB; font-weight: 300;
}
/* cuatro tarjetas: siempre 2×2, para que no queden celdas vacías */
.distance-grid {
  margin: clamp(34px, 5vw, 54px) 0 0;
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(241, 235, 223, 0.16);
}
.distance-card {
  background: var(--green); padding: clamp(24px, 3.2vw, 34px);
  display: flex; flex-direction: column; gap: 12px;
}
.distance-num {
  font-family: var(--serif); font-weight: 800; font-size: 14px;
  letter-spacing: 0.14em; color: var(--gold);
}
.distance-card h3 {
  margin: 0; font-weight: 700; font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.25; color: var(--cream-2);
}
.distance-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #B8C0AC; }
.distance-close {
  margin: clamp(28px, 4vw, 40px) 0 0; max-width: 62ch;
  font-size: 16px; line-height: 1.65; color: #C7CEBB;
}
.distance-close a {
  display: inline-block; margin-top: 6px;
  color: var(--gold); font-weight: 600;
  border-bottom: 1px solid rgba(209, 154, 60, 0.4); padding-bottom: 2px;
}
.distance-close a:hover { color: var(--gold-light); }

/* ─── Áreas (legajos) ─── */
.areas { background: var(--sand); color: var(--text-dark); padding: clamp(56px, 9vw, 104px) 18px; }
.areas h2, .cases h2, .why h2, .office h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.02em;
}
.areas h2 { max-width: 22ch; }
.section-lead { margin: 18px 0 0; max-width: 58ch; font-size: 16.5px; line-height: 1.65; color: var(--text-mid); }

.folders { margin: clamp(34px, 5vw, 54px) 0 0; display: flex; flex-direction: column; gap: 14px; }
.folder {
  background: var(--cream-2); border: 1px solid var(--line-dark);
  border-top: 3px solid var(--green);
  box-shadow: 0 18px 40px -34px rgba(27, 32, 22, 0.9);
}
.folder h3 { margin: 0; }
.folder-toggle {
  width: 100%; background: none; border: 0;
  padding: clamp(18px, 2.6vw, 26px);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px);
  cursor: pointer; text-align: left; font-family: inherit; color: inherit;
  transition: background 0.2s;
}
.folder-toggle:hover { background: #EFE7D8; }
.folder-code { flex: none; font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; color: #8A6A48; }
.folder-heading { flex: 1; min-width: 0; }
.folder-title {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 3.2vw, 30px); line-height: 1.15;
  letter-spacing: -0.01em; color: #1B2016;
}
.folder-summary { display: block; margin-top: 6px; font-size: 14px; color: var(--text-soft); }
.folder-sign {
  flex: none; width: 38px; height: 38px;
  border: 1px solid #C0AF92; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 18px; color: var(--rust); background: #FFFDF8;
  transition: transform 0.25s;
}
.folder[data-open] .folder-sign { transform: rotate(45deg); }
.folder-body {
  display: none;
  border-top: 1px dashed var(--line-dark);
  padding: clamp(18px, 2.6vw, 28px); background: #FFFDF8;
}
.folder[data-open] .folder-body { display: block; animation: yl-sheet 0.3s ease both; }
@keyframes yl-sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.folder-items {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 2px 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.folder-items li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #EDE3D0; }
.item-n { flex: none; font-family: var(--serif); font-size: 12px; color: var(--rust); padding-top: 4px; }
.item-name { display: block; font-size: 16px; font-weight: 500; color: #241F17; }
.item-note { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.folder-cta {
  display: inline-block; margin-top: 20px;
  font-size: 14.5px; font-weight: 600; color: var(--rust);
  border-bottom: 1px solid #D8B893; padding-bottom: 2px;
}
.folder-cta:hover { color: var(--rust-light); }

/* ─── Por qué elegirme ─── */
.why { background: var(--cream); color: var(--text-dark); padding: clamp(56px, 9vw, 104px) 18px; }
.why h2 { margin-bottom: clamp(30px, 5vw, 52px); max-width: 20ch; }
.why-row {
  border-top: 1px solid var(--line-dark);
  padding: clamp(24px, 4vw, 40px) 0;
  display: grid; gap: 16px clamp(20px, 4vw, 56px);
  grid-template-columns: 60px 1fr 1.4fr;
  align-items: start;
}
.why-row-last { border-bottom: 1px solid var(--line-dark); }
.why-num { font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--rust); letter-spacing: 0.1em; }
.why-row h3 { margin: 0; font-weight: 700; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.15; color: #1B2016; }
.why-row p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text-mid); }
.why-photo { margin: clamp(36px, 5vw, 56px) 0 0; }
.why-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
.why-photo figcaption { margin-top: 12px; font-size: 12.5px; color: var(--text-soft); font-style: italic; font-family: var(--serif); }

/* ─── CTA teléfono ─── */
.phone-cta {
  background: var(--ink); padding: clamp(56px, 9vw, 100px) 18px;
  border-top: 1px solid rgba(241, 235, 223, 0.1);
  text-align: center;
}
.available {
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #A8B599;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: #8FBF6A; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 191, 106, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(143, 191, 106, 0); } }
.phone-cta h2 { margin: 0 0 8px; font-weight: 700; font-size: clamp(24px, 3.6vw, 34px); color: var(--cream); }
.phone-number {
  display: block; font-family: var(--serif); font-weight: 800;
  font-size: clamp(34px, 8.6vw, 92px); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--gold); margin: 10px 0 0;
}
.phone-number:hover { color: var(--gold-light); }
.phone-note { margin: 22px 0 0; font-size: 15.5px; color: var(--text-cream-soft); }

/* ─── Casos ─── */
.cases { background: var(--cream); color: var(--text-dark); padding: clamp(56px, 9vw, 104px) 18px; }
.cases .section-inner { max-width: 1080px; }
.cases h2 { margin-bottom: clamp(32px, 5vw, 56px); max-width: 24ch; }
.cases-grid {
  display: grid; gap: 2px; background: #D5C8B1;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.case {
  margin: 0; background: var(--cream-2);
  padding: clamp(26px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
}
.case-initial { font-family: var(--serif); font-weight: 800; font-size: 52px; line-height: 0.7; color: var(--rust); }
.case blockquote {
  margin: 0; font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px); line-height: 1.42; color: #241F17;
}
.case figcaption {
  margin-top: auto; font-size: 14px; color: var(--text-soft);
  border-top: 1px solid #E0D5C0; padding-top: 16px;
}
.case figcaption strong { display: block; font-weight: 600; color: #241F17; font-size: 15.5px; }

/* ─── Estudio / mapa ─── */
.office { background: var(--sand); color: var(--text-dark); padding: clamp(56px, 9vw, 96px) 18px; }
.office-grid { max-width: 1180px; margin: 0 auto; }
.office-intro { max-width: 60ch; margin-bottom: clamp(30px, 4.5vw, 52px); }
.office h2 { margin-bottom: 20px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; }
.office-addr { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-mid); }
.office-note { margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); }

/* foto y mapa emparejados: misma altura, misma línea de base */
.office-visuals {
  display: grid; gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start;
}
.office-photo { margin: 0; display: flex; flex-direction: column; }
.office-photo img {
  width: 100%; height: clamp(280px, 33vw, 420px);
  object-fit: cover; object-position: 50% 25%;
}
.office-photo figcaption {
  margin-top: 12px; font-size: 12.5px; color: var(--text-soft);
  font-style: italic; font-family: var(--serif);
}
.map-frame {
  border: 1px solid var(--line-dark); background: var(--cream-2); padding: 8px;
  height: clamp(280px, 33vw, 420px);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }

/* ─── Footer ─── */
.site-footer { background: var(--ink); color: #E7E2D5; padding: clamp(56px, 9vw, 100px) 18px 34px; }
.site-footer .section-inner { max-width: 1180px; }
.footer-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.footer-logo { height: clamp(52px, 8vw, 64px); width: auto; margin-bottom: 22px; }
.site-footer h2 {
  margin: 0 0 18px; font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--cream-2);
}
.footer-lead { margin: 0 0 30px; max-width: 40ch; font-size: 16.5px; line-height: 1.6; color: #B4BAA8; }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #7E8873; margin-bottom: 5px;
}
.contact-list dd { margin: 0; font-size: 17px; }
.contact-strong { font-size: 18px; font-weight: 600; }
.contact-list .addr { font-size: 16px; line-height: 1.55; color: #D3D0C1; }

.contact-form {
  background: var(--ink-2); border: 1px solid rgba(241, 235, 223, 0.14);
  padding: clamp(22px, 3.4vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
  align-self: start;
}
.form-title { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--cream-2); }
.contact-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #A8B098;
}
.contact-form input, .contact-form textarea {
  background: var(--ink); border: 1px solid rgba(241, 235, 223, 0.22);
  color: var(--cream); padding: 14px; font-size: 16px; font-family: var(--sans);
  letter-spacing: normal; text-transform: none; border-radius: 2px; min-height: 48px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }
.form-msg { margin: 0; font-size: 14px; color: #8FBF6A; min-height: 20px; }

.footer-areas {
  margin: clamp(40px, 6vw, 68px) 0 0;
  border-top: 1px solid rgba(241, 235, 223, 0.14);
  padding-top: 30px;
}
.footer-areas-title {
  margin: 0 0 20px !important;
  font-family: var(--sans) !important;
  font-size: 11px !important; letter-spacing: 0.2em; text-transform: uppercase;
  color: #7E8873 !important; font-weight: 400 !important;
}
.footer-areas-grid {
  display: grid; gap: 24px 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}
.footer-areas-grid h3 { margin: 0 0 10px; font-size: 16px; color: var(--gold); font-weight: 700; }
.footer-areas-grid ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 6px; font-size: 14.5px; color: #B4BAA8;
}
.footer-bottom {
  margin: 34px 0 0; padding-top: 22px;
  border-top: 1px solid rgba(241, 235, 223, 0.14);
  font-size: 13px; color: #7E8873;
}
.footer-bottom p { margin: 0; }
.footer-legal-line { line-height: 1.6; }
.footer-legal-nav {
  margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.footer-legal-nav a { font-size: 13px; color: #A8B098; border-bottom: 1px solid rgba(209, 154, 60, 0.3); padding-bottom: 1px; }
.footer-legal-nav a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-disclaimer {
  margin: 18px 0 0 !important; max-width: 70ch;
  font-size: 12.5px; line-height: 1.6; color: #6E7767;
}
.footer-disclaimer a { color: #8A9480; border-bottom: 1px solid rgba(209, 154, 60, 0.28); }
.footer-disclaimer a:hover { color: var(--gold-light); }
.footer-credit {
  margin: 22px 0 0 !important; padding-top: 18px;
  border-top: 1px solid rgba(241, 235, 223, 0.09);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  font-size: 12.5px; color: #6E7767;
}
.footer-credit a { color: var(--gold); font-weight: 600; }
.footer-credit a:hover { color: var(--gold-light); }
.credit-sep { color: #3E4638; }

/* ─── Página legal ─── */
.legal-hero {
  padding: 130px 18px clamp(44px, 6vw, 68px);
  background: radial-gradient(120% 90% at 80% 0%, #26301F 0%, #1A2015 42%, var(--ink) 100%);
}
.legal-hero-inner { max-width: 1000px; margin: 0 auto; }
.legal-hero h1 {
  margin: 0; font-weight: 800;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--cream-2);
}
.legal-hero-lead {
  margin: 22px 0 0; max-width: 60ch;
  font-size: clamp(15.5px, 2vw, 18px); line-height: 1.65;
  color: #CFCCBC; font-weight: 300;
}
.legal-updated {
  margin: 26px 0 0; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7E8873;
}

.legal-body { background: var(--cream); color: var(--text-dark); padding: clamp(44px, 6vw, 76px) 18px clamp(56px, 8vw, 96px); }
.legal-layout {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}

.legal-toc {
  position: sticky; top: 88px;
  border-left: 2px solid var(--line-dark); padding-left: 20px;
}
.legal-toc-title {
  margin: 0 0 14px; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8A6A48;
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.legal-toc a { font-size: 14px; line-height: 1.4; color: var(--text-mid); }
.legal-toc a:hover { color: var(--rust); }

.legal-content { min-width: 0; }
.legal-section { margin-bottom: clamp(38px, 5vw, 58px); scroll-margin-top: 88px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  margin: 0 0 20px; font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px); line-height: 1.15;
  letter-spacing: -0.015em; color: #1B2016;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-dark);
}
.legal-section h3 {
  margin: 30px 0 12px; font-weight: 700;
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.25; color: #2C3A26;
}
.legal-section p {
  margin: 0 0 15px; font-size: 16px; line-height: 1.72; color: var(--text-mid);
  max-width: 70ch;
}
.legal-section strong { color: #241F17; font-weight: 600; }
.legal-list {
  margin: 0 0 15px; padding-left: 22px; max-width: 70ch;
  display: grid; gap: 10px;
  font-size: 16px; line-height: 1.7; color: var(--text-mid);
}
.legal-list li::marker { color: var(--rust); }

.legal-callout {
  margin: 0 0 22px; padding: clamp(18px, 2.6vw, 26px);
  background: var(--cream-2); border: 1px solid var(--line-dark);
  border-left: 3px solid var(--green);
}
.legal-callout-title {
  margin: 0 0 12px !important; font-family: var(--serif);
  font-size: 15px; font-weight: 700; color: #1B2016;
  letter-spacing: 0.02em;
}
.legal-callout ul {
  margin: 0; padding-left: 20px; display: grid; gap: 8px;
  font-size: 15.5px; line-height: 1.6; color: var(--text-mid);
}
.legal-callout ul li::marker { color: var(--rust); }
.legal-callout p:last-child { margin-bottom: 0 !important; }
.legal-callout-warn { border-left-color: var(--rust); background: #FBF3EA; }

.legal-note {
  margin: 18px 0 !important; padding: 16px 18px;
  background: rgba(163, 76, 43, 0.07);
  border: 1px dashed rgba(163, 76, 43, 0.4);
  font-size: 14.5px !important; line-height: 1.6 !important; color: #6B4A35 !important;
}

.legal-data { margin: 20px 0 0; display: grid; gap: 14px; max-width: 70ch; }
.legal-data dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #8A6A48; margin-bottom: 4px;
}
.legal-data dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-mid); }
.legal-data a { color: var(--rust); font-weight: 600; }
.legal-data a:hover { color: var(--rust-light); }

.legal-section a { color: var(--rust); border-bottom: 1px solid rgba(163, 76, 43, 0.3); }
.legal-section a:hover { color: var(--rust-light); }
.legal-back { margin-top: 30px !important; }
.legal-back a { font-weight: 600; font-size: 16px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc {
    position: static; border-left: 0;
    border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
    padding: 20px 0;
  }
  .legal-toc ol { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
}

/* ─── WhatsApp flotante ─── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25D366; color: #FFF;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}
.wa-float:hover { color: #FFF; transform: scale(1.08); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   Escala de quiebres: 1180 · 1024 · 900 · 760 · 620 · 480 · 380
   ══════════════════════════════════════════════════════════════════ */

/* ── ≤1180px — el hero deja de tener holgura para dos columnas ── */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
}

/* ── ≤1024px — tablet horizontal ── */
@media (max-width: 1024px) {
  .main-nav a { font-size: 13px; padding: 10px 8px; }
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); }
  /* el marco decorativo no debe empujar el ancho de la página */
  .photo-frame { inset: 14px 14px -14px 14px; }
}

/* ── ≤980px — el menú horizontal ya no entra: pasa a menú desplegable ── */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 55;
    width: min(320px, 84vw); height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: flex-start; gap: 0;
    background: var(--ink-2);
    border-left: 1px solid rgba(241, 235, 223, 0.14);
    padding: 84px 0 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }
  [data-nav-open] .main-nav { transform: translateX(0); visibility: visible; }

  .main-nav a {
    padding: 16px 26px; font-size: 16px; border-radius: 0;
    border-bottom: 1px solid rgba(241, 235, 223, 0.08);
    white-space: normal;
  }
  .main-nav a:first-child { border-top: 1px solid rgba(241, 235, 223, 0.08); }

  /* el hero se apila y la foto no debe dominar la pantalla */
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { max-width: 460px; }

  .why-row { grid-template-columns: 46px minmax(0, 1fr); }
  .why-row p { grid-column: 2; }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc {
    position: static; border-left: 0;
    border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
    padding: 20px 0;
  }
  .legal-toc ol { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px 20px; }
}

/* ── ≤760px — teléfono grande / tablet vertical ── */
@media (max-width: 760px) {
  .hero { padding-top: 100px; }

  /* las líneas del título pueden envolverse, pero conservan su máscara */
  .line-mask > span { white-space: normal; }

  .hero-photo { max-width: none; }
  .hero-photo img { aspect-ratio: 3 / 4; }

  .stats { grid-template-columns: 1fr; }
  .stat-main { min-height: 0; }

  .office-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* deja aire para el botón flotante de WhatsApp */
  .site-footer { padding-bottom: 92px; }
}

/* ── ≤620px — teléfono ── */
@media (max-width: 620px) {
  .brand-text { display: none; }
  .btn-wa-header { padding: 10px; width: 42px; }
  .btn-wa-label { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .kicker-largo { display: none; }
  .kicker-corto { display: inline; }

  .hero-regions { gap: 8px 16px; }

  /* el legajo se reordena en grilla: código y signo arriba, título debajo */
  .folder-toggle {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "code sign" "title title";
    row-gap: 12px; column-gap: 12px;
  }
  .folder-code { grid-area: code; }
  .folder-sign { grid-area: sign; justify-self: end; }
  .folder-heading { grid-area: title; }

  /* enlaces sueltos: superficie cómoda para el dedo */
  .folder-cta { padding: 10px 0 8px; }
  .contact-list dd a { display: inline-flex; align-items: center; min-height: 40px; }

  .why-row { grid-template-columns: 1fr; gap: 10px; }
  .why-row p { grid-column: 1; }
  .why-num { font-size: 13px; }

  .distance-grid { grid-template-columns: 1fr; }

  .legal-section h2 { font-size: 21px; }
  .legal-callout, .legal-note { padding: 16px; }

  .footer-credit { flex-direction: column; gap: 6px; }
  .credit-sep { display: none; }
}

/* ── ≤480px — teléfonos chicos ── */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(30px, 8.6vw, 42px); }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .photo-frame { inset: 10px 10px -10px 10px; }

  .stat-main { padding: 26px 22px; }
  .case { padding: 26px 22px; }
  .contact-form { padding: 22px 18px; }

  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ── ≤380px — el piso: iPhone SE y similares ── */
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .brand-logo { height: 32px; }
  .hero { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 29px; }
  .hero-lead { font-size: 15.5px; }
  .phone-number { font-size: 30px; letter-spacing: -0.02em; }
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* ── Pantallas bajas en horizontal (teléfono acostado) ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 88px; }
  .main-nav { padding-top: 68px; }
  .main-nav a { padding: 12px 26px; }
}

/* ── Punteros gruesos: áreas táctiles cómodas ── */
@media (pointer: coarse) {
  .main-nav a, .folder-toggle, .footer-legal-nav a { min-height: 44px; }
  .footer-legal-nav a { display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .main-nav, .nav-bars span, .nav-scrim { transition: none; }
}
