/* Copa SDS · portada */
.portal { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); text-align: center; overflow: hidden; }
.portal-in { display: flex; flex-direction: column; align-items: center; width: 100%; will-change: transform, opacity; }
.portal-logo { width: 88px; height: auto; margin-bottom: 12px; opacity: 0; animation: fadeUp .7s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.portal .kicker { margin: 0 0 6px; opacity: 0; animation: fadeUp .7s .25s cubic-bezier(.2,.8,.2,1) forwards; }

/* Cinta que corre detrás del titular */
.ticker { position: absolute; left: -10%; right: -10%; top: 46%; transform: translateY(-50%) rotate(-6deg); z-index: -1; pointer-events: none;
  overflow: hidden; white-space: nowrap; opacity: 0; animation: fadeIn 1s 1.4s forwards; }
.ticker span { display: inline-block; font: 900 clamp(46px, 10vw, 120px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241,196,25,.16); padding-right: .5em; animation: tick 28s linear infinite; }
.ticker.t2 { top: 60%; }
.ticker.t2 span { -webkit-text-stroke-color: rgba(255,255,255,.08); animation-direction: reverse; animation-duration: 34s; }

/* Titular cinético */
.kin { margin: 4px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 1.04; letter-spacing: -.01em; }
.kin .ln { display: block; overflow: hidden; padding: .12em .04em 0; }
.kin .ch { display: inline-block; transform: translateY(115%) rotate(10deg); opacity: 0;
  animation: rise .8s calc(.45s + var(--i) * 45ms) cubic-bezier(.16,1,.3,1) forwards; }
.kin .l1 { font-size: clamp(40px, min(11.6vw, 10.5vh), 116px); color: #fff; }
.kin .l2 { font-size: clamp(20px, min(5.6vw, 4.8vh), 50px); color: transparent; -webkit-text-stroke: 1.6px var(--yellow); letter-spacing: .32em; margin-right: -.32em; line-height: 1; }
.kin .l3 { position: relative; font-size: clamp(50px, min(15.6vw, 13.5vh), 150px); }
.kin .l3 .fill { position: relative; z-index: 2; display: inline-block; color: var(--yellow); text-shadow: 0 6px 30px rgba(241,196,25,.25); }
.kin .l3 .glint { position: absolute; inset: .12em .04em 0; z-index: 3; color: transparent; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.85) 50%, transparent 60% 100%); background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; animation: shine 4.5s 2.2s ease-in-out infinite; }
.kin .l3 .echo { position: absolute; inset: .12em .04em 0; z-index: 1; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); opacity: 0;
  animation: echo 3.2s 1.6s cubic-bezier(.45,0,.2,1) infinite; }
.kin .l3 .echo.e2 { -webkit-text-stroke-color: rgba(31,95,209,.9); animation-delay: 1.9s; }

/* Bola de golf que rueda al hoyo */
.green { position: relative; width: min(420px, 86vw); height: 40px; margin: 2px auto 0; }
.green .line { position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(74,210,149,.55) 20%, rgba(74,210,149,.55) 80%, transparent); transform: scaleX(0); animation: grow .9s 1.5s ease-out forwards; }
.green .cup { position: absolute; right: 14%; bottom: 6px; width: 22px; height: 8px; border-radius: 50%; background: #02040a; box-shadow: inset 0 2px 3px rgba(0,0,0,.8); opacity: 0; animation: fadeIn .4s 1.8s forwards; }
.green .flag { position: absolute; right: calc(14% + 10px); bottom: 10px; width: 2px; height: 0; background: #e8ecf4; animation: pole .5s 3.25s cubic-bezier(.2,1.4,.4,1) forwards; }
.green .flag::after { content: ""; position: absolute; left: 2px; top: 0; width: 22px; height: 14px; background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: left center; transform: scaleX(0); animation: flagIn .35s 3.65s forwards, wave 1.6s 4s ease-in-out infinite; }
.green .ball { position: absolute; left: 0; bottom: 11px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 35%, #dfe4ee 70%, #aeb6c6 100%); box-shadow: 0 2px 4px rgba(0,0,0,.5);
  opacity: 0; animation: roll 1.6s 1.7s cubic-bezier(.3,.1,.3,1) forwards; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: center; margin: 10px 0 14px; color: #e6ebf5; font-size: 15px;
  opacity: 0; animation: fadeUp .7s 1.5s cubic-bezier(.2,.8,.2,1) forwards; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { color: var(--yellow); font-size: 17px; }
.meta .date { font: 800 clamp(15px, 4.2vw, 18px)/1.2 var(--display); color: #fff; padding: 8px 16px; border: 1.5px solid var(--yellow);
  border-radius: 999px; background: rgba(241,196,25,.12); box-shadow: 0 0 22px rgba(241,196,25,.18); }
.meta .club-logo img { height: 28px; width: auto; display: block; }

/* Cuenta regresiva */
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(100%, 420px); margin: 0 0 6px;
  opacity: 0; animation: fadeUp .7s 1.75s cubic-bezier(.2,.8,.2,1) forwards; }
.cd { position: relative; padding: 10px 4px 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden; }
.cd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.35); }
.cd b { display: block; font: 900 clamp(28px, 9vw, 42px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd b.flip { animation: flip .55s cubic-bezier(.2,.9,.3,1.2); }
.cd:first-child b { color: var(--yellow); text-shadow: 0 0 22px rgba(241,196,25,.4); }
.cd small { display: block; margin-top: 4px; font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.count-cap { margin: 2px 0 16px; font: 600 12.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeIn .7s 2s forwards; }
.count-cap b { color: var(--yellow); }

.cta { position: relative; overflow: hidden; min-height: 60px; padding: 0 22px; font-size: clamp(16px, 4.6vw, 19px); white-space: nowrap; gap: 12px; width: min(100%, 420px);
  opacity: 0; animation: pop .7s 1.9s cubic-bezier(.2,1.3,.4,1) forwards; }
.cta::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: sweep 3.2s 2.8s ease-in-out infinite; }
.cta svg { font-size: 22px; animation: nudge 1.4s 2.8s ease-in-out infinite; }
.btn-spons { width: min(100%, 420px); margin-top: 10px; white-space: nowrap; font-size: clamp(15px, 4.2vw, 16px) !important; min-height: 52px; background: var(--blue); border-color: var(--blue); color: #fff; gap: 10px;
  opacity: 0; animation: fadeUp .7s 2.1s cubic-bezier(.2,.8,.2,1) forwards; }
.btn-spons:hover { background: #2a6ef0; border-color: #2a6ef0; }

.cue { margin-top: 18px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font: 700 11px/1 var(--body); letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; opacity: 0; animation: fadeIn .8s 2.6s forwards; }
.cue i { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: wheel 1.6s ease-in-out infinite; }

/* ---------- Secciones al hacer scroll ---------- */
.sec { position: relative; z-index: 1; padding: 84px 16px; max-width: 1080px; margin: 0 auto; }
.sec-k { margin: 0 0 10px; font: 800 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.sec-t { margin: 0 0 14px; font: 900 clamp(34px, 9.5vw, 64px)/.98 var(--display); text-transform: uppercase; color: #fff; letter-spacing: -.01em; }
.sec-t .w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .06em; }
.sec-t .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--wi) * 70ms); }
.sec-t.is-in .w > span, .no-motion .sec-t .w > span { transform: none; }
.sec-t em { font-style: normal; color: var(--yellow); }
.sec-p { margin: 0 0 30px; color: var(--muted); font-size: 16px; max-width: 560px; }

/* Frase que se ilumina con el scroll */
.mission { min-height: 120svh; display: flex; align-items: flex-start; }
.mission-in { position: sticky; top: 18svh; padding: 0 4px; }
.mission p { margin: 0; font: 900 clamp(30px, 8.6vw, 62px)/1.08 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.mission .wd { color: rgba(255,255,255,.14); transition: color .35s ease, text-shadow .35s ease; }
.mission .wd.on { color: #fff; }
.mission .wd.gold.on { color: var(--yellow); text-shadow: 0 0 30px rgba(241,196,25,.35); }

/* Tarjetas para participar */
.roles { display: grid; gap: 16px; perspective: 1200px; }
.role { position: relative; display: grid; gap: 10px; padding: 26px 22px 22px; border-radius: 22px; text-decoration: none; color: var(--text); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 60%); border: 1px solid rgba(255,255,255,.12);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.role::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--rc, var(--yellow)) 85%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.role:hover::before, .role:focus-visible::before, .role.is-in::before { opacity: 1; }
.role:active { transform: scale(.98); }
.role .n { position: absolute; right: 14px; top: 2px; font: 900 96px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.1); pointer-events: none; }
.role .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(241,196,25,.14); color: var(--yellow); font-size: 26px; }
.role h3 { margin: 4px 0 0; font: 900 26px/1.05 var(--display); text-transform: uppercase; color: #fff; }
.role p { margin: 0; color: var(--muted); font-size: 15px; }
.role .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 800 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--rc, var(--yellow)); }
.role .go svg { transition: transform .3s; }
.role:hover .go svg { transform: translateX(5px); }
.role.r-spons { --rc: #6f9cf0; }
.role.r-spons .ic { background: rgba(31,95,209,.2); color: #8fb2f5; }
.role.r-emp { --rc: #4ad295; }
.role.r-emp .ic { background: rgba(74,210,149,.16); color: #4ad295; }
.role .tag { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.08); color: #fff; }

/* Sede */
.venue { display: grid; gap: 18px; align-items: center; }
.venue-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 22px; isolation: isolate; }
.venue-card .ph { position: absolute; inset: -12% 0; z-index: -2; background: center / cover no-repeat; will-change: transform; }
.venue-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(7,11,20,.92)); }
.venue-card img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.venue-facts { display: grid; gap: 12px; }
.fact { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.fact .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(241,196,25,.14); color: var(--yellow); font-size: 22px; }
.fact b { display: block; font: 800 17px/1.2 var(--display); color: #fff; }
.fact span { color: var(--muted); font-size: 14px; }
.venue .btn { justify-self: start; }

/* Galería que se desliza con el scroll */
.reel { position: relative; z-index: 1; padding: 70px 0 90px; overflow: hidden; }
.reel .sec-head { max-width: 1080px; margin: 0 auto; padding: 0 16px 26px; }
.reel-row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.reel-row + .reel-row { margin-top: 12px; }
.reel-row figure { margin: 0; width: clamp(150px, 42vw, 260px); aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--ink-2); flex: none; }
.reel-row img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }

/* Contacto */
.contact { text-align: center; }
.contact .sec-p { margin-left: auto; margin-right: auto; }
.contact-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-acts .btn { gap: 10px; }
.portal-foot { position: relative; z-index: 1; text-align: center; padding: 10px 16px max(110px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); }
.portal-foot p { margin: 0; }

@media (min-width: 760px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .venue { grid-template-columns: 1.1fr 1fr; }
  .venue-card { min-height: 420px; }
  .sec { padding: 110px 24px; }
}

@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes echo { 0% { opacity: 0; transform: none; } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(.06em, -.06em) scale(1.06); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes roll { 0% { opacity: 1; left: 0; transform: rotate(0); } 88% { left: calc(86% - 18px); transform: rotate(720deg); bottom: 11px; opacity: 1; }
  100% { left: calc(86% - 18px); bottom: 2px; transform: rotate(760deg) scale(.4); opacity: 0; } }
@keyframes pole { to { height: 34px; } }
@keyframes flagIn { to { transform: scaleX(1); } }
@keyframes wave { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.82) skewY(6deg); } }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
@keyframes flip { 0% { transform: translateY(-60%) rotateX(80deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { --ang: 360deg; } }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

@media (prefers-reduced-motion: reduce) {
  .portal *, .portal *::before, .portal *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .ticker span, .kin .l3 .echo, .role::before, .cue i::after { animation: none !important; }
  .green .ball { display: none; }
  .sec-t .w > span { transform: none !important; transition: none !important; }
  .mission { min-height: 0; }
  .mission .wd { color: #fff; }
  .mission .wd.gold { color: var(--yellow); }
}
