/* ==========================================================================
   Agustina Gattari — Abogada
   ========================================================================== */

:root {
  --green-950: #04201F;
  --green-900: #072D2D;
  --green-800: #0B3B3C;   /* verde de marca (fondo del logo) */
  --green-700: #13504F;
  --gold: #F6C56F;
  --gold-200: #F9DDA6;
  --gold-600: #C99A47;
  --coral: #E07A5E;
  --ivory: #F4EEE3;
  --ivory-60: rgba(244, 238, 227, .6);
  --ivory-30: rgba(244, 238, 227, .3);
  --ivory-12: rgba(244, 238, 227, .12);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;

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

  --pad: clamp(20px, 4vw, 64px);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--green-900);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--green-900); }

.label, .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Grain
   -------------------------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 200; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); } 60% { transform: translate(-10%, 2%); }
  80% { transform: translate(8%, 6%); } 100% { transform: translate(0, 0); }
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  pointer-events: none;
}
.preloader__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(246, 197, 111, .07), transparent 70%),
    var(--green-800);
}
.preloader__stage {
  position: relative;
  width: clamp(150px, 18vw, 260px);
  display: flex; justify-content: center;
}
.preloader__mono { width: 100%; height: auto; overflow: visible; will-change: transform; }

.preloader__meta {
  position: absolute; bottom: var(--pad);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ivory-60); line-height: 1.8;
}
.preloader__meta--left { left: var(--pad); }
.preloader__meta--right { right: var(--pad); }
.preloader__count {
  font-family: var(--serif); font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Sin JS: no bloquear */
html:not(.js) .preloader, .skip-intro .preloader { display: none; }

/* --------------------------------------------------------------------------
   Cursor a medida
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("../assets/cursor/flecha.svg") 5 3, auto; }
  a, button, [role="button"], label, summary { cursor: url("../assets/cursor/mano.svg") 12 3, pointer; }
}

/* --------------------------------------------------------------------------
   Text roll (hover)
   -------------------------------------------------------------------------- */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll > span {
  position: relative; display: inline-block;
  transition: transform .7s var(--ease-out);
}
.roll > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  line-height: inherit; white-space: nowrap;
}
a:hover .roll > span, .roll:hover > span, button:hover .roll > span { transform: translateY(-100%); }

/* --------------------------------------------------------------------------
   CTA — "marco de diploma": doble filete que se cierra al pasar el mouse
   -------------------------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 26px 0 30px;
  background: var(--gold); color: var(--green-900);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ivory);
  transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease-out);
}
.cta:hover::before { transform: scaleX(1); transform-origin: left; }
.cta__frame {
  position: absolute; inset: -7px; pointer-events: none;
  border: 1px solid rgba(246, 197, 111, .5);
  transition: inset .7s var(--ease-out), border-color .5s;
}
.cta__frame::before, .cta__frame::after {
  content: ""; position: absolute; width: 7px; height: 7px; border: 0 solid var(--coral);
}
.cta__frame::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.cta__frame::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.cta:hover .cta__frame { inset: -3px; border-color: var(--gold); }
.cta__label { line-height: 1.5; }
.cta__arrow {
  position: relative; width: 30px; height: 1px; background: currentColor;
  transition: width .7s var(--ease-out);
}
.cta__arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid;
  transform: translateY(-50%) rotate(45deg); transform-origin: 70% 30%;
}
.cta:hover .cta__arrow { width: 46px; }
.cta--sm { height: 44px; padding: 0 18px 0 22px; gap: 14px; font-size: 11px; letter-spacing: .2em; }
.cta--sm .cta__frame { inset: -5px; }
.cta--sm:hover .cta__frame { inset: -2px; }
.cta--sm .cta__arrow { width: 20px; }
.cta--sm:hover .cta__arrow { width: 30px; }

/* Link secundario con el filete coral del logo */
.link-rule {
  position: relative; display: inline-flex; padding: 8px 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory);
}
.link-rule::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 32px;
  background: var(--coral); transition: width .8s var(--ease-out);
}
.link-rule:hover::after { width: 100%; }
.link-rule .roll > span::after { color: var(--gold); }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 120;
  height: var(--header-h);
  transition: transform .8s var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(7, 45, 45, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ivory-12);
  opacity: 0; transition: opacity .6s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-on-light::before { background: rgba(7, 45, 45, .96); border-bottom-color: transparent; }
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { transform: none; }
.menu-open .header::before { opacity: 0; }

.header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mono { width: 46px; height: auto; overflow: visible; }
.brand__mono path { fill: var(--gold); }
.brand__text { display: flex; flex-direction: column; gap: 5px; padding-left: 14px; border-left: 1px solid rgba(224, 122, 94, .6); }
.brand__word { width: 168px; height: auto; }
.brand__word path { fill: var(--gold); }
.brand__sub { font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: var(--ivory-60); line-height: 1; }

  content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--coral); transform: translateX(-50%) scale(0); transition: transform .5s var(--ease-out);
}

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

.burger {
  height: 44px; padding: 0 2px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.burger__label { display: grid; height: 1.5em; overflow: hidden; line-height: 1.5; }
.burger__label span { grid-area: 1 / 1; transition: transform .7s var(--ease-out); }
.burger__label span:last-child { transform: translateY(100%); }
.menu-open .burger__label span:first-child { transform: translateY(-100%); }
.menu-open .burger__label span:last-child { transform: translateY(0); }
.burger__lines { position: relative; width: 30px; height: 10px; }
.burger__lines i {
  position: absolute; right: 0; height: 1.5px; background: var(--gold);
  transition: width .6s var(--ease-out), transform .6s var(--ease-out), top .6s var(--ease-out), background .4s;
}
.burger__lines i:first-child { top: 0; width: 100%; }
.burger__lines i:last-child { top: 8.5px; width: 55%; background: var(--coral); }
.burger:hover .burger__lines i:last-child { width: 100%; }
.menu-open .burger__lines i { top: 4.25px; width: 100%; }
.menu-open .burger__lines i:first-child { transform: rotate(45deg); }
.menu-open .burger__lines i:last-child { transform: rotate(-45deg); background: var(--gold); }

/* --------------------------------------------------------------------------
   Menú fullscreen
   -------------------------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--green-950);
  clip-path: circle(0% at calc(100% - 60px) 46px);
  visibility: hidden;
}
.menu__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 40px var(--pad);
  padding: calc(var(--header-h) + 5vh) var(--pad) var(--pad);
}
.menu__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.menu__list li { overflow: hidden; border-top: 1px solid var(--ivory-12); }
.menu__list li:last-child { border-bottom: 1px solid var(--ivory-12); }
.menu__list a {
  display: flex; align-items: baseline; gap: 24px;
  padding: clamp(10px, 1.6vh, 18px) 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, min(5.8vw, 8vh), 88px); line-height: 1;
  transition: color .5s, padding .7s var(--ease-out);
}
.menu__num { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--coral); transform: translateY(-1.6em); }
.menu__list:hover a { color: var(--ivory-30); }
.menu__list a:hover { color: var(--ivory); padding-left: 24px; }
.menu__preview {
  position: relative; align-self: center;
  aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; justify-self: end;
  border-radius: 999px 999px 4px 4px; overflow: hidden;
}
.menu__preview figure {
  position: absolute; inset: 0; margin: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-out);
}
.menu__preview figure.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease-out); }
.menu__preview figure.is-active img { transform: scale(1); }
.menu__preview img.is-portrait { object-position: 50% 8%; }
.menu__preview img.is-top { object-position: 50% 0%; }
.menu__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 24px 64px;
  font-size: 14px; color: var(--ivory-60);
  padding-top: 24px; border-top: 1px solid var(--ivory-12);
}
.menu__foot .label { display: block; color: var(--gold); margin-bottom: 6px; font-size: 10px; }
.menu__foot a:hover { color: var(--ivory); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  padding: calc(var(--header-h) + 1vh) var(--pad) 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 30%, rgba(19, 80, 79, .9), transparent 70%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(246, 197, 111, .10), transparent 60%);
  transition: opacity .6s;
}
.hero__ghost {
  position: absolute; z-index: 0;
  width: min(78vw, 1100px); height: auto;
  right: -8vw; top: 50%;
  overflow: visible; pointer-events: none;
}
.hero__ghost path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .16; vector-effect: non-scaling-stroke; }

.hero__grid {
  position: relative; z-index: 1;
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
}
.hero__copy { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 1; }
.hero__visual { grid-column: 7 / span 6; grid-row: 1; position: relative; align-self: end; }

.eyebrow { display: inline-flex; align-items: center; gap: 16px; color: var(--gold); margin: 0 0 clamp(14px, 2.6vh, 34px); }
.eyebrow__line { width: 48px; height: 1px; background: var(--coral); flex: none; }
.eyebrow__sep { color: var(--coral); margin: 0 .35em; }
.hero__lead strong { color: var(--ivory); font-weight: 400; }

.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, min(5.7vw, 11vh), 124px);
  line-height: .94; letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding: .04em .1em .1em 0; margin-bottom: -.1em; }
.hero__title .line__inner { display: inline-block; transform-origin: 0 100%; }
.hero__title em { font-style: normal; color: var(--gold); position: relative; }
.hero__title .line:last-child em::after {
  content: ""; position: absolute; left: .04em; right: .12em; bottom: .1em; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-io);
}
.hero__title.is-in .line:last-child em::after { transform: scaleX(1); }
.hero__title .line:last-child em { color: inherit; }
.hero__title .line:nth-child(2) { padding-left: .55em; }
@media (min-width: 821px) { .hero__title .line { white-space: nowrap; } }

.hero__lead {
  max-width: 470px;
  margin: clamp(16px, 3vh, 40px) 0 0;
  color: var(--ivory-60); font-size: clamp(15px, 1.1vw, 17px); font-weight: 300;
}
.hero__ctas { display: flex; align-items: center; gap: 32px; margin-top: clamp(24px, 4.4vh, 48px); flex-wrap: wrap; }

/* Retrato en arco */
.portrait {
  position: relative; margin: 0 0 0 auto;
  height: min(calc(100svh - var(--header-h) - 80px), 860px);
  aspect-ratio: 4 / 5.2;
  max-width: 100%;
}
.portrait__mask {
  position: absolute; inset: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--green-700);
}
.portrait__mask img {
  width: 100%; height: 118%;
  object-fit: cover; object-position: 50% 20%;
  will-change: transform;
}
.portrait__frame {
  position: absolute; inset: -14px -14px 0;
  border: 1px solid rgba(246, 197, 111, .45); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.seal {
  position: absolute; left: -64px; bottom: 16%;
  width: 150px; height: 150px; z-index: 2;
  border-radius: 50%;
  background: var(--green-900);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal__ring text { font-family: var(--sans); font-size: 10.5px; fill: var(--ivory); font-weight: 500; }
.seal__mono { position: absolute; inset: 31%; width: 38%; height: auto; overflow: visible; }
.seal__mono path { fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__tag {
  position: absolute; right: -40px; top: 10%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(244, 238, 227, .92); color: var(--green-900);
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(224, 122, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224, 122, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 122, 94, 0); } }

.hero__bottom {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--ivory-12);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-60);
}
.hero__meta--right { justify-self: end; }
.scroll-line { position: relative; justify-self: start; display: block; width: 1px; height: 38px; background: var(--ivory-12); overflow: hidden; }
.scroll-line span { position: absolute; inset: 0; background: var(--gold); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Estado inicial (antes de la entrada) */
.js .hero__title .line, .js [data-hero-fade], .js .portrait, .js .seal, .js .header__inner > * { visibility: hidden; }

/* --------------------------------------------------------------------------
   Marquee + statement (teaser)
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--gold); color: var(--green-900);
  padding: clamp(18px, 2.6vw, 34px) 0;
  overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 68px); font-weight: 400; line-height: 1; }
.marquee__track span:nth-of-type(even) { font-weight: 300; color: var(--green-700); }
.marquee__track i { font-style: normal; color: var(--coral); font-size: clamp(16px, 1.6vw, 24px); }

.statement { background: var(--green-900); }
.statement { padding: clamp(100px, 18vh, 200px) max(var(--pad), calc((100% - 1500px) / 2)); }
.statement__text {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.4vw, 72px); line-height: 1.08; letter-spacing: -.01em;
}
.statement__text .word { opacity: .14; }


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__visual { grid-column: 8 / span 5; }
  .seal { width: 120px; height: 120px; left: -48px; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .brand__mono { width: 38px; }
  .brand__word { width: 128px; }
  .header__actions .cta { display: none; }

  .hero { height: auto; min-height: 100svh; padding-top: calc(var(--header-h) + 8px); }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .hero__visual { order: -1; align-self: center; width: 76%; max-width: 380px; }
  .portrait { height: auto; width: 100%; max-height: 50svh; margin: 0 auto; }
  .seal { width: 96px; height: 96px; left: -34px; bottom: 8%; }
  .hero__tag { top: auto; bottom: -14px; left: 0; right: 0; margin: 0 auto; width: max-content; font-size: 11px; }
  .hero__title { font-size: clamp(44px, 12vw, 72px); }
  .eyebrow { line-height: 1.7; }
  .eyebrow__line { display: none; }
  .eyebrow { letter-spacing: .2em; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__ghost { width: 160vw; right: -50vw; top: 30%; }
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__meta--right { display: none; }

  .menu__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .menu__preview { display: none; }
  .menu__foot { gap: 18px 32px; }
}

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

/* --------------------------------------------------------------------------
   WhatsApp flotante — sello giratorio
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 34px); bottom: clamp(16px, 2.4vw, 34px); z-index: 130;
  width: 100px; height: 100px; display: grid; place-items: center;
  transition: opacity .6s, transform .8s var(--ease-out);
}
.wa-float__disc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid var(--gold);
  background: rgba(4, 32, 31, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .8s var(--ease-out), border-color .4s;
}
.wa-float:hover .wa-float__disc { transform: scale(1.06); }
.wa-float__btn {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--green-900);
  transition: transform .7s var(--ease-out), background .4s, color .4s;
}
.wa-float__btn::after { /* pulso */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold);
  animation: waPulse 2.6s var(--ease-out) infinite;
}
.wa-float__btn svg { width: 28px; height: 28px; fill: currentColor; transition: transform .7s var(--ease-out); }
.wa-float:hover .wa-float__btn { transform: scale(1.08); background: var(--ivory); }
.wa-float:hover .wa-float__btn svg { transform: rotate(-12deg); }
.wa-float__bubble {
  position: absolute; right: calc(100% + 12px); top: 50%;
  white-space: nowrap; padding: 12px 16px 11px;
  background: var(--green-900); color: var(--ivory);
  border: 1.5px solid var(--gold);
  font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: .01em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(10px, -50%); pointer-events: none;
  transition: opacity .5s, transform .7s var(--ease-out);
  animation: waBubble 7s 6s var(--ease-out) both;
}
.wa-float__bubble::after { content: ""; position: absolute; right: -7.5px; top: 50%; width: 12px; height: 12px; background: var(--green-900); border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.wa-float__bubble b { color: var(--gold); font-weight: 400; }
.wa-float:hover .wa-float__bubble { opacity: 1; transform: translate(0, -50%); animation: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes waBubble { 0% { opacity: 0; transform: translate(10px, -50%); } 8%, 88% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(10px, -50%); } }
body.is-loading .wa-float, .menu-open .wa-float { opacity: 0; transform: scale(.6); pointer-events: none; }
@media (max-width: 640px) {
  .wa-float { width: 84px; height: 84px; }
  .wa-float__btn { width: 50px; height: 50px; }
  .wa-float__btn svg { width: 24px; height: 24px; }
}

/* --------------------------------------------------------------------------
   Barra de scroll: tono sobre tono, terracota al usarla
   -------------------------------------------------------------------------- */
html { scrollbar-color: #1E5A58 var(--green-950); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--green-950); }
::-webkit-scrollbar-thumb { background: #1E5A58; border-radius: 10px; border: 2px solid var(--green-950); }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--coral); }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, var(--gold), var(--coral)); }

/* Línea de progreso de lectura */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 140; width: 100%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 10px rgba(246, 197, 111, .45);
  transition: opacity .4s;
}
body.is-loading .scroll-progress, .menu-open .scroll-progress { opacity: 0; }
