/* ==========================================================================
   Dra. Elizabeth Liliana Gagosz · Estudio Jurídico Integral
   Tipografías (Adobe Fonts): Kepler Std Display · Trajan Pro 3 · Proxima Nova
   ========================================================================== */

:root {
  --navy-950: #000c1c;
  --navy-900: #001937;
  --navy-800: #06254b;
  --navy-700: #0d3263;

  --gold-900: #7a4f10;
  --gold-700: #a9711b;
  --gold-500: #d2992e;
  --gold-400: #e4b13d;
  --gold-300: #f2cb57;
  --gold-200: #f3dd7b;
  --gold-100: #f8eb99;

  --ivory: #f6f0e4;
  --ivory-70: rgba(246, 240, 228, .72);
  --ivory-50: rgba(246, 240, 228, .5);
  --hair: rgba(228, 177, 61, .22);

  --gold-grad: linear-gradient(105deg, #a9711b 0%, #e4b13d 28%, #f8e39a 48%, #e4b13d 66%, #b8822a 100%);

  --f-display: "kepler-std-display", "Cormorant Garamond", Georgia, serif;
  --f-caps: "trajan-pro-3", "Cinzel", Georgia, serif;
  --f-sans: "proxima-nova", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --gutter: clamp(20px, 4.2vw, 64px);
  --topbar-h: 40px;
  --header-h: 92px;

  /* Relleno de los recortes internos del logo vectorial */
  --elg-cut: var(--navy-900);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* Sin cursivas en todo el sitio */
em, i, cite, address, blockquote, dfn, var { font-style: normal; }

::selection { background: var(--gold-400); color: var(--navy-900); }

:focus-visible { outline: 1px solid var(--gold-300); outline-offset: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.elg-cut { fill: var(--elg-cut); }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

html.is-locked, html.is-locked body { overflow: hidden; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  --h: 58px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h);
  padding: 0 32px;
  font-family: var(--f-caps);
  font-size: 11.5px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out),
              box-shadow .5s var(--ease-out), transform .35s var(--ease-out);
}
.btn .ico { font-size: 17px; transition: transform .6s var(--ease-out), color .4s; }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* Placa dorada grabada */
.btn--gold {
  color: #1b1204;
  background: linear-gradient(180deg, #f6dc94 0%, #e2b44d 40%, #cb962f 62%, #a9711b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 14px 34px -18px rgba(228, 177, 61, .7);
}
.btn--gold::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(92, 60, 8, .25);
  pointer-events: none;
}
.btn--gold::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-160%) skewX(-16deg);
  transition: transform 1.15s var(--ease-out);
}
.btn--gold:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(0, 0, 0, .32),
    0 20px 46px -18px rgba(228, 177, 61, .9);
}
.btn--gold:hover::after { transform: translateX(340%) skewX(-16deg); }

/* Contorno que se llena de oro */
.btn--ghost,
.btn--line {
  color: var(--ivory);
  border: 1px solid rgba(228, 177, 61, .38);
  background: linear-gradient(180deg, rgba(228, 177, 61, .07), rgba(228, 177, 61, .02));
}
.btn--ghost::before,
.btn--line::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #f0cd6a, #c9942f);
  transform: translateY(101%);
  transition: transform .75s var(--ease-out);
}
.btn--ghost .ico,
.btn--line .ico { color: var(--gold-300); }
.btn--ghost:hover,
.btn--line:hover { color: #1b1204; border-color: var(--gold-300); }
.btn--ghost:hover .ico,
.btn--line:hover .ico { color: #1b1204; }
.btn--ghost:hover::before,
.btn--line:hover::before { transform: translateY(0); }

.btn--line {
  --h: 46px;
  padding: 0 22px;
  font-size: 10.5px; letter-spacing: .2em;
  border-color: rgba(228, 177, 61, .3);
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader { display: none; }

.js .preloader {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  pointer-events: all;
}

.preloader__panel {
  position: absolute; left: 0; right: 0;
  height: 50.5%;
  background:
    radial-gradient(120% 90% at 50% 100%, #062650 0%, rgba(6, 38, 80, 0) 60%),
    var(--navy-900);
  will-change: transform;
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom {
  bottom: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #062650 0%, rgba(6, 38, 80, 0) 60%),
    var(--navy-900);
}

.preloader__seam {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300) 30%, var(--gold-100) 50%, var(--gold-300) 70%, transparent);
  transform: scaleX(0);
  box-shadow: 0 0 18px rgba(242, 203, 87, .6);
}

.preloader__glow {
  position: absolute;
  width: min(70vmin, 720px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 177, 61, .16) 0%, rgba(228, 177, 61, 0) 62%);
  opacity: 0;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px;
  text-align: center;
}

.pl-seal {
  width: clamp(200px, 34vmin, 320px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 40px rgba(228, 177, 61, .18));
}
.pl-shine { mix-blend-mode: screen; }

.pl-caption {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(26px, 4vmin, 40px);
}
.pl-line {
  width: clamp(28px, 6vw, 64px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.pl-line:last-child { background: linear-gradient(270deg, transparent, var(--gold-400)); }

.pl-kicker {
  font-family: var(--f-caps);
  font-size: clamp(10px, 1.25vw, 13px);
  letter-spacing: .38em;
  margin-right: -.38em;
  text-transform: uppercase;
  color: var(--gold-200);
  white-space: nowrap;
}
.pl-kicker .char { display: inline-block; white-space: pre; }

.pl-name {
  margin-top: 12px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: .02em;
  color: var(--ivory-70);
}

.pl-meter {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(32px, 6vmin, 56px);
}
.pl-meter__track {
  position: relative;
  width: clamp(120px, 18vw, 180px); height: 1px;
  background: rgba(246, 240, 228, .12);
  overflow: hidden;
}
.pl-meter__bar {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-200));
  transform: scaleX(0); transform-origin: 0 50%;
}
.pl-meter__count {
  min-width: 3.4em;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

/* Estado final cuando no hay GSAP / movimiento reducido */
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform .8s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 18, 42, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.topbar {
  position: relative;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(228, 177, 61, .12);
  overflow: hidden;
  transition: height .6s var(--ease-out), opacity .4s, border-color .4s;
}
.site-header.is-scrolled .topbar { height: 0; opacity: 0; border-color: transparent; }

.topbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory-50);
}
.topbar__item .ico { font-size: 14px; color: var(--gold-400); }
.topbar__item i { font-style: normal; color: var(--gold-500); margin-inline: 2px; }

.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: height .6s var(--ease-out);
}
.site-header.is-scrolled .header__inner { height: 76px; }

/* Marca */
.brand { display: flex; align-items: center; gap: 16px; }
.brand__seal {
  width: 56px; height: 56px;
  transition: transform 1.2s var(--ease-out), width .6s var(--ease-out), height .6s var(--ease-out);
}
.brand:hover .brand__seal { transform: rotate(-8deg) scale(1.04); }
.site-header.is-scrolled .brand__seal { width: 48px; height: 48px; }

.brand__text {
  display: flex; flex-direction: column;
  padding-left: 16px;
  border-left: 1px solid var(--hair);
  line-height: 1;
}
.brand__name {
  font-family: var(--f-display);
  font-size: 21px; font-weight: 400;
  letter-spacing: .01em;
  color: var(--ivory);
}
.brand__role {
  margin-top: 7px;
  font-family: var(--f-caps);
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* Navegación */
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ivory-70);
  transition: color .4s;
}
.nav__link > span,
.nav__link::before {
  display: block;
  transition: transform .7s var(--ease-out);
}
.nav__link { overflow: hidden; }
.nav__link::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 8px;
  color: var(--gold-200);
  transform: translateY(160%);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .7s var(--ease-out);
}
.nav__link:hover > span { transform: translateY(-160%); }
.nav__link:hover::before { transform: translateY(0); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link.is-active { color: var(--ivory); }

.header__actions { display: flex; align-items: center; gap: 18px; }

/* Hamburguesa */
.burger {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: border-color .4s;
}
.burger span {
  position: absolute; left: 14px; right: 14px;
  height: 1px;
  background: var(--ivory);
  transition: transform .6s var(--ease-out), top .6s var(--ease-out), background-color .4s;
}
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 27px; left: 20px; background: var(--gold-300); }
.burger:hover { border-color: var(--gold-400); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23.5px; left: 14px; transform: rotate(-45deg); }

/* ==========================================================================
   Menú móvil
   ========================================================================== */

.mmenu {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(13, 50, 99, .9) 0%, rgba(13, 50, 99, 0) 70%),
    var(--navy-900);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow-y: auto;
}
.mmenu.is-open { visibility: visible; }

.mmenu__watermark {
  position: absolute;
  right: -30%; bottom: -12%;
  width: 110%; max-width: 640px;
  opacity: .05;
  pointer-events: none;
}

.mmenu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(228, 177, 61, .12);
}
.mmenu__nav small {
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold-400);
}
.mmenu__nav span {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(32px, 8.5vw, 48px);
  line-height: 1.1;
}
.mmenu__nav li { overflow: hidden; }

.mmenu__foot { position: relative; display: grid; gap: 10px; margin-top: 40px; color: var(--ivory-70); font-size: 15px; }
.mmenu__kicker {
  font-family: var(--f-caps);
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-300);
}
.mmenu__foot .btn { margin-top: 18px; justify-self: start; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
}

.hero__media {
  position: absolute; inset: -24px;
  z-index: -3;
  will-change: transform;
}
.hero__media picture,
.hero__media img {
  width: 100%; height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 70% 50%;
}

.hero__veil {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 25, 55, .92) 0%, rgba(0, 25, 55, .78) 30%, rgba(0, 25, 55, .15) 62%, rgba(0, 25, 55, 0) 80%),
    linear-gradient(180deg, rgba(0, 16, 38, .75) 0%, rgba(0, 16, 38, 0) 26%),
    linear-gradient(0deg, rgba(0, 16, 38, .96) 0%, rgba(0, 16, 38, .55) 20%, rgba(0, 16, 38, 0) 42%);
}

.hero__grain {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__watermark {
  position: absolute;
  z-index: -1;
  left: -14vw; top: 50%;
  width: min(78vw, 980px);
  transform: translateY(-50%);
  opacity: .045;
  pointer-events: none;
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(24px, 4vh, 56px) clamp(32px, 6vh, 72px);
}

.eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(22px, 3vw, 34px);
  font-family: var(--f-caps);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.eyebrow__line {
  width: 56px; height: 1px;
  background: var(--gold-grad);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, min(5.9vw, 10.5vh), 96px);
  line-height: .98;
  letter-spacing: -.012em;
  color: var(--ivory);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .09em;
  margin-bottom: -.09em;
}
.hero__title .line > span { display: block; will-change: transform; }
.hero__title em {
  font-weight: 300;
  background: var(--gold-grad);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  animation: goldShift 9s ease-in-out infinite alternate;
}
@keyframes goldShift { to { background-position: 100% 0; } }

.hero__lead {
  max-width: 540px;
  margin-top: clamp(26px, 3vw, 38px);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-70);
}
.hero__lead strong { font-weight: 600; color: var(--ivory); }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* Zona inferior del hero */
.hero__bottom {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: clamp(24px, 3.5vw, 40px);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 3.5vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__scroll-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ivory-50);
  writing-mode: vertical-rl;
}
.hero__scroll-track {
  position: relative;
  width: 1px; height: 56px;
  background: rgba(246, 240, 228, .16);
  overflow: hidden;
}
.hero__scroll-track span {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 45%;
  background: linear-gradient(180deg, transparent, var(--gold-300));
  animation: scrollLine 2.4s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(230%); }
}

.hero__side {
  position: absolute;
  right: calc(var(--gutter) * .45);
  top: 50%;
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--ivory-50);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.hero__side span { width: 1px; height: 40px; background: var(--gold-500); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero__side { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 78px; }
  .topbar__areas { display: none; }
  .topbar__inner { justify-content: center; }
  .brand__seal { width: 48px; height: 48px; }
  .brand__name { font-size: 18px; }

  .hero__media img { object-position: 74% 50%; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(0, 16, 38, .82) 0%, rgba(0, 25, 55, .55) 35%, rgba(0, 25, 55, .6) 60%, rgba(0, 16, 38, .97) 100%);
  }

  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 34px; }
  body { font-size: 16px; }
  .topbar__item { font-size: 10px; letter-spacing: .16em; }
  .header__cta { display: none; }
  .brand { gap: 12px; }
  .brand__text { padding-left: 12px; }
  .brand__name { font-size: 17px; }
  .brand__role { font-size: 9px; }

  .hero { padding-top: calc(var(--topbar-h) + var(--header-h) + 24px); }
  .hero__content { padding-bottom: 40px; }
  .eyebrow { gap: 12px; letter-spacing: .28em; }
  .eyebrow__line { width: 32px; }
  .hero__title { font-size: clamp(42px, 12.4vw, 60px); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { padding: 0 22px; }

    flex-direction: column; align-items: flex-start; gap: 10px;
    font-size: 10px; letter-spacing: .16em;
  }
}

/* Pantallas bajas (notebooks 768px de alto) */
@media (min-width: 901px) and (max-height: 820px) {
  :root { --topbar-h: 34px; --header-h: 80px; }
  .brand__seal { width: 50px; height: 50px; }
  .hero__content { padding-block: 12px 28px; }
  .eyebrow { margin-bottom: 18px; }
  .hero__title { font-size: clamp(44px, 9.4vh, 80px); }
  .hero__lead { margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { --h: 50px; }
  .hero__bottom, .hero__scroll { padding-bottom: 20px; bottom: 20px; }
  .hero__scroll { padding-bottom: 0; }
  .hero__scroll-track { height: 40px; }
}

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