:root {
  --ink: #08131f;
  --ink-2: #0d1d2c;
  --navy: #10283b;
  --teal: #1c6b67;
  --teal-soft: #54a9a1;
  --gold: #c6a86f;
  --cream: #f6f2ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: rgba(8, 19, 31, 0.14);
  --muted: #5c6874;
  --shadow: 0 20px 60px rgba(5, 17, 29, 0.14);
  --radius: 24px;
  --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;
  background: var(--ink);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.page-shell {
  min-height: 100vh;
  background: var(--paper);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 19, 31, 0.92);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  min-width: 0;
}

.brand-mark {
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(198,168,111,0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  padding: 11px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  min-height: 780px;
  padding-top: 190px;
  padding-bottom: 130px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 28%, rgba(28, 107, 103, 0.28), transparent 34%),
    linear-gradient(135deg, #06101a 0%, #0a1927 48%, #10293b 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg,
.orb,
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(198,168,111,0.13);
  border-radius: 50%;
  inset: auto auto 5% 62%;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198,168,111,0.1);
  border-radius: 50%;
}

.orb::before { inset: 34px; }
.orb::after { inset: 74px; }

.orb-two {
  width: 250px;
  height: 250px;
  inset: 17% auto auto 77%;
  border-color: rgba(84,169,161,0.17);
}

.grid-lines {
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.55fr);
  gap: 90px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--teal);
}

.hero h1,
.section-heading h2,
.registration-copy h2,
.contact-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(4rem, 8.4vw, 8.7rem);
}

.hero h1 span {
  color: var(--gold);
  font-weight: 300;
}

.hero-rule {
  width: 180px;
  height: 1px;
  margin: 34px 0 36px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #111821;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d5ba84;
}

.btn-ghost {
  border-color: rgba(255,255,255,0.22);
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 24px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}

.panel-kicker {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.52);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-or {
  display: block;
  padding: 3px 0;
  color: rgba(255,255,255,0.46);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-or-light {
  padding: 8px 0 0;
  color: rgba(255,255,255,0.42);
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.phone-link:last-child {
  border-bottom: 0;
  padding-bottom: 6px;
}

.phone-link .arrow {
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.phone-link:hover .arrow {
  transform: translate(3px, -3px);
}

.section-light {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
}

.section-heading h2,
.registration-copy h2,
.contact-card h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.practice-card {
  min-height: 335px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.practice-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(28,107,103,0.06);
  transition: transform 0.35s ease;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(28,107,103,0.25);
}

.practice-card:hover::after {
  transform: scale(1.3);
}

.card-index {
  color: #85909a;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
}

.legal-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef5f3;
  color: var(--teal);
}

.legal-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  position: relative;
  z-index: 2;
  max-width: 220px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.12;
  font-weight: 500;
}

.brand-registration {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(28,107,103,0.18), transparent 42%),
    #0a1824;
  overflow: hidden;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr;
  align-items: center;
  gap: 100px;
}

.registration-copy p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 1.08rem;
}

.registration-art {
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
}

.registration-art::before,
.registration-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198,168,111,0.12);
  border-radius: 50%;
}

.registration-art::before { width: 380px; height: 380px; }
.registration-art::after { width: 280px; height: 280px; }

.document-shape {
  width: min(280px, 70vw);
  aspect-ratio: 0.78;
  position: relative;
  z-index: 2;
  padding: 46px 34px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  box-shadow: 0 32px 70px rgba(0,0,0,0.25);
  transform: rotate(4deg);
}

.doc-line {
  display: block;
  width: 62%;
  height: 2px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.22);
}

.doc-line.long { width: 82%; }
.doc-line.short { width: 45%; }

.seal {
  position: absolute;
  right: 34px;
  bottom: 38px;
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198,168,111,0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
}

.coverage-section {
  background: #f0eee8;
}

.coverage-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
  align-items: end;
}

.coverage-layout .section-heading {
  display: block;
  margin: 0;
}

.coverage-note {
  position: relative;
  padding: 32px 0 8px 34px;
  border-left: 1px solid rgba(8,19,31,0.18);
}

.note-line {
  position: absolute;
  width: 8px;
  height: 58px;
  left: -4px;
  top: 34px;
  border-radius: 999px;
  background: var(--teal);
}

.coverage-note p {
  margin: 0;
  max-width: 650px;
  color: #33404c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.35;
}

.contact-section {
  background: var(--paper);
  padding-top: 80px;
  padding-bottom: 100px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 70px;
  padding: 58px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-subtitle {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.58);
}

.contact-links {
  display: grid;
  align-content: center;
}

.contact-phone {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
}

.contact-phone:last-child { border-bottom: 0; }

.contact-phone small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-phone span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.site-footer {
  padding: 36px 0;
  background: #06101a;
  color: rgba(255,255,255,0.58);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.86rem;
}

.footer-inner > div {
  display: grid;
}

.footer-inner strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-inner a {
  color: var(--gold);
}

/* El contenido siempre es visible. JavaScript solo añade una animación decorativa;
   nunca es necesario para renderizar la página en Cloudflare Pages. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  animation: revealIn 0.65s ease both;
}

@keyframes revealIn {
  from { opacity: 0.72; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1040px) {
  .site-nav { gap: 18px; font-size: 0.84rem; }
  .hero-grid { grid-template-columns: 1fr 0.58fr; gap: 50px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .registration-grid { gap: 55px; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(8,19,31,0.98);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 90px;
  }

  .hero-grid,
  .registration-grid,
  .coverage-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 50px; }
  .hero-panel { max-width: 520px; }
  .registration-grid { gap: 20px; }
  .registration-art { min-height: 360px; }
  .coverage-layout { gap: 36px; }
  .contact-card { gap: 30px; padding: 42px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 74px; }
  .brand-mark { width: 40px; }
  .brand-copy strong { font-size: 0.98rem; }
  .brand-copy small { font-size: 0.61rem; }
  .hero { padding-top: 132px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.3rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 270px; }
  .section-heading { display: block; }
  .registration-art { min-height: 330px; }
  .coverage-note { padding-left: 24px; }
  .contact-card { padding: 34px 24px; border-radius: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
