:root {
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --accent: #ffd300;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Soporte automático para Modo Oscuro si el body lo tiene */
body.dark-mode {
    --bg: #1a202c;
    --card-bg: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --border: #4a5568;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.register-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.register-header { margin-bottom: 40px; }
.reg-logo { width: 100px; margin-bottom: 15px; border-radius: 50%; border: 3px solid var(--accent); }
.register-header h1 { font-size: 2rem; margin-bottom: 10px; }
.register-header p { color: var(--text-secondary); }

/* Grid de Roles */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.role-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.role-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow);
}

.role-icon {
    font-size: 3rem;
    background: var(--bg);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.role-card h3 { font-size: 1.2rem; color: var(--text-primary); }
.role-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }

.register-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.register-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .role-grid { grid-template-columns: 1fr; }
}