/* =============================================
   SIMULADOR DE EXÁMENES - RADIO CLUB CHILE CE3AA
   Nuevo Diseño - Diciembre 2024
   ============================================= */

/* Google Fonts & Material Icons */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');

:root {
    /* Colores principales */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;

    /* Colores de acento por categoría */
    --accent-green: #10B981;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-orange: #F59E0B;

    /* Estados */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Fondos */
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --bg-dark: #111827;
    --surface-light: #FFFFFF;
    --surface-dark: #1F2937;

    /* Textos */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;

    /* Bordes */
    --border-light: #E5E7EB;
    --border-dark: #374151;

    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Bordes redondeados */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 6rem 1.5rem 12rem;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
}

/* Ondas animadas en la parte inferior */
.hero-waves {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 5;
    pointer-events: none;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: wave-float 8s ease-in-out infinite;
}

.wave-path.wave-1 {
    animation-delay: 0s;
}

.wave-path.wave-2 {
    animation-delay: -2s;
    animation-duration: 10s;
}

.wave-path.wave-3 {
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes wave-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Círculos de ondas de radio expandiéndose */
.radio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.radio-wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: radio-pulse 4s ease-out infinite;
}

.radio-wave:nth-child(1) {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    animation-delay: 0s;
}

.radio-wave:nth-child(2) {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    animation-delay: 1s;
}

.radio-wave:nth-child(3) {
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    animation-delay: 2s;
}

@keyframes radio-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
}

.hero-bg-icons .material-icons-outlined {
    position: absolute;
    font-size: 9rem;
}

.hero-bg-icons .icon-1 {
    top: 2rem;
    left: 2rem;
    transform: rotate(-12deg);
}

.hero-bg-icons .icon-2 {
    bottom: 5rem;
    right: 5rem;
    transform: rotate(12deg);
}

.hero-bg-icons .icon-3 {
    top: 25%;
    right: 25%;
    font-size: 6rem;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.badge .pulse {
    width: 0.5rem;
    height: 0.5rem;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.hero-title .highlight {
    color: #bfdbfe;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #bfdbfe;
    max-width: 42rem;
    margin: 0.75rem auto 0;
    line-height: 1.6;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    background: var(--bg-white);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f9fafb;
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.cta-button .material-icons-outlined {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .material-icons-outlined {
    transform: translateX(4px);
}

/* =============================================
   NAVEGACIÓN STICKY
   ============================================= */

.sticky-nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    padding: 0 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.nav-container {
    max-width: 64rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-text h3 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.nav-logo-text p {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-right: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.dark-mode-btn {
    padding: 0.5rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dark-mode-btn:hover {
    background: var(--bg-light);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 6rem;
}

/* =============================================
   SECCIÓN DE CATEGORÍAS
   ============================================= */

.categories-section {
    margin-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

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

.category-card {
    position: relative;
    background: var(--surface-light);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.category-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.875rem;
    font-family: monospace;
    color: var(--text-muted);
}

.category-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon .material-icons-outlined {
    font-size: 1.75rem;
}

/* Colores por categoría */
.category-card[data-category="aspirante"] .category-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.category-card[data-category="novicio"] .category-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.category-card[data-category="general"] .category-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.category-card[data-category="superior"] .category-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card h3 .prefix {
    font-weight: 700;
}

.category-card[data-category="aspirante"] h3 .prefix {
    color: var(--accent-green);
}

.category-card[data-category="novicio"] h3 .prefix {
    color: var(--accent-blue);
}

.category-card[data-category="general"] h3 .prefix {
    color: var(--accent-purple);
}

.category-card[data-category="superior"] h3 .prefix {
    color: var(--accent-orange);
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.start-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card[data-category="aspirante"] .start-btn:hover {
    background: var(--accent-green);
    color: white;
}

.category-card[data-category="novicio"] .start-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.category-card[data-category="general"] .start-btn:hover {
    background: var(--accent-purple);
    color: white;
}

.category-card[data-category="superior"] .start-btn:hover {
    background: var(--accent-orange);
    color: white;
}

/* =============================================
   SECCIÓN DE INFORMACIÓN
   ============================================= */

.info-section {
    padding: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--surface-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: border-color 0.2s ease;
}

.info-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.info-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-icon .material-icons-outlined {
    font-size: 1.75rem;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-info {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-info p {
    margin-bottom: 0.25rem;
}

.footer-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--primary);
}

/* =============================================
   UTILIDADES
   ============================================= */

.hidden {
    display: none !important;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem 10rem;
    }

    .hero-bg-icons .material-icons-outlined {
        font-size: 6rem;
    }

    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-logo {
        justify-content: center;
        padding-left: 0;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

/* =============================================
   EXAM CONTAINER (Sistema de Examen)
   ============================================= */

.exam-container {
    display: none;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: var(--bg-light);
}

.exam-container.active {
    display: block;
}

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

.exam-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.exam-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
}

.timer-display .material-icons-outlined {
    color: var(--warning);
}

.exam-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.question-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.question-type {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.question-type.technical {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

#questionNumber {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.question-image-container {
    margin: 1.5rem 0;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.question-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.option-btn.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.option-btn.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

.option-letter {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    font-weight: 700;
    flex-shrink: 0;
}

/* Botón de reporte */
.report-error-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-light);
    text-align: center;
}

.report-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-error-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.exam-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.nav-btn.primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* =============================================
   RESULTS CONTAINER
   ============================================= */

.results-container {
    display: none;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: var(--bg-light);
}

.results-container.active {
    display: block;
}

.results-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.results-header {
    padding: 2.5rem;
    text-align: center;
    color: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.results-header.passed {
    background: linear-gradient(135deg, var(--success), #059669);
}

.results-header.failed {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.results-percent {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
}

.results-header p {
    opacity: 0.9;
}

.results-btn-inline {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-btn-inline:hover {
    background: rgba(255, 255, 255, 0.3);
}

.results-summary {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.results-summary h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.summary-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-correct {
    color: var(--success);
    font-weight: 600;
}

.stat-incorrect {
    color: var(--danger);
    font-weight: 600;
}

.review-list {
    padding: 1rem 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.review-item.correct {
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.review-item.incorrect {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.correct-icon {
    color: var(--success);
    font-weight: bold;
}

.incorrect-icon {
    color: var(--danger);
    font-weight: bold;
}

.review-question-num {
    font-weight: 600;
    color: var(--text-primary);
}

.review-question-text {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.review-wrong-answer,
.review-correct-answer {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
}

.review-wrong-answer {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.review-correct-answer {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.review-origin {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.results-actions {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.results-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-btn.secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.results-btn.secondary:hover {
    background: var(--border-light);
}

.results-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
}

.results-btn.primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* =============================================
   ANIMACIONES
   ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* =============================================
   BADGES DE APROBACIÓN
   ============================================= */

.approval-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.approval-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.approval-badge.legal {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.approval-badge.technical {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
}

/* =============================================
   MODALES UNIFICADOS
   ============================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-container {
    background: var(--surface-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

.modal-container.modal-small {
    max-width: 400px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon .material-icons-outlined {
    font-size: 1.5rem;
    color: white;
}

.modal-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.modal-icon.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.modal-icon.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.modal-icon.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group label .material-icons-outlined {
    font-size: 1.25rem;
    color: var(--primary);
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-light);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select:hover {
    border-color: var(--primary-light);
}

.total-display {
    text-align: center;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.total-display strong {
    color: var(--primary);
    font-size: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn .material-icons-outlined {
    font-size: 1.25rem;
}

.modal-btn.secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.modal-btn.secondary:hover {
    background: var(--border-light);
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.modal-btn.primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modal-btn.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.modal-btn.danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.modal-btn.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.modal-btn.warning:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Form inputs para modales */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Info box en modales */
.info-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
}

.info-box .meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-box p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.required {
    color: var(--danger);
}