:root {
  --ink: #0b1720;
  --ink-2: #132632;
  --panel: #10212d;
  --cream: #f3efe6;
  --paper: #faf8f3;
  --line: rgba(255,255,255,.14);
  --gold: #c9a45f;
  --gold-soft: #e5ce9d;
  --text: #24323a;
  --muted: #63727b;
  --white: #fff;
  --shadow: 0 24px 60px rgba(6,18,24,.14);
  --radius: 26px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: 105px 0; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(8, 23, 31, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229,206,157,.45);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
}
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: var(--gold-soft); stroke-width: 2; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .12em; }
.brand-copy strong { font-size: .76rem; font-family: Arial, Helvetica, sans-serif; }
.brand-copy span { margin-top: 4px; color: var(--gold-soft); font-size: .72rem; font-family: Arial, Helvetica, sans-serif; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font: 600 .78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
}
.main-nav a { position: relative; padding: 12px 0; color: rgba(255,255,255,.84); }
.main-nav a:not(.nav-urgent)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--gold-soft);
  transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.main-nav .nav-urgent {
  padding: 12px 16px;
  border: 1px solid rgba(229,206,157,.55);
  border-radius: 999px;
  color: var(--gold-soft);
}
.menu-toggle { display: none; }

.hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(201,164,95,.13), transparent 30%),
    linear-gradient(125deg, #07131b 0%, #0d202b 58%, #112c39 100%);
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 68px;
  padding-top: 110px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font: 700 .75rem/1 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: .91;
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero h1 span { display: block; margin-top: 10px; color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.77);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 700 .82rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #111c22; }
.button-primary:hover { background: #d5b472; }
.button-outline { border: 1px solid rgba(255,255,255,.24); color: var(--white); }
.button-outline:hover { border-color: var(--gold-soft); }
.hero-meta {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 5px; }
.meta-label { margin-bottom: 3px; color: rgba(255,255,255,.45); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; }
.hero-meta a { color: var(--white); font-weight: 700; }
.hero-meta p { margin: 0; color: rgba(255,255,255,.68); font-size: .87rem; line-height: 1.55; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.justice-emblem {
  width: min(430px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229,206,157,.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,95,.08), transparent 64%);
  box-shadow: inset 0 0 70px rgba(201,164,95,.04);
}
.justice-emblem svg { width: 62%; height: 62%; }
.emblem-line { fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.emblem-dot { fill: var(--gold); }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.orbit-a { width: 490px; height: 490px; animation: drift 10s ease-in-out infinite; }
.orbit-b { width: 350px; height: 350px; border-style: dashed; animation: spin 25s linear infinite; }
.visual-card {
  position: absolute;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(10,28,38,.72);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.78);
  font: 700 .72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}
.visual-card-top { top: 90px; right: 0; }
.visual-card-bottom { left: 0; bottom: 82px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .28; }
.glow-one { width: 420px; height: 420px; right: -180px; top: 140px; background: radial-gradient(circle, rgba(201,164,95,.25), transparent 68%); }
.glow-two { width: 340px; height: 340px; left: -180px; bottom: -80px; background: radial-gradient(circle, rgba(45,98,121,.38), transparent 65%); }

.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; }
.section-heading h2 { margin: 0; max-width: 700px; color: var(--ink); font-size: clamp(2.3rem, 4.5vw, 4.25rem); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
.intro-text { margin: 0; max-width: 690px; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 1.08rem; line-height: 1.8; }

.specialties { background: var(--paper); }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.specialty-card {
  position: relative;
  min-height: 250px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #ded8ca;
  border-radius: 22px;
  background: #fffdf8;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.specialty-card::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,95,.13), transparent 68%);
}
.specialty-card:hover { transform: translateY(-7px); border-color: #c9b888; box-shadow: var(--shadow); }
.card-index { position: absolute; top: 20px; left: 22px; color: #a59a82; font: 700 .68rem/1 Arial, Helvetica, sans-serif; letter-spacing: .13em; }
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid #d8c79b;
  border-radius: 50%;
  background: #fbf4e4;
}
.card-icon svg { width: 25px; height: 25px; fill: none; stroke: #896d34; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.specialty-card h3 { margin: 0; color: var(--ink); font-size: 1.35rem; line-height: 1.15; font-weight: 500; }

.location { background: var(--ink); color: var(--white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.location-panel { max-width: 600px; }
.location-panel h2 { margin: 0; color: var(--white); font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: 1; font-weight: 500; }
.location-panel p { margin: 28px 0 32px; color: rgba(255,255,255,.7); font-family: Arial, Helvetica, sans-serif; font-size: 1.08rem; line-height: 1.85; }
.text-link { display: inline-flex; gap: 10px; color: var(--gold-soft); font: 700 .82rem/1 Arial, Helvetica, sans-serif; letter-spacing: .05em; }
.address-art {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(135deg, #102833, #0b1d27);
  background-size: 45px 45px, 45px 45px, auto;
  overflow: hidden;
}
.pin { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: rgba(201,164,95,.11); border: 1px solid rgba(229,206,157,.32); }
.pin svg { width: 48px; fill: none; stroke: var(--gold-soft); stroke-width: 2; }
.address-lines { position: absolute; inset: 28px; opacity: .28; }
.address-lines span { position: absolute; height: 1px; background: rgba(255,255,255,.28); transform-origin: left center; }
.address-lines span:nth-child(1) { width: 38%; left: 5%; top: 28%; transform: rotate(25deg); }
.address-lines span:nth-child(2) { width: 45%; right: 8%; top: 35%; transform: rotate(-16deg); }
.address-lines span:nth-child(3) { width: 42%; left: 2%; bottom: 28%; transform: rotate(-22deg); }
.address-lines span:nth-child(4) { width: 46%; right: 6%; bottom: 20%; transform: rotate(18deg); }
.address-caption { position: absolute; left: 26px; bottom: 24px; color: rgba(255,255,255,.55); font: 700 .7rem/1 Arial, Helvetica, sans-serif; letter-spacing: .13em; text-transform: uppercase; }

.contact { background: #efe9dd; }
.contact-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin: 0; color: var(--ink); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.contact-copy p { margin: 24px 0 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid #d9d0c1;
  border-radius: 20px;
  background: rgba(255,255,255,.68);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.contact-card:hover { transform: translateX(6px); box-shadow: 0 16px 36px rgba(33,47,55,.1); background: rgba(255,255,255,.92); }
.contact-kicker { color: #8a7a59; font: 700 .7rem/1 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .13em; }
.contact-card strong { color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; }
.contact-action { color: var(--muted); font: 700 .73rem/1 Arial, Helvetica, sans-serif; white-space: nowrap; }
.contact-action b { color: var(--gold); font-size: 1rem; }
.urgent-card { background: var(--ink); border-color: var(--ink); }
.urgent-card:hover { background: #102633; }
.urgent-card .contact-kicker, .urgent-card .contact-action { color: rgba(255,255,255,.6); }
.urgent-card strong { color: var(--gold-soft); }

.site-footer { padding: 66px 0 28px; background: #07141c; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding-bottom: 48px; }
.footer-brand { display: inline-block; color: var(--gold-soft); font-size: 1.3rem; letter-spacing: .06em; }
.footer-grid p { margin: 12px 0 0; color: rgba(255,255,255,.56); font-family: Arial, Helvetica, sans-serif; font-size: .9rem; }
.footer-contact p { margin: 0 0 10px; line-height: 1.65; }
.footer-contact a { color: rgba(255,255,255,.82); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font: 600 .72rem/1.4 Arial, Helvetica, sans-serif; }
.footer-bottom a { color: rgba(255,255,255,.64); }

.floating-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 17px 0 14px;
  border: 1px solid rgba(229,206,157,.45);
  border-radius: 999px;
  background: rgba(8,24,33,.94);
  color: var(--gold-soft);
  box-shadow: 0 14px 38px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  font: 700 .78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
  transition: transform .2s ease;
}
.floating-call:hover { transform: translateY(-3px); }
.floating-call svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.reveal { opacity: 1; transform: none; }
.reveal.visible { animation: revealUp .65s ease both; }
@keyframes revealUp {
  from { opacity: .01; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.02); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 28px; }
  .hero-visual { min-height: 450px; }
  .orbit-a { width: 400px; height: 400px; }
  .specialty-grid { grid-template-columns: repeat(6, 1fr); }
  .specialty-card { grid-column: span 2; }
  .specialty-card:nth-child(4), .specialty-card:nth-child(5) { grid-column: span 3; }
  .contact-wrap { grid-template-columns: 1fr; }
}


/* Respaldo: si JavaScript no carga, el contenido y la navegación siguen visibles. */
html.no-js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
@media (max-width: 860px) {
  :root { --shell: min(100% - 30px, 720px); }
  .section-pad { padding: 82px 0; }
  .header-inner { height: 74px; }
  .brand-copy strong { font-size: .69rem; }
  .brand-copy span { font-size: .65rem; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    color: white;
    cursor: pointer;
  }
  .menu-toggle span { width: 19px; height: 1px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: 74px 15px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(7,21,29,.98);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 65px rgba(0,0,0,.3);
    transform: translateY(-12px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .nav-urgent { margin-top: 8px; text-align: center; border: 1px solid rgba(229,206,157,.45); }

  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 150px 0 86px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; margin-top: 24px; }
  .justice-emblem { width: min(360px, 88vw); }
  .orbit-a { width: 360px; height: 360px; }
  .orbit-b { width: 280px; height: 280px; }
  .visual-card-top { top: 46px; right: 4px; }
  .visual-card-bottom { left: 0; bottom: 38px; }
  .intro-grid, .location-grid, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .location-grid { gap: 46px; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 26px); }
  .section-pad { padding: 70px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-grid { padding-top: 128px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-meta { margin-top: 34px; }
  .hero-visual { min-height: 320px; }
  .justice-emblem { width: 290px; }
  .orbit-a { width: 300px; height: 300px; }
  .orbit-b { width: 230px; height: 230px; }
  .visual-card { padding: 11px 12px; font-size: .63rem; }
  .visual-card-top { top: 34px; }
  .visual-card-bottom { bottom: 30px; }
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-card, .specialty-card:nth-child(4), .specialty-card:nth-child(5) { grid-column: auto; min-height: 190px; }
  .card-icon { margin-bottom: 28px; }
  .address-art { min-height: 300px; }
  .contact-card { min-height: 150px; grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .contact-card strong { font-size: 1.9rem; }
  .footer-bottom { flex-direction: column; }
  .floating-call { right: 14px; bottom: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


@media (max-width: 860px) {
  html.no-js .menu-toggle { display: none; }
  html.no-js .site-header { position: absolute; }
  html.no-js .header-inner { height: auto; min-height: 86px; align-items: flex-start; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
  html.no-js .main-nav {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  html.no-js .main-nav a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
}
