/* ============================================================
   H&O ABOGADOS — Sistema de diseño
   Concepto: "Claridad en el conflicto"
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Paleta */
  --slate-900: #1a2332;   /* azul pizarra profundo - autoridad */
  --slate-800: #253145;
  --slate-700: #33415c;
  --slate-500: #5a6b85;
  --ink:       #1c2431;   /* texto principal */
  --muted:     #6a7484;   /* texto secundario */
  --line:      #e4e1d8;   /* hairlines sobre marfil */
  --ivory:     #f6f4ee;   /* fondo marfil */
  --ivory-2:   #efece3;
  --white:     #ffffff;
  --brass:     #a8894f;   /* dorado apagado - acento de categoría */
  --brass-dk:  #8c7038;

  /* Tipografía */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.15rem);
  --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 5rem);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
  --shadow: 0 10px 40px -12px rgba(26, 35, 50, 0.18);
  --shadow-sm: 0 4px 16px -6px rgba(26, 35, 50, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- UTILIDADES ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--slate-900); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); color: var(--slate-700); line-height: 1.5; font-family: var(--serif); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--slate-900); color: var(--ivory); }
.btn--primary:hover { background: var(--brass); color: var(--slate-900); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--slate-900); border: 1px solid var(--slate-900); }
.btn--ghost:hover { background: var(--slate-900); color: var(--ivory); }
.btn--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: var(--brass-dk); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: var(--step-0); }
.arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Secciones */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--slate { background: var(--slate-900); color: var(--ivory); }
.section--slate h2, .section--slate h3 { color: var(--ivory); }
.section--ivory2 { background: var(--ivory-2); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand__mark {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: 0.02em;
}
.brand__mark .amp { color: var(--brass); }
.brand__sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrolled .brand__mark { color: var(--slate-900); }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate-800);
  position: relative;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }

/* Header en hero oscuro (home) */
.site-header:not(.scrolled) .brand__mark { color: var(--ivory); }
.site-header:not(.scrolled) .brand__sub { color: rgba(246,244,238,0.6); }
.site-header:not(.scrolled) .nav__link { color: rgba(246,244,238,0.88); }
.site-header:not(.scrolled) .nav__link::after { background: var(--brass); }
.site-header:not(.scrolled) .nav__cta.btn--ghost { color: var(--ivory); border-color: rgba(246,244,238,0.5); }
.site-header:not(.scrolled) .nav__cta.btn--ghost:hover { background: var(--ivory); color: var(--slate-900); }
/* En páginas internas sin hero oscuro, el header arranca claro */
.site-header.solid .brand__mark { color: var(--slate-900); }
.site-header.solid .brand__sub { color: var(--muted); }
.site-header.solid .nav__link { color: var(--slate-800); }
.site-header.solid .nav__cta.btn--ghost { color: var(--slate-900); border-color: var(--slate-900); }
.site-header.solid { background: rgba(246,244,238,0.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); }

/* Menú móvil */
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; z-index: 110; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--slate-900); transition: all 0.3s var(--ease); margin-inline: auto; }
.site-header:not(.scrolled):not(.solid) .nav__toggle span { background: var(--ivory); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--slate-900);
  color: var(--ivory);
  overflow: hidden;
  padding-top: 84px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(168,137,79,0.18), transparent 55%),
    linear-gradient(160deg, #1a2332 0%, #131b28 60%, #0f1620 100%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero__content { max-width: 640px; }
.hero .eyebrow { color: var(--brass); }
.hero .eyebrow::before { background: var(--brass); }
.hero h1 {
  font-size: var(--step-4);
  color: var(--ivory);
  margin: 1.4rem 0 1.6rem;
  font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__lead {
  font-size: var(--step-1);
  color: rgba(246,244,238,0.78);
  font-family: var(--serif);
  line-height: 1.5;
  max-width: 30ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__trust {
  display: flex;
  gap: 2.4rem;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat .n { font-family: var(--serif); font-size: var(--step-2); color: var(--ivory); display: block; line-height: 1; }
.hero__stat .l { font-size: var(--step--1); color: rgba(246,244,238,0.6); letter-spacing: 0.04em; margin-top: 0.4rem; display: block; }

/* Tarjeta formulario en hero */
.hero__card {
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
}
.hero__card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.hero__card p { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.4rem; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--slate-800); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168,137,79,0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a7484' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form__note { font-size: 0.75rem; color: var(--muted); margin-top: 0.8rem; line-height: 1.4; }
.form__ok { display: none; padding: 1rem; background: rgba(168,137,79,0.1); border: 1px solid var(--brass); border-radius: var(--radius); color: var(--brass-dk); font-size: var(--step--1); font-weight: 600; margin-top: 1rem; }
.form__ok.show { display: block; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 1.2rem 0 1rem; }
.section-head p { color: var(--muted); font-size: var(--step-0); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__num { font-family: var(--serif); font-size: var(--step-1); color: var(--brass); font-style: italic; }
.svc h3 { font-size: var(--step-1); margin: 0.8rem 0 0.9rem; }
.svc p { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.svc__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; font-size: var(--step--1); font-weight: 600; color: var(--slate-900); letter-spacing: 0.03em; }
.svc__more .arrow { transition: transform 0.3s var(--ease); }
.svc:hover .svc__more { color: var(--brass); }
.svc:hover .svc__more .arrow { transform: translateX(4px); }

/* ============================================================
   IMPACTO / STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--slate-900); padding: 2.5rem 1.8rem; text-align: center; }
.stat .n { font-family: var(--serif); font-size: var(--step-3); color: var(--brass); display: block; line-height: 1; }
.stat .l { font-size: var(--step--1); color: rgba(246,244,238,0.7); margin-top: 0.8rem; display: block; letter-spacing: 0.03em; }

/* ============================================================
   ENFOQUE (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media .frame {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(168,137,79,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(168,137,79,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.split__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--brass);
  color: var(--white);
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__badge .n { font-family: var(--serif); font-size: var(--step-2); line-height: 1; display: block; }
.split__badge .l { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; display: block; opacity: 0.9; }
.values { margin-top: 2rem; display: grid; gap: 1.2rem; }
.value { display: flex; gap: 1rem; }
.value__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius); background: rgba(168,137,79,0.12); display: grid; place-items: center; color: var(--brass); }
.value h4 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; color: var(--slate-900); margin-bottom: 0.2rem; }
.value p { font-size: var(--step--1); color: var(--muted); }

/* ============================================================
   EQUIPO
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.member { text-align: left; }
.member__photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--ivory-2), #ddd8cc);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.member__photo .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: var(--step-4);
  color: var(--slate-500);
  opacity: 0.35;
}
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.5), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.member:hover .member__photo::after { opacity: 1; }
.member h3 { font-size: var(--step-1); }
.member .role { font-size: var(--step--1); color: var(--brass); font-weight: 600; letter-spacing: 0.04em; margin-top: 0.3rem; }
.member .bio { font-size: var(--step--1); color: var(--muted); margin-top: 0.7rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--slate-900);
  transition: color 0.25s;
}
.faq__q:hover { color: var(--brass); }
.faq__ic { flex-shrink: 0; width: 28px; height: 28px; position: relative; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; background: var(--brass); transition: transform 0.3s var(--ease); }
.faq__ic::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__ic::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__item.open .faq__ic::after { transform: translateX(-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding-bottom: 1.5rem; color: var(--muted); font-size: var(--step-0); line-height: 1.7; max-width: 68ch; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-band {
  background: var(--slate-900);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 100% at 50% 0%, rgba(168,137,79,0.2), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--ivory); margin-bottom: 1rem; }
.cta-band p { color: rgba(246,244,238,0.75); max-width: 52ch; margin: 0 auto 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #10161f; color: rgba(246,244,238,0.7); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand .brand__mark { color: var(--ivory); }
.footer__brand p { font-size: var(--step--1); margin-top: 1rem; max-width: 32ch; line-height: 1.6; }
.footer h4 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.2rem; }
.footer__links li { margin-bottom: 0.7rem; }
.footer__links a { font-size: var(--step--1); transition: color 0.25s; }
.footer__links a:hover { color: var(--ivory); }
.footer__contact p { font-size: var(--step--1); margin-bottom: 0.7rem; line-height: 1.5; }
.footer__contact a:hover { color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; flex-wrap: wrap; }
.footer__bottom p { font-size: 0.78rem; }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.footer__social a:hover { background: var(--brass); border-color: var(--brass); color: var(--white); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.5);
  transition: transform 0.3s var(--ease);
  color: #fff;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ============================================================
   PAGE HERO (internas)
   ============================================================ */
.page-hero { background: var(--slate-900); color: var(--ivory); padding: calc(84px + clamp(3rem,7vw,6rem)) 0 clamp(3rem,7vw,5rem); position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(100% 120% at 85% 0%, rgba(168,137,79,0.15), transparent 55%); }
.page-hero__inner { position: relative; max-width: 720px; }
.page-hero h1 { font-size: var(--step-3); color: var(--ivory); margin: 1.2rem 0 1rem; }
.page-hero p { color: rgba(246,244,238,0.75); font-size: var(--step-1); font-family: var(--serif); }
.breadcrumb { font-size: var(--step--1); color: rgba(246,244,238,0.55); }
.breadcrumb a:hover { color: var(--brass); }

/* Prosa (páginas de servicio / artículo) */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.2rem; color: var(--slate-700); }
.prose ul { margin: 0 0 1.5rem 0; display: grid; gap: 0.7rem; }
.prose ul li { padding-left: 1.6rem; position: relative; color: var(--slate-700); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; background: var(--brass); border-radius: 1px; }

/* Grid de servicios detallados */
.svc-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svc-detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.svc-detail__num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: var(--step-1); }
.svc-detail h3 { font-size: var(--step-1); margin: 0.5rem 0 0.8rem; }
.svc-detail p { font-size: var(--step--1); color: var(--muted); }
.svc-detail ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.svc-detail ul li { font-size: var(--step--1); color: var(--slate-700); padding-left: 1.4rem; position: relative; }
.svc-detail ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--brass); border-radius: 1px; }

/* Contacto grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; margin-bottom: 1.8rem; }
.contact-info .info-item .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius); background: rgba(168,137,79,0.12); display: grid; place-items: center; color: var(--brass); }
.contact-info h4 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; color: var(--slate-900); margin-bottom: 0.2rem; }
.contact-info p, .contact-info a { font-size: var(--step--1); color: var(--muted); }
.contact-info a:hover { color: var(--brass); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow-sm); }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__card { max-width: 480px; }
  .services, .team { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 420px; }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--slate-900); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.3); }
  .nav__links.open { transform: none; }
  .nav__links .nav__link { color: var(--ivory); font-size: var(--step-1); }
  .nav__toggle { display: flex; }
  .nav__links.open ~ * {}
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--ivory); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--ivory); }
  .services, .team, .stats, .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { flex-wrap: wrap; gap: 1.5rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   FOTOS REALES — mejora de la propuesta 1 (25-ago-2026)
   Hero contextual + retratos + enfoque. B&N editorial coherente.
   ============================================================ */
/* Hero: foto real del equipo en su oficina, con overlay para legibilidad */


/* Tratamiento B&N (como la marca real) */
.member__photo img,
.split__media .frame img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:grayscale(1) contrast(1.04);
  transition:transform .8s var(--ease);
  z-index:1;
}
.member__photo .initials{ display:none; }        /* ahora hay foto real */
.member__photo img{ object-position:center 16%; }
.member:hover .member__photo img{ transform:scale(1.045); }
.member__photo::after{ z-index:2; }                /* overlay hover por encima */

/* Enfoque (split): foto real dentro del marco, grid brass sutil encima */
.split__media .frame{ position:relative; }
.split__media .frame::after{ z-index:2; opacity:.45; }
.split__media .frame:hover img{ transform:scale(1.03); }

/* ============================================================
   HERO — fondo pizarra con difuminado (limpio)
   ============================================================ */
.hero__bg{
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(168,137,79,0.20), transparent 55%),
    linear-gradient(160deg, #1a2332 0%, #131b28 60%, #0f1620 100%);
  filter:none;
}
.hero__grid-lines{ background:none; }

/* Impacto: 3 métricas (se quitó la de 24 h) */
.stats{ grid-template-columns:repeat(3,1fr); }
