/* assets/css/aula.css -- Estilos simplificados para Inclusión Digital */

:root {
    --aula-bg: #fdfbf7;
    --aula-text: #2c2c2c;
    --aula-primary: #C75B35;
    /* Terracotta corporativo */
    --aula-accent: #DFAE5A;
    /* Dorado suave */
    --aula-white: #ffffff;
    --aula-radius: 28px;
    --aula-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --aula-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);

    --aula-success: #24a148;
    --aula-locked: #e0e0e0;
}

/* Global Reset for Aula */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--aula-bg);
    color: var(--aula-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Tipografía Accesible (Grande) */
.type-accessible {
    font-size: 1.15rem;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--aula-primary);
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
    color: #444;
}

p {
    margin-bottom: 1.25em;
    max-width: 60ch;
}

/* Contenedor Centrado */
.aula-wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
    /* espacio para bottom nav si hubiera */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Simple */
.aula-header {
    padding: 1rem 0 2rem;
    text-align: center;
}

.aula-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Tarjetas Grandes (Big Touch Targets) */
.aula-card {
    background: var(--aula-white);
    border-radius: var(--aula-radius);
    box-shadow: var(--aula-shadow);
    padding: 2.5rem 2rem;
    margin-bottom: 0;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.aula-card:active {
    transform: scale(0.98);
}

.aula-card:focus {
    outline: 4px solid var(--aula-accent);
}

.aula-card img,
.aula-card svg {
    margin-bottom: 1rem;
    color: var(--aula-primary);
}

.aula-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.aula-card p {
    font-size: 1.05rem;
    color: #666;
    margin: 0 auto;
    line-height: 1.6;
}

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

/* Botones Gigantes */
.btn-aula {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--aula-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(199, 91, 53, 0.4);
    transition: transform 0.2s;
}

.btn-aula:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-aula--secondary {
    background: #eee;
    color: #333;
    box-shadow: none;
}

/* Footer Simplificado */
.aula-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

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

/* Helpers */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Grid Layout */
.aula-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .aula-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }

    .aula-wrap {
        max-width: 900px;
    }
}

/* Progress Bar */
.aula-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #eee;
    z-index: 100;
}

.aula-progress-bar {
    height: 100%;
    background: var(--aula-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Slide Content */
.aula-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.aula-slide-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.aula-navigation {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-aula--back {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    flex: 0 0 auto;
    width: auto;
    padding: 1.25rem;
    box-shadow: none;
}

/* --- Gamification Styles --- */

.aula-module-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.aula-module-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--aula-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.aula-module-item:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--aula-accent);
}

.aula-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #888;
}

.aula-module-item.completed .aula-module-icon {
    background: #e6fffa;
    color: var(--aula-success);
}

.aula-module-item.current .aula-module-icon {
    background: #fff7e6;
    color: var(--aula-accent);
}

.aula-module-info {
    flex: 1;
}

.aula-module-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.aula-module-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.aula-status-icon {
    color: #ccc;
}

.aula-module-item.completed .aula-status-icon {
    color: var(--aula-success);
}

/* Locked state */
.aula-module-item.locked {
    opacity: 0.6;
    pointer-events: none;
    background: #f9f9f9;
}

/* Main Cards Nav (New Home) */
.aula-home-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media(min-width: 600px) {
    .aula-home-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.aula-nav-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--aula-text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.aula-nav-card:hover {
    transform: translateY(-4px);
}

.aula-nav-icon {
    width: 60px;
    height: 60px;
    background: #fdfbf7;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aula-primary);
}