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

body {
    font-family: 'Calibri', 'Arial', sans-serif;
    background: linear-gradient(135deg, #12492C 0%, #0E6B3A 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #0E6B3A;
    padding-bottom: 20px;
}

.header h1 {
    font-family: 'Georgia', serif;
    font-size: 36px;
    color: #0E6B3A;
    margin-bottom: 5px;
}

.header p {
    color: #6B7280;
    font-style: italic;
    font-size: 14px;
}

/* ---------- MENÚ ---------- */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.menu-item:hover {
    border-color: #0E6B3A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 107, 58, 0.15);
}

.menu-item .icon {
    font-size: 32px;
    flex-shrink: 0;
}

.menu-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.menu-item .info .title {
    font-size: 18px;
    font-weight: bold;
    color: #1B1B1B;
}

.menu-item .info .subtitle {
    font-size: 13px;
    color: #6B7280;
}

.type-badge {
    margin-top: 4px;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.type-flashcard {
    background: #EEF2FF;
    color: #4338CA;
}

.type-badge.type-fill {
    background: #FEF3C7;
    color: #B45309;
}

.menu-item .count {
    font-size: 13px;
    color: #0E6B3A;
    font-weight: bold;
    background: #BFE3CB;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ---------- FLASHCARDS ---------- */
.flashcard {
    position: relative;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    min-height: 220px;
    padding: 30px 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.flashcard:hover {
    border-color: #0E6B3A;
    box-shadow: 0 6px 16px rgba(14, 107, 58, 0.15);
}

.flashcard-face {
    font-size: 34px;
    font-weight: bold;
    color: #0E6B3A;
    font-family: 'Georgia', serif;
}

.flashcard-back .fc-english {
    font-size: 30px;
    color: #1B1B1B;
    margin-bottom: 12px;
}

.flashcard-back .fc-example {
    font-size: 16px;
    color: #6B7280;
    font-style: italic;
    font-family: 'Calibri', sans-serif;
    font-weight: normal;
}

.flashcard-hint {
    position: absolute;
    bottom: 12px;
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-speak {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    width: auto;
}

.btn-speak:hover {
    opacity: 1;
}

.fc-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.fc-buttons button {
    flex: 1;
}

.btn-review {
    background: #FEF2F2;
    color: #C8102E;
    border: 2px solid #C8102E;
}

.btn-review:hover {
    background: #fde0e0;
}

.btn-know {
    background: #0E6B3A;
    color: white;
    border: 2px solid #0E6B3A;
}

.btn-know:hover {
    background: #0a5230;
    transform: translateY(-2px);
}

/* ---------- CONJUGACIÓN ---------- */
.cj-verb {
    font-size: 30px;
    font-weight: bold;
    color: #0E6B3A;
    font-family: 'Georgia', serif;
}

.cj-english {
    font-size: 14px;
    color: #6B7280;
    font-style: italic;
    margin-top: 4px;
}

.cj-regularity {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cj-regularity.regular {
    background: #DCFCE7;
    color: #166534;
}

.cj-regularity.irregular {
    background: #FEF2F2;
    color: #C8102E;
}

.cj-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cj-table td {
    padding: 5px 4px;
    vertical-align: middle;
}

.cj-pronoun {
    width: 80px;
    font-weight: bold;
    color: #6B7280;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.cj-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #B9C0C7;
    border-radius: 6px;
    font-family: 'Calibri', sans-serif;
    transition: border-color 0.3s;
}

.cj-input:focus {
    outline: none;
    border-color: #0E6B3A;
}

.cj-input.correct {
    background: #ECFDF5;
    border-color: #0E6B3A;
}

.cj-input.incorrect {
    background: #FEF2F2;
    border-color: #C8102E;
}

.cj-result {
    width: 95px;
    font-size: 13px;
    font-weight: bold;
    padding-left: 6px;
}

.cj-result.ok  { color: #0E6B3A; }
.cj-result.bad { color: #C8102E; }

#cjCheckBtn {
    width: 100%;
    margin-bottom: 10px;
}

/* Badge del tercer tipo en el menú */
.type-badge.type-conjugation {
    background: #DCFCE7;
    color: #166534;
}

/* ---------- BARRA SUPERIOR DEL EJERCICIO ---------- */
.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.btn-back {
    background: none;
    border: none;
    color: #0E6B3A;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
}

.btn-back:hover {
    text-decoration: underline;
}

.progress-bar {
    background: #B9C0C7;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    background: #0E6B3A;
    height: 100%;
    transition: width 0.3s ease;
}

.exercise-card {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.pronoun {
    font-size: 14px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.verb-group {
    font-size: 12px;
    color: #C8102E;
    margin-bottom: 12px;
    font-weight: bold;
}

.sentence {
    font-size: 20px;
    color: #1B1B1B;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blank {
    background: #BFE3CB;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #0E6B3A;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #B9C0C7;
    border-radius: 6px;
    font-family: 'Calibri', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0E6B3A;
}

input[type="text"].correct {
    background: #ECFDF5;
    border-color: #0E6B3A;
}

input[type="text"].incorrect {
    background: #FEF2F2;
    border-color: #C8102E;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Calibri', sans-serif;
}

.input-group button {
    flex: 1;
}

.btn-check {
    background: #0E6B3A;
    color: white;
}

.btn-check:hover {
    background: #0a5230;
    transform: translateY(-2px);
}

.btn-skip {
    background: #B9C0C7;
    color: #1B1B1B;
}

.btn-skip:hover {
    background: #9CA3AF;
}

.btn-next {
    background: #0E6B3A;
    color: white;
    margin-top: 15px;
    width: 100%;
}

.btn-next:hover {
    background: #0a5230;
}

.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
    display: none;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: #ECFDF5;
    color: #0E6B3A;
    border-left: 4px solid #0E6B3A;
}

.feedback.incorrect {
    background: #FEF2F2;
    color: #C8102E;
    border-left: 4px solid #C8102E;
}

.feedback-text {
    margin-bottom: 8px;
}

.correct-answer {
    font-weight: bold;
    margin-top: 8px;
}

.stats {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.score {
    font-size: 24px;
    color: #0E6B3A;
    font-weight: bold;
}

.score-label {
    color: #6B7280;
    font-size: 12px;
    text-transform: uppercase;
}

.banner-flags {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 15px;
}

.hidden {
    display: none;
}

.completion {
    text-align: center;
    padding: 30px;
}

.completion h2 {
    font-family: 'Georgia', serif;
    font-size: 32px;
    color: #0E6B3A;
    margin-bottom: 15px;
}

.completion p {
    color: #6B7280;
    margin-bottom: 20px;
    font-size: 16px;
}

.completion-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-restart {
    background: #0E6B3A;
    color: white;
    padding: 12px 30px;
}

.btn-menu {
    background: #B9C0C7;
    color: #1B1B1B;
    padding: 12px 30px;
}

/* ============================================================
   RESPONSIVE (móvil)
   ============================================================ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 22px 18px;
        border-radius: 10px;
    }

    .header h1 {
        font-size: 28px;
    }

    /* Menú: ítems un poco más compactos */
    .menu-item {
        padding: 16px;
        gap: 12px;
    }

    .menu-item .icon {
        font-size: 26px;
    }

    .menu-item .info .title {
        font-size: 16px;
    }

    /* "Completa": input en su propia fila, botones debajo */
    .input-group {
        flex-wrap: wrap;
    }

    .input-group input[type="text"] {
        flex: 1 1 100%;
    }

    /* Flashcard: texto más pequeño para que no se desborde "inglés / ruso" */
    .flashcard {
        min-height: 190px;
        padding: 28px 18px;
    }

    .flashcard-face {
        font-size: 28px;
    }

    .flashcard-back .fc-english {
        font-size: 22px;
    }

    .flashcard-back .fc-example {
        font-size: 14px;
    }

    /* Conjugación: tabla más estrecha */
    .cj-verb {
        font-size: 26px;
    }

    .cj-pronoun {
        width: 60px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .cj-result {
        width: auto;
        font-size: 12px;
    }

    .cj-input {
        padding: 9px;
        font-size: 15px;
    }
}
