/* Telegram tiene la mayor jerarquía visual. Los efectos viven en este archivo. */
.site-shell { position: relative; z-index: 1; }
.hero h1 > .title-line { display: block; }
.hero h1 > span.title-top { color: var(--cream); }
.hero-description strong { font-weight: 500; color: var(--cream); }
.header-end { gap: 17px; }
.telegram-nav { color: var(--gold); }
.signal-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.signal-dot::after { content: ''; position: absolute; inset: -4px; border: 1px solid var(--gold); border-radius: inherit; }
.crest-float { position: relative; z-index: 1; line-height: 0; }
.radar-sweep { position: absolute; inset: -45%; background: conic-gradient(from 0deg, transparent 0deg 285deg, #edc66a00 285deg, #edc66a0b 330deg, #edc66a18 359deg, transparent 360deg); border-radius: 50%; }
.orbit-inner { border-top-color: #edc66a66; }
.primary-button { position: relative; overflow: hidden; isolation: isolate; }
.primary-button::after { content: ''; position: absolute; inset: -60% -100%; background: linear-gradient(110deg, transparent 43%, #fff5 49%, transparent 55%); transform: translateX(-65%); pointer-events: none; }
.primary-button > .icon { position: relative; z-index: 1; }
.telegram-hero-link:hover .icon { transform: translate(3px, -3px); }
.primary-button .icon { transition: transform .25s; }

.telegram-feature { grid-column: 1 / -1; min-height: 315px; padding: 33px 38px 35px; background: var(--gold); color: var(--ink); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; border: 1px solid #f8d68b; transition: box-shadow .3s, border-color .3s; isolation: isolate; }
.telegram-feature::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--hover-x, 70%) var(--hover-y, 30%), #fff4, transparent 48%); pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s; }
.telegram-feature:hover { box-shadow: 0 10px 45px #0004; border-color: #ffe7ab; }
.telegram-feature:hover::after { opacity: 1; }
.telegram-feature-copy { position: relative; z-index: 1; }
.telegram-kicker { display: flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.telegram-kicker .social-icon { width: 22px; height: 22px; }
.telegram-feature h3 { margin: 24px 0 13px; font: 700 66px / .93 var(--display); letter-spacing: -.5px; }
.telegram-feature h3 > span { color: #31503a; }
.telegram-feature p { margin: 0; max-width: 390px; font-size: 12px; line-height: 1.8; }
.telegram-entry { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; margin-top: 23px; padding: 13px 18px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 600; min-height: 46px; }
.telegram-entry .icon { height: 17px; width: 17px; }
.telegram-illustration { position: relative; min-width: 0; display: grid; place-items: center; }
.chat-orbit { position: absolute; width: 245px; height: 245px; border: 1px solid #173d2638; border-radius: 50%; }
.chat-orbit-two { width: 306px; height: 306px; border-style: dashed; opacity: .7; }
.telegram-plane { width: 148px; height: 148px; display: grid; place-items: center; background: var(--ink); border-radius: 50%; transform: rotate(-9deg); box-shadow: 10px 14px 0 #173d2620; }
.telegram-plane svg { width: 96px; height: 96px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flight-trail { position: absolute; width: 280px; height: 234px; fill: none; stroke: #24472d80; stroke-width: 1; stroke-dasharray: 5 7; }
.chat-caption { position: absolute; right: -3px; bottom: 7px; font-size: 8px; letter-spacing: 1.6px; line-height: 1.8; text-align: right; }
.chat-spark { position: absolute; font-size: 25px; color: #31503a; }
.spark-one { top: 19px; right: 30px; }
.spark-two { bottom: 22px; left: 19px; }
.instagram-card { background: #102d24; color: var(--cream); border: 1px solid #446049; }
.instagram-card .card-tag, .instagram-card .card-body p { color: #b8c8b5; }
.instagram-card .social-handle { color: #c7d3be; }
.instagram-card .card-open { border-color: #a5b49466; }
.pending-card { grid-column: span 2; }
.pending-card .availability { font-size: 8px; }
.manifesto-card { min-height: 170px; }

/* Una cinta continua, con una segunda copia decorativa para cerrar el bucle. */
.sport-strip { overflow: hidden; display: block; padding: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.strip-track { display: flex; width: max-content; }
.strip-group { display: flex; flex: 0 0 auto; justify-content: space-around; align-items: center; gap: 35px; padding: 19px 20px 19px 0; }
.strip-group > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: 1.25px; }
.strip-group .strip-star { color: var(--gold); font-size: 12px; }
.sport-strip .strip-group .strip-star { display: inline-flex; }
.strip-group .icon { width: 19px; height: 19px; color: var(--gold); }
.social-card { --tilt-x: 0deg; --tilt-y: 0deg; }
.social-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), #edc66a12, transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.social-card:hover::after { opacity: 1; }
.social-card:hover { transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px); }
.card-watermark { transition: transform .5s; }
.social-card:hover .card-watermark { transform: rotate(-5deg) scale(1.06); }

/* Controles: todos los bucles se pueden detener, sin ocultar contenido. */
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 9px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--gold); border-color: var(--gold); }
.motion-toggle .icon { width: 15px; height: 15px; }
.motion-toggle .play-icon { display: none; }
html[data-motion='paused'] .motion-toggle .play-icon { display: block; }
html[data-motion='paused'] .motion-toggle .pause-icon { display: none; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--gold); z-index: 30; transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; pointer-events: none; }
.ambient-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.smoke-wisp { position: absolute; width: 90vw; height: 95vh; background: radial-gradient(ellipse at center, #43764219, #183e2008 40%, transparent 68%); opacity: .8; }
.smoke-one { top: -12%; left: 20%; }
.smoke-two { bottom: -10%; right: -40%; opacity: .45; }
.embers { position: absolute; inset: 0; }
.embers i { width: 2px; height: 2px; position: absolute; top: 110%; background: #edc66a; border-radius: 50%; opacity: 0; }
.embers i:nth-child(1) { left: 7%; animation-delay: -2s; animation-duration: 18s; }
.embers i:nth-child(2) { left: 22%; animation-delay: -8s; animation-duration: 23s; }
.embers i:nth-child(3) { left: 38%; animation-delay: -15s; animation-duration: 21s; }
.embers i:nth-child(4) { left: 54%; animation-delay: -5s; animation-duration: 25s; }
.embers i:nth-child(5) { left: 68%; animation-delay: -17s; animation-duration: 19s; }
.embers i:nth-child(6) { left: 81%; animation-delay: -11s; animation-duration: 22s; }
.embers i:nth-child(7) { left: 90%; animation-delay: -20s; animation-duration: 27s; }
.embers i:nth-child(8) { left: 96%; animation-delay: -12s; animation-duration: 20s; }
.telegram-dock { display: none; }

html[data-motion='running']:not([data-intro-done]) .title-line { animation: title-enter .9s cubic-bezier(.16, 1, .3, 1) both; }
html[data-motion='running']:not([data-intro-done]) .title-bottom { animation-delay: .13s; }
html[data-motion='running']:not([data-intro-done]) .hero-description { animation: content-enter .8s .22s both; }
html[data-motion='running']:not([data-intro-done]) .hero-actions { animation: content-enter .8s .32s both; }
html[data-motion='running']:not([data-intro-done]) .hero-art { animation: content-enter 1s .15s both; }
html[data-motion='running'] .crest-float { animation: crest-float 6s ease-in-out infinite; }
html[data-motion='running'] .orbit-outer { animation: orbit-turn 75s linear infinite; }
html[data-motion='running'] .orbit-inner { animation: orbit-turn 50s linear infinite reverse; }
html[data-motion='running'] .radar-sweep { animation: orbit-turn 24s linear infinite; }
html[data-motion='running'] .club-ticket > .icon { animation: orbit-turn 30s linear infinite; }
html[data-motion='running'] .signal-dot::after { animation: signal-ring 3s ease-out infinite; }
html[data-motion='running'] .primary-button::after { animation: button-glint 7s 1.4s ease-in-out infinite; }
html[data-motion='running'] .strip-track { animation: ticker-pass 35s linear infinite; }
html[data-motion='running'] .telegram-plane { animation: plane-float 6s ease-in-out infinite; }
html[data-motion='running'] .chat-orbit-two { animation: orbit-turn 65s linear infinite reverse; }
html[data-motion='running'] .flight-trail { animation: trail-pass 12s linear infinite; }
html[data-motion='running'] .telegram-entry .icon { animation: arrow-nudge 4s ease-in-out infinite; }
html[data-motion='running'] .chat-spark { animation: spark-turn 9s ease-in-out infinite; }
html[data-motion='running'] .smoke-one { animation: smoke-drift 22s ease-in-out infinite alternate; }
html[data-motion='running'] .smoke-two { animation: smoke-drift 28s ease-in-out infinite alternate-reverse; }
html[data-motion='running'] .embers i { animation-name: ember-rise; animation-timing-function: linear; animation-iteration-count: infinite; }
html[data-motion='running'] .will-reveal { transition: opacity .7s ease var(--reveal-delay, 0ms), translate .7s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms), transform .2s ease, box-shadow .3s, border-color .3s; }
html[data-motion='running'] .will-reveal:not(.is-revealed) { opacity: 0; translate: 0 24px; }
html[data-motion='running'] .will-reveal:focus-within { opacity: 1; translate: none; }
.sport-strip:hover .strip-track { animation-play-state: paused; }
html[data-motion='paused'] *, html[data-motion='paused'] *::before, html[data-motion='paused'] *::after { animation: none !important; transition: none !important; }
html[data-motion='paused'] { scroll-behavior: auto; }
html[data-motion='paused'] .social-card:hover { transform: none; }
html[data-motion='paused'] .card-watermark { transform: rotate(-12deg); }
html[data-motion='paused'] .primary-button::after { opacity: 0; }
html[data-background] *, html[data-background] *::before, html[data-background] *::after { animation-play-state: paused !important; }

@keyframes title-enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-enter { from { opacity: 0; translate: 0 15px; } to { opacity: 1; translate: none; } }
@keyframes crest-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes signal-ring { 0% { transform: scale(.7); opacity: .6; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes button-glint { 0%, 65% { transform: translateX(-65%); } 90%, 100% { transform: translateX(65%); } }
@keyframes ticker-pass { to { transform: translateX(-50%); } }
@keyframes plane-float { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes trail-pass { to { stroke-dashoffset: -120; } }
@keyframes arrow-nudge { 0%, 75%, 100% { transform: translate(0); } 85% { transform: translate(3px, -3px); } }
@keyframes spark-turn { 0%, 100% { transform: rotate(0); opacity: .7; } 50% { transform: rotate(90deg); opacity: 1; } }
@keyframes smoke-drift { from { transform: translate(-3%, -2%) scale(.95); } to { transform: translate(10%, 6%) scale(1.15); } }
@keyframes ember-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .4; } 75% { opacity: .2; } 100% { transform: translate(35px, -120vh); opacity: 0; } }
@keyframes dock-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-enter { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: none; } }
html[data-motion='running'] .toast:not([hidden]) { animation: toast-enter .25s both; }

@media (max-width: 1100px) {
  .header-nav { gap: 23px; }
  .motion-label { display: none; }
  .telegram-feature { padding: 30px; }
  .telegram-feature h3 { font-size: 58px; }
  .chat-orbit { width: 190px; height: 190px; }
  .chat-orbit-two { width: 245px; height: 245px; }
  .telegram-plane { width: 128px; height: 128px; }
  .flight-trail { width: 245px; }
}
@media (max-width: 760px) {
  .hero-art { overflow: clip; overflow-clip-margin: 20px; }
  .radar-sweep { display: none; }
  .site-header { gap: 9px; }
  .header-nav { gap: 0; }
  .header-nav a:nth-child(2) { display: none; }
  .header-end { gap: 9px; }
  .motion-toggle { min-width: 36px; min-height: 44px; padding: 6px; border: 0; }
  .telegram-feature { padding: 24px 22px 26px; min-height: 0; gap: 0; grid-template-columns: 1fr; }
  .telegram-kicker { font-size: 7px; gap: 9px; letter-spacing: .8px; position: relative; z-index: 2; }
  .telegram-kicker .social-icon { width: 20px; height: 20px; }
  .telegram-feature h3 { font-size: clamp(32px, 9.5vw, 47px); margin: 25px 0 15px; position: relative; z-index: 2; }
  .telegram-feature p { max-width: 260px; font-size: 11px; position: relative; z-index: 2; }
  .telegram-entry { width: 100%; font-size: 11px; margin-top: 23px; position: relative; z-index: 2; }
  .telegram-illustration { position: absolute; right: -35px; top: 45px; width: 160px; height: 160px; opacity: .12; pointer-events: none; z-index: 0; }
  .telegram-plane { width: 105px; height: 105px; }
  .telegram-plane svg { width: 75px; height: 75px; }
  .chat-orbit { width: 140px; height: 140px; }
  .chat-orbit-two { width: 185px; height: 185px; }
  .chat-caption, .chat-spark { display: none; }
  .section-heading h2 { font-size: 33px; max-width: 230px; }
  .section-heading > p { font-size: 8px; }
  .pending-card { min-height: 130px; padding: 19px 22px; }
  .pending-card .pending-bottom { margin-top: 13px; }
  .pending-card .pending-description { font-size: 9px; }
  .manifesto-card { min-height: 158px; }
  .strip-group { gap: 25px; padding: 16px 25px 16px 0; }
  .strip-group > span { font-size: 8px; letter-spacing: .75px; }
  .strip-group .icon { width: 15px; height: 15px; }
  .ambient-effects .embers i:nth-child(n+5) { display: none; }
  .site-footer { padding-bottom: 115px; }
  .telegram-dock { display: block; position: fixed; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 15; background: var(--gold); color: var(--ink); box-shadow: 0 4px 30px #0008; }
  .telegram-dock[hidden] { display: none; }
  .telegram-dock > a { min-height: 62px; display: flex; gap: 13px; align-items: center; padding: 12px 17px; }
  .telegram-dock > a > span { font-size: 8px; line-height: 1.7; }
  .telegram-dock strong { display: block; font-size: 11px; font-weight: 700; }
  .telegram-dock .dock-arrow { margin-left: auto; width: 19px; height: 19px; }
  html[data-motion='running'] .telegram-dock:not([hidden]) { animation: dock-enter .35s both; }
  .toast { bottom: 90px; }
}
@media (max-width: 370px) {
  .hero-art { overflow-clip-margin: 16px; }
  .telegram-feature { padding: 22px 19px; }
  .telegram-feature h3 { font-size: 32px; }
  .telegram-kicker { font-size: 6px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p { font-size: 7px; }
  .hero-description { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .will-reveal:not(.is-revealed) { opacity: 1 !important; translate: none !important; }
  .social-card:hover { transform: none; }
  .signal-dot::after { display: none; }
}
