:root {
  --ink: #0b1220;
  --ink-2: #121b2d;
  --paper: #f6f2e8;
  --paper-2: #fffdf8;
  --gold: #c9a45e;
  --gold-soft: #e8d5a4;
  --line: rgba(201, 164, 94, 0.28);
  --text: #202a3a;
  --muted: #677184;
  --white: #ffffff;
  --radius: 26px;
  --shadow: 0 22px 60px rgba(7, 15, 28, 0.13);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper-2);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-light { background: var(--paper-2); }
.section-paper { background: var(--paper); }
.section-dark { color: var(--white); background: var(--ink); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(9, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: .3s ease;
}
.site-header.scrolled { background: rgba(9, 17, 31, 0.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-soft); background: rgba(255,255,255,.03); font-size: 21px;
}
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-text strong { color: var(--gold-soft); letter-spacing: .18em; font-size: 15px; }
.brand-text small { color: rgba(255,255,255,.72); margin-top: 5px; font-size: 11px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 23px; color: rgba(255,255,255,.78); font-size: 13px; }
.main-nav a { transition: .2s ease; }
.main-nav a:hover { color: var(--gold-soft); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--gold-soft) !important; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: .25s ease; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(201,164,94,.22), transparent 23%),
    radial-gradient(circle at 70% 70%, rgba(201,164,94,.09), transparent 30%),
    linear-gradient(135deg, transparent 0 52%, rgba(255,255,255,.025) 52% 53%, transparent 53% 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(201,164,94,.12);
  border-radius: 50%; right: -160px; top: 90px; box-shadow: 0 0 0 90px rgba(201,164,94,.025), 0 0 0 180px rgba(201,164,94,.015);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 11px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.dark { color: #8e6f34; }
.hero h1 { margin: 24px 0 20px; max-width: 810px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.5vw, 6.3rem); line-height: .95; letter-spacing: -.04em; font-weight: 500; }
.hero h1 span { display: block; color: var(--gold-soft); }
.hero-lead { max-width: 680px; color: rgba(255,255,255,.74); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.hero-badges span { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); padding: 9px 13px; border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border-radius: 999px; font-weight: 800; font-size: 13px; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #14110b; box-shadow: 0 12px 30px rgba(201,164,94,.2); }
.btn-outline { border: 1px solid rgba(255,255,255,.22); color: var(--white); }
.office-link { display: inline-block; margin-top: 22px; color: var(--gold-soft); font-weight: 700; }

.hero-visual { display: grid; place-items: center; min-height: 500px; }
.justice-orbit { position: relative; width: min(420px, 85vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201,164,94,.24); animation: spin 24s linear infinite; }
.ring-one::after, .ring-two::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px rgba(201,164,94,.7); }
.ring-one::after { top: 12%; left: 20%; }
.ring-two { inset: 46px; animation-direction: reverse; animation-duration: 18s; }
.ring-two::after { bottom: 6%; right: 18%; }
.justice-card { width: 230px; aspect-ratio: .82; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: inset 0 0 50px rgba(201,164,94,.06), 0 25px 80px rgba(0,0,0,.22); border-radius: 36px 36px 70px 70px; }
.justice-icon { font-size: 58px; color: var(--gold-soft); filter: drop-shadow(0 10px 18px rgba(201,164,94,.18)); }
.justice-card strong { font-family: Georgia, serif; font-size: 46px; letter-spacing: .12em; color: var(--gold-soft); }
.justice-card small { letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: rgba(255,255,255,.5); animation: bob 2s ease-in-out infinite; }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading h2 { margin: 14px 0 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1.02; color: var(--ink); letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; }
.split-heading p { padding-bottom: 8px; }

.founders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.founder-card { padding: 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(14,22,35,.06); box-shadow: 0 12px 36px rgba(20,25,34,.06); transition: .25s ease; }
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.initial { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--gold-soft); font-family: Georgia, serif; font-size: 21px; margin-bottom: 34px; }
.founder-card h3 { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.founder-card p { color: #8c6c31; font-weight: 700; font-size: 13px; margin-bottom: 0; }

.practice-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.practice-card { grid-column: span 4; min-height: 265px; padding: 30px; border-radius: 24px; background: var(--paper-2); border: 1px solid rgba(14,22,35,.07); display: flex; flex-direction: column; transition: .25s ease; }
.practice-card:nth-child(4), .practice-card:nth-child(5), .practice-card:nth-child(6), .practice-card:nth-child(7) { grid-column: span 3; }
.practice-card:hover { transform: translateY(-5px); border-color: rgba(201,164,94,.55); box-shadow: 0 18px 42px rgba(13,21,33,.08); }
.practice-card > span { color: #9d7b3b; font-size: 12px; letter-spacing: .15em; }
.practice-card h3 { font-family: Georgia, serif; font-size: 1.7rem; margin: auto 0 8px; color: var(--ink); }
.practice-card p { margin: 0; color: var(--muted); font-size: 14px; }

.services-section { background: var(--ink-2); color: var(--white); position: relative; overflow: hidden; }
.services-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 8% 12%, rgba(201,164,94,.12), transparent 26%); pointer-events: none; }
.services-section .container { position: relative; }
.services-section .section-heading h2 { color: var(--white); }
.services-section .section-heading p { color: rgba(255,255,255,.62); }
.services-list { display: flex; flex-wrap: wrap; gap: 12px; }
.service-pill { border: 1px solid rgba(201,164,94,.22); background: rgba(255,255,255,.035); color: rgba(255,255,255,.84); border-radius: 18px; padding: 16px 18px; font-size: 14px; transition: .2s ease; }
.service-pill:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.experience-section { background: linear-gradient(120deg, #efe8da, #fbf9f3); }
.experience-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.experience-number { min-height: 430px; border-radius: 40px; display: grid; place-items: center; align-content: center; background: var(--ink); color: var(--gold-soft); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.experience-number::before { content: ""; position: absolute; inset: 26px; border: 1px solid var(--line); border-radius: 28px; }
.experience-number strong { font-family: Georgia, serif; font-size: clamp(7rem, 18vw, 13rem); line-height: .82; font-weight: 500; }
.experience-number span { margin-top: 26px; letter-spacing: .45em; font-size: 12px; }
.experience-copy h2 { font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; color: var(--ink); margin: 18px 0; font-weight: 500; }
.experience-copy > p { color: var(--muted); font-size: 1.15rem; }
.coverage-line { margin-top: 34px; display: grid; gap: 10px; border-left: 2px solid var(--gold); padding-left: 22px; font-weight: 700; color: var(--ink); }

.location-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.location-card, .schedule-card { border-radius: var(--radius); padding: 38px; border: 1px solid rgba(14,22,35,.07); background: var(--paper); }
.location-card h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin: 18px 0 30px; color: var(--ink); font-weight: 500; }
.location-card address { font-style: normal; color: var(--muted); font-size: 1.04rem; }
.schedule-card { background: var(--ink); color: var(--white); display: flex; align-items: center; gap: 26px; }
.schedule-icon { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-soft); font-size: 38px; }
.schedule-card .eyebrow { color: var(--gold-soft); }
.schedule-card h3 { font-family: Georgia, serif; font-size: 2rem; margin: 14px 0 4px; font-weight: 500; }
.schedule-card p { color: rgba(255,255,255,.68); margin: 0 0 8px; }
.schedule-card strong { color: var(--gold-soft); }

.contact-section { padding: 110px 0; background: #08101d; color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
.contact-copy h2 { font-family: Georgia, serif; font-size: clamp(2.6rem, 5.5vw, 5.2rem); line-height: .98; margin: 18px 0; font-weight: 500; max-width: 850px; }
.contact-copy > p { color: rgba(255,255,255,.65); max-width: 620px; }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.contact-card { border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 20px; background: rgba(255,255,255,.035); display: grid; gap: 5px; transition: .22s ease; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-card small { color: var(--gold-soft); text-transform: uppercase; letter-spacing: .14em; }
.contact-card strong { font-size: 1.05rem; }
.contact-card span { color: rgba(255,255,255,.52); font-size: 12px; }
.social-card { border-radius: 28px; background: linear-gradient(160deg, rgba(201,164,94,.15), rgba(255,255,255,.03)); border: 1px solid var(--line); padding: 30px; }
.social-card h3 { font-family: Georgia, serif; font-size: 2rem; margin: 14px 0 22px; }
.social-placeholder { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; margin-top: 10px; color: rgba(255,255,255,.82); }
.social-card p { color: rgba(255,255,255,.47); font-size: 12px; margin-bottom: 0; }

.site-footer { background: #050b14; color: rgba(255,255,255,.52); border-top: 1px solid rgba(255,255,255,.07); padding: 40px 0; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-grid strong { color: rgba(255,255,255,.8); letter-spacing: .05em; }
.footer-grid p { margin: 7px 0; }

.floating-wa { position: fixed; z-index: 40; right: 22px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fba64; color: white; font-size: 12px; font-weight: 900; box-shadow: 0 14px 34px rgba(0,0,0,.22); transition: .2s ease; }
.floating-wa:hover { transform: translateY(-4px) scale(1.02); }
.back-top { position: fixed; z-index: 39; right: 30px; bottom: 90px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(10,18,31,.9); color: white; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* El contenido permanece visible incluso si JavaScript no carga.
   La clase .visible solo añade una animación decorativa. */
.reveal { opacity: 1; transform: none; }
.reveal.visible { animation: revealIn .65s ease both; }
@keyframes revealIn {
  from { opacity: .72; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 82px; left: 20px; right: 20px; display: grid; gap: 4px; padding: 16px;
    background: rgba(9,17,31,.98); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 11px 12px; }
  .nav-cta { border-radius: 12px; }
  .hero-grid, .experience-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .founders-grid { grid-template-columns: 1fr 1fr; }
  .practice-card, .practice-card:nth-child(n) { grid-column: span 6; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section, .contact-section { padding: 78px 0; }
  .nav-wrap { min-height: 72px; }
  .main-nav { top: 72px; left: 14px; right: 14px; }
  .brand-text small { display: none; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .justice-orbit { width: 300px; }
  .justice-card { width: 178px; }
  .justice-card strong { font-size: 34px; }
  .justice-icon { font-size: 45px; }
  .founders-grid { grid-template-columns: 1fr; }
  .practice-card, .practice-card:nth-child(n) { grid-column: span 12; min-height: 220px; }
  .experience-number { min-height: 320px; }
  .location-card, .schedule-card { padding: 26px; }
  .schedule-card { align-items: flex-start; }
  .schedule-icon { width: 56px; height: 56px; flex-basis: 56px; font-size: 28px; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
