:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --correct: #10b981;
    --card-bg: rgba(51, 65, 85, 0.8);
    --card-hover: rgba(71, 85, 105, 0.9);
    --selected: rgba(59, 130, 246, 0.3);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-color), #1e1b4b);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #60a5fa;
}

header a {
    color: #93c5fd;
    text-decoration: underline;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.question-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.option-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover {
    background: var(--card-hover);
}

.option-btn.selected {
    background: var(--selected);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background 0.3s;
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.primary-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.7;
}

.ref-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.ref-link a {
    color: #fbbf24;
    text-decoration: none;
}
/* Progress Bar */
.progress-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.progress-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.4s ease;
}

/* Formularios del Participante */
.student-card {
    border-left: 4px solid var(--primary);
}

.form-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 600;
}

.modern-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ref-link a:hover {
    text-decoration: underline;
}

/* Radio Bonitos */
.radio-label {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.radio-label:hover {
    background: var(--card-hover);
}

.radio-label input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .custom-radio {
    border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* Modern Select */
.select-container {
    margin-top: 15px;
}

.modern-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.modern-select option {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Drag & Drop */
.drag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.draggable-item {
    background: var(--card-bg);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: grab;
    color: var(--text-color);
}

.draggable-item:active {
    cursor: grabbing;
}

.dropzone {
    min-height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 10px;
}

.dropzone.drag-over {
    background: var(--selected);
    border-color: var(--primary);
}

.dropzone .draggable-item {
    width: 100%;
    margin: 0;
    border-style: solid;
    border-color: var(--primary);
    background: var(--selected);
}

/* Modern Table */
.table-container {
    margin-top: 15px;
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th, .modern-table td {
    border: 1px solid var(--glass-border);
    padding: 12px;
    text-align: left;
}

.modern-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.table-select {
    width: auto;
    min-width: 200px;
}
