/* portal de competidores: inicio de sesión más llamativo */
.gate-art { background: radial-gradient(60% 70% at 30% 35%, rgba(225,15,31,.3), transparent 65%), radial-gradient(40% 50% at 85% 85%, rgba(211,216,223,.08), transparent 70%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 3px, transparent 3px 8px), linear-gradient(160deg, #16181c, #050506) !important; position: relative; }
.gate-art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 16%; height: 6px; transform: skewY(-4deg);
  background: linear-gradient(90deg, transparent, #e10f1f 25%, #ff4d57 60%, transparent); opacity: .7; pointer-events: none; }
.gate-status { color: #ffb3b8 !important; letter-spacing: 3px !important; }
.gate-status i { background: #ff4d57 !important; box-shadow: 0 0 12px #e10f1f !important; animation: pulse 1.4s infinite; }
.gate-logo { z-index: 1; }
.gate-logo .org-logo-big { max-width: min(100%, 460px); max-height: 260px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 1.4px rgba(255,255,255,.6)) drop-shadow(0 14px 32px rgba(0,0,0,.85)) drop-shadow(0 0 40px rgba(225,15,31,.28)) !important; }
.gate-rt-small { width: 170px; margin-top: 18px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.7)); }
.gate-rt-small[hidden] { display: none; }
.gate-feats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.gate-feats li { padding: 12px 14px; border-radius: 12px; background: rgba(10,11,13,.75); border: 1px solid #2a2f38; border-top: 3px solid #e10f1f; }
.gate-feats b { display: block; font: 800 17px/1.1 var(--display); letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.gate-feats span { display: block; margin-top: 4px; font-size: 13px; color: #aab0ba; }
.gate-panel h1 { font-size: clamp(36px, 4vw, 48px) !important; }
.gate-signup { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px; border-radius: 14px; text-decoration: none; color: #f4f5f7;
  background: linear-gradient(160deg, rgba(225,15,31,.22), rgba(10,11,13,.9) 60%); border: 1px solid rgba(225,15,31,.55); transition: transform .2s; }
.gate-signup:hover { transform: translateY(-2px); }
.gate-signup[hidden] { display: none; }
.gate-signup small { font: 800 12px/1 var(--display); letter-spacing: 2.4px; text-transform: uppercase; color: #ffb3b8; }
.gate-signup b { font: italic 900 26px/1 var(--display); text-transform: uppercase; }
.gate-signup span { color: #c4c9d1; font-size: 14px; }
@media (max-width: 900px), (orientation: portrait) and (max-width: 1280px) { .gate-feats { grid-template-columns: minmax(0, 1fr); } }
/* «Regístrate»: escoger competidor o afiliado */
.su-pick { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4,5,7,.78); backdrop-filter: blur(6px); animation: su-fade .2s ease both; }
.su-box { width: 100%; max-width: 520px; display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, #16181e, #0d0f13);
  border: 1px solid #2a2f38; box-shadow: 0 40px 90px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); color: #f4f5f7; animation: su-up .35s cubic-bezier(.16,1,.3,1) both; }
.su-box h2 { margin: 0; font: italic 900 30px/1 var(--display); text-transform: uppercase; }
.su-box > p { margin: 0 0 4px; color: #aab1bc; font-size: 14px; line-height: 1.45; }
.su-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #0b0c0f; border: 1px solid #2a2f38; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.su-opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #ff4d57, #c10d1a); }
.su-opt.a::before { background: linear-gradient(180deg, #ffd166, #ff9f1c); }
.su-opt:hover, .su-opt:focus-visible { transform: translateY(-2px); border-color: #e10f1f; box-shadow: 0 0 0 1px #e10f1f, 0 14px 34px rgba(225,15,31,.25); outline: none; }
.su-opt.a:hover, .su-opt.a:focus-visible { border-color: #ffb020; box-shadow: 0 0 0 1px #ffb020, 0 14px 34px rgba(255,176,32,.2); }
.su-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(225,15,31,.14); color: #ff6b73; }
.su-opt.a .su-ic { background: rgba(255,176,32,.14); color: #ffc04d; }
.su-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.su-tx { display: grid; gap: 4px; min-width: 0; }
.su-tx b { font: italic 900 22px/1 var(--display); text-transform: uppercase; }
.su-tx small { color: #aab1bc; font-size: 13px; line-height: 1.4; }
.su-go { font: 900 22px/1 var(--display); color: #6b7380; }
.su-x { justify-self: center; margin-top: 2px; background: none; border: 0; color: #aab1bc; font: 700 14px/1 var(--text, sans-serif); padding: 10px 16px; cursor: pointer; text-decoration: underline; }
@keyframes su-fade { from { opacity: 0; } }
@keyframes su-up { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@media (max-width: 480px) { .su-box { padding: 18px; } .su-box h2 { font-size: 25px; } .su-ic { width: 42px; height: 42px; } .su-tx b { font-size: 19px; } }
.rt-app .gate-home { display: none; }

/* contraseña nueva con Google Authenticator */
.gate-forgot { display: inline-block; margin: 14px 0 0; padding: 6px 0; background: none; border: 0; color: #c4c9d1; font: 600 14px/1.3 Barlow, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.gate-forgot:hover, .gate-forgot:focus-visible { color: #fff; }
.form-ok { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(41,224,107,.08); border: 1px solid rgba(41,224,107,.3); color: #9df5bf; font-size: 14px; line-height: 1.4; }
.form-ok[hidden] { display: none; }
.rs-locked { padding: 10px 12px; border-radius: 10px; background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.45); color: #ffd98a; line-height: 1.4; }
.rs-locked[hidden] { display: none; }
#rs-f2 input[name="code"] { font-size: 24px; letter-spacing: 8px; text-align: center; }
.rs-steps { display: flex; gap: 6px; margin: 6px 0 14px; padding: 0; list-style: none; counter-reset: rs; }
.rs-steps li { flex: 1; counter-increment: rs; padding-top: 8px; border-top: 3px solid #2a2f38; color: #6a707b; font: 700 12px/1.2 Barlow, system-ui, sans-serif; }
.rs-steps li::before { content: counter(rs) ". "; }
.rs-steps li.on { border-top-color: #e10f1f; color: #f4f5f7; }
#rs-f1 > p, #rs-f2 > p { margin: 0 0 4px; color: #c4c9d1; line-height: 1.45; }

.gate-remember { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 2px; color: #c4c9d1; font: 500 14px/1.4 Barlow, system-ui, sans-serif; cursor: pointer; }
.gate-remember input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #e10f1f; }

/* /admin: entrada privada del personal de EGP, sin nada del público */
body.admin-gate #gate-signup, body.admin-gate .gate-home, body.admin-gate #go-reset + * { display: none !important; }
body.admin-gate .gate-signup { display: none !important; }

/* Enlace de inscripción de un evento: logo y pasos */
.gate-ev { border: 1px solid rgba(225, 15, 31, .45); border-radius: 14px; padding: 14px; margin: 0 0 18px; display: grid; gap: 8px;
  background: linear-gradient(135deg, rgba(225, 15, 31, .12), rgba(225, 15, 31, .02)); }
.gate-ev[hidden] { display: none; }
.gate-ev-h { display: flex; gap: 12px; align-items: center; }
.gate-ev-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .06); flex: none; }
.gate-ev-h div { display: grid; gap: 2px; min-width: 0; }
.gate-ev-h small { opacity: .75; font-size: 13px; }
.gate-ev-h b { font-size: 19px; line-height: 1.15; }
.gate-ev-h span { opacity: .8; font-size: 14px; }
.gate-ev-how { margin: 4px 0 0; font-weight: 700; }
.gate-ev-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
/* «Regístrate» primero: arriba del inicio de sesión, grande */
.gate-signup-top { margin: 0 0 22px; padding: 18px; border-width: 2px; }
.gate-signup-top b { font-size: 32px; }
.gate-ev-desc { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.45; color: #c4c9d1; }
