/* =========================================================
   Soch Tzul & Asociados C.P.A — estilos
   Marca: firma dorada + amarillo/gris diagonal del brochure
   ========================================================= */
:root {
  --ink: #121212;
  --ink-2: #1b1b1b;
  --ink-3: #262626;
  --gray: #6b6b6b;
  --gray-2: #9a9a9a;
  --paper: #f4f3ef;
  --paper-2: #e9e7e1;
  --white: #fff;
  --yellow: #fddb5c;
  --yellow-2: #f7c933;
  --gold: #c99a2e;
  --gold-l: #f1db97;
  --gold-grad: linear-gradient(120deg, #f6e3a1 0%, #d4a93a 45%, #b8861a 70%, #f0d48a 100%);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 22px;
  --pad: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- utilidades ---------- */
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gray); display: inline-flex; align-items: center; gap: .8em; margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--yellow); transform: skewX(-30deg); }
.kicker--gold { color: var(--gold-l); }
.title {
  font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.4rem;
}
.title--light { color: var(--white); }
.hl {
  font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0;
  position: relative; display: inline-block; padding: 0 .08em; z-index: 0; color: inherit;
}
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .12em; height: .32em; z-index: -1;
  background: var(--yellow); transform: skewX(-18deg) scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) .35s;
}
.is-in .hl::after, .hl.is-in::after, .title.is-in .hl::after { transform: skewX(-18deg) scaleX(1); }
.title--light .hl::after { opacity: .9; }
.title--light .hl { color: var(--white); }

.btn {
  --bg: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  text-decoration: none; border: 1.5px solid transparent; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, color .3s, background .3s;
  will-change: transform; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--gold { background: var(--gold-grad); color: var(--ink); background-size: 200% 100%; animation: sheen 6s linear infinite; }
.btn--gold:hover { box-shadow: 0 10px 30px -8px rgba(212, 169, 58, .7); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--block { width: 100%; }
@keyframes sheen { to { background-position: -200% 0; } }

/* revelar al hacer scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* barra de progreso */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(253, 219, 92, .13), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; display: flex; align-items: center; gap: 2rem;
  padding: 18px var(--pad); transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(18, 18, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__logo img { width: 132px; height: auto; transition: width .4s; }
.nav.is-scrolled .nav__logo img { width: 112px; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  position: relative; padding: .3em 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--yellow);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .7em 1.2em; font-size: .8rem; }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; right: 16px; background: var(--yellow); }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; right: 10px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--white); overflow: hidden;
  display: grid; place-items: center; padding: 120px var(--pad) 110px; isolation: isolate;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(18,18,18,.96) 45%, rgba(18,18,18,.6) 70%, transparent 88%);
}
.hero__band { position: absolute; z-index: -2; pointer-events: none; }
.hero__band--1 {
  width: 70vmax; height: 16vmax; background: var(--yellow); right: -30vmax; top: 2%;
  transform: rotate(-24deg); opacity: .95; animation: band1 14s ease-in-out infinite alternate;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.hero__band--2 {
  width: 46vmax; height: 7vmax; background: #3a3a3a; left: -16vmax; bottom: 10%;
  transform: rotate(-24deg); animation: band2 18s ease-in-out infinite alternate;
}
.hero__band--3 {
  width: 30vmax; height: 3vmax; background: var(--yellow); left: -8vmax; bottom: 26%;
  transform: rotate(-24deg); opacity: .85; animation: band2 11s ease-in-out infinite alternate-reverse;
}
@keyframes band1 { from { transform: rotate(-24deg) translateX(0); } to { transform: rotate(-24deg) translateX(-6vmax); } }
@keyframes band2 { from { transform: rotate(-24deg) translateX(0); } to { transform: rotate(-24deg) translateX(5vmax); } }

.hero__inner { max-width: 1040px; text-align: center; position: relative; z-index: 2; }
.hero__sign { width: min(560px, 88%, 70vh); margin: 0 auto 1.6rem; filter: drop-shadow(0 10px 40px rgba(212, 169, 58, .25)); }
.hero__sign path {
  fill: url(#goldGrad); fill-opacity: 0; stroke: #e7c76a; stroke-width: 2.2; stroke-linejoin: round;
  transition: fill-opacity 1.2s ease;
}
.hero__sign.is-drawn path { fill-opacity: 1; stroke-opacity: 0; transition: fill-opacity 1.2s ease, stroke-opacity 1.6s ease .4s; }
.eyebrow { font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-l); font-weight: 600; }
.hero__title {
  font-size: clamp(1.9rem, 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; margin: .35em 0 .5em; text-wrap: balance;
}
.hero__title em {
  font-family: var(--serif); font-weight: 600; font-size: 1.15em; background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; padding-right: .06em;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .72); max-width: 640px; margin: 0 auto 2rem; }
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .reveal { transition-duration: 1.1s; }

.hero__chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute; left: min(var(--x), calc(100% - 120px)); top: var(--y); padding: .45em 1em; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(241, 219, 151, .28); color: rgba(241, 219, 151, .75); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .03); backdrop-filter: blur(4px);
  animation: floaty 7s ease-in-out infinite; animation-delay: calc(var(--y) * -0.08s);
}
.chip:nth-child(2n) { animation-duration: 9s; }
.chip:nth-child(3n) { animation-duration: 11s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

.ring { position: absolute; right: clamp(16px, 5vw, 70px); bottom: clamp(80px, 12vh, 120px); width: 150px; height: 150px; z-index: 2; }
.ring svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.ring text { fill: var(--gold-l); font-size: 13.2px; font-weight: 700; letter-spacing: 3.2px; font-family: var(--sans); }
.ring__core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__core strong { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--yellow); }
.ring__core sup { font-size: .5em; }
.ring__core span { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; z-index: 3; margin-top: -46px; overflow: hidden; padding: 30px 0; }
.marquee__row { overflow: hidden; white-space: nowrap; transform: rotate(-2.4deg); width: 104%; margin-left: -2%; }
.marquee__row--yellow { background: var(--yellow); color: var(--ink); padding: 18px 0; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); position: relative; z-index: 2; }
.marquee__row--dark { background: var(--ink-3); color: var(--paper); padding: 12px 0; transform: rotate(1.6deg); margin-top: -10px; }
.marquee__track { display: inline-flex; align-items: center; gap: 2rem; animation: marquee 38s linear infinite; padding-right: 2rem; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 46s; }
.marquee__track span { font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.7rem); text-transform: uppercase; letter-spacing: .02em; }
.marquee__row--dark span { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.marquee__track i { font-style: normal; color: var(--gray); }
.marquee__row--dark i { color: var(--yellow); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   LA FIRMA
   ========================================================= */
.about { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.about__year {
  position: absolute; right: -2vw; top: 4%; font-size: clamp(9rem, 30vw, 26rem); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(18, 18, 18, .07); letter-spacing: -.04em; pointer-events: none; user-select: none;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); position: relative; }
.about__intro { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; color: var(--ink-3); }
.about__body { color: #4a4a4a; padding-top: 3.2rem; }
.institutions { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.institutions li {
  padding: .5em 1.1em; border-radius: 999px; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: .8rem; letter-spacing: .08em;
}
.institutions li:last-child { background: transparent; color: var(--gray); border: 1px dashed var(--gray-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(50px, 7vw, 90px); }
.stat { background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 2rem 1.6rem; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 40px; height: 4px; background: var(--yellow); }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink-3); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--gray); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(60px, 8vw, 100px); padding-top: 46px; }
.timeline__line { position: absolute; left: var(--pad); right: var(--pad); top: 12px; height: 2px; background: var(--paper-2); }
.timeline__line span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; top: -42px; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold); transition: background .5s .3s, box-shadow .5s .3s;
}
.tl.is-in::before { background: var(--yellow); box-shadow: 0 0 0 6px rgba(253, 219, 92, .3); }
.tl em { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.tl h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin: .3rem 0 .5rem; color: var(--ink-3); }
.tl p { font-size: .92rem; color: var(--gray); }

/* =========================================================
   FRASE
   ========================================================= */
.quote { position: relative; background: var(--yellow); padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; text-align: center; }
.quote__shape {
  position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 80%, rgba(18,18,18,.88) 80% 88%, transparent 88%),
    linear-gradient(115deg, transparent 0 8%, rgba(255,255,255,.35) 8% 13%, transparent 13%);
}
.quote blockquote { margin: 0 auto; position: relative; }
.quote__text {
  font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ink-3); max-width: 15ch; margin: 0 auto .6em; text-wrap: balance;
}
.quote__text .w { display: inline-block; opacity: .14; transition: opacity .35s; }
.quote__text .w.on { opacity: 1; }
.quote footer { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-3); }

/* =========================================================
   VALORES
   ========================================================= */
.values { padding: clamp(80px, 11vw, 140px) 0; }
.values__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1rem; }
.value {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem 1.4rem 1.6rem; overflow: hidden;
  min-height: 250px; display: flex; flex-direction: column; isolation: isolate; border: 1px solid var(--paper-2);
}
.value::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path .6s var(--ease);
}
.value:hover::before { clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.value span { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--yellow-2); line-height: 1; transition: color .4s; }
.value h3 { margin: 1.6rem 0 .6rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; transition: color .4s; }
.value p { font-size: .9rem; color: var(--gray); margin: 0; transition: color .4s; }
.value:hover h3 { color: var(--yellow); }
.value:hover p { color: rgba(255,255,255,.75); }
.values__note { margin-top: 2.4rem; max-width: 720px; color: var(--gray); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { padding: clamp(70px, 10vw, 130px) 0; background: var(--white); position: relative; }
.services::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 70px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }
#rotator { min-width: 2ch; }
#rotator.swap { animation: swap .6s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(.4em); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }

.audience { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.audience__btn {
  border: 1.5px solid var(--paper-2); background: var(--paper); color: var(--ink-3); border-radius: 999px;
  padding: .65em 1.3em; font-weight: 600; font-size: .85rem; transition: all .3s var(--ease);
}
.audience__btn:hover { border-color: var(--ink-3); }
.audience__btn.is-active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-flow: dense; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 1.8rem; background: var(--paper); overflow: hidden;
  border: 1px solid var(--paper-2); transition: transform .5s var(--ease), opacity .5s, filter .5s, box-shadow .5s;
  min-height: 230px; display: flex; flex-direction: column; isolation: isolate;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(253, 219, 92, .35), transparent 45%);
}
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card--dark p { color: rgba(255,255,255,.7); }
.card--dark::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 169, 58, .28), transparent 45%); }
.card--yellow { background: var(--yellow); border-color: var(--yellow); }
.card--yellow::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%); }
.card__num { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--gold); margin-bottom: auto; padding-bottom: 1.4rem; }
.card--yellow .card__num { color: var(--ink-3); }
.card h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .6rem; text-wrap: balance; }
.card p { color: var(--gray); font-size: .93rem; margin: 0; }
.card--yellow p { color: #4a4a4a; }
.bento { transition: opacity .28s ease, transform .28s ease; }
.bento.is-switching { opacity: 0; transform: translateY(14px); }
.card[hidden] { display: none; }
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .35em .8em; border-radius: 999px; background: var(--white); border: 1px solid var(--paper-2); }
.card__link { margin-top: 1rem; color: var(--yellow); font-weight: 700; text-decoration: none; font-size: .9rem; }
.card__link:hover { text-decoration: underline; }
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: s; display: grid; gap: .55rem; }
.steps li {
  counter-increment: s; display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.55); font-weight: 700; font-size: .9rem; transition: transform .4s var(--ease), background .3s;
}
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }
.steps li:hover { transform: translateX(8px); background: var(--white); }
.spark { margin-top: 1rem; }
.spark polyline { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.card.is-in .spark polyline { stroke-dashoffset: 0; }
.code { margin-top: 1.2rem; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: rgba(255,255,255,.06); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .3rem; color: rgba(255,255,255,.6); }
.code .ok { color: var(--yellow); }

/* =========================================================
   RIESGOS (órbita)
   ========================================================= */
.risks { background: var(--ink); color: var(--white); padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.risks::before { content: ""; position: absolute; width: 60vmax; height: 10vmax; background: var(--yellow); opacity: .07; left: -10vmax; top: 10%; transform: rotate(-24deg); }
.risks__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.risks__copy > p { color: rgba(255,255,255,.7); }
.risk-detail { margin-top: 2rem; padding: 1.6rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(241,219,151,.15); min-height: 150px; }
.risk-detail h3 { color: var(--yellow); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.risk-detail p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
.risk-detail.swap { animation: swap .5s var(--ease); }

.orbit { --r: min(210px, 36vw); position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; display: grid; place-items: center; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(241,219,151,.25); }
.orbit__ring--1 { width: calc(var(--r) * 2); height: calc(var(--r) * 2); animation: spin 60s linear infinite; }
.orbit__ring--2 { width: calc(var(--r) * 1.25); height: calc(var(--r) * 1.25); border-style: solid; border-color: rgba(253,219,92,.12); }
.orbit__core {
  width: calc(var(--r) * .9); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, #2f2f2f, #151515); box-shadow: 0 0 0 1px rgba(241,219,151,.25), 0 0 80px rgba(253,219,92,.15);
  position: relative; z-index: 1;
}
.orbit__core span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-l); }
.orbit__core strong { font-size: clamp(1rem, 2.4vw, 1.45rem); text-transform: uppercase; letter-spacing: .06em; }
.orbit__spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit:hover .orbit__spin, .orbit:hover .node, .orbit.paused .orbit__spin, .orbit.paused .node { animation-play-state: paused; }
.node {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(calc(var(--i) * 72deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -72deg));
  translate: -50% -50%;
  padding: .7em 1.2em; border-radius: 999px; background: var(--ink-3); color: var(--white); border: 1px solid rgba(241,219,151,.3);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; z-index: 2;
  transition: background .3s, color .3s, box-shadow .3s;
}
/* contrarrotación para que el texto quede siempre derecho */
.node { animation: counter 40s linear infinite; }
@keyframes counter {
  from { transform: rotate(calc(var(--i) * 72deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -72deg)) rotate(0deg); }
  to { transform: rotate(calc(var(--i) * 72deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -72deg)) rotate(-360deg); }
}
.node:hover, .node.is-active { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 6px rgba(253,219,92,.18), 0 0 40px rgba(253,219,92,.4); }

/* =========================================================
   EQUIPO
   ========================================================= */
.team { padding: clamp(80px, 11vw, 140px) 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lead-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.lead-card::after { content: ""; position: absolute; right: -8%; top: -30%; width: 30%; height: 160%; background: var(--yellow); transform: rotate(18deg); opacity: .95; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.lead-card > div:last-child { position: relative; z-index: 1; max-width: min(520px, 62%); }
.lead-card h3 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); text-transform: uppercase; letter-spacing: -.01em; margin: .2rem 0 .6rem; }
.lead-card p:last-child { color: rgba(255,255,255,.72); margin: 0; }
.lead-card__badge { position: relative; width: clamp(150px, 20vw, 210px); aspect-ratio: 1; z-index: 1; }
.lead-card__badge svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.lead-card__badge text { fill: var(--gold-l); font-size: 12.4px; font-weight: 700; letter-spacing: 3px; font-family: var(--sans); }
.lead-card__badge .mono { position: absolute; inset: 22%; }
.role { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.mono {
  display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-style: italic; font-weight: 600;
  background: var(--gold-grad); color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.4rem); box-shadow: inset 0 0 0 4px rgba(255,255,255,.25);
}
.member { background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 1.8rem; transition: box-shadow .4s; transform-style: preserve-3d; }
.member:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.member .mono { width: 76px; height: 76px; margin-bottom: 1.4rem; font-size: 1.7rem; transform: translateZ(30px); }
.member h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .4rem; }
.member p:last-child { color: var(--gray); font-size: .92rem; margin: 0; }
.tilt { transition: transform .5s var(--ease), box-shadow .4s; }

/* =========================================================
   CLIENTES
   ========================================================= */
.clients { padding: clamp(70px, 10vw, 120px) 0; background: var(--white); overflow: hidden; }
.clients__marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { display: inline-flex; gap: 1rem; animation: marquee 34s linear infinite; padding: 1rem 0; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.client {
  flex: none; width: clamp(240px, 28vw, 320px); padding: 1.8rem 1.6rem; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--paper-2); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1.2;
  position: relative; transition: background .35s, color .35s, transform .35s var(--ease);
}
.client small { display: block; font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 600; font-size: 1.05rem; color: var(--gold); margin-bottom: .3rem; }
.client::after { content: "↗"; position: absolute; right: 1.2rem; top: 1.1rem; font-size: 1.1rem; color: var(--gray-2); transition: transform .35s var(--ease), color .35s; }
.client:hover { background: var(--ink); color: var(--white); transform: translateY(-6px); }
.client:hover::after { color: var(--yellow); transform: translate(3px, -3px); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--ink); color: var(--white); padding: clamp(80px, 11vw, 140px) 0 clamp(50px, 7vw, 80px); position: relative; overflow: hidden; }
.contact__band { position: absolute; width: 80vmax; height: 12vmax; background: var(--yellow); right: -30vmax; bottom: 18%; transform: rotate(-24deg); opacity: .9; animation: band1 16s ease-in-out infinite alternate; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); position: relative; z-index: 1; }
.contact__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); font-weight: 700; margin-bottom: .2rem; }
.contact__list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: color .3s; }
.contact__list a:hover { color: var(--yellow); }
.ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid rgba(241,219,151,.2); }
.ico svg { width: 20px; height: 20px; fill: var(--yellow); }

.wa-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.wa-form h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: .2rem; }
.wa-form > p { color: var(--gray); font-size: .9rem; }
.wa-form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.wa-form input, .wa-form select, .wa-form textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--paper-2);
  background: var(--paper); font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink);
  transition: border-color .3s, background .3s;
}
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.wa-form .invalid { border-color: #d9534f; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.map { margin-top: clamp(40px, 6vw, 70px); position: relative; z-index: 1; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: none; }

/* =========================================================
   FOOTER / flotantes
   ========================================================= */
.footer { background: #0b0b0b; color: rgba(255,255,255,.6); padding: 50px 0 40px; font-size: .85rem; }
.footer__grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.6rem 3rem; }
.footer__grid img { width: 190px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: flex-end; }
.footer nav a { text-decoration: none; transition: color .3s; }
.footer nav a:hover { color: var(--yellow); }
.footer p { grid-column: 1 / -1; margin: 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .4s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .nav__links { gap: 1.2rem; }
}
@media (max-width: 920px) {
  .nav__links {
    position: fixed; inset: 0; background: rgba(18,18,18,.97); flex-direction: column; justify-content: center; align-items: center;
    gap: 1.6rem; margin: 0; opacity: 0; pointer-events: none; transition: opacity .4s; z-index: -1;
  }
  .nav__links a { font-size: 1.4rem; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__cta { display: none; }
  .about__grid, .risks__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .ring { width: 110px; height: 110px; }
  .ring__core strong { font-size: 1.7rem; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding-top: 100px; }
  .hero__chips { display: none; }
  .hero::before { background: radial-gradient(ellipse 120% 48% at 50% 46%, rgba(18,18,18,.97) 55%, rgba(18,18,18,.5) 80%, transparent 95%); }
  .hero__band--1 { top: auto; bottom: 3%; right: -40vmax; height: 12vmax; opacity: .9; }
  .hero__band--2, .hero__band--3 { bottom: auto; top: 14%; }
  .ring { display: none; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value { min-height: 200px; }
  .value:last-child { grid-column: 1 / -1; }
  .bento, .team__grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--tall { grid-row: auto; }
  .timeline { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-card > div:last-child { max-width: none; }
  .lead-card::after { width: 70%; right: -30%; opacity: .9; }
  .lead-card__badge { width: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .orbit { --r: 38vw; }
  .node { font-size: .72rem; padding: .55em .9em; }
  .map iframe { height: 260px; }
}

@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; }
  .hero__sign path { fill-opacity: 1; stroke-opacity: 0; }
}

/* =========================================================
   FOTOS (Freepik)
   ========================================================= */
.ph { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--ink); }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* La firma: collage */
.about__media { position: relative; margin-top: 2.4rem; height: clamp(300px, 34vw, 420px); }
.ph--main {
  position: absolute; inset: 0 14% 12% 0;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 86% 100%, 0 100%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.ph--main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(18,18,18,.55)); }
.ph--small {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3;
  border: 6px solid var(--paper); box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
  animation: floaty 8s ease-in-out infinite;
}
.ph--small img { filter: grayscale(.35) contrast(1.05); }
.about__media::before {
  content: ""; position: absolute; right: 9%; top: -18px; width: 52%; height: 20px; background: var(--yellow);
  transform: skewX(-30deg); z-index: 1;
}
.about__stamp {
  position: absolute; left: -14px; bottom: 6%; z-index: 2; background: var(--yellow); color: var(--ink);
  border-radius: 18px; padding: .9rem 1.1rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.2; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); animation: floaty 6s ease-in-out infinite reverse;
}
.about__stamp b { display: block; font-size: 2rem; letter-spacing: -.02em; }
.about__stamp sup { font-size: .5em; }

/* Frase: foto en multiplicar sobre amarillo */
.quote__bg {
  position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover;
  mix-blend-mode: multiply; opacity: .32; filter: grayscale(1) contrast(1.2); pointer-events: none;
}

/* Servicios: tarjetas con foto */
.card__img {
  margin: -1.8rem -1.8rem 1.4rem; height: 180px; overflow: hidden; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.card:hover .card__img img { transform: scale(1.08); filter: saturate(1.05); }
.card__img + .card__num { padding-bottom: .6rem; margin-bottom: 0; }
.card--split { flex-direction: row; padding: 0; }
.card--split .card__img { margin: 0; width: 44%; height: auto; flex: none; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.card--split .card__body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card--photo { background: var(--ink) var(--bg) center / cover no-repeat; }
.card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,.92) 70%);
  transition: opacity .5s;
}
.card--photo:hover::before { opacity: .85; }

/* Riesgos: foto de fondo */
.risks__bg {
  position: absolute; right: -6%; top: -10%; width: 62%; height: 120%; object-fit: cover; opacity: .38; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.risks .container { position: relative; z-index: 1; }

/* Franja asesoria */
.banner { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(90px, 13vw, 170px) 0; isolation: isolate; }
.banner__bg { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; z-index: -2; filter: grayscale(.4); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18,18,18,.95) 0%, rgba(18,18,18,.82) 45%, rgba(18,18,18,.25) 100%); }
.banner::after { content: ""; position: absolute; left: -5%; bottom: 0; width: 45%; height: 14px; background: var(--yellow); transform: skewX(-30deg); }
.banner__inner { max-width: 1200px; }
.banner__title { font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 1.2rem; text-wrap: balance; }
.banner__title em { font-family: var(--serif); font-weight: 600; color: var(--yellow); }
.banner__inner > p:not(.kicker) { color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 2rem; }

@media (max-width: 640px) {
  .card--split { flex-direction: column; }
  .card--split .card__img { width: 100%; height: 180px; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
  .about__media { height: 300px; }
  .about__stamp { left: 0; }
  .risks__bg { width: 100%; right: 0; opacity: .22; }
}

/* La firma: imagen izquierda / texto derecha, misma altura */
.about__grid { align-items: stretch; grid-template-columns: .9fr 1.1fr; }
.about__visual { display: flex; }
.about__visual .about__media { flex: 1; height: auto; min-height: 460px; margin-top: 0; }
.about__visual .ph--main { inset: 0 10% 14% 0; }
.about__body { padding-top: 0; }
.about__body .about__intro { color: var(--ink-3); }
@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: 2; }
  .about__visual .about__media { min-height: 340px; }
}
.about__visual .ph--main img { object-position: 50% 30%; }
/* Tarjeta alta (prevención de lavado): la foto llena el espacio libre */
.card--tall .card__img { flex: 1 1 auto; height: auto; min-height: 230px; }
.card--tall .card__img img { position: absolute; inset: 0; object-position: 50% 45%; }
