/* =========================================================
   FG Estudio Jurídico — Rediseño 2026
   Paleta: navy profundo + dorado de marca
   ========================================================= */
:root {
  --ink-950: #050816;
  --ink-900: #070B1F;
  --ink-850: #0A1030;
  --ink-800: #0D1540;
  --navy-600: #1838A8;
  --navy-500: #0047CC;
  --gold-100: #FFF1C2;
  --gold-300: #F9D65C;
  --gold-400: #F2C744;
  --gold-500: #D9A830;
  --gold-600: #B8892A;
  --gold-grad: linear-gradient(100deg, #FFD97A 0%, #F9D65C 22%, #D3A22F 48%, #F2C744 72%, #FBE08A 100%);
  --text: #E9ECF5;
  --muted: #9AA3C0;
  --line: rgba(233, 236, 245, .09);
  --line-gold: rgba(242, 199, 68, .28);
  --glass: rgba(18, 26, 66, .45);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  background: var(--ink-900);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-400); color: var(--ink-900); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

/* ---------- Utilities ---------- */
.gold-text {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}
em.gold-text { font-style: italic; }
@keyframes sheen { to { background-position: 200% center; } }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 22px;
}
.eyebrow__line { width: 36px; height: 1px; background: var(--gold-grad); }
.eyebrow--center { justify-content: center; }

.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s;
  overflow: hidden; isolation: isolate; white-space: nowrap; cursor: pointer; border: 0;
}
.btn--sm { --h: 44px; padding: 0 22px; font-size: .88rem; }
.btn--lg { --h: 62px; padding: 0 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-grad); background-size: 200% auto; color: #1A1406; box-shadow: 0 10px 30px -10px rgba(242, 199, 68, .55); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(242, 199, 68, .7); background-position: 100% center; }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-gold); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow, .area:hover .arrow, .post:hover .arrow { transform: translateX(5px); }
.ico-wa { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--ink-950); transition: opacity .8s var(--ease), visibility .8s;
}
.preloader__mark {
  width: 90px; aspect-ratio: 978/1400;
  -webkit-mask: url(assets/logo-dorado.png) center/contain no-repeat; mask: url(assets/logo-dorado.png) center/contain no-repeat;
  background: var(--gold-grad); background-size: 300% auto;
  animation: sheen 1.4s linear infinite, pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }
.preloader.is-done { opacity: 0; visibility: hidden; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-950); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); position: relative; z-index: 60; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar a:hover { color: var(--gold-300); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-400); stroke-width: 1.8; }
.topbar__pill { border: 1px solid var(--line-gold); padding: 4px 14px; border-radius: 999px; color: var(--gold-300); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .4s, border-color .4s, box-shadow .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 11, 31, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0,0,0,.6); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__inner { height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { height: 46px; width: auto; filter: drop-shadow(0 4px 14px rgba(242,199,68,.35)); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; }
.brand__text small { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-300); margin-top: 4px; }
.nav__links { display: flex; gap: 30px; font-size: .92rem; font-weight: 500; }
.nav__links a { position: relative; color: #C9CFE3; transition: color .25s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-extra { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-gold); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--gold-300); transition: transform .35s var(--ease), top .35s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 42px); margin-top: -84px; padding: 150px 0 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 46% at 68% 44%, rgba(0, 71, 204, .55), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, rgba(24, 56, 168, .35), transparent 70%),
    radial-gradient(25% 25% at 75% 50%, rgba(242, 199, 68, .10), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.05); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(60% 60% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 60% 45%, #000 20%, transparent 75%);
  opacity: .55;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: 1.0; letter-spacing: -.015em; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: #B9C1DB; max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .88rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(242,199,68,.15); }

.hero__visual { position: relative; height: min(640px, 72vh); }
.emblem { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s ease-out; }
.emblem__ring { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-gold); animation: spin 40s linear infinite; }
.emblem__ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 18px 4px rgba(242,199,68,.7); }
.emblem__ring--2 { width: 104%; border-style: dashed; border-color: rgba(242,199,68,.12); animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem__logo {
  position: relative; height: 84%; aspect-ratio: 978/1400;
  -webkit-mask: url(assets/logo-dorado.png) center/contain no-repeat; mask: url(assets/logo-dorado.png) center/contain no-repeat;
  background: linear-gradient(115deg, #B8892A 0%, #FFE9A8 18%, #D3A22F 34%, #F9D65C 52%, #fff6d6 60%, #D3A22F 72%, #F2C744 100%);
  background-size: 260% 260%;
  animation: logoSheen 5s ease-in-out infinite, draw 2.2s var(--ease) .4s both;
}
.emblem__logo--blur { position: absolute; filter: blur(14px); opacity: .55; }
@keyframes logoSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes draw { from { clip-path: inset(100% 0 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.emblem__logo--blur { animation: logoSheen 5s ease-in-out infinite, draw 2.2s var(--ease) .4s both, breathe 4s ease-in-out 2.6s infinite; }
@keyframes breathe { 50% { opacity: .9; } }

.float-card { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); transition: transform .25s ease-out; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .92rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,199,68,.12); color: var(--gold-300); font-size: 1.15rem; border: 1px solid var(--line-gold); }
.float-card__icon--live { position: relative; }
.float-card__icon--live::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.float-card--a { top: 12%; left: -4%; }
.float-card--b { bottom: 14%; right: -2%; animation-delay: -2s; }
.float-card--c { top: 6%; right: 4%; flex-direction: column; gap: 0; text-align: center; padding: 14px 20px; animation-delay: -4s; }
.float-card .big { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
@keyframes floaty { 50% { translate: 0 -12px; } }

.stats { margin-top: 70px; border-radius: 22px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { display: block; margin-top: 8px; color: var(--muted); font-size: .85rem; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; border: 1px solid var(--line-gold); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold-300); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink-950); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; color: #D6DBEC; white-space: nowrap; }
.marquee i { color: var(--gold-400); font-style: normal; font-size: .9rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.about__media:hover .about__frame img { transform: scale(1.14); }
.about__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,11,31,.65)); }
.about__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--line-gold); border-radius: 26px; z-index: -1; }
.about__badge { position: absolute; right: -28px; bottom: 40px; padding: 20px 24px; border-radius: 18px; display: flex; align-items: center; gap: 14px; }
.about__badge strong { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.about__badge span { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.about__copy > p { color: #B9C1DB; margin-bottom: 18px; font-size: 1.04rem; }
.about__copy strong { color: #fff; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.value { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.015); transition: border-color .35s, transform .35s var(--ease), background .35s; }
.value:hover { border-color: var(--line-gold); transform: translateY(-3px); background: rgba(242,199,68,.04); }
.value__n { font-size: .72rem; color: var(--gold-400); letter-spacing: .15em; font-weight: 700; }
.value strong { display: block; font-family: var(--serif); font-size: 1.4rem; margin: 4px 0 2px; }
.value small { color: var(--muted); font-size: .86rem; }

/* ---------- Areas ---------- */
.areas { background: linear-gradient(180deg, var(--ink-900), var(--ink-850) 50%, var(--ink-900)); }
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area {
  --mx: 50%; --my: 50%;
  position: relative; padding: 36px 32px 30px; border-radius: var(--radius); cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, rgba(20,30,78,.55), rgba(10,16,48,.55));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.area::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(242,199,68,.13), transparent 45%); opacity: 0; transition: opacity .4s; }
.area:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: 0 30px 60px -30px rgba(242,199,68,.35); }
.area:hover::before { opacity: 1; }
.area__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(242,199,68,.08); border: 1px solid var(--line-gold); margin-bottom: 26px; transition: background .4s, transform .5s var(--ease); }
.area__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area:hover .area__icon { background: var(--gold-grad); transform: rotate(-6deg); }
.area:hover .area__icon svg { stroke: #1A1406; }
.area h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; margin-bottom: 10px; line-height: 1.15; }
.area p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.area__link { font-weight: 700; font-size: .88rem; color: var(--gold-300); }
.area__num { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242,199,68,.18); transition: -webkit-text-stroke-color .4s; }
.area:hover .area__num { -webkit-text-stroke-color: rgba(242,199,68,.5); }

/* ---------- Process ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline__bar { position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: var(--line); }
.timeline__fill { height: 100%; width: 0; background: var(--gold-grad); box-shadow: 0 0 14px rgba(242,199,68,.7); transition: width .2s linear; }
.step { position: relative; }
.step__dot { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; background: var(--ink-900); border: 1px solid var(--line-gold); color: var(--gold-300); margin-bottom: 26px; transition: background .5s, color .5s, box-shadow .5s; }
.step.is-on .step__dot { background: var(--gold-grad); color: #1A1406; box-shadow: 0 0 0 8px rgba(242,199,68,.1), 0 10px 30px -8px rgba(242,199,68,.6); }
.step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Portal ---------- */
.portal { background: radial-gradient(50% 60% at 80% 50%, rgba(0,71,204,.28), transparent 70%), var(--ink-850); border-block: 1px solid var(--line); }
.portal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.portal__copy > p { color: #B9C1DB; margin-bottom: 34px; font-size: 1.04rem; }
.mock { border-radius: 22px; overflow: hidden; transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); transition: transform .8s var(--ease); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(242,199,68,.08); }
.portal__mock:hover .mock { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(5,8,22,.5); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2A3260; }
.mock__bar span:first-child { background: #E5675C; } .mock__bar span:nth-child(2) { background: #E6B94A; } .mock__bar span:nth-child(3) { background: #4BC47D; }
.mock__bar em { margin-left: 12px; font-style: normal; font-size: .78rem; color: var(--muted); }
.mock__body { padding: 28px; }
.mock__hello { font-size: 1.1rem; margin-bottom: 20px; }
.mock__case { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.mock__case small { display: block; color: var(--muted); font-size: .75rem; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(242,199,68,.12); color: var(--gold-300); border: 1px solid var(--line-gold); }
.tag--ok { background: rgba(61,220,151,.1); color: #6BE8B0; border-color: rgba(61,220,151,.3); }
.mock__progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); margin: 20px 0; overflow: hidden; }
.mock__progress span { display: block; height: 100%; width: var(--p); background: var(--gold-grad); border-radius: 6px; }
.mock__feed { list-style: none; display: grid; gap: 12px; font-size: .9rem; color: #C9CFE3; }
.mock__feed li { display: flex; align-items: center; gap: 12px; }
.mock__feed i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #3A4374; }
.mock__feed i.ok { background: var(--gold-400); border-color: var(--gold-400); }
.mock__feed i.now { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(242,199,68,.18); animation: pulse 1.6s infinite; }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 880px; margin: 0 auto; text-align: center; padding: 60px clamp(24px, 6vw, 80px) 44px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20,30,78,.5), rgba(10,16,48,.3)); }
.slider__quote-mark { position: absolute; top: -40px; left: 50%; translate: -50% 0; font-family: var(--serif); font-size: 9rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slider__track { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; font-style: italic; color: #EEF0F8; margin-bottom: 30px; }
.slide figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--gold-grad); color: #1A1406; }
.slide figcaption small { display: block; color: var(--muted); font-size: .82rem; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.slider__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-gold); background: transparent; color: var(--gold-300); cursor: pointer; font-size: 1.1rem; transition: background .3s, color .3s; }
.slider__btn:hover { background: var(--gold-400); color: var(--ink-900); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: #2E3766; cursor: pointer; transition: width .4s var(--ease), background .4s; }
.slider__dots button.is-active { width: 30px; background: var(--gold-400); }

/* ---------- Posts ---------- */
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { position: relative; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .4s, transform .5s var(--ease), background .4s; overflow: hidden; }
.post::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.post:hover { border-color: var(--line-gold); transform: translateY(-5px); background: rgba(242,199,68,.03); }
.post:hover::after { transform: scaleX(1); }
.post h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; margin: 22px 0 10px; }
.post p { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.post__more { color: var(--gold-300); font-weight: 700; font-size: .88rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info > p { color: #B9C1DB; margin-bottom: 30px; }
.contact__cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .35s, transform .4s var(--ease); }
.ccard:hover { border-color: var(--line-gold); transform: translateX(6px); }
.ccard__icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,199,68,.1); border: 1px solid var(--line-gold); }
.ccard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-300); stroke-width: 1.8; }
.ccard small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.ccard strong { display: block; font-size: 1.02rem; }
.ccard span { font-size: .85rem; color: var(--muted); }

.form { padding: 38px; border-radius: 24px; }
.form h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.form__hint { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 24px 18px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(5,8,22,.45); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; appearance: none;
}
.field textarea { min-height: 120px; }
.field select option { background: var(--ink-850); }
.field--select::after { content: "▾"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--gold-300); pointer-events: none; }
.field label { position: absolute; left: 18px; top: 17px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(242,199,68,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 7px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #E5675C; }
.form__error { color: #F08A80; font-size: .85rem; margin-top: 12px; min-height: 1.2em; }

.map { position: relative; margin-top: 70px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(190deg) contrast(.9) brightness(.9); }
.map__btn { position: absolute; right: 20px; bottom: 20px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 150px) 0; text-align: center; background: radial-gradient(60% 80% at 50% 50%, rgba(0,71,204,.45), transparent 70%), var(--ink-950); }
.cta__mark { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 150%; aspect-ratio: 978/1400; -webkit-mask: url(assets/logo-dorado.png) center/contain no-repeat; mask: url(assets/logo-dorado.png) center/contain no-repeat; background: var(--gold-400); opacity: .08; }
.cta__inner { position: relative; }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 18px; }
.cta p { color: #B9C1DB; margin-bottom: 36px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); border-top: 1px solid var(--line); padding: 80px 0 30px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 120px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 300px; }
.footer h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 18px; }
.footer__grid a { display: block; color: #B9C1DB; margin-bottom: 10px; transition: color .25s, transform .25s; }
.footer__grid a:hover { color: var(--gold-300); transform: translateX(3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.to-top:hover { color: var(--gold-300); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25D366; box-shadow: 0 14px 34px -10px rgba(37,211,102,.7); transition: transform .4s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPing 2.4s infinite; }
@keyframes waPing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip { position: absolute; right: 76px; white-space: nowrap; background: #fff; color: #111; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 10px; opacity: 0; translate: 10px 0; transition: opacity .3s, translate .3s; pointer-events: none; }
.wa-float:hover .wa-float__tip { opacity: 1; translate: 0 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; font-size: .88rem; }
  .float-card--a { left: 0; }
}
@media (max-width: 960px) {
  .topbar__info .hide-sm, .topbar__info a:first-child { display: none; }
  .nav__cta { display: none; }
  .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 11, 31, .97); }
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); flex-direction: column; gap: 6px;
    padding: 110px 34px 40px; background: rgba(7,11,31,.97); backdrop-filter: blur(20px);
    border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease); font-size: 1.15rem; z-index: -1;
  }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links.is-open { transform: none; }
  .nav__mobile-extra { display: flex; flex-direction: column; margin-top: 24px; }
  .nav__mobile-extra a { color: var(--gold-300); font-size: .95rem; }
  .hero { padding-top: 130px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; }
  .float-card--a { left: 0; top: 8%; } .float-card--b { right: 0; } .float-card--c { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .about__grid, .portal__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .about__badge { right: -10px; }
  .areas__grid, .posts__grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .timeline__bar { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .topbar__links { gap: 14px; } .topbar__links a:first-child { display: none; }
  .hero { padding-top: 120px; }
  .hero__visual { height: 320px; }
  .stats { margin-top: 30px; }
  .stat { padding: 22px 12px; }
  .float-card { padding: 10px 14px; } .float-card small { display: none; }
  .areas__grid, .posts__grid, .timeline, .values { grid-template-columns: 1fr; }
  .form { padding: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .map { height: 300px; }
}

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

/* =========================================================
   Páginas internas (publicaciones / publicación)
   ========================================================= */
.subpage .nav { position: sticky; }
.page-hero { position: relative; overflow: hidden; padding: 150px 0 70px; margin-top: -70px; }
.page-hero .hero__glow { background: radial-gradient(40% 60% at 75% 30%, rgba(0,71,204,.5), transparent 70%), radial-gradient(30% 40% at 10% 90%, rgba(24,56,168,.3), transparent 70%); }
.page-hero__mark { position: absolute; right: -4%; top: 50%; translate: 0 -46%; height: 120%; aspect-ratio: 978/1400; -webkit-mask: url(assets/logo-dorado.png) center/contain no-repeat; mask: url(assets/logo-dorado.png) center/contain no-repeat; background: var(--gold-grad); background-size: 300% auto; opacity: .16; animation: sheen 8s linear infinite; pointer-events: none; }
.page-hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 18px; max-width: 900px; }
.page-hero__title--article { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.page-hero__lead { color: #B9C1DB; font-size: 1.1rem; max-width: 680px; }
.crumbs { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span:last-child { color: var(--gold-300); }
.section--tight { padding: 60px 0 100px; }

.toolbar { margin-top: 40px; padding: 12px; border-radius: 20px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid transparent; background: transparent; color: #C9CFE3; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { color: #fff; border-color: var(--line-gold); }
.chip.is-active { background: var(--gold-grad); color: #1A1406; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 420px; min-width: 220px; padding: 0 16px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5,8,22,.45); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(242,199,68,.12); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-300); stroke-width: 2; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: none; font-size: .95rem; }
.search input::placeholder { color: var(--muted); }
.results-info { color: var(--muted); font-size: .88rem; margin-bottom: 22px; min-height: 1.3em; }
.load-more { text-align: center; margin-top: 46px; }

.post__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post__top time { color: var(--muted); font-size: .82rem; }
.post--live { display: flex; flex-direction: column; }
.post--live h3 { font-size: 1.6rem; line-height: 1.2; }
.post--live p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.tag--sentencia { background: rgba(0,71,204,.18); color: #9DB8FF; border-color: rgba(120,160,255,.3); }
.tag--caso { background: rgba(61,220,151,.1); color: #6BE8B0; border-color: rgba(61,220,151,.3); }

.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk--tag { width: 90px; height: 24px; border-radius: 999px; margin-bottom: 24px; }
.sk--title { height: 26px; width: 90%; margin-bottom: 10px; }
.sk--line { height: 12px; width: 100%; margin-top: 12px; }
.sk--short { width: 55%; }
.page-hero__title .sk--title { height: .8em; margin-bottom: .2em; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 30px; border-radius: 24px; }
.empty__mark { width: 60px; margin: 0 auto 20px; aspect-ratio: 978/1400; -webkit-mask: url(assets/logo-dorado.png) center/contain no-repeat; mask: url(assets/logo-dorado.png) center/contain no-repeat; background: var(--gold-grad); }
.empty h3 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 6px; }
.empty p { color: var(--muted); }

.cta--compact { padding: 90px 0; }
.cta--compact .cta__mark { height: 180%; }

/* Detalle */
.page-hero--article { padding-bottom: 50px; }
.article-head > * { max-width: 900px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-bottom: 18px; flex-wrap: wrap; }
.article-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.article { padding: clamp(28px, 4vw, 52px); border-radius: 26px; }
.article__content p { font-size: 1.1rem; line-height: 1.85; color: #D7DCEB; margin-bottom: 1.3em; }
.article__content p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 4.2rem; line-height: .85; padding: 6px 12px 0 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.article__msg { color: #B9C1DB; font-size: 1.05rem; }
.article__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.ico-line { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { padding: 28px; border-radius: 22px; }
.aside-card__mark { height: 44px; width: auto; margin-bottom: 16px; }
.aside-card h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.aside-card h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 14px; }
.share { display: flex; gap: 10px; }
.share a, .share button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); background: transparent; color: var(--gold-300); cursor: pointer; transition: background .3s, color .3s; }
.share a:hover, .share button:hover { background: var(--gold-400); color: var(--ink-900); }
.share__ok { display: block; margin-top: 10px; font-size: .82rem; color: #6BE8B0; min-height: 1.2em; word-break: break-all; }
.related { border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .page-hero__mark { opacity: .08; right: -30%; }
}
@media (max-width: 620px) {
  .toolbar { border-radius: 18px; }
  .search { max-width: none; }
  .chips { flex-wrap: nowrap; width: 100%; justify-content: space-between; gap: 2px; }
  .chip { padding: 9px 12px; font-size: .84rem; }
}
