/* =============================================================
   GELIS LEGAL GROUP — Dirección "Mármol"
   1. Tokens
   ============================================================= */
:root {
  --ivory: #f7f2e9;
  --ivory-2: #fbf8f1;
  --sand: #eae0cf;
  --sand-2: #efe7d8;
  --ink: #2b2318;
  --ink-2: #3b2f1f;
  --ink-deep: #1a140d;
  --slate: #5a5140;
  --stone: #6b6a60;
  --line: #e4dac8;
  --line-2: #d8ccb4;
  --gold: #c9a24b;
  --gold-soft: #d8bd82;
  --bronze: #a9793f;
  --bronze-deep: #123259;
  --bronze-deep-2: #032856;

  --bg: var(--ivory);
  --text: var(--ink);
  --text-muted: #6b6152;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --sect-y: clamp(2.25rem, 5vw, 4.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16'%3E%3Cpath fill='%23c9a24b' d='M0 0h12v4h-8v8h8v4H0z'/%3E%3C/svg%3E");
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.wide { max-width: 1440px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--ivory);
  border-radius: 6px; font-size: .85rem; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bronze);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold);
}
.eyebrow.is-centered::after {
  content: ""; width: 26px; height: 1px; background: var(--gold);
}
.eyebrow.is-centered { justify-content: center; }

.greca {
  height: 14px; width: 100%;
  background-image: var(--greca);
  background-repeat: repeat-x; background-position: left center;
  opacity: .9;
}
.greca-sm {
  width: 90px; height: 12px; margin-inline: auto;
  background-image: var(--greca);
  background-repeat: repeat-x; background-size: auto 12px;
}

.section-head { max-width: 720px; }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: -0.01em; }
.serif-em { font-style: italic; color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--slate); }

/* =============================================================
   5. Components — buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: var(--ivory); }
.btn-navy { position: relative; overflow: hidden; background: var(--bronze-deep-2); color: var(--ivory); }
.btn-navy:hover { background: var(--gold); color: var(--ink); }
.btn-navy::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left .7s var(--ease-out);
}
.btn-navy:hover::before { left: 120%; }
.btn-olive { position: relative; overflow: hidden; background: #5c6640; color: var(--ivory); }
.btn-olive:hover { background: #4a5233; }
.btn-olive::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left .7s var(--ease-out);
}
.btn-olive:hover::before { left: 120%; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arw { transition: transform .45s var(--ease-out); }
.btn:hover .arw { transform: translateX(4px); }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--ink); padding-bottom: 3px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline .arw { transition: transform .45s var(--ease-out); }
.link-underline:hover .arw { transform: translateX(4px); }

/* =============================================================
   5b. Navbar
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
  padding: 1.3rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav.is-stuck {
  background: rgba(247,242,233,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding: .8rem 0;
}
@supports not (backdrop-filter: blur(10px)) {
  .nav.is-stuck { background: var(--ivory); }
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .01em; color: var(--ink); line-height: 1; }
.brand-name span { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); margin-top: .28rem; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9rem; color: var(--slate); transition: color .3s var(--ease-out); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .6rem; margin-right: -.6rem;
}
.nav-burger span { width: 24px; height: 1.6px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 850; background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  padding: var(--pad-x);
  transform: translateY(-100%); transition: transform .6s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.mobile-menu a small { display:block; font-family: var(--sans); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color: var(--bronze); }
.mobile-menu .btn { margin-top: 1rem; align-self: flex-start; }

/* =============================================================
   6. Sections — Hero
   ============================================================= */
.hero { position: relative; padding-top: 5.25rem; padding-bottom: 1.3rem; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.hero-copy { max-width: 40ch; }
.hero .eyebrow { margin-bottom: 1.35rem; }
.hero-title { margin-bottom: 1.35rem; perspective: 1400px; }
.hero-title .hero-line,
.hero-title .hero-title-sm { display: block; transform-style: preserve-3d; will-change: transform, opacity; opacity: 1; transform: none; }
.hero-title .hero-title-sm { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.hero-sub { font-size: 1.05rem; color: var(--slate); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--bronze); margin-bottom: 1rem; letter-spacing: .01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.hero-figure {
  position: relative; align-self: center; justify-self: center;
  width: 100%; max-width: 380px;
}
.hero-figure-frame {
  position: relative; overflow: clip; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--sand-2);
  box-shadow: 0 46px 80px -40px rgba(43,35,24,.4);
  transform: perspective(1000px);
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.hero-figure-accent {
  position: absolute; top: 0; left: 0; width: 74px; height: 14px; z-index: 2;
  background-image: var(--greca); background-repeat: repeat-x; background-size: auto 14px;
  opacity: .95;
}
.hero-figure-frame .portrait {
  width: 100%; display: block;
  animation: heroKenBurns 16s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
.hero-figure-cap { margin-top: 1.2rem; text-align: center; }
.hero-figure-cap b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.hero-figure-cap span { display: block; font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; margin-top: .25rem; }
.hero-badges {
  display: flex; gap: 1.1rem; margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-badges .b-num { font-family: var(--serif); font-size: 2rem; color: var(--bronze); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.hero-badges .b-lab { font-size: .68rem; color: var(--text-muted); margin-top: .45rem; letter-spacing: .03em; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--ivory-2); padding: 1.2rem 0; overflow: clip; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: 1.15rem; color: var(--slate); display: inline-flex; align-items: center; gap: 3.5rem;
  white-space: nowrap;
}
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =============================================================
   6b. About
   ============================================================= */
.about { padding-block: clamp(1.6rem, 3.2vw, 2.8rem); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: center; }
.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: 4px; object-fit: cover; aspect-ratio: 4/5; }
.about-figure .cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: rgba(247,242,233,.92); backdrop-filter: blur(6px);
  padding: 1rem 1.2rem; border-radius: 3px; border-left: 2px solid var(--gold);
}
.about-figure .cap b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.about-figure .cap span { display:block; font-size:.8rem; color: var(--text-muted); margin-top:.15rem; }
.about-body h2 { margin: .6rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about-body .eyebrow { margin-bottom: 1rem; }
.about-body .lede { font-size: 1.15rem; line-height: 1.6; color: var(--text-muted); margin-bottom: .7rem; text-align: justify; text-justify: inter-word; }
.about-body p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: .7rem; text-align: justify; text-justify: inter-word; }
.about-sign { margin-top: 2rem; }
.about-sign b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.about-sign span { display: block; font-size: .82rem; color: var(--text-muted); letter-spacing: .04em; }

/* =============================================================
   6c. Practice index
   ============================================================= */
.practice { padding-block: clamp(1.75rem, 4vw, 3.4rem); background: var(--ivory-2); border-block: 1px solid var(--line); }
.practice .section-head .kicker { margin-bottom: .6rem; }
.practice .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.practice .section-head p { font-size: .88rem; }
.practice-layout { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.8rem; }
.practice-list { display: flex; flex-direction: column; }
.practice-tab {
  display: flex; align-items: baseline; gap: 1rem; width: 100%; text-align: left;
  padding: .9rem 0; border-top: 1px solid var(--line);
  transition: color .35s var(--ease-out);
}
.practice-tab:last-child { border-bottom: 1px solid var(--line); }
.practice-tab .num { font-family: var(--sans); font-size: .72rem; color: var(--bronze); letter-spacing: .1em; min-width: 2.2rem; }
.practice-tab .t { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--stone); transition: color .35s var(--ease-out), transform .5s var(--ease-out); }
.practice-tab:hover .t { color: var(--ink); }
.js-tabs .practice-tab.is-active .t { color: var(--ink); transform: translateX(8px); }
.js-tabs .practice-tab.is-active .num { color: var(--gold); }
.practice-panels { position: relative; }
.practice-panel {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 5px;
  padding: clamp(1.1rem, 2vw, 1.7rem);
}
.js-tabs .practice-panel { display: none; }
.js-tabs .practice-panel.is-active { display: block; animation: fadePanel .6s var(--ease-out); }
@keyframes fadePanel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.practice-panel + .practice-panel { margin-top: .8rem; }
.js-tabs .practice-panel + .practice-panel { margin-top: 0; }
.practice-panel h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.practice-panel > p { color: var(--text-muted); font-size: .88rem; margin-bottom: .9rem; }
.practice-panel ul { display: grid; gap: .5rem; }
.practice-panel li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--slate); }
.practice-panel li::before { content: ""; margin-top: .55rem; width: 5px; height: 5px; background: var(--gold); border-radius: 1px; flex: none; }
.practice-panel .panel-foot { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.panel-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.panel-chip {
  font-size: .78rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--bronze); background: var(--ivory);
}

/* =============================================================
   6d. Pillars — ¿Por qué elegirme?
   ============================================================= */
.pillars { padding-block: clamp(1rem, 1.8vw, 1.6rem); }
.pillars .section-head .kicker { margin-bottom: .6rem; }
.pillars .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.pillars .section-head p { font-size: .88rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.2rem; }
.pillar {
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory-2);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out);
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--bronze-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-6px) scale(1.015); border-color: transparent;
  box-shadow: 0 24px 44px -22px rgba(11,30,51,.4); background: var(--ivory);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar .p-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: .3rem;
  font-family: var(--serif); font-size: .92rem; color: var(--gold);
  border: 1px solid var(--line-2); background: var(--ivory);
  transition: transform .5s var(--ease-out), background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.pillar:hover .p-num { transform: rotate(-10deg) scale(1.1); background: var(--bronze-deep-2); color: var(--gold-soft); border-color: var(--bronze-deep-2); }
.pillar h3 { font-size: 1.1rem; margin: .5rem 0 .4rem; transition: color .4s var(--ease-out); }
.pillar:hover h3 { color: var(--bronze-deep-2); }
.pillar p { color: var(--text-muted); font-size: .85rem; line-height: 1.45; text-align: justify; text-justify: inter-word; }

/* =============================================================
   6e. Stats band
   ============================================================= */
.stats { padding-block: clamp(1.8rem, 3.6vw, 3.2rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: clip; }
.stats::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background-image: var(--greca); background-repeat: repeat-x; background-size: auto 14px; opacity: .35;
}
.stats-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.6rem; }
.stat { text-align: center; cursor: default; }
.stat .s-num { transition: color .3s var(--ease-out); }
.stat:hover .s-num { color: var(--bronze); }
.stat .s-num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--bronze-deep-2); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.stat .s-num small { font-size: .5em; color: var(--gold); }
.stat .s-lab { margin-top: .6rem; font-size: .92rem; letter-spacing: .03em; color: var(--text-muted); }


/* =============================================================
   6h. Quote (reused on IA / servicios closing sections)
   ============================================================= */
.testi-quote { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.35; color: var(--ink); }
.testi-quote::before { content: "“"; color: var(--gold); }
.testi-quote::after { content: "”"; color: var(--gold); }

/* =============================================================
   6k. (reserved)
   ============================================================= */
.form-ok { display: none; padding: 1rem 1.2rem; border-radius: 4px; background: rgba(201,162,75,.16); border: 1px solid var(--gold); color: var(--gold-soft); font-size: .9rem; }
.form.is-sent .form-ok { display: block; }

/* =============================================================
   6l. Footer
   ============================================================= */
.footer { background: var(--bronze-deep-2); color: rgba(247,242,233,.7); padding-block: clamp(1rem, 1.8vw, 1.4rem) .7rem; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(247,242,233,.12); }
.footer-brand .fb-name { font-family: var(--serif); font-size: 1.25rem; color: var(--ivory); line-height: 1; }
.footer-brand .fb-logo { width: 84px; height: auto; display: block; }
.footer-brand p { margin-top: .4rem; max-width: 34ch; font-size: .8rem; font-family: var(--serif); font-style: italic; color: var(--gold-soft); line-height: 1.35; }
.footer-brand .greca-sm { margin: .5rem 0 0 0; opacity: .8; }
.footer-col h5 { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .45rem; }
.footer-col a, .footer-col span { display: block; font-size: .78rem; margin-bottom: .3rem; color: rgba(247,242,233,.7); transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; padding-top: .7rem; font-size: .72rem; color: rgba(247,242,233,.5); }

.social { padding-block: clamp(1.4rem, 2.5vw, 2.2rem); border-top: 1px solid var(--line); }
.social-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.2rem; }
.social-card {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: .95rem 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory-2);
  overflow: hidden; position: relative;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.social-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: var(--social-accent); transition: opacity .4s var(--ease-out);
}
.social-card:hover::after { opacity: .06; }
.social-card:hover {
  border-color: var(--social-accent-solid, var(--gold));
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 40px -20px var(--social-shadow, rgba(3,40,86,.35));
}
.social-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--ivory); background: var(--social-accent-solid, var(--bronze));
  position: relative; z-index: 1;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: 0 6px 16px -6px var(--social-shadow, rgba(3,40,86,.4));
}
.social-card:hover .social-icon { transform: rotate(-8deg) scale(1.12); }
.social-icon svg { width: 19px; height: 19px; }
.social-card .social-body { display: flex; flex-direction: column; line-height: 1.25; }
.social-card h3 { font-size: .94rem; }
.social-handle { font-size: .78rem; color: var(--text-muted); letter-spacing: .01em; }
.social-arw {
  margin-left: auto; color: var(--social-accent-solid, var(--gold)); font-size: .95rem;
  opacity: 0; transform: translateX(-6px); transition: all .35s var(--ease-out);
}
.social-card:hover .social-arw { opacity: 1; transform: translateX(0); }

.social-card.ig { --social-accent: #d6249f; --social-accent-solid: #c8226e; --social-shadow: rgba(200,34,110,.4); }
.social-card.ig .social-icon {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.social-card.tiktok { --social-accent: #ff004f; --social-accent-solid: #010101; --social-shadow: rgba(37,244,238,.4); }
.social-card.tiktok .social-icon { background: #010101; box-shadow: 0 0 0 2px #25f4ee, 0 6px 16px -6px rgba(1,1,1,.5); }
.social-card.tiktok .social-icon svg { filter: drop-shadow(1.5px 1.5px 0 #fe2c55) drop-shadow(-1.5px -1.5px 0 #25f4ee); }
.social-card.fb { --social-accent: #1877f2; --social-accent-solid: #1877f2; --social-shadow: rgba(24,119,242,.4); }

@media (min-width: 720px) { .social-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.footer-social { display: flex; gap: .7rem; margin-top: .15rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory); flex: none;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out);
}
.footer-social a:hover { transform: translateY(-3px) rotate(-8deg) scale(1.12); }
.footer-social svg { width: 17px; height: 17px; }
.footer-social a.ig {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  box-shadow: 0 6px 16px -6px rgba(200,34,110,.5);
}
.footer-social a.tiktok { background: #010101; box-shadow: 0 0 0 2px #25f4ee, 0 6px 16px -6px rgba(1,1,1,.5); }
.footer-social a.tiktok svg { filter: drop-shadow(1.2px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1.2px 0 #25f4ee); }
.footer-social a.fb { background: #1877f2; box-shadow: 0 6px 16px -6px rgba(24,119,242,.5); }

/* =============================================================
   6m2. Popup banner (landing page)
   ============================================================= */
.dyn-banner-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,20,10,.72);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  animation: dynBannerFade .35s var(--ease-out);
}
.dyn-banner-overlay[hidden] { display: none !important; }
.dyn-banner-box { position: relative; max-width: 480px; width: 100%; }
.dyn-banner-box img {
  width: 100%; display: block; border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
}
.banner-close {
  position: absolute; top: -16px; right: -16px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--ivory); color: var(--ink); border: none;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease-out);
}
.banner-close:hover { transform: scale(1.1) rotate(90deg); }
body.no-scroll { overflow: hidden; }
@keyframes dynBannerFade { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   6m. WhatsApp floating button
   ============================================================= */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 500;
  width: 52px; height: 52px; border-radius: 50%;
  background: #5c6640; color: var(--ivory); border: 1px solid #5c6640;
  display: grid; place-items: center;
  box-shadow: 0 16px 32px -12px rgba(26,20,10,.5);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out);
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 38px -12px rgba(26,20,10,.55);
  background: #4a5233; color: var(--ivory); border-color: #4a5233;
}
.whatsapp-fab svg { width: 24px; height: 24px; }

/* =============================================================
   7. Effects — reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: .40s; }

.parallax { will-change: transform; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-grid { gap: 1.6rem; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-badges { gap: 2rem; }
  .hero-badges .b-num { font-size: clamp(2.5rem, 4vw, 3.2rem); }
  .hero-badges .b-lab { font-size: .74rem; }
  .whatsapp-fab { right: 28px; bottom: 28px; width: 60px; height: 60px; }
  .whatsapp-fab svg { width: 30px; height: 30px; }
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
  .practice-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .practice-panels { position: sticky; top: 100px; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .practice-layout { grid-template-columns: 1.1fr .9fr; }
}
@media (min-width: 1280px) {
  .hero { padding-top: 8rem; }
}

/* =============================================================
   8b. Page transitions
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { text-align: center; }
}
