/* Del antes al después: el scroll barre una web antigua y deja ver la nueva. Negocio ficticio. */
.ad { padding: 0; }
html.fx-ad .ad { height: 260vh; position: relative; }
.ad-stick { padding: 72px 0; }
html.fx-ad .ad-stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 84px 0 24px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ad h2 { font-size: clamp(32px, 5vw, 60px); }
.ad .sub { margin-top: 10px; }
.ad-frame {
  --q: 0.5;
  position: relative; margin-top: 24px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  background: #101010; aspect-ratio: 16 / 7.4; max-height: 52vh; isolation: isolate;
}
.ad-bar { position: absolute; z-index: 5; inset: 0 0 auto 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1b1b1a; border-bottom: 1px solid var(--line); }
.ad-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3730; }
.ad-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.ad-layer { position: absolute; inset: 30px 0 0 0; padding: clamp(12px, 2.4vw, 28px); overflow: hidden; }

/* Antes: una web antigua y recargada */
.ad-old { background: #e9e4d4; color: #222; font-family: "Times New Roman", Times, serif; }
.ad-old .o-top { background: #1d3f8f; color: #fff; padding: 6px 10px; font-size: clamp(11px, 1.5vw, 16px); font-weight: 700; }
.ad-old .o-nav { margin: 8px 0; font-size: clamp(10px, 1.3vw, 14px); color: #0000ee; text-decoration: underline; word-spacing: 12px; }
.ad-old .o-h { font-size: clamp(16px, 3vw, 34px); font-weight: 700; color: #b00000; text-decoration: underline; }
.ad-old .o-p { font-size: clamp(9px, 1.2vw, 14px); max-width: 52ch; margin-top: 6px; line-height: 1.25; }
.ad-old .o-box { position: absolute; right: clamp(12px, 2.4vw, 28px); top: clamp(60px, 9vw, 110px); width: 26%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #bbb 0 6px, #ccc 6px 12px); filter: blur(1.4px); }
.ad-old .o-tiny { position: absolute; left: clamp(12px, 2.4vw, 28px); bottom: 10px; font-size: 8px; color: #666; }
.ad-old .o-count { position: absolute; right: clamp(12px, 2.4vw, 28px); bottom: 10px; font-size: 9px; background: #000; color: #0f0; padding: 1px 4px; font-family: monospace; }

/* Después: la web nueva */
.ad-new { z-index: 2; background: #0c0c0c; color: var(--white); clip-path: inset(0 calc((1 - var(--q)) * 100%) 0 0); }
.ad-new .n-nav { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: 0.06em; font-size: clamp(11px, 1.4vw, 15px); }
.ad-new .n-nav em { font-style: normal; color: var(--gold); }
.ad-new .n-h { margin-top: clamp(10px, 3vw, 36px); font-size: clamp(22px, 4.6vw, 58px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; max-width: 12ch; }
.ad-new .n-h em { font-style: normal; color: var(--gold); }
.ad-new .n-p { margin-top: 8px; color: var(--muted); font-size: clamp(11px, 1.4vw, 16px); max-width: 40ch; }
.ad-new .n-chips { display: flex; gap: 8px; margin-top: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.ad-new .n-chips i { font-style: normal; border: 1px solid var(--line-strong); padding: 6px 12px; font-size: clamp(11px, 1.3vw, 14px); }
.ad-new .n-chips i.on { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 700; }
.ad-new .n-btn { display: inline-block; margin-top: clamp(10px, 2vw, 20px); background: var(--gold); color: var(--black); font-weight: 700; padding: 10px 22px; font-size: clamp(11px, 1.4vw, 15px); letter-spacing: 0.06em; }
.ad-new .n-glow { position: absolute; right: -8%; top: 8%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227, 173, 43, 0.35), transparent 65%); }

.ad-line { position: absolute; z-index: 4; top: 30px; bottom: 0; left: calc(var(--q) * 100%); width: 2px; background: var(--gold); box-shadow: 0 0 18px rgba(227, 173, 43, 0.8); }
.ad-line::after { content: "⇄"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--black); display: grid; place-items: center; font-weight: 700; }

.ad-notes { position: relative; margin-top: 18px; min-height: 3.6em; list-style: none; padding: 0; }
.ad-notes li { position: absolute; inset: 0 auto auto 0; max-width: 64ch; color: var(--muted); font-size: clamp(14px, 1.6vw, 18px); transition: opacity 0.25s ease; }
.ad-notes b { color: var(--white); }
.ad-notes .a-new { opacity: 0; }
.ad.is-after .ad-notes .a-old { opacity: 0; }
.ad.is-after .ad-notes .a-new { opacity: 1; }
.ad-hint { margin-top: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
html:not(.fx-ad) .ad-notes { min-height: 0; }
html:not(.fx-ad) .ad-notes li { position: static; margin-top: 8px; opacity: 1 !important; }
@media (max-width: 680px) {
  .ad-frame { aspect-ratio: 4 / 4.4; max-height: 50vh; }
  .ad-old .o-box { width: 34%; }
  html.fx-ad .ad-stick { padding-top: 76px; }
}
