/* ==========================================================
   Ipanaqué León Abogados — hoja de estilos principal
   ========================================================== */

:root {
  --ink: #141414;
  --ink-2: #1f1f1f;
  --paper: #faf9f6;
  --white: #ffffff;
  --gold: #b4975a;
  --gold-2: #d4bd86;
  --gold-soft: rgba(180, 151, 90, 0.14);
  --text: #2a2a2a;
  --gray: #5c5c5c;
  --muted: #8d8d8d;
  --line: #e6e2da;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--white { background: var(--white); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold); }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
  max-width: 24ch;
}
.lead--wide { max-width: 32ch; }
.section--dark .lead { color: var(--white); }
.display {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.text-cols { columns: 2; column-gap: 48px; }
.text-cols p { break-inside: avoid; }
@media (max-width: 760px) { .text-cols { columns: 1; } }

/* ---------- Enlaces con flecha ---------- */
.arrow-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.arrow-link:last-child { border-bottom: 1px solid var(--line); }
.arrow-link svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.arrow-link:hover { color: var(--gold); padding-left: 8px; }
.arrow-link:hover svg { transform: translate(3px, -3px); }
.section--dark .arrow-link { border-color: var(--line-dark); color: var(--white); }
.section--dark .arrow-link:hover { color: var(--gold-2); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; transition: opacity 0.3s; }
.brand .logo-light { display: none; }
.header--dark .brand .logo-light { display: block; }
.header--dark .brand .logo-dark { display: none; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold); }
.header--dark .nav a { color: var(--white); }
.header--dark .nav a[aria-current="page"] { color: var(--gold-2); }
.nav__cta { border: 1px solid var(--gold); color: var(--gold) !important; padding: 10px 18px !important; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold); color: var(--white) !important; }
.header--solid, .header.is-scrolled {
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .brand .logo-light { display: none; }
.header.is-scrolled .brand .logo-dark { display: block; }
.header.is-scrolled .nav a { color: var(--ink); }
.header.is-scrolled .nav a[aria-current="page"] { color: var(--gold); }
.header.is-scrolled .brand img { height: 38px; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0;
}
.burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.header--dark .burger span { background: var(--white); }
.header.is-scrolled .burger span { background: var(--ink); }
.header.menu-open .burger span { background: var(--white); }
.header.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header.menu-open .burger span:nth-child(2) { opacity: 0; }
.header.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 var(--gutter); gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  .header.menu-open .nav { opacity: 1; pointer-events: auto; }
  .nav a, .header.is-scrolled .nav a {
    font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; font-weight: 500;
    color: var(--white);
  }
  .nav a[aria-current="page"], .header.is-scrolled .nav a[aria-current="page"] { color: var(--gold-2); }
  .nav__cta { border: 0 !important; padding: 0 !important; color: var(--gold-2) !important; font-family: var(--sans) !important; font-size: 12px !important; letter-spacing: 0.22em !important; text-transform: uppercase !important; margin-top: 12px; }
  .nav__cta:hover { background: transparent; }
  .header.menu-open, .header.menu-open.is-scrolled { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .header.menu-open .brand { position: relative; z-index: 2; }
  .header.menu-open .brand .logo-light { display: block; }
  .header.menu-open .brand .logo-dark { display: none; }
  .header.menu-open .burger { position: relative; z-index: 2; }
}

/* ---------- Hero principal ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--white); overflow: hidden;
  padding-top: 140px; padding-bottom: clamp(56px, 8vw, 110px);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #1c1c1c 0%, #0f0f0f 100%);
}
.hero__photo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 68%;
  background-size: cover; background-position: center bottom;
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
  opacity: 0.5; filter: saturate(0.6) contrast(1.05);
  transform-origin: center bottom;
  animation: heroZoom 14s var(--ease) both;
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.1) 0%, rgba(20,20,20,0.85) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-2); }
.hero .eyebrow::before { background: var(--gold-2); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero__sub { max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,0.72); margin: 28px 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 1;
  display: flex; gap: 32px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.hero__scroll { position: absolute; right: var(--gutter); bottom: 28px; z-index: 1; width: 1px; height: 64px; background: rgba(255,255,255,0.25); overflow: hidden; }
.hero__scroll::after { content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold-2); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
@media (max-width: 900px) {
  .hero__photo { width: 100%; opacity: 0.32; mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); }
  .hero__meta { display: none; }
}

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--white);
  padding: clamp(150px, 20vw, 220px) 0 clamp(56px, 8vw, 96px); overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold-2); }
.page-hero .eyebrow::before { background: var(--gold-2); }
.page-hero__sub { max-width: 52ch; color: rgba(255,255,255,0.7); margin-top: 24px; font-size: 1.05rem; }
.page-hero__mark { position: absolute; right: -2%; bottom: -20%; width: clamp(220px, 28vw, 380px); opacity: 0.07; pointer-events: none; }

/* ---------- Rejillas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Bloque imagen ---------- */
.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.03); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }
.figure--band { aspect-ratio: 21 / 9; min-height: 320px; max-height: 620px; }
.figure--band img { filter: saturate(0.85); }

/* ---------- Banda de cita ---------- */
.quote-band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.quote-band__img { position: absolute; inset: 0; background-size: cover; background-position: center 20%; opacity: 0.45; filter: saturate(0.6); }
.quote-band__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.55) 60%, rgba(20,20,20,0.25) 100%); }
.quote-band .container { position: relative; padding-block: clamp(96px, 14vw, 180px); }
.quote-band blockquote { margin: 0; max-width: 26ch; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; font-weight: 500; font-style: italic; color: var(--white); margin: 0 0 28px; }
.quote-band cite { font-style: normal; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Áreas de práctica ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area {
  position: relative; padding: clamp(28px, 3vw, 44px); min-height: 280px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  background: transparent; transition: background 0.5s var(--ease);
}
.area:hover { background: var(--white); }
.area__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: 0.1em; }
.area h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
.area p { font-size: 0.95rem; color: var(--gray); margin: 0; flex: 1; }
.area__more { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.area__more svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.area:hover .area__more svg { transform: translateX(4px); }
.area:hover .area__more { color: var(--gold); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } .area { min-height: 0; } }

/* Áreas en página interior */
.area-detail { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.area-detail:last-child { border-bottom: 1px solid var(--line); }
.area-detail__num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 14px; }
.area-detail h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.area-detail ul { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.area-detail li { position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--gray); }
.area-detail li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .area-detail { grid-template-columns: 1fr; } .area-detail ul { grid-template-columns: 1fr; } }

/* ---------- Sectores ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 12px; }
.sectors li {
  padding: 12px 20px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.82);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.sectors li:hover { border-color: var(--gold-2); color: var(--gold-2); background: rgba(212,189,134,0.06); }
.sectors--light li { border-color: var(--line); color: var(--gray); }
.sectors--light li:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.member { display: block; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #ebe9e4; position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease), filter 0.6s; filter: saturate(0.9); }
.member:hover .member__photo img { transform: scale(1.04); filter: saturate(1); }
.member__photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.member:hover .member__photo::after { transform: scaleX(1); }
.member h3 { font-size: 1.5rem; margin-top: 20px; }
.member__role { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; max-width: 380px; } }

/* Perfil detallado */
.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.profile:first-of-type { border-top: 0; }
.profile__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #ebe9e4; position: sticky; top: 110px; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__role { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.profile h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 20px; }
.profile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.profile__tags li { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); border: 1px solid var(--line); padding: 8px 14px; }
.profile__contact { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.9rem; }
.profile__contact a { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.3s; }
.profile__contact a:hover { color: var(--gold); }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile__photo { position: static; max-width: 420px; } }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--paper); padding: clamp(28px, 3vw, 40px); }
.value__icon { width: 34px; height: 42px; margin-bottom: 20px; opacity: 0.9; }
.value h3 { font-size: 1.4rem; margin-bottom: 10px; }
.value p { font-size: 0.93rem; color: var(--gray); margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Misión / Visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.mv__item { background: var(--white); display: grid; grid-template-rows: auto 1fr; }
.mv__item .figure { aspect-ratio: 16 / 9; }
.mv__body { padding: clamp(28px, 3.5vw, 48px); }
.mv__body h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 16px; }
.mv__body p { color: var(--gray); margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(14px, 2vw, 28px); align-items: center; }
.client { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: var(--white); position: relative; transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.client img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.8; transition: filter 0.5s, opacity 0.5s; }
.client:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.3); }
.client:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line-dark); padding-top: 40px; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-2); line-height: 1; }
.stat__label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 10px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px); }
.cta .container { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; padding-block: clamp(72px, 10vw, 128px); }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 14ch; }
.cta h2 em { font-style: italic; color: var(--gold-2); }
.cta__side { display: grid; gap: 28px; }
.cta__office { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.cta__office strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--white); margin-bottom: 6px; }
@media (max-width: 860px) { .cta .container { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.office { padding: 28px 0; border-top: 1px solid var(--line); }
.office:last-child { border-bottom: 1px solid var(--line); }
.office h3 { font-size: 1.6rem; margin-bottom: 8px; }
.office p { margin: 0; color: var(--gray); font-size: 0.95rem; }
.office a { color: var(--ink); border-bottom: 1px solid var(--gold); transition: color 0.3s; }
.office a:hover { color: var(--gold); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink);
  padding: 14px 0; border: 0; border-bottom: 1px solid #cfcac0; background: transparent; border-radius: 0;
  outline: none; transition: border-color 0.3s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: 0.82rem; color: var(--muted); }
.map { aspect-ratio: 16 / 9; width: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Pie ---------- */
.footer { background: #0e0e0e; color: rgba(255,255,255,0.6); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 0.88rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; margin: 0; }
.footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; font-weight: 500; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: border-color 0.3s, color 0.3s; }
.social a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }
.hero__inner > * { opacity: 0; transform: translateY(20px); animation: heroIn 1.1s var(--ease) forwards; }
.hero__inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.45s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__inner > * { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__photo, .hero__scroll::after { animation: none; }
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Hero sin fotografía ---------- */
.hero--plain { align-items: center; }
.hero__mark { position: absolute; right: -4%; bottom: -12%; width: clamp(260px, 36vw, 560px); opacity: 0.07; pointer-events: none; }
.hero--plain .hero__inner > *:nth-child(2) { max-width: 16ch; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.news-grid--full { row-gap: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.3); }
.news-card__img { aspect-ratio: 16 / 10; background: #ebe9e4; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.news-card__meta time { color: var(--muted); letter-spacing: 0.08em; text-transform: none; }
.news-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; }
.news-card p { font-size: 0.93rem; color: var(--gray); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .area__more { margin-top: 6px; }
.news-card:hover .area__more { color: var(--gold); }
.news-card:hover .area__more svg { transform: translateX(4px); }

/* Artículo */
.page-hero--article { padding-top: clamp(140px, 18vw, 200px); }
.article { max-width: 820px; }
.article .figure--band { margin-bottom: clamp(36px, 5vw, 56px); }
.article__body p { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article__body .lead { margin-bottom: 28px; max-width: none; }
.article__body h3 { font-size: 1.7rem; margin: 40px 0 14px; }
.article__body ul, .article__body ol { padding-left: 22px; margin-bottom: 1.2em; list-style: disc; color: var(--text); }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 8px; }
.article__body blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--ink); }
.article__footer { margin-top: 56px; }

/* ---------- Equipo destacado (portada) ---------- */
.team-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.member--featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: end; }
.member--featured .member__photo { aspect-ratio: 4 / 5; }
.member--featured .member__info h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 10px 0 14px; }
.member--featured .member__role { margin-top: 0; }
.member--featured .member__info p { font-size: 0.95rem; color: var(--gray); margin: 0 0 18px; }
.member--featured:hover .area__more { color: var(--gold); }
.member--featured:hover .area__more svg { transform: translateX(4px); }
.team-featured__others { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); padding-top: clamp(48px, 7vw, 110px); }
.team-featured__others .member h3 { font-size: 1.25rem; margin-top: 14px; }
@media (max-width: 1000px) {
  .team-featured { grid-template-columns: 1fr; }
  .team-featured__others { padding-top: 0; max-width: 620px; }
}
@media (max-width: 560px) {
  .member--featured { grid-template-columns: 1fr; }
  .member--featured .member__photo { max-width: 380px; }
  .team-featured__others { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ajustes feedback: hero, nosotros, áreas x4, alcance ---------- */
.hero__values { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); margin: -16px 0 40px; }
.hero__values span { opacity: 0.5; margin: 0 6px; }
.hero--plain h1 { max-width: 18ch; }
.about { text-align: center; max-width: 820px; }
.about .eyebrow { justify-content: center; }
.about .eyebrow::before { display: none; }
.about .lead { margin: 0 auto 32px; max-width: 30ch; }
.about__body { max-width: 62ch; margin: 0 auto; }
.about__links { max-width: 560px; margin: 36px auto 0; text-align: left; }
.areas--4 { grid-template-columns: repeat(4, 1fr); }
.areas--4 .area { min-height: 320px; }
.areas--4 .area h3 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); }
@media (max-width: 1100px) { .areas--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .areas--4 { grid-template-columns: 1fr; } .areas--4 .area { min-height: 0; } }
.cities { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 28px; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: rgba(255,255,255,0.85); }
.cities li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line-dark); line-height: 1.1; }
.cities li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat__num--text { font-size: clamp(1.8rem, 3vw, 2.6rem); padding-top: 0.35em; }
.stats--text .stat__label { max-width: 28ch; line-height: 1.6; }
.page-hero__sub--wide { max-width: 64ch; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: rgba(255,255,255,0.85); }

/* ---------- Feedback Renzo: texto justificado, cita, acordeón, colaboradores ---------- */
p, .lead, .hero__sub, .page-hero__sub, .area p, .area-detail p, .profile p, .mv__body p, .value p, .news-card p, .article__body p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.cta__office, .form__note, .stat__label, .footer p, .news-card__meta, .office p { text-align: left; hyphens: manual; }
.lead { max-width: 30ch; }
.quote-band blockquote p { font-size: clamp(2.4rem, 5.4vw, 4.4rem); text-align: left; hyphens: manual; max-width: 16ch; }
.quote-band blockquote { max-width: none; }
.quote-band__img--statue { opacity: 0.55; filter: grayscale(1) contrast(1.05); background-position: right center; }
.quote-band__img--statue::after { background: linear-gradient(90deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.55) 50%, rgba(20,20,20,0.15) 100%); }
.accordion { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.accordion[open] summary svg { transform: rotate(180deg); }
.accordion summary:hover { color: var(--gold); }
.accordion__body { padding: 0 0 22px; }
.accordion__body p { font-size: 0.95rem; color: var(--gray); }
.team-divider { padding: clamp(40px, 6vw, 72px) 0 8px; border-top: 1px solid var(--line); }
.team-divider p { max-width: 60ch; color: var(--gray); margin: 0; }
