/**
 * MultiPlay - Hoja de Estilos Principal
 * Diseño moderno, responsive y gamificado
 */

/* ===== Variables CSS ===== */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #00B894;
    --secondary-dark: #00A381;
    --accent: #FD79A8;
    --warning: #FDCB6E;
    --danger: #E17055;
    --success: #00B894;
    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #B2BEC3;
    --lighter-gray: #DFE6E9;
    --white: #FFFFFF;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--lighter-gray);
}

.nav-link.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
}

.nav-link.btn-primary:hover {
    background: var(--primary-dark);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

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

.logout-btn {
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

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

.btn-secondary {
    background: var(--lighter-gray);
    color: var(--dark);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Auth Pages ===== */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray);
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.forgot-password {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lighter-gray);
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.message.success {
    display: block;
    background: #D4EDDA;
    color: #155724;
}

.message.error {
    display: block;
    background: #F8D7DA;
    color: #721C24;
}

/* ===== Dashboard ===== */
.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-card.large {
    padding: 2rem;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.progress-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.progress-section h2 {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 12px;
    background: var(--lighter-gray);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.lesson-list {
    list-style: none;
    margin-bottom: 1rem;
}

.lesson-list li {
    padding: 0.75rem;
    border-bottom: 1px solid var(--lighter-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-list li:last-child {
    border-bottom: none;
}

.lesson-list a {
    color: var(--primary);
    font-weight: 500;
}

.stars {
    color: var(--warning);
}

.empty-state {
    color: var(--gray);
    text-align: center;
    padding: 2rem;
}

.quick-actions {
    margin-top: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1rem;
}

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

.action-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.action-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.action-text {
    font-weight: 600;
    color: var(--dark);
}

/* ===== Tablas Grid ===== */
.tablas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tabla-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.tabla-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tabla-progress {
    margin-bottom: 0.5rem;
}

.tabla-progress .progress-bar {
    margin-bottom: 0.25rem;
}

.tabla-progress span {
    font-size: 0.75rem;
    color: var(--gray);
}

.tabla-stars {
    color: var(--warning);
    font-size: 1.25rem;
}

/* ===== Tabla Show ===== */
.tabla-practice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tabla-display {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

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

.tabla-table th,
.tabla-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--lighter-gray);
    font-size: 1.125rem;
}

.tabla-table th {
    font-weight: 700;
    color: var(--primary);
    background: var(--lighter-gray);
}

.tabla-table td:last-child {
    font-weight: 700;
    color: var(--secondary);
}

.practice-form {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-practice {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-practice h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.quick-question {
    text-align: center;
}

.quick-question .question-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.quick-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.quick-form input[type="number"] {
    width: 120px;
    padding: 0.5rem;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.125rem;
}

.quick-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.practice-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.practice-section h2 {
    margin-bottom: 1rem;
}

.question-card {
    text-align: center;
}

.question-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.answer-input {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.answer-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    text-align: center;
}

.answer-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.question-feedback {
    min-height: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.question-feedback.correct {
    color: var(--success);
}

.question-feedback.incorrect {
    color: var(--danger);
}

.question-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.progress-bar-container {
    margin-top: 1rem;
    text-align: center;
}

.progress-bar-container .progress-bar {
    margin-bottom: 0.5rem;
}

.progress-bar-container span {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== Lecciones ===== */
.lecciones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.leccion-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

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

.leccion-card.completed {
    border: 2px solid var(--success);
}

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

.leccion-type {
    font-size: 1.5rem;
}

.leccion-check {
    font-size: 1.25rem;
}

.leccion-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.leccion-card p {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.leccion-stars {
    color: var(--warning);
}

/* ===== Lesson Container ===== */
.lesson-container {
    max-width: 600px;
    margin: 0 auto;
}

.lesson-progress {
    margin-bottom: 1.5rem;
}

.lesson-progress .progress-bar {
    margin-bottom: 0.5rem;
}

.lesson-progress span {
    color: var(--gray);
    font-size: 0.875rem;
}

.lesson-complete {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lesson-complete h2 {
    margin-bottom: 1rem;
}

.stars-earned {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== Perfil ===== */
.profile-container {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.profile-info h2 {
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--gray);
}

.profile-stats {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.profile-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.profile-form h3 {
    margin-bottom: 1.5rem;
}

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

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Estadísticas ===== */
.stats-container {
    display: grid;
    gap: 2rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stats-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stats-section h2 {
    margin-bottom: 1rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

.weak-areas {
    display: grid;
    gap: 1rem;
}

.weak-area-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
}

.area-type {
    font-weight: 600;
    text-transform: capitalize;
}

.area-precision {
    color: var(--danger);
    font-weight: 700;
}

/* ===== Insignias ===== */
.insignias-container {
    display: grid;
    gap: 2rem;
}

.insignias-obtenidas h2,
.insignias-pendientes h2 {
    margin-bottom: 1rem;
}

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

.insignia-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.insignia-card.obtained {
    border: 2px solid var(--warning);
}

.insignia-card.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.insignia-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.insignia-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.insignia-desc {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.insignia-date {
    color: var(--light-gray);
    font-size: 0.75rem;
}

/* ===== Error Page ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.error-content h2 {
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray);
    color: var(--light-gray);
}

/* ===== Landing Page ===== */
.landing-page {
    background: var(--white);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
}

.features {
    padding: 4rem 1.5rem;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
}

.cta {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta .btn-primary:hover {
    background: var(--lighter-gray);
}

/* ===== Animaciones ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tabla-practice {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .answer-input {
        flex-direction: column;
    }
    
    .completion-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tablas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .insignias-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-info {
    background: var(--primary);
}

/* ===== Preguntas estáticas (Desafíos) ===== */
.questions-list {
    margin: 1.5rem 0;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--lighter-gray);
}

.question-item:last-child {
    border-bottom: none;
}

.question-number {
    font-weight: 700;
    color: var(--primary);
    min-width: 2rem;
}

.question-text {
    font-size: 1.125rem;
    color: var(--dark);
}

.challenge-info {
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
}

.challenge-info p {
    margin: 0.25rem 0;
    color: var(--gray);
}

/* ===== Preguntas estáticas (Desafíos) ===== */
.questions-list {
    margin: 1.5rem 0;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--lighter-gray);
}

.question-item:last-child {
    border-bottom: none;
}

.question-number {
    font-weight: 700;
    color: var(--primary);
    min-width: 2rem;
}

.question-text {
    font-size: 1.125rem;
    color: var(--dark);
}

.challenge-info {
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
}

.challenge-info p {
    margin: 0.25rem 0;
    color: var(--gray);
}

/* ===== Utilidades ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
