:root {
  --navy-950: #041229;
  --navy-900: #071a37;
  --navy-800: #0b2854;
  --navy-700: #143d77;
  --blue-100: #eaf1fb;
  --red-600: #d83a2f;
  --red-500: #eb4c3f;
  --gold-400: #f2bd5b;
  --white: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #dfe6ef;
  --surface: #f6f8fc;
  --shadow: 0 24px 60px rgba(4, 18, 41, .13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 108px 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red-600);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--white);
  background: rgba(4, 18, 41, .54);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  background: rgba(4, 18, 41, .97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .13);
}
.header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand__symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  border: 1px solid rgba(242, 189, 91, .46);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.brand__symbol svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__text strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: .2px; }
.brand__text span { margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.35px; opacity: .78; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { position: relative; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold-400); transition: right .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; color: var(--white); background: rgba(255, 255, 255, .09); cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

.hero {
  position: relative;
  min-height: 760px;
  padding: 170px 0 104px;
  color: var(--white);
  background: radial-gradient(circle at 85% 20%, rgba(20, 61, 119, .9), transparent 34%), linear-gradient(125deg, var(--navy-950) 0%, var(--navy-900) 52%, #0c2c5e 100%);
  overflow: hidden;
}
.hero__grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 72px 72px; }
.hero__grid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-950) 0%, transparent 55%); }
.hero__circle { position: absolute; border-radius: 50%; }
.hero__circle--one { width: 330px; height: 330px; right: -100px; top: 80px; border: 58px solid rgba(235, 76, 63, .1); }
.hero__circle--two { width: 160px; height: 160px; left: 48%; bottom: 75px; border: 28px solid rgba(242, 189, 91, .08); }
.hero__layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2.2px; }
.kicker span { width: 36px; height: 2px; background: var(--red-500); }
.kicker--dark { color: var(--navy-700); }
.hero h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6vw, 88px); line-height: .98; letter-spacing: -2.6px; }
.hero h1 em { display: block; margin-top: 12px; color: var(--gold-400); font-style: normal; }
.hero__lead { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.77); font-size: 19px; line-height: 1.72; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--white); background: var(--red-600); box-shadow: 0 14px 32px rgba(216, 58, 47, .29); }
.button--primary:hover { background: var(--red-500); }
.button--outline { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.button--outline:hover { background: rgba(255,255,255,.12); }
.hero__visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.justice-seal { position: relative; width: min(340px, 78vw); aspect-ratio: 1; display: grid; place-items: center; color: var(--gold-400); border: 1px solid rgba(242,189,91,.28); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), rgba(255,255,255,.025) 58%, transparent 59%); box-shadow: inset 0 0 70px rgba(242,189,91,.04), 0 30px 80px rgba(0,0,0,.22); }
.justice-seal::before, .justice-seal::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.16); }
.justice-seal::before { width: 390px; height: 390px; }
.justice-seal::after { width: 440px; height: 440px; }
.justice-seal svg { width: 195px; height: 195px; fill: none; stroke: currentColor; stroke-width: 3.7; stroke-linecap: round; stroke-linejoin: round; }
.floating-label { position: absolute; display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 13px 18px; color: var(--white); font-size: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(7,26,55,.82); box-shadow: 0 18px 44px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.floating-label span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold-400); font-size: 11px; border-radius: 10px; background: rgba(242,189,91,.1); }
.floating-label--one { top: 48px; right: -16px; }
.floating-label--two { left: -18px; bottom: 122px; }
.floating-label--three { right: 10px; bottom: 34px; }
.hero__bar { position: absolute; inset: auto 0 0; z-index: 3; border-top: 1px solid rgba(255,255,255,.12); background: rgba(2,12,29,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero__bar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.3px; }
.hero__bar-inner i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--red-500); }

.services { background: linear-gradient(180deg, var(--white), var(--surface)); }
.section-heading { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 50px; margin-bottom: 50px; }
.section-heading h2 { margin: 0; color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 66px); line-height: 1.05; letter-spacing: -1.7px; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 17px; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.92); overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service-card::before { content: ""; position: absolute; inset: auto -34px -42px auto; width: 120px; height: 120px; border: 18px solid var(--blue-100); border-radius: 50%; transition: transform .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(20,61,119,.28); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scale(1.12); border-color: rgba(235,76,63,.1); }
.service-card--wide { grid-column: span 2; }
.service-card--dark { color: var(--white); border-color: var(--navy-800); background: linear-gradient(145deg, var(--navy-900), var(--navy-700)); }
.service-card--dark::before { border-color: rgba(255,255,255,.08); }
.service-card--accent { border-color: rgba(216,58,47,.24); background: linear-gradient(145deg, #fff, #fff8f6); }
.service-card__number { position: absolute; top: 28px; right: 28px; color: #98a2b3; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.service-card--dark .service-card__number { color: rgba(255,255,255,.5); }
.service-card__icon { position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; color: var(--red-600); border-radius: 15px; background: rgba(216,58,47,.09); }
.service-card--dark .service-card__icon { color: var(--gold-400); background: rgba(242,189,91,.12); }
.service-card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { position: relative; z-index: 1; max-width: 94%; margin: 48px 0 0; color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.28; }
.service-card--dark h3 { color: var(--white); }

.advice { padding-top: 84px; background: var(--surface); }
.advice__card { position: relative; min-height: 245px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 50px 54px; color: var(--white); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--red-600), #b92320); box-shadow: 0 30px 70px rgba(181,35,32,.23); overflow: hidden; }
.advice__decoration { position: absolute; width: 280px; height: 280px; right: 13%; top: -180px; border: 45px solid rgba(255,255,255,.08); border-radius: 50%; }
.advice__icon { position: relative; z-index: 1; width: 88px; height: 88px; display: grid; place-items: center; color: var(--gold-400); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.1); }
.advice__icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.advice__card > div:not(.advice__decoration) { position: relative; z-index: 1; }
.advice__card .kicker { margin-bottom: 8px; }
.advice__card .kicker span { background: var(--gold-400); }
.advice__card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.08; }
.button--light { position: relative; z-index: 1; color: var(--red-600); background: var(--white); }
.button--light:hover { box-shadow: 0 15px 32px rgba(61,0,0,.18); }

.footer { color: var(--white); background: var(--navy-950); }
.footer__inner { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand > div { display: flex; flex-direction: column; }
.footer__brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.footer__brand div span { color: rgba(255,255,255,.62); font-size: 13px; }
.footer nav { display: flex; gap: 28px; color: rgba(255,255,255,.72); font-size: 14px; }
.footer a:hover { color: var(--gold-400); }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); border: 0; border-radius: 50%; background: var(--navy-800); box-shadow: 0 12px 28px rgba(4,18,41,.24); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: .25s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* El contenido permanece visible aun cuando JavaScript no cargue. */
[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero { min-height: auto; padding-bottom: 128px; }
  .hero__layout { grid-template-columns: 1fr; gap: 64px; }
  .hero__content { text-align: center; }
  .hero__content .kicker { justify-content: center; }
  .hero h1, .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { min-height: 430px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading > p { max-width: 670px; }
  .advice__card { grid-template-columns: auto 1fr; }
  .advice__card .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 82px 0; }
  .header__inner { min-height: 72px; }
  .brand__symbol { width: 42px; height: 42px; flex-basis: 42px; }
  .brand__text strong { font-size: 18px; }
  .brand__text span { font-size: 10px; letter-spacing: 1px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; top: 72px; left: 14px; right: 14px; display: grid; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(4,18,41,.99); box-shadow: 0 20px 50px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease; }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 14px 12px; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,.06); }
  .nav a::after { display: none; }
  .hero { padding-top: 135px; }
  .hero h1 { font-size: clamp(46px, 13vw, 67px); letter-spacing: -1.8px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero__visual { min-height: 380px; }
  .justice-seal::before { width: 330px; height: 330px; }
  .justice-seal::after { width: 365px; height: 365px; }
  .floating-label { min-width: 185px; padding: 11px 13px; font-size: 12px; }
  .floating-label--one { right: 0; top: 20px; }
  .floating-label--two { left: 0; bottom: 84px; }
  .floating-label--three { right: 0; bottom: 8px; }
  .hero__bar { position: relative; margin-top: 70px; }
  .hero__bar-inner { padding-block: 22px; flex-wrap: wrap; justify-content: center; }
  .hero__bar-inner i { display: none; }
  .hero__bar-inner span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
  .section-heading h2 { font-size: 46px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: auto; }
  .service-card { min-height: 210px; }
  .advice { padding-top: 60px; }
  .advice__card { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; text-align: center; }
  .advice__icon { margin-inline: auto; }
  .advice__card .kicker { justify-content: center; }
  .advice__card .button { grid-column: auto; justify-self: stretch; }
  .footer__inner { min-height: auto; flex-direction: column; align-items: flex-start; padding-block: 44px; }
  .footer nav { width: 100%; flex-wrap: wrap; gap: 16px 24px; }
}

@media (max-width: 420px) {
  .brand__text span { display: none; }
  .hero h1 { font-size: 44px; }
  .hero__visual { min-height: 340px; }
  .justice-seal { width: 250px; }
  .justice-seal::before { width: 275px; height: 275px; }
  .justice-seal::after { width: 305px; height: 305px; }
  .justice-seal svg { width: 145px; height: 145px; }
  .floating-label { min-width: 164px; }
  .service-card { padding: 24px; }
  .service-card__number { top: 24px; right: 24px; }
  .service-card h3 { font-size: 22px; }
}

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