/* Variables globales */
:root {
    --color-primary: #E95D0F;
    --color-primary-dark: #d14c00;
    --color-secondary: #122253;
    --color-secondary-dark: #0a1438;
    --color-background: #0e0e14;
    --color-surface: #1a1a24;
    --color-surface-light: #282834;
    --color-text: #e0e0e0;
    --color-text-dim: #a0a0a0;
    --color-success: #0cce6b;
    --color-error: #ff2d55;
    --color-accent: #00a8ff;
    --color-neon: #0cce6b;
    --font-family-heading: 'Chakra Petch', sans-serif;
    --font-family-body: 'Source Code Pro', monospace;
    --transition-speed: 0.3s;
}

/* ===== HEADER/BANNER PRINCIPAL ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.university-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all var(--transition-speed) ease;
}

.university-logo:hover {
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.05);
}

.header-program {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.program-name {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.program-text {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    line-height: 1;
    margin-bottom: 2px;
}

.program-subtext {
    font-family: var(--font-family-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(233, 93, 15, 0.3);
    line-height: 1;
}

.header-circuit-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent) 30%, 
        var(--color-primary) 70%, 
        transparent 100%);
    margin-top: 8px;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

.header-circuit-line::before {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-primary);
    animation: pulse-dot 2s infinite;
}

.header-circuit-line::after {
    content: '';
    position: absolute;
    left: 20%;
    top: -1px;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--color-accent);
    animation: pulse-dot 2s infinite 0.5s;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

/* Ajustar el contenido principal para el header fijo */
body {
    padding-top: 80px;
}

.container {
    margin-top: 0px;
    padding-top: 0px;
    min-height: calc(100vh - 80px);
}

/* Asegurar que las secciones tengan espacio suficiente */
.section {
    margin-top: 0;
    padding-top: 20px;
}

/* Responsive para el header */
@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .container {
        margin-top: 0px;
        padding-top: 0px;
        min-height: calc(100vh - 70px);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .university-logo {
        height: 40px;
    }
    
    .program-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .program-subtext {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .container {
        margin-top: 0px;
        padding-top: 0px;
        min-height: calc(100vh - 60px);
    }
    
    .university-logo {
        height: 35px;
    }
    
    .program-text {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .program-subtext {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .header-program {
        align-items: center;
    }
    
    .program-name {
        align-items: center;
        text-align: center;
    }
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Bloquear selección de texto en todo el sitio */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-tap-highlight-color: transparent; /* Eliminar efecto de toque en móviles */
}

/* PERMITIR DRAG EN ELEMENTOS ESPECÍFICOS */
[draggable="true"] {
    -webkit-user-drag: element !important;
    -khtml-user-drag: element !important;
    -moz-user-drag: element !important;
    -o-user-drag: element !important;
    user-drag: element !important;
    cursor: grab !important;
    pointer-events: auto !important;
}

[draggable="true"]:active {
    cursor: grabbing !important;
}

/* ESPECÍFICO PARA ELEMENTOS DEL HANGMAN */
.letter-button[draggable="true"] {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: element !important;
    -khtml-user-drag: element !important;
    -moz-user-drag: element !important;
    -o-user-drag: element !important;
    user-drag: element !important;
    cursor: grab !important;
    pointer-events: auto !important;
    touch-action: none !important;
}

.letter-button[draggable="true"]:hover {
    cursor: grab !important;
}

.letter-button[draggable="true"]:active,
.letter-button.dragging {
    cursor: grabbing !important;
}

.letter-space {
    pointer-events: auto !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Permitir scrolling */
html, body {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(233, 93, 15, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 75% 65%, rgba(0, 64, 255, 0.1) 0%, transparent 25%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.section {
    padding: 25px;
    border-radius: 8px;
    background-color: var(--color-surface);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(233, 93, 15, 0.1), 0 0 15px rgba(18, 34, 83, 0.1);
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Efectos de texto */
.glitch-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.glitch {
    position: relative;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(132px, 9999px, 24px, 0);
    }
    20% {
        clip: rect(113px, 9999px, 39px, 0);
    }
    40% {
        clip: rect(5px, 9999px, 140px, 0);
    }
    60% {
        clip: rect(29px, 9999px, 19px, 0);
    }
    80% {
        clip: rect(22px, 9999px, 144px, 0);
    }
    100% {
        clip: rect(3px, 9999px, 115px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(121px, 9999px, 110px, 0);
    }
    20% {
        clip: rect(110px, 9999px, 85px, 0);
    }
    40% {
        clip: rect(48px, 9999px, 145px, 0);
    }
    60% {
        clip: rect(39px, 9999px, 90px, 0);
    }
    80% {
        clip: rect(117px, 9999px, 16px, 0);
    }
    100% {
        clip: rect(79px, 9999px, 108px, 0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(-0.5deg);
    }
    10% {
        transform: skew(0.5deg);
    }
    20% {
        transform: skew(0.3deg);
    }
    30% {
        transform: skew(0.1deg);
    }
    40% {
        transform: skew(-0.2deg);
    }
    50% {
        transform: skew(0.4deg);
    }
    60% {
        transform: skew(0.1deg);
    }
    70% {
        transform: skew(0.3deg);
    }
    80% {
        transform: skew(-0.4deg);
    }
    90% {
        transform: skew(0.2deg);
    }
    100% {
        transform: skew(-0.1deg);
    }
}

.cyber-header {
    background-color: var(--color-surface-light);
    border-bottom: 2px solid var(--color-primary);
    padding: 15px;
    margin: -25px -25px 20px -25px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.cyber-header h2 {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.cyber-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.cyber-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 15px 0;
    position: relative;
}

.cyber-line::before, 
.cyber-line::after {
    content: '';
    position: absolute;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background-color: var(--color-primary);
    top: -1.5px;
}

.cyber-line::before {
    left: 30%;
}

.cyber-line::after {
    right: 30%;
}

.cyber-text {
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.neon-text {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-neon);
    text-shadow: 0 0 5px var(--color-neon), 
                 0 0 10px var(--color-neon), 
                 0 0 20px var(--color-neon);
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 0 0 5px var(--color-neon), 
                     0 0 10px var(--color-neon), 
                     0 0 20px var(--color-neon);
    }
    50% {
        text-shadow: 0 0 10px var(--color-neon), 
                     0 0 20px var(--color-neon), 
                     0 0 30px var(--color-neon);
    }
}

/* Botones */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-speed) ease;
    font-size: 16px;
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 93, 15, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 93, 15, 0.4);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(18, 34, 83, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 34, 83, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 15px;
}

.reset-container {
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.reset-container:hover {
    opacity: 1;
}

/* Formulario de registro */
#registro {
    text-align: center;
    padding: 40px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-top: 10px;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: var(--color-surface-light);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.form-simple {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-text);
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dim);
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    font-family: var(--font-family-body);
    /* Permitir selección solo en inputs */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 93, 15, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
}

.error-message {
    color: var(--color-error);
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.error-message:not(:empty)::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

/* Barra de navegación de estaciones */
#estaciones-nav {
    position: sticky;
    top: 0;
    background-color: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: white;
    opacity: 0.6;
}

.station-indicators {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.station-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    /* Mejorar interactividad */
    pointer-events: auto !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Eliminar hover también */
/* .station-indicator:hover::after {
    bottom: 2px;
    opacity: 1;
} */

.station-indicator i {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    transition: all var(--transition-speed) ease;
}

.station-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.station-indicator:hover::before {
    opacity: 1;
}

.station-indicator:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
}

.station-indicator.active {
    background-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(233, 93, 15, 0.5);
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { box-shadow: 0 0 15px rgba(233, 93, 15, 0.5); }
    50% { box-shadow: 0 0 25px rgba(233, 93, 15, 0.7); }
    100% { box-shadow: 0 0 15px rgba(233, 93, 15, 0.5); }
}

.station-indicator.active i {
    color: white;
}

.station-indicator.completed {
    background-color: var(--color-success);
    transform: scale(1);
    box-shadow: 0 0 10px rgba(12, 206, 107, 0.4);
}

.station-indicator.completed i {
    color: white;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.hacker-name {
    color: var(--color-text);
    font-weight: bold;
    position: relative;
    padding-left: 25px;
}

.hacker-name::before {
    content: '\f21b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.score-display {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 18px;
    font-family: var(--font-family-heading);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.btn-logout:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    background: linear-gradient(45deg, #ff3742, #ff2f3a);
}

.btn-logout:active {
    transform: scale(0.95);
}

/* Estilos comunes para estaciones */
.station-content {
    padding: 10px;
}

.instruction {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--color-primary);
}

.feedback-container {
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-success {
    background-color: rgba(12, 206, 107, 0.1);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.feedback-error {
    background-color: rgba(255, 45, 85, 0.1);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

/* Mensaje de éxito y transición */
.success-message {
    background: linear-gradient(135deg, rgba(12, 206, 107, 0.1), rgba(12, 206, 107, 0.2));
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(12, 206, 107, 0.3);
    box-shadow: 0 0 15px rgba(12, 206, 107, 0.2);
    animation: pulseSuccess 2s infinite;
}

.success-message i {
    color: var(--color-success);
    font-size: 24px;
    margin-right: 10px;
}

.next-level {
    margin-top: 15px;
    font-size: 18px;
    color: var(--color-accent);
    animation: blink 1.5s infinite;
}

@keyframes pulseSuccess {
    0% { box-shadow: 0 0 15px rgba(12, 206, 107, 0.2); }
    50% { box-shadow: 0 0 25px rgba(12, 206, 107, 0.4); }
    100% { box-shadow: 0 0 15px rgba(12, 206, 107, 0.2); }
}

@keyframes blink {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hint-container {
    margin-top: 20px;
}

.hint-text {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--color-secondary);
    font-style: italic;
    border-radius: 5px;
}

.answer-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.answer-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    font-family: var(--font-family-body);
    /* Permitir selección solo en inputs */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.answer-container input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 93, 15, 0.2);
}

.timer {
    font-weight: bold;
    color: var(--color-text);
    font-size: 18px;
    font-family: var(--font-family-heading);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estación 1: Binario */
.matrix-container {
    height: 150px;
    width: 100%;
    overflow: hidden;
    background-color: black;
    margin-bottom: 20px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.matrix-digit {
    color: #0cce6b;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    position: absolute;
    animation: fall linear infinite;
    text-shadow: 0 0 5px #0cce6b;
    opacity: 0.9;
}

@keyframes fall {
    0% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

.binary-code {
    font-family: var(--font-family-body);
    background-color: rgba(0, 0, 0, 0.5);
    color: #0cce6b;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(12, 206, 107, 0.3);
    /* Permitir interacción para scroll */
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Los puntos decorativos del código binario - solo para escritorio */
@media (min-width: 769px) {
    .binary-code::before,
    .binary-code::after:not(.scroll-indicator) {
        content: '';
        position: absolute;
        width: 5px;
        height: 5px;
        background-color: #0cce6b;
        border-radius: 50%;
    }
}

.binary-code::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #0cce6b;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

/* Modificado para que no interfiera con el indicador de scroll en móviles */
@media (min-width: 769px) {
    .binary-code::after {
        content: '';
        position: absolute;
        width: 5px;
        height: 5px;
        background-color: #0cce6b;
        border-radius: 50%;
        bottom: 10px;
        right: 10px;
    }
}

.binary-challenge {
    animation: fadeIn 1s ease;
}

/* Estilos para enlace ASCII */
.ascii-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed var(--color-accent);
    transition: all var(--transition-speed) ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.ascii-link:hover {
    background-color: rgba(0, 168, 255, 0.2);
    color: #ffffff;
    border-bottom: 1px solid var(--color-accent);
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
}

.ascii-link:visited {
    color: var(--color-accent);
}

/* Indicador de scroll para código binario en móviles */
@media (max-width: 768px) {
    .binary-code {
        position: relative;
    }
    
    .binary-code::after {
        content: '→';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        animation: fadeInOut 1.5s infinite;
        font-size: 24px;
        opacity: 0.7;
        color: #0cce6b;
    }
    
    @keyframes fadeInOut {
        0% { opacity: 0.3; }
        50% { opacity: 1; }
        100% { opacity: 0.3; }
    }
}

/* Estación 2: Ordenamiento */
/* ===== ESTACIÓN 2: JUEGO DE AHORCADO ===== */
.hangman-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 25px;
    align-items: center;
    /* Asegurar que los eventos de drag y drop funcionen */
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.word-display {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    min-height: 80px;
    align-items: center;
    /* Asegurar que los eventos de drag y drop funcionen */
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.letter-space {
    width: 40px;
    height: 50px;
    border-bottom: 3px solid #0cce6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #0cce6b;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    margin: 5px;
    background-color: rgba(12, 206, 107, 0.1);
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 50px;
    cursor: pointer;
    /* Asegurar que los eventos de drop funcionen */
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.letter-space.filled {
    background-color: rgba(12, 206, 107, 0.2);
    box-shadow: 0 0 10px rgba(12, 206, 107, 0.3);
    cursor: grab;
}

.letter-space.filled:active {
    cursor: grabbing;
}

.letter-space.space {
    border-bottom: none;
    width: 20px;
    background-color: transparent;
    cursor: default;
}

.letter-space.drag-over {
    background-color: rgba(12, 206, 107, 0.4);
    box-shadow: 0 0 20px rgba(12, 206, 107, 0.6);
    transform: scale(1.05);
    border: 2px dashed #0cce6b;
}

.letter-space.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.1);
    z-index: 1000;
}

.letters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 600px;
    padding: 20px;
    background-color: rgba(0, 168, 255, 0.1);
    border-radius: 10px;
    border: 2px dashed rgba(0, 168, 255, 0.3);
    min-height: 120px;
    transition: all 0.3s ease;
    /* Asegurar que los eventos de drag y drop funcionen */
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.letters-container.drag-over {
    background-color: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
}

.letter-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0cce6b, #089a50);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: element;
    -khtml-user-drag: element;
    -moz-user-drag: element;
    -o-user-drag: element;
    user-drag: element;
}

.letter-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(12, 206, 107, 0.3);
    cursor: grab;
}

.letter-button:active {
    cursor: grabbing;
}

.letter-button.dragging {
    opacity: 0.7;
    transform: rotate(5deg) scale(1.15);
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(12, 206, 107, 0.5);
    cursor: grabbing;
}

.letter-button.used {
    background: linear-gradient(135deg, #666, #444);
    cursor: not-allowed;
    opacity: 0.3;
    pointer-events: none;
    display: none !important;
}

.letter-button.used:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estados de drag and drop para espacios de letras */
.letter-space.drag-over {
    background: linear-gradient(135deg, rgba(12, 206, 107, 0.2), rgba(0, 255, 127, 0.2));
    border-color: #0cce6b;
    box-shadow: 0 0 15px rgba(12, 206, 107, 0.5);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.letter-space.filled {
    background: linear-gradient(135deg, #0cce6b, #00ff7f);
    color: #000;
    font-weight: bold;
    border-color: #0cce6b;
    box-shadow: 0 4px 8px rgba(12, 206, 107, 0.3);
}

.letter-space.filled.correct {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: correctPulse 0.6s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mejorar la interacción visual */
.letter-space:not(.space):not(.filled):hover {
    border-color: rgba(12, 206, 107, 0.6);
    box-shadow: 0 0 10px rgba(12, 206, 107, 0.3);
}

/* FORZAR DRAG AND DROP PARA HANGMAN - IMPORTANTE */
.hangman-container * {
    pointer-events: auto !important;
}

.hangman-container .letter-button {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: element !important;
    cursor: grab !important;
    touch-action: none !important;
}

.hangman-container .letter-button:hover {
    cursor: grab !important;
}

.hangman-container .letter-button:active,
.hangman-container .letter-button.dragging {
    cursor: grabbing !important;
}

.hangman-container .letter-space {
    pointer-events: auto !important;
}

.game-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sorting-item.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(1.05);
}

.drop-placeholder {
    width: 100%;
    text-align: center;
    color: var(--color-text-dim);
    padding: 30px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

/* Estación 3: Contraseña */
.password-challenge {
    max-width: 650px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

.riddle {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.riddle::before {
    content: '\f084';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
}

.riddle p {
    position: relative;
    z-index: 1;
}

/* Estilos para las operaciones matemáticas */
.math-operations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.operation-card {
    background: linear-gradient(135deg, rgba(233, 93, 15, 0.1), rgba(18, 34, 83, 0.1));
    border: 1px solid rgba(233, 93, 15, 0.3);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.operation-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(233, 93, 15, 0.2);
}

.operation-number {
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    font-family: var(--font-family-heading);
    flex-shrink: 0;
}

.operation-content {
    flex: 1;
}

.math-expression {
    font-family: var(--font-family-body);
    font-size: 22px;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.operation-hint {
    font-size: 14px;
    color: var(--color-text-dim);
    font-style: italic;
}

/* Referencia del alfabeto */
.alphabet-reference {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alphabet-reference p {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: bold;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
}

.alphabet-grid span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-family: var(--font-family-body);
    font-size: 12px;
    transition: background var(--transition-speed) ease;
}

.alphabet-grid span:hover {
    background: rgba(233, 93, 15, 0.2);
}

/* Responsive para operaciones matemáticas */
@media (max-width: 768px) {
    .math-operations {
        grid-template-columns: 1fr;
    }
    
    .operation-card {
        padding: 15px;
    }
    
    .math-expression {
        font-size: 18px;
    }
    
    .alphabet-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .alphabet-grid span {
        padding: 6px;
        font-size: 11px;
    }
}

/* Estación 4: HTML Oculto */
.source-code-container {
    margin-bottom: 25px;
    animation: fadeIn 1s ease;
}

.code-editor {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.code-header {
    background-color: var(--color-surface-light);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-content {
    padding: 20px;
    background-color: #1e1e2d;
    color: #e0e0e0;
    font-family: var(--font-family-body);
    height: 350px;
    overflow: auto;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    line-height: 1.6;
    font-size: 14px;
    /* Reforzar protección contra copia en código fuente */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    /* Asegurar scroll horizontal cuando el contenido es ancho */
    word-wrap: normal;
    white-space: pre-wrap;
    min-width: 100%;
}

.token-tag {
    color: #569cd6;
}

.token-attr {
    color: #9cdcfe;
}

.token-string {
    color: #ce9178;
}

.token-comment {
    color: #6a9955;
}

/* Estación 5: Puzzle */
.puzzle-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    perspective: 1000px;
}

.puzzle-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px;
    width: 324px;
    height: 324px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transform-style: preserve-3d;
    animation: rotateBoard 1s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotateBoard {
    0% {
        transform: rotateX(10deg) rotateY(-10deg);
    }
    100% {
        transform: rotateX(0) rotateY(0);
    }
}

.puzzle-piece {
    width: 100px;
    height: 100px;
    cursor: grab;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-family-heading);
    /* Asegurar que se pueda arrastrar */
    pointer-events: auto !important;
    -webkit-user-drag: element !important;
}

.puzzle-piece:hover {
    transform: translateZ(5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.puzzle-piece.dragging {
    opacity: 0.8;
    transform: scale(1.1);
}

.puzzle-space {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Pantalla Final */
.final-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease;
}

.success-container {
    margin-bottom: 40px;
}

.complete-message {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
    border-radius: 10px;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.complete-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(233, 93, 15, 0.05) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(18, 34, 83, 0.05) 100%);
    pointer-events: none;
}

.phrase-part {
    margin: 0 8px;
    display: inline-block;
    min-width: 80px;
    color: var(--color-primary);
    text-shadow: 0 0 5px rgba(233, 93, 15, 0.3);
    position: relative;
}

.phrase-part::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.phrase-part:hover::after {
    transform: scaleX(1);
}

.personal-score {
    font-size: 20px;
    margin: 30px 0;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.hacker-tag, .score-tag {
    color: var(--color-text-dim);
    font-family: var(--font-family-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.final-score-value {
    color: var(--color-accent);
    font-size: 24px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Tabla de Clasificación */
.leaderboard {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease;
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: var(--font-family-heading);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.leaderboard h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

#ranking-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

#ranking-table th, #ranking-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#ranking-table th {
    background-color: var(--color-secondary);
    color: white;
    text-transform: uppercase;
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

#ranking-table tbody tr {
    transition: all 0.3s ease;
}

#ranking-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#ranking-table tbody tr:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.05);
}

#ranking-table tbody tr:nth-child(2) {
    background-color: rgba(192, 192, 192, 0.05);
}

#ranking-table tbody tr:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.05);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in {
    animation: fadeInUp 0.5s ease forwards;
}

.glitch-anim {
    animation: glitch 0.3s ease forwards;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-container {
        padding: 25px;
    }

    .glitch {
        font-size: 2.2rem;
    }

    .station-indicator {
        width: 40px;
        height: 40px;
    }

    .puzzle-board {
        grid-template-columns: repeat(3, 90px);
        grid-template-rows: repeat(3, 90px);
        width: 294px;
        height: 294px;
    }

    .puzzle-piece {
        width: 90px;
        height: 90px;
        font-size: 18px;
    }

    .puzzle-space {
        width: 90px;
        height: 90px;
    }

    .answer-container {
        flex-direction: column;
    }

    .sorting-container {
        flex-direction: column;
    }

    .complete-message {
        font-size: 24px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.8rem;
    }

    .logo-container h2 {
        font-size: 1.2rem;
    }

    .station-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .instruction {
        font-size: 16px;
    }

    .puzzle-board {
        grid-template-columns: repeat(3, 70px);
        grid-template-rows: repeat(3, 70px);
        width: 234px;
        height: 234px;
        gap: 6px;
        padding: 6px;
    }

    .puzzle-piece {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }

    .puzzle-space {
        width: 70px;
        height: 70px;
    }

    .cyber-header h2 {
        font-size: 1.1rem;
    }
}

/* Bloqueo de contenido adicional */
img, svg, .code-content, .neon-text, .glitch, h1, h2, h3, p {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Excepciones para elementos interactivos */
.binary-code, .puzzle-piece, .sorting-item {
    pointer-events: auto !important;
}

/* Prevenir menú contextual (clic derecho) */
body {
    pointer-events: auto;
}

/* Notificación de transición */
.transition-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    border-left: 4px solid var(--color-success);
    font-family: var(--font-family-heading);
    font-weight: 600;
    max-width: 80%;
    opacity: 0;
}

.transition-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    animation: glow 2s infinite;
}

/* Estilos para los mensajes de éxito */
.success-message {
    background-color: rgba(12, 206, 107, 0.1);
    border-left: 4px solid var(--color-success);
    padding: 15px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    color: var(--color-success);
    margin-right: 8px;
}

.next-level {
    margin-top: 10px;
    color: var(--color-accent);
    font-weight: bold;
    animation: pulse 2s infinite;
}
