/* ==========================================================================
   WakeUpCulture & Forte - Modern Design System & Styles
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #0B0F19;
    --bg-surface: #111827;
    --bg-card: #1A2234;
    --bg-card-hover: #222D42;
    --bg-glass: rgba(26, 34, 52, 0.75);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-focus: #38BDF8;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --text-inverse: #0B0F19;

    /* Quadrant Signature Colors */
    --color-competir: #EF4444;
    --color-competir-glow: rgba(239, 68, 68, 0.35);
    --color-competir-bg: rgba(239, 68, 68, 0.12);

    --color-explorar: #10B981;
    --color-explorar-glow: rgba(16, 185, 129, 0.35);
    --color-explorar-bg: rgba(16, 185, 129, 0.12);

    --color-colaborar: #F59E0B;
    --color-colaborar-glow: rgba(245, 158, 11, 0.35);
    --color-colaborar-bg: rgba(245, 158, 11, 0.12);

    --color-escalar: #3B82F6;
    --color-escalar-glow: rgba(59, 130, 246, 0.35);
    --color-escalar-bg: rgba(59, 130, 246, 0.12);

    /* Brand Accents */
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --accent-cyan: #06B6D4;

    /* Typography & Spacing */
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables (Auto / Toggle) */
[data-theme="light"] {
    --bg-main: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --border-subtle: #E2E8F0;
    --border-medium: #CBD5E1;
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-dim: #94A3B8;
    --text-inverse: #FFFFFF;

    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Atmospheric Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

body::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

body::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.site-header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 1.5rem;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #EF4444 0%, #F59E0B 35%, #10B981 70%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #FFFFFF;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-btn:hover {
    color: var(--text-main);
    border-color: var(--border-medium);
    background: var(--bg-card);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.main-wrapper {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero & Welcome View
   ========================================================================== */
.hero-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818CF8;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 30%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Participant Registration Card on Home */
.participant-card-wrapper {
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.participant-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.participant-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participant-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-field label span.req {
    color: var(--color-competir);
}

.form-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Participant Profile Badge on Results */
.participant-results-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.participant-info-texts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.p-item {
    display: flex;
    flex-direction: column;
}

.p-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.p-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 4 Quadrants Visual Banner */
.quadrants-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.quadrant-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.quadrant-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-medium);
}

.quadrant-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.card-competir::before { background: var(--color-competir); }
.card-explorar::before { background: var(--color-explorar); }
.card-colaborar::before { background: var(--color-colaborar); }
.card-escalar::before { background: var(--color-escalar); }

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-competir .card-title { color: #FCA5A5; }
.card-explorar .card-title { color: #FDE68A; }
.card-colaborar .card-title { color: #A7F3D0; }
.card-escalar .card-title { color: #BFDBFE; }

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mode Selection Cards */
.mode-selection-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.test-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.test-option-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.test-option-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.option-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #A5B4FC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.option-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.option-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.option-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.option-features {
    list-style: none;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-features li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338CA 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
}

.btn-outline:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-success {
    background: #10B981;
    color: #FFFFFF;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    width: auto;
}

/* ==========================================================================
   Instruction Callout Card (10-Point Distribution Method)
   ========================================================================== */
.instruction-callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #A5B4FC;
    margin-bottom: 0.4rem;
}

.callout-body p {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
}

.callout-body strong {
    color: #38BDF8;
}

/* ==========================================================================
   Test Wizard View & Question Cards
   ========================================================================== */
.wizard-container {
    max-width: 880px;
    margin: 0 auto;
}

.wizard-header-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.wizard-mode-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.mode-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.mode-tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.wizard-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 100%);
    border-radius: var(--radius-full);
    transition: width 0.35s ease;
}

/* Question Block & Point Bank Counter */
.question-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition);
}

.question-block.question-complete {
    border-color: rgba(16, 185, 129, 0.5);
}

.question-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
}

.q-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #A5B4FC;
    font-weight: 700;
    font-size: 0.95rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-prompt-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    flex: 1;
}

/* Point Bank Status Pill */
.point-bank-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.point-bank-pill.status-complete {
    background: rgba(16, 185, 129, 0.15);
    border: 1.2px solid #10B981;
    color: #34D399;
}

.point-bank-pill.status-under {
    background: rgba(245, 158, 11, 0.15);
    border: 1.2px solid #F59E0B;
    color: #FBBF24;
}

.point-bank-pill.status-over {
    background: rgba(239, 68, 68, 0.15);
    border: 1.2px solid #EF4444;
    color: #FCA5A5;
}

.statements-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.statement-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}

.statement-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
}

.statement-text-col {
    margin-bottom: 1rem;
}

.statement-text {
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.5;
}

.statement-letter-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   10-Point Constant-Sum Stepper & Buttons
   ========================================================================== */
.point-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    gap: 1rem;
    flex-wrap: wrap;
}

.stepper-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-step {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-step:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary);
    color: #FFFFFF;
    transform: scale(1.08);
}

.btn-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--border-subtle);
}

.point-display-box {
    min-width: 52px;
    height: 38px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    padding: 0 0.5rem;
}

.point-display-box.has-points {
    border-color: var(--accent-cyan);
    color: #38BDF8;
    background: rgba(6, 182, 212, 0.1);
}

/* Quick Point Presets */
.quick-presets-group {
    display: flex;
    gap: 0.35rem;
}

.btn-preset {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-preset:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border-color: var(--border-focus);
}

/* Test 2: Ranking Selector Buttons (1 to 4) */
.ranking-selector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.ranking-prompt-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.rank-buttons-group {
    display: flex;
    gap: 0.6rem;
}

.rank-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-btn:hover {
    border-color: var(--border-focus);
    color: var(--text-main);
}

.rank-btn.rank-1.selected {
    background: #10B981;
    border-color: #34D399;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.rank-btn.rank-2.selected {
    background: #3B82F6;
    border-color: #60A5FA;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.rank-btn.rank-3.selected {
    background: #F59E0B;
    border-color: #FBBF24;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.rank-btn.rank-4.selected {
    background: #64748B;
    border-color: #94A3B8;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(100, 116, 139, 0.5);
}

.wizard-footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 3rem;
}

/* ==========================================================================
   Results Dashboard View
   ========================================================================== */
.results-dashboard {
    max-width: 1100px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Cloud Sync Status Card */
.cloud-sync-status-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sync-status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34D399;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Indicador de progreso del análisis (vista del participante)
   Neutro a propósito: no menciona Google Sheets ni el guardado.
   ========================================================================== */
.analysis-progress {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.analysis-progress.is-done {
    border-color: rgba(16, 185, 129, 0.4);
}

.analysis-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.analysis-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid var(--border-medium);
    border-top-color: #38BDF8;
    border-radius: 50%;
    animation: analysis-spin 0.7s linear infinite;
}

@keyframes analysis-spin {
    to { transform: rotate(360deg); }
}

.analysis-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-size: 0.75rem;
    font-weight: 900;
}

.analysis-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.analysis-bar {
    margin-top: 0.7rem;
    height: 4px;
    border-radius: 4px;
    background: var(--border-subtle);
    overflow: hidden;
}

.analysis-bar-fill {
    height: 100%;
    width: 35%;
    border-radius: 4px;
    background: linear-gradient(90deg, #38BDF8, #4F46E5);
    animation: analysis-slide 1.15s ease-in-out infinite;
    transition: width 0.45s ease;
}

.analysis-progress.is-done .analysis-bar-fill {
    animation: none;
}

@keyframes analysis-slide {
    0%   { margin-left: -35%; }
    100% { margin-left: 100%; }
}

.analysis-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .analysis-spinner { animation-duration: 2s; }
    .analysis-bar-fill { animation: none; width: 100%; opacity: 0.55; }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Card & Radar SVG Container */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-heading h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.radar-chart-wrapper {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wuc-radar-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Radar SVG Specific Typography */
.radar-level-text {
    font-family: var(--font-sans);
    font-size: 10px;
    fill: #64748B;
    font-weight: 600;
}

.quadrant-badge-text {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.axis-tag-text {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.point-score-text {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
}

/* Predominant Style Banner Card */
.predominant-banner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.predominant-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.predominant-banner-card.style-competir::before { background: var(--color-competir); }
.predominant-banner-card.style-explorar::before { background: var(--color-explorar); }
.predominant-banner-card.style-colaborar::before { background: var(--color-colaborar); }
.predominant-banner-card.style-escalar::before { background: var(--color-escalar); }

.style-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.style-badge-competir { background: var(--color-competir-bg); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.4); }
.style-badge-explorar { background: var(--color-explorar-bg); color: #A7F3D0; border: 1px solid rgba(16, 185, 129, 0.4); }
.style-badge-colaborar { background: var(--color-colaborar-bg); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.4); }
.style-badge-escalar { background: var(--color-escalar-bg); color: #BFDBFE; border: 1px solid rgba(59, 130, 246, 0.4); }

.predominant-style-name {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.predominant-quadrant-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.predominant-score-display {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.predominant-score-display span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.predominant-summary-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Scores Breakdown Table / Bars */
.scores-bars-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.score-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.score-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-competir { background: var(--color-competir); }
.fill-explorar { background: var(--color-explorar); }
.fill-colaborar { background: var(--color-colaborar); }
.fill-escalar { background: var(--color-escalar); }

/* Detailed Cards Section */
.details-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.detail-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.detail-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-items-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 1.25rem;
}

.detail-items-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Synergy & Cross Analysis Card */
.synergy-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}

.synergy-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.synergy-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.synergy-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

@media (max-width: 600px) {
    .synergy-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.synergy-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.synergy-box-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.synergy-box-val {
    font-size: 1.15rem;
    font-weight: 700;
}

.synergy-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.synergy-advice {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    padding: 0.85rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard Action Buttons Bar */
.dashboard-actions-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Modal Dialogs (Settings / Google Sheets)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================================================================
   Print & PDF Styling
   ========================================================================== */
/* ==========================================================================
   TEST DE ROL FORTE (Test 3)
   ========================================================================== */
.rol-test-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.rol-cuadrante-pill {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(56, 189, 248, 0.13);
    color: #38BDF8;
}

.rol-test-titulo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.rol-test-intro {
    width: 100%;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.rol-pregunta-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.rol-pregunta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.rol-pregunta-estado {
    color: #10B981;
    font-weight: 900;
    font-size: 1.1rem;
}

.rol-opciones {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rol-opcion {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rol-opcion:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.rol-opcion input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rol-opcion-marca {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rol-opcion-texto {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-main);
}

.rol-opcion:has(input:checked) {
    border-color: var(--rol-actual, #38BDF8);
    background: color-mix(in srgb, var(--rol-actual, #38BDF8) 8%, var(--bg-surface));
}

.rol-opcion:has(input:checked) .rol-opcion-marca {
    border-color: var(--rol-actual, #38BDF8);
    background: var(--rol-actual, #38BDF8);
    box-shadow: inset 0 0 0 3px var(--bg-surface);
}

.rol-aviso-sin-cuadrante {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------------- Pantalla de resultado: Rol Forte ---------------- */
.rol-resultado-card {
    --rol-color: #38BDF8;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--rol-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    margin-bottom: 1.5rem;
}

.rol-resultado-header {
    margin-bottom: 2rem;
}

.rol-titulo {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0 0 0.35rem 0;
}

.rol-subtitulo {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.rol-nombre {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--rol-color);
    margin-bottom: 0.6rem;
}

.rol-cuadrante-tag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rol-cuadrante-tag span:first-child {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.rol-puntaje {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

.rol-descripcion {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0 0 1.75rem 0;
}

.rol-competencias-titulo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 1rem 0;
}

.rol-competencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.6rem;
}

.rol-competencias-lista li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.7rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--rol-color);
    border-radius: var(--radius-sm);
}

.rol-pie {
    margin: 2.5rem 0 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}

@media print {
    .rol-resultado-card {
        border: 1px solid #CBD5E1 !important;
        background: #FFFFFF !important;
    }

    .rol-titulo, .rol-nombre, .rol-descripcion, .rol-competencias-titulo, .rol-competencias-lista li {
        color: #0F172A !important;
    }

    .rol-competencias-lista li {
        background: #F8FAFC !important;
        border-color: #E2E8F0 !important;
    }

    .rol-pie {
        color: #475569 !important;
    }
}

/* ==========================================================================
   Impresión / PDF del informe
   ========================================================================== */
@media print {
    body {
        background: #FFFFFF !important;
        color: #0F172A !important;
    }

    body::before, body::after {
        display: none !important;
    }

    .site-header, .site-footer, .dashboard-actions-bar, .wizard-footer-actions, .theme-toggle-btn, .modal-backdrop, .cloud-sync-status-card button, .analysis-progress {
        display: none !important;
    }

    .main-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .chart-card, .predominant-banner-card, .detail-card, .synergy-card, .participant-results-badge {
        background: #FFFFFF !important;
        border: 1px solid #CBD5E1 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        color: #0F172A !important;
    }

    .wuc-radar-svg text {
        fill: #0F172A !important;
    }

    .quadrant-rect {
        opacity: 0.4 !important;
    }

    .radar-polygon-layer {
        filter: none !important;
    }
}
