/* =====================================================
   SportFest 2026 �� Neon Cyberpunk UI
   Palette: Neon Purple �� Cyber Green �� Deep Void
   Trends: Liquid Glass 2.0, Inner Glow, Motion Intent
   ===================================================== */
 
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
 
/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
    /* === NEON PALETTE === */
    --neon-purple:       #b04cff;
    --neon-purple-light: #cc84ff;
    --neon-purple-dark:  #7c22e0;
    --neon-purple-glow:  rgba(176, 76, 255, 0.4);
 
    --neon-green:        #00ff88;
    --neon-green-light:  #39ffaa;
    --neon-green-dark:   #00cc6a;
    --neon-green-glow:   rgba(0, 255, 136, 0.35);
 
    --neon-cyan:         #00e5ff;
    --neon-cyan-glow:    rgba(0, 229, 255, 0.3);
 
    --neon-pink:         #ff2d78;
    --neon-pink-glow:    rgba(255, 45, 120, 0.35);
 
    /* === BACKGROUNDS (deep void) === */
    --bg-void:     #060610;
    --bg-deep:     #0a0a1a;
    --bg-surface:  #0f0f24;
    --bg-elevated: #141428;
    --bg-glass:    rgba(255, 255, 255, 0.04);
 
    /* === TEXT === */
    --text-bright:    #ffffff;
    --text-primary:   #e8e8f2;
    --text-secondary: #9898c0;
    --text-muted:     #55557a;
 
    /* === BORDERS === */
    --border-subtle:  rgba(255, 255, 255, 0.07);
    --border-medium:  rgba(255, 255, 255, 0.13);
    --border-purple:  rgba(176, 76, 255, 0.4);
    --border-green:   rgba(0, 255, 136, 0.4);
 
    /* === SHADOWS / GLOWS === */
    --glow-purple: 0 0 20px rgba(176, 76, 255, 0.45),
                   0 0 60px rgba(176, 76, 255, 0.15);
    --glow-green:  0 0 20px rgba(0, 255, 136, 0.45),
                   0 0 60px rgba(0, 255, 136, 0.15);
    --glow-cyan:   0 0 20px rgba(0, 229, 255, 0.4);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.65),
                   0 2px 8px  rgba(0, 0, 0, 0.45);
    --shadow-float: 0 24px 64px rgba(0, 0, 0, 0.85);
 
    /* === RADII === */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
 
    /* === TIMING === */
    --t-fast:   0.15s ease;
    --t-smooth: 0.3s  cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
/* Neon scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-green));
    border-radius: 3px;
}
 
/* =====================================================
   BODY + AMBIENT LAYERS
   ===================================================== */
body {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
 
/* Layer 1 �� Animated neon grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(176, 76, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 76, 255, 0.055) 1px, transparent 1px);
    background-size: 52px 52px;
    z-index: 0;
    pointer-events: none;
    animation: gridDrift 28s linear infinite;
}
 
/* Layer 2 �� Ambient neon orbs */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 38% at 12% 65%, rgba(176, 76, 255, 0.13) 0%, transparent 72%),
        radial-gradient(ellipse 48% 32% at 88% 25%, rgba(0, 255, 136, 0.10) 0%, transparent 72%),
        radial-gradient(ellipse 38% 28% at 55% 88%, rgba(0, 229, 255, 0.07) 0%, transparent 72%);
    z-index: 0;
    pointer-events: none;
    animation: orbPulse 12s ease-in-out infinite alternate;
}
 
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 52px 52px; }
}
@keyframes orbPulse {
    0%   { opacity: 0.65; transform: scale(1); }
    100% { opacity: 1;    transform: scale(1.06); }
}
 
/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}
 
/* =====================================================
   HEADER �� CYBERPUNK SPORTS BANNER
   ===================================================== */
.header {
    background: rgba(8, 8, 22, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--border-purple);
    padding: 38px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep),
                0 0 0 1px rgba(176, 76, 255, 0.08);
}
 
/* Animated neon top stripe */
.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-purple) 0%,
        var(--neon-cyan)   33%,
        var(--neon-green)  66%,
        var(--neon-purple) 100%);
    background-size: 200% 100%;
    animation: neonFlow 4s linear infinite;
    box-shadow:
        0 0 18px rgba(176, 76, 255, 0.7),
        0 0 36px rgba(0, 255, 136, 0.35);
}
 
/* Scanline sweep �� atmospheric, not distracting */
.header::after {
    content: '';
    position: absolute;
    top: -100%; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(180deg,
        transparent,
        rgba(176, 76, 255, 0.04),
        transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}
 
@keyframes neonFlow {
    0%   { background-position:   0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes scanline {
    0%   { top: -100%; }
    100% { top:  200%; }
}
 
.header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}
 
.header .logo i {
    font-size: 3.4rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(176, 76, 255, 0.75));
    animation: iconPulse 3.5s ease-in-out infinite;
}
 
@keyframes iconPulse {
    0%,  100% {
        filter: drop-shadow(0 0 12px rgba(176, 76, 255, 0.7));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 26px rgba(0, 255, 136, 0.85));
        transform: scale(1.08);
    }
}
 
.header h1 {
    font-size: 2.9rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        #ffffff        20%,
        var(--neon-purple) 58%,
        var(--neon-green)  100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
 
.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 9px;
    letter-spacing: 0.06em;
}
 
/* =====================================================
   PROGRESS BAR �� NEON STEPS
   ===================================================== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    background: rgba(8, 8, 22, 0.75);
    backdrop-filter: blur(18px);
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-deep),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
 
/* Connecting line */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%; left: 14%; right: 14%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-green));
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.18;
    border-radius: 1px;
}
 
.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    transition: var(--t-smooth);
}
 
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: var(--t-spring);
    box-shadow: var(--shadow-deep);
}
 
/* Active step �� purple neon pulse */
.progress-step.active .step-number {
    background: rgba(176, 76, 255, 0.14);
    border-color: var(--neon-purple);
    color: var(--neon-purple-light);
    transform: scale(1.18);
    animation: stepPulse 2.2s ease-in-out infinite;
}
 
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 18px rgba(176, 76, 255, 0.4),
                    0 0 50px rgba(176, 76, 255, 0.12),
                    inset 0 0 18px rgba(176, 76, 255, 0.08);
    }
    50% {
        box-shadow: 0 0 30px rgba(176, 76, 255, 0.65),
                    0 0 80px rgba(176, 76, 255, 0.22),
                    inset 0 0 28px rgba(176, 76, 255, 0.14);
    }
}
 
/* Completed step �� green check */
.progress-step.completed .step-number {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: var(--glow-green);
}
 
.step-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--t-smooth);
}
 
.progress-step.active    .step-label { color: var(--neon-purple-light); }
.progress-step.completed .step-label { color: var(--neon-green); }
 
/* =====================================================
   FORM CARD �� LIQUID GLASS 2.0
   ===================================================== */
.form-registro {
    background: rgba(12, 12, 30, 0.72);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    padding: 52px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-float),
                inset 0  1px 0 rgba(255, 255, 255, 0.07),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
 
/* Top edge neon gradient */
.form-registro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent       0%,
        var(--neon-purple) 35%,
        var(--neon-green)  65%,
        transparent       100%);
    opacity: 0.55;
}
 
/* Floating ambient inner glow */
.form-registro::after {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 55%; height: 55%;
    background: radial-gradient(circle,
        rgba(176, 76, 255, 0.06) 0%, transparent 72%);
    pointer-events: none;
    animation: innerFloatGlow 14s ease-in-out infinite;
}
 
@keyframes innerFloatGlow {
    0%,  100% { transform: translate(0%,   0%);  opacity: 1;   }
    33%       { transform: translate(18%,  28%); opacity: 0.7; }
    66%       { transform: translate(-8%,  52%); opacity: 0.9; }
}
 
/* Step heading */
.form-step h2 {
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-bright);
    position: relative;
    letter-spacing: -0.5px;
}
 
/* Decorative line after heading */
.form-step h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(176, 76, 255, 0.4), transparent);
}
 
.form-step h2 i {
    font-size: 1.65rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(176, 76, 255, 0.55));
}
 
/* =====================================================
   INPUTS �� NEON FOCUS GLOW
   ===================================================== */
.form-group {
    margin-bottom: 24px;
    position: relative;
}
 
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 9px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
 
.required {
    color: var(--neon-pink);
    margin-left: 3px;
}
 
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(8, 8, 22, 0.65);
    color: var(--text-bright);
    font-size: 0.975rem;
    font-family: inherit;
    transition: var(--t-smooth);
    backdrop-filter: blur(8px);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
 
.form-group input::placeholder {
    color: var(--text-muted);
}
 
.form-group select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
 
.form-group input:hover,
.form-group select:hover {
    border-color: rgba(176, 76, 255, 0.28);
    background: rgba(8, 8, 22, 0.8);
}
 
.form-group input:focus,
.form-group select:focus {
    border-color: var(--neon-purple);
    background: rgba(176, 76, 255, 0.07);
    box-shadow:
        0 0 0 3px  rgba(176, 76, 255, 0.13),
        0 0 22px   rgba(176, 76, 255, 0.18),
        inset 0 0 22px rgba(176, 76, 255, 0.04);
    transform: translateY(-1px);
}
 
.form-group input[readonly] {
    background: rgba(8, 8, 22, 0.4);
    border-style: dashed;
    cursor: not-allowed;
    opacity: 0.48;
}
 
/* Icon inside input */
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 52px; }
.input-with-icon select { padding-right: 52px; }
 
.input-with-icon i {
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--t-smooth);
    pointer-events: none;
}
 
.input-with-icon input:focus + i {
    color: var(--neon-purple);
    filter: drop-shadow(0 0 6px rgba(176, 76, 255, 0.8));
}
 
.help-text {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.81rem;
    letter-spacing: 0.02em;
}
 
/* =====================================================
   RADIO CARDS �� NEON SELECTOR
   ===================================================== */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
 
.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 16px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(8, 8, 22, 0.55);
    cursor: pointer;
    transition: var(--t-smooth);
    text-align: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
 
/* Hover glow orb from top */
.radio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%,
        rgba(176, 76, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--t-smooth);
}
 
.radio-card:hover::before { opacity: 1; }
.radio-card input { display: none; }
 
.radio-card i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--t-smooth);
    position: relative; z-index: 1;
}
 
.radio-card span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: var(--t-smooth);
    position: relative; z-index: 1;
}
 
.radio-card:hover {
    border-color: rgba(176, 76, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45),
                0 0  22px rgba(176, 76, 255, 0.16);
}
 
/* Checked state �� switches to green */
.radio-card:has(input:checked) {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.07);
    box-shadow: var(--glow-green);
    transform: translateY(-5px);
}
 
.radio-card:has(input:checked) i {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.65));
}
 
.radio-card:has(input:checked) span {
    color: var(--neon-green);
}
 
/* =====================================================
   BUTTONS �� NEON GLOW ACTIONS
   ===================================================== */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
 
/* Shimmer sweep �� purposeful micro-interaction */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 58%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent, rgba(255,255,255,0.16), transparent);
    transform: skewX(-22deg);
    transition: 0.55s ease;
}
.btn:hover::after { left: 155%; }
 
/* Primary �� Purple */
.btn-primary {
    background: linear-gradient(135deg,
        var(--neon-purple-dark) 0%,
        var(--neon-purple)      100%);
    color: #fff;
    border: 1px solid rgba(176, 76, 255, 0.5);
    box-shadow: 0 4px 22px rgba(176, 76, 255, 0.38),
                inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple),
                0 14px 44px rgba(176, 76, 255, 0.48);
}
.btn-primary:active { transform: translateY(-1px); }
 
/* Secondary �� Ghost */
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-medium);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(176, 76, 255, 0.35);
    color: var(--text-primary);
    transform: translateY(-2px);
}
 
/* Success �� Green */
.btn-success {
    background: linear-gradient(135deg,
        var(--neon-green-dark) 0%,
        var(--neon-green)      100%);
    color: #060610;
    font-weight: 800;
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 4px 22px rgba(0, 255, 136, 0.35),
                inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-green),
                0 14px 44px rgba(0, 255, 136, 0.42);
}
 
.btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
 
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}
 
/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid;
    backdrop-filter: blur(8px);
}
 
.alert-info {
    background: rgba(0, 229, 255, 0.07);
    border-color: rgba(0, 229, 255, 0.25);
    color: var(--neon-cyan);
}
 
.alert i {
    font-size: 1.4rem;
    flex-shrink: 0;
}
 
/* =====================================================
   AUTORIZACI�0�7N BOX
   ===================================================== */
.autorizacion-box {
    background: rgba(8, 8, 22, 0.55);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: 0.92rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}
 
/* =====================================================
   FIRMA DEL TUTOR �� recuadro con fondo claro para que el
   trazo (tinta oscura) se note bien. No exist��a en el CSS
   original, por eso no se ve��a nada ah��.
   ===================================================== */
.signature-container {
    position: relative;
    padding: 3px;
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, var(--neon-purple), var(--neon-cyan), var(--neon-green));
    background-size: 200% 200%;
    animation: neonFlow 5s linear infinite;
    box-shadow: var(--glow-purple);
}
.signature-container canvas {
    display: block;
    width: 100%;
    height: 170px;
    background: #ffffff;
    border-radius: calc(var(--radius-md) - 3px);
    cursor: crosshair;
    touch-action: none;
}

/* =====================================================
   FILE UPLOAD �� NEON DROP ZONE
   ===================================================== */
.file-upload { position: relative; }
 
.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}
 
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px;
    border: 2px dashed rgba(176, 76, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(176, 76, 255, 0.03);
    cursor: pointer;
    transition: var(--t-smooth);
    gap: 14px;
    position: relative;
}
 
.file-label:hover {
    border-color: var(--neon-purple);
    background: rgba(176, 76, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}
 
.file-label i {
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(176, 76, 255, 0.55));
}
 
.file-label span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}
 
.preview-img {
    max-width: 100%;
    max-height: 250px;
    margin-top: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-purple);
    box-shadow: var(--glow-purple);
}
 
/* =====================================================
   CHECKBOX CONSENT �� GREEN ACCENT
   ===================================================== */
.checkbox-consent {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: rgba(0, 255, 136, 0.05);
    border: 1.5px solid rgba(0, 255, 136, 0.18);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--t-smooth);
}
 
.checkbox-consent:hover {
    background: rgba(0, 255, 136, 0.09);
    border-color: rgba(0, 255, 136, 0.38);
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.1);
}
 
.checkbox-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neon-green);
    flex-shrink: 0;
}
 
.checkbox-consent span {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.92rem;
}
 
/* =====================================================
   MODAL �� NEON SUCCESS
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 16, 0.88);
    backdrop-filter: blur(18px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
 
.modal.show {
    display: flex;
    animation: modalFade 0.3s ease;
}
 
@keyframes modalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
 
.modal-content {
    background: rgba(12, 12, 30, 0.96);
    backdrop-filter: blur(28px);
    border-radius: var(--radius-xl);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-purple);
    box-shadow: var(--shadow-float), var(--glow-purple);
    animation: modalRise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
@keyframes modalRise {
    from { transform: translateY(60px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
 
.modal-header {
    padding: 40px 30px;
    text-align: center;
    background: rgba(176, 76, 255, 0.08);
    border-bottom: 1px solid var(--border-subtle);
}
 
.modal-header.success {
    background: rgba(0, 255, 136, 0.08);
    border-bottom-color: rgba(0, 255, 136, 0.2);
}
 
.modal-header i {
    font-size: 4.2rem;
    margin-bottom: 16px;
    display: block;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.75));
    animation: successBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
 
@keyframes successBounce {
    from { transform: scale(0) rotate(-18deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
 
.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-bright);
}
 
.modal-body {
    padding: 38px 30px;
    text-align: center;
}
 
.codigo-registro {
    font-family: 'Courier New', monospace;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--neon-purple-light);
    padding: 20px;
    border-radius: var(--radius-md);
    letter-spacing: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border-purple);
    background: rgba(176, 76, 255, 0.08);
    box-shadow: inset 0 0 32px rgba(176, 76, 255, 0.05),
                var(--glow-purple);
    text-shadow: 0 0 20px rgba(176, 76, 255, 0.8);
}
 
.qr-container {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 20px;
    transition: var(--t-smooth);
    border: 2px solid rgba(176, 76, 255, 0.3);
    box-shadow: var(--glow-purple);
}
 
.qr-container:hover {
    transform: scale(1.04);
    box-shadow: var(--glow-purple), 0 18px 44px rgba(0,0,0,0.55);
}
 
.qr-container img {
    max-width: 260px;
    width: 100%;
    display: block;
}
 
.qr-instrucciones {
    background: rgba(245, 158, 11, 0.08);
    padding: 14px;
    border-radius: var(--radius-md);
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 158, 11, 0.24);
}
 
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
 
/* =====================================================
   LOADER �� DUAL RING NEON SPINNER
   ===================================================== */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 16, 0.97);
    backdrop-filter: blur(18px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
 
/* Dual-ring: outer purple, inner green */
.spinner {
    width: 58px;
    height: 58px;
    position: relative;
}
 
.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
 
.spinner::before {
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    animation: spinOuter 1s linear infinite;
    box-shadow: 0 0 22px rgba(176, 76, 255, 0.45);
}
 
.spinner::after {
    inset: 9px;
    border: 2px solid transparent;
    border-bottom-color: var(--neon-green);
    animation: spinInner 0.75s linear infinite reverse;
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.45);
}
 
@keyframes spinOuter { to { transform: rotate(360deg);  } }
@keyframes spinInner { to { transform: rotate(-360deg); } }
 
/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.87rem;
    letter-spacing: 0.05em;
}
 
/* =====================================================
   UTILITIES
   ===================================================== */
.form-row.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}
 
.error-message,
.success-message {
    display: none;
    font-size: 0.82rem;
    margin-top: 6px;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
 
.error-message.show {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 45, 120, 0.08);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 45, 120, 0.3);
}
 
.success-message.show {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.08);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}
 
/* =====================================================
   RESPONSIVE �� MOBILE FIRST
   ===================================================== */
 
/* ---- TABLET (�� 768px) ---- */
@media (max-width: 768px) {
 
    /* Container */
    .container { padding: 16px; }
 
    /* Header */
    .header           { padding: 24px 16px 20px; }
    .header h1        { font-size: 1.9rem; letter-spacing: -1px; }
    .header .logo i   { font-size: 2.6rem; }
    .header .logo     { gap: 14px; margin-bottom: 10px; }
    .subtitle         { font-size: 0.9rem; }
 
    /* Progress bar �� compact */
    .progress-bar        { padding: 16px 12px; margin: 24px 0; gap: 0; }
    .step-number         { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 8px; }
    .step-label          { font-size: 0.72rem; letter-spacing: 0; }
    .progress-step.active .step-number { transform: scale(1.12); }
 
    /* Form card */
    .form-registro { padding: 28px 18px; border-radius: var(--radius-lg); }
 
    /* Step heading */
    .form-step h2          { font-size: 1.5rem; margin-bottom: 24px; gap: 10px; }
    .form-step h2::after   { display: none; }
    .form-step h2 i        { font-size: 1.35rem; }
 
    /* Inputs */
    .form-group              { margin-bottom: 18px; }
    .form-group label        { font-size: 0.78rem; }
    .form-group input[type="text"],
    .form-group input[type="date"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select       { padding: 13px 15px; font-size: 1rem; }
    .input-with-icon input   { padding-right: 44px; }
    .input-with-icon select  { padding-right: 44px; }
    .input-with-icon i       { right: 14px; font-size: 1rem; }
 
    /* Two-col grid */
    .form-row.two-cols { grid-template-columns: 1fr; gap: 0; }
 
    /* Radio cards �� 2 columns on tablet */
    .radio-group         { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .radio-card          { padding: 18px 12px; gap: 8px; }
    .radio-card i        { font-size: 1.8rem; }
    .radio-card span     { font-size: 0.82rem; }
 
    /* File upload */
    .file-label          { padding: 30px 16px; gap: 10px; }
    .file-label i        { font-size: 2.4rem; }
    .file-label span     { font-size: 0.88rem; text-align: center; }
 
    /* Autorizacion */
    .autorizacion-box    { padding: 18px; font-size: 0.88rem; }
 
    /* Checkbox */
    .checkbox-consent    { padding: 16px; gap: 12px; }
    .checkbox-consent span { font-size: 0.88rem; }
 
    /* Alert */
    .alert               { padding: 14px 16px; font-size: 0.9rem; gap: 10px; }
 
    /* Buttons */
    .form-actions        { flex-direction: column; gap: 10px; margin-top: 28px; }
    .btn                 { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.88rem; }
 
    /* Modal */
    .modal               { padding: 12px; align-items: flex-end; }
    .modal-content       { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md); max-width: 100%; }
    .modal-header        { padding: 28px 20px 24px; }
    .modal-header i      { font-size: 3rem; margin-bottom: 10px; }
    .modal-header h2     { font-size: 1.4rem; }
    .modal-body          { padding: 24px 18px; }
    .codigo-registro     { font-size: 1.2rem; letter-spacing: 2px; padding: 16px; }
    .modal-actions       { flex-direction: column; gap: 10px; }
    .modal-actions .btn  { width: 100%; justify-content: center; }
    .qr-container img    { max-width: 200px; }
}
 
/* ---- MOBILE (�� 480px) ---- */
@media (max-width: 480px) {
 
    /* Header */
    .header         { padding: 20px 14px 16px; }
    .header h1      { font-size: 1.55rem; letter-spacing: -0.5px; }
    .header .logo i { font-size: 2.2rem; }
    .header .logo   { gap: 10px; margin-bottom: 8px; }
    .subtitle       { font-size: 0.82rem; margin-top: 6px; }
 
    /* Progress bar �� ultra compact */
    /* Hide text labels, keep numbers only */
    .progress-bar        { padding: 14px 10px; margin: 18px 0; border-radius: var(--radius-md); }
    .step-number         { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 6px; }
    .step-label          { font-size: 0.65rem; }
    .progress-step.active .step-number { transform: scale(1.1); }
    .progress-bar::before { left: 10%; right: 10%; }
 
    /* Form card */
    .form-registro       { padding: 20px 14px; border-radius: var(--radius-md); }
 
    /* Step heading */
    .form-step h2        { font-size: 1.3rem; margin-bottom: 20px; }
 
    /* Radio cards �� 1 column on phone */
    .radio-group         { grid-template-columns: 1fr; gap: 9px; }
    .radio-card          { flex-direction: row; justify-content: flex-start; padding: 14px 16px; gap: 14px; }
    .radio-card i        { font-size: 1.6rem; flex-shrink: 0; }
    .radio-card span     { font-size: 0.9rem; text-align: left; }
 
    /* File upload */
    .file-label          { padding: 24px 14px; }
    .file-label i        { font-size: 2rem; }
 
    /* Buttons */
    .btn                 { padding: 13px 18px; font-size: 0.86rem; }
 
    /* Form actions gap */
    .form-actions        { margin-top: 22px; padding-top: 20px; gap: 9px; }
 
    /* Modal */
    .modal              { padding: 0; align-items: flex-end; }
    .modal-content      {
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        box-shadow: var(--shadow-float), var(--glow-purple);
    }
    .modal-header       { padding: 24px 18px 20px; }
    .modal-header i     { font-size: 2.6rem; }
    .modal-header h2    { font-size: 1.25rem; }
    .modal-body         { padding: 20px 16px 28px; }
    .codigo-registro    { font-size: 1.05rem; letter-spacing: 1.5px; padding: 14px; }
 
    /* Help text */
    .help-text          { font-size: 0.78rem; }
}
 
/* ---- SMALL PHONES (�� 360px) ---- */
@media (max-width: 360px) {
    .header h1      { font-size: 1.35rem; }
    .step-label     { display: none; }
    .step-number    { width: 34px; height: 34px; font-size: 0.85rem; }
    .progress-bar   { padding: 12px 8px; gap: 0; }
    .form-registro  { padding: 18px 12px; }
    .form-step h2   { font-size: 1.2rem; }
    .btn            { font-size: 0.82rem; padding: 12px 14px; letter-spacing: 0.04em; }
    .codigo-registro { font-size: 0.95rem; letter-spacing: 1px; }
    .hero-meta-row  { gap: 6px; }
    .hero-chip      { font-size: .62rem; padding: 5px 9px; gap: 5px; }
    .hero-chip i    { font-size: .7rem; }
}
 
/* ---- TOUCH INTERACTIONS ---- */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover-only transforms on touch �� avoids sticky states */
    .radio-card:hover,
    .btn-primary:hover,
    .btn-success:hover,
    .btn-secondary:hover,
    .file-label:hover,
    .checkbox-consent:hover { transform: none; }
 
    /* Bigger tap targets */
    .btn                     { min-height: 48px; }
    .radio-card              { min-height: 52px; }
    .checkbox-consent input  { width: 22px; height: 22px; }
 
    /* Remove tap highlight */
    * { -webkit-tap-highlight-color: transparent; }
    button, label, .radio-card { touch-action: manipulation; }
}
 
/* =====================================================
   REDUCED MOTION �� ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
}

/* =====================================================
   A�0�5ADIDO POR CLAUDE �� logo real + estados que app.js
   necesita y que este archivo a��n no ten��a
   ===================================================== */

/* Logo real (imagen) en vez del ��cono + texto */
.header .logo-mark {
    width: 42%;
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(176, 76, 255, 0.45));
}
.header h1 { display: none; }   /* el wordmark ya viene dentro del logo */
.header .logo i { display: none; }

@media (max-width: 768px) {
    .header .logo-mark { width: 55%; max-width: 170px; }
}
@media (max-width: 480px) {
    .header .logo-mark { width: 60%; max-width: 140px; }
}

/* Estados de validaci��n de CURP (usados por app.js) */
.form-group input.is-valid {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, .12);
}
.form-group input.is-invalid {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 3px rgba(255, 45, 120, .12);
}
.form-group input#curp.checking {
    border-color: #fbbf24;
}

/* Zona de carga con archivo ya confirmado */
.file-upload.has-file .file-label {
    border-color: var(--neon-green);
    border-style: solid;
}

/* Resumen de confirmaci��n (Paso 3) �� no exist��a en el archivo original */
.resumen-datos {
    background: rgba(8, 8, 22, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.resumen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(176, 76, 255, 0.08);
    border-bottom: 1px dashed var(--border-subtle);
    color: var(--text-bright);
}
.resumen-header .disciplina-tag {
    font-family: 'Courier New', monospace;
    font-size: .75rem;
    letter-spacing: .08em;
    color: var(--neon-cyan);
}
.resumen-fila {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: .92rem;
}
.resumen-fila:last-child { border-bottom: none; }
.resumen-fila dt { color: var(--text-muted); font-weight: 600; }
.resumen-fila dd { margin: 0; color: var(--text-primary); font-weight: 600; text-align: right; }

/* =====================================================
   A�0�5ADIDO POR CLAUDE 2 �� pulido visual: hero meta, chips
   de disciplina, progreso animado, ticket de confirmaci��n
   y confeti de ��xito
   ===================================================== */

/* --- Halo detr��s del logo --- */
.header .logo {
    position: relative;
}
.header .logo::before {
    content: '';
    position: absolute;
    inset: -20px -40px;
    background: radial-gradient(ellipse at center, rgba(176, 76, 255, 0.28) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    animation: haloPulse 4s ease-in-out infinite;
}
@keyframes haloPulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.08); }
}

/* --- Chips de informaci��n del evento --- */
.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.hero-meta-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-secondary);
    white-space: nowrap;
}
.hero-chip i { color: var(--neon-cyan); font-size: .85rem; }

/* --- Progreso animado con relleno real --- */
.progress-bar::before {
    background: var(--border-medium);
    opacity: 1;
    transition: background 0.4s ease;
}
.progress-bar .progress-fill {
    content: '';
    position: absolute;
    top: 50%; left: 14%;
    width: 0%;
    max-width: 72%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan), var(--neon-green));
    background-size: 200% 100%;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(176, 76, 255, .6);
    transition: width .6s cubic-bezier(.4,0,.2,1);
    animation: neonFlow 4s linear infinite;
}

/* Checkmark morph para pasos completados */
.progress-step.completed .step-number span { display: none; }
.progress-step.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .95rem;
    animation: checkPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes checkPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* --- Ticket de confirmaci��n (Paso 3) --- */
.resumen-datos {
    position: relative;
    box-shadow: var(--shadow-deep);
}
.resumen-header {
    position: relative;
}
.resumen-header::after {
    content: '';
    position: absolute;
    bottom: -9px; left: -9px;
    width: 18px; height: 18px;
    background: var(--bg-void);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.resumen-datos::before,
.resumen-datos::after {
    content: '';
    position: absolute;
    top: 60px;
    width: 18px; height: 18px;
    background: var(--bg-void);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    z-index: 2;
}
.resumen-datos::before { left: -9px; }
.resumen-datos::after  { right: -9px; }

/* --- Modal de ��xito: revelado escalonado --- */
.modal.show .modal-header i {
    animation: successBounce .65s cubic-bezier(.34,1.56,.64,1) both;
}
.modal.show .modal-header h2 {
    animation: modalItemIn .5s ease .1s both;
}
.modal.show .modal-body > * {
    opacity: 0;
    animation: modalItemIn .55s cubic-bezier(.34,1.56,.64,1) both;
}
.modal.show .modal-body > *:nth-child(1) { animation-delay: .12s; }
.modal.show .modal-body > *:nth-child(2) { animation-delay: .22s; }
.modal.show .modal-body > *:nth-child(3) { animation-delay: .68s; }
.modal.show .modal-body > *:nth-child(4) { animation-delay: .8s; }

/* Dentro del boleto: la info y el QR entran en su propio momento */
.modal.show .ticket-card .ticket-info {
    opacity: 0;
    animation: modalItemIn .5s ease .32s both;
}
.modal.show .ticket-card .ticket-divider {
    opacity: 0;
    animation: modalItemIn .4s ease .48s both;
}
.modal.show .ticket-card .ticket-qr {
    opacity: 0;
    animation: qrStamp .6s cubic-bezier(.34,1.56,.64,1) .56s both;
}
.modal.show .ticket-card {
    animation: neonFlow 5s linear infinite, ticketCardIn .45s ease .2s both;
}

@keyframes modalItemIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes qrStamp {
    from { opacity: 0; transform: scale(.5) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes ticketCardIn {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Boleto digital del atleta (modal de ��xito) --- */
/* Nota: el borde usa la t��cnica de doble-fondo (padding + background-clip)
   en vez de mask-composite, porque html2canvas no captura bien los masks
   de CSS y dejaba la imagen exportada en blanco. */
.ticket-card {
    position: relative;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg,
        var(--neon-purple), var(--neon-cyan), var(--neon-green), var(--neon-purple));
    background-size: 300% 300%;
    animation: neonFlow 5s linear infinite;
    box-shadow: var(--shadow-deep);
}
.ticket-card-inner {
    border-radius: calc(var(--radius-lg) - 2px);
    background: linear-gradient(165deg, #1a1030, #120b22 55%, #0c0c1e 100%);
    overflow: hidden;
}

.ticket-info {
    padding: 22px 22px 18px;
    text-align: center;
}
.ticket-logo {
    width: 92px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}
.ficha-nombre {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -.02em;
}
.ficha-detalle {
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: .8rem;
    letter-spacing: .05em;
    color: var(--text-secondary);
}
.ficha-detalle .ficha-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

/* L��nea perforada con "muescas" reales a los lados */
.ticket-divider {
    position: relative;
    height: 0;
    margin: 0 18px;
    border-top: 2px dashed var(--border-medium);
}
.ticket-divider::before,
.ticket-divider::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0c0c1e;
    z-index: 3;
}
.ticket-divider::before { left: -28px; }
.ticket-divider::after  { right: -28px; }

.ticket-qr {
    display: flex;
    justify-content: center;
    padding: 20px 22px 24px;
}
.ticket-qr .qr-container {
    margin-bottom: 0;
    padding: 14px;
}
.ticket-qr .qr-container img { max-width: 190px; }

/* --- Lightbox: vista previa del boleto capturado --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 6, 16, 0.94);
    backdrop-filter: blur(10px);
}
.lightbox.show { display: flex; animation: modalFade .25s ease; }
.lightbox-content {
    position: relative;
    max-width: 360px;
    width: 100%;
    text-align: center;
}
.lightbox-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float), var(--glow-purple);
}
.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border-medium);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-hint {
    margin: 16px 0 14px;
    font-size: .82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lightbox-content .btn { width: 100%; justify-content: center; }

/* --- Confeti de ��xito --- */
.confetti-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.confetti-dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 7px; height: 7px;
    border-radius: 2px;
    opacity: 0;
    animation: confettiFly .9s ease-out forwards;
}
@keyframes confettiFly {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .header .logo::before,
    .progress-bar .progress-fill,
    .confetti-dot { animation: none !important; }
}

@media (max-width: 480px) {
    .hero-meta { gap: 7px; }
    .hero-chip { font-size: .7rem; padding: 6px 12px; }
}