:root {
  --navy: #0f1c33;
  --navy-soft: #16294a;
  --navy-softer: #1f3760;
  --cream: #f8f5ee;
  --cream-alt: #efe8d8;
  --brass: #b8842d;
  --brass-light: #e3b662;
  --text-muted: #5a5d6b;
  --line: rgba(15,28,51,.14);
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: #fff;
  line-height: 1.15;
}
.brand-mark { height: 40px; width: auto; display: block; flex-shrink: 0; }
.brand .brand-name { font-size: 19px; font-weight: 700; display: block; }
.brand .brand-sub { font-size: 12px; letter-spacing: 3px; color: var(--brass-light); display: block; margin-top: 2px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: #e7e5da;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active, .nav-links a:hover { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brass-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-brass {
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  color: #2a1c05;
  box-shadow: 0 10px 24px -10px rgba(184,132,45,.6);
}
.btn-brass:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline-light:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-outline-dark {
  background: transparent;
  border: 1.5px solid rgba(20,33,61,.25);
  color: var(--navy);
}
.btn-outline-dark:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 60%, var(--navy-softer) 100%);
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 18px;
}
h1.page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 17px;
  color: #cdd2de;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Hero split (with portrait) */
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  text-align: left;
  max-width: var(--container);
}
.hero-split .hero-sub { margin: 0 0 32px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img {
  width: 100%;
  max-width: 340px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,182,98,.22), transparent 70%);
  z-index: 1;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 84%; height: 84%;
  border: 1.5px solid rgba(227,182,98,.5);
  border-radius: 4px;
  z-index: 0;
}
.hero-scales {
  position: absolute;
  top: -40px; right: -60px;
  width: 420px;
  height: 420px;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.stats-band .stat { background: var(--navy); padding: 32px 20px; text-align: center; }
.stats-band .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 36px);
  color: var(--brass-light);
  margin-bottom: 6px;
}
.stats-band .stat span { font-size: 13px; color: #cdd2de; letter-spacing: .3px; }

/* Icon badge */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  color: var(--brass);
  margin-bottom: 18px;
}
.section.navy .icon-badge { background: rgba(227,182,98,.14); }

/* Lawyer teaser card */
.lawyer-teaser {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 32px;
}
.lawyer-teaser img { border-radius: 4px; width: 100%; }
.lawyer-teaser h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.lawyer-teaser p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.page-hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: #cdd2de; font-size: 15.5px; margin: 0; }
.page-hero.page-hero-photo {
  background-size: cover;
  background-position: center;
  padding: 88px 0 76px;
}
.page-hero.page-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(15,28,51,.93), rgba(15,28,51,.8));
}
.page-hero.page-hero-photo .container { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--cream-alt); }
.section.navy { background: var(--navy); color: #fff; }
.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}
.section-title.center { text-align: center; }
.section-lede {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 48px;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.section.navy .section-lede { color: #cdd2de; }

.prose p { font-size: 16px; color: #333a4d; margin-bottom: 18px; }
.prose a { color: var(--brass); font-weight: 600; border-bottom: 1px solid rgba(184,132,45,.45); }

/* ---------- Feature cards (Inicio) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 88px;
}
.feature-card { background: var(--cream); padding: 32px 26px; }
.feature-icon { color: var(--brass); margin-bottom: 16px; }
.feature-card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -20px rgba(20,33,61,.25);
  border-color: rgba(184,132,45,.45);
}
.service-card .card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
  transition: transform .5s ease;
}
.service-card:hover .card-img img { transform: scale(1.06); }
.service-card .card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(15,28,51,.8), rgba(15,28,51,.15) 65%);
}
.service-card .card-num {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(248,245,238,.94);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: 999px;
}
.service-card .card-body { padding: 22px 24px 26px; }
.service-card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; }
.service-card p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 16px; }
.service-card a.link { font-size: 13.5px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.service-card a.link:hover { color: var(--brass); }

.service-detail {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.service-detail:first-of-type { border-top: none; }
.service-detail-media { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) contrast(1.05); }
.service-detail h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 12px; }
.service-detail p { font-size: 15.5px; color: #333a4d; margin: 0 0 18px; }

/* ---------- Alliances ---------- */
.alliances {
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: 48px 44px;
  text-align: center;
}
.alliances h3 { font-family: var(--serif); font-size: 24px; color: var(--brass-light); margin: 0 0 14px; }
.alliances p { max-width: 680px; margin: 0 auto 28px; color: #cdd2de; font-size: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-list span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 18px; font-size: 13px; color: #e7e5da; }

/* ---------- Team / Nosotros ---------- */
.pillars { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin: 40px 0 0; }
.pillars div { text-align: center; max-width: 200px; }
.pillars strong { display: block; font-family: var(--serif); font-size: 15px; color: var(--brass-light); margin-bottom: 4px; }
.pillars span { font-size: 13px; color: #cdd2de; }

.bio {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.bio-photo { position: relative; }
.bio-photo img {
  width: 100%;
  border-radius: 4px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.bio-photo::after {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 90%; height: 90%;
  border: 1.5px solid var(--brass);
  z-index: -1;
  top: 14px; left: 14px;
}
.bio-name { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.bio-role { color: var(--brass); font-weight: 600; font-size: 13.5px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 20px; }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -20px rgba(20,33,61,.25); }
.post-card .post-body { padding: 24px; }
.post-date { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 10px; display: block; }
.post-card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; line-height: 1.35; }
.post-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }

.article-header { text-align: center; max-width: 720px; margin: 0 auto; }
.article-body { max-width: 720px; margin: 48px auto 0; }
.article-body p { font-size: 16.5px; color: #333a4d; margin-bottom: 20px; }
.article-body strong { color: var(--navy); }
.article-cta {
  background: var(--cream-alt);
  border-left: 3px solid var(--brass);
  padding: 24px 28px;
  margin-top: 32px;
  font-size: 15.5px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.article-nav a { color: var(--brass); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 72px;
}
.contact-item { background: var(--cream); padding: 28px 24px; }
.contact-item .label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; display: block; }
.contact-item p { font-size: 14.5px; margin: 0; color: var(--navy); }
.contact-item a { border-bottom: 1px solid rgba(184,132,45,.45); }

.contact-form-wrap { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { font-size: 14px; margin-top: 4px; }
.form-status--success { color: #2f7a4d; }
.form-status--error { color: #b34a3a; }
.form-status--info { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9adbc; padding: 44px 0 36px; }
.footer-logo { height: 44px; width: auto; margin: 0 auto 24px; display: block; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner a:hover { color: #fff; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .bio { grid-template-columns: 1fr; }
  .bio-photo { max-width: 340px; margin: 0 auto; }
  .service-detail { grid-template-columns: 1fr; gap: 16px; }
  .service-detail-media { max-width: 280px; }
  .hero-split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-portrait { max-width: 260px; margin: 40px auto 0; }
  .hero-scales { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .lawyer-teaser { grid-template-columns: 100px 1fr; }
  .lawyer-teaser a.btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .header-inner { position: relative; gap: 12px; }
  .brand-mark { height: 32px; }
  .brand .brand-name { font-size: 16px; white-space: nowrap; }
  .brand .brand-sub { font-size: 10px; letter-spacing: 2px; }
  .btn.btn-brass.btn-small { padding: 9px 14px; font-size: 12.5px; }
  .header-inner { justify-content: flex-start; gap: 8px; }
  .brand { min-width: 0; gap: 10px; }
  .header-inner > .btn-small { margin-left: auto; }
  .nav-toggle { display: block; order: 3; margin-right: -6px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: -24px; right: -24px;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 6px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 24px; }
  .nav-links a.active::after { display: none; }
  .feature-grid, .service-grid, .post-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  h1.page-title { font-size: 28px; }
  .section { padding: 64px 0; }
  .alliances { padding: 32px 22px; }
  .article-nav { flex-direction: column; gap: 8px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .lawyer-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand-mark { height: 28px; }
  .brand .brand-name { font-size: 14.5px; }
  .brand .brand-sub { font-size: 9px; letter-spacing: 1.5px; }
  .btn.btn-brass.btn-small { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 359px) {
  .header-inner > .btn-small { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* Texto justificado en párrafos largos */
.prose p,
.bio p:not(.bio-role),
.service-detail p,
.article-body p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Crédito de ArteLan Web */
.footer-credit { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: center; font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-credit a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; transition: opacity .2s ease; }
.footer-credit a:hover { opacity: .75; }
.footer-credit img { height: 15px; width: auto; display: block; }
