/* ========== CSS Variables & Reset ========== */
:root {
    --primary: #4A90D9;
    --primary-dark: #357ABD;
    --primary-light: #6BA3E0;
    --secondary: #F5A623;
    --secondary-dark: #D4891E;
    --accent: #7ED321;
    --accent-dark: #5FA01A;
    --danger: #E74C3C;
    --success: #27AE60;
    --info: #3498DB;
    
    --bg-primary: #F8FAFC;
    --bg-secondary: #EDF2F7;
    --bg-card: #FFFFFF;
    --bg-dark: #1A202C;
    --bg-header: #FFFFFF;
    
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    --text-white: #FFFFFF;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --header-height: 72px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Overlay semi-transparente sobre el fondo para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.88);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(74, 144, 217, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.45);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-audio {
    background: linear-gradient(135deg, var(--info), #2980B9);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-audio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn-record {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

.btn-next {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    width: 100%;
    margin-top: 16px;
    border-radius: var(--radius-md);
}

.btn-next:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-check {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3);
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(126, 211, 33, 0.4);
}

.btn-next-question {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
}

.btn-next-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 217, 0.4);
}

.btn-test {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.btn-test:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 50%, #E2E8F0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.speech-bubble {
    background: var(--bg-card);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--bg-card);
}

.flag-container {
    display: flex;
    gap: 16px;
}

.flag {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== Sections ========== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Section Header with Image */
.section-header-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.section-header-with-image .section-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.section-header-with-image .section-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

.section-header-with-image .section-image-text {
    text-align: center;
}

.section-header-with-image .section-image-text .section-title {
    margin-bottom: 8px;
    text-align: center;
}

.section-header-with-image .section-image-text .section-subtitle {
    margin-bottom: 0;
    text-align: center;
}

/* ========== Vocabulary Grid ========== */
.vocab-grid, .phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.vocab-card, .phrase-card, .number-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.vocab-card:hover, .phrase-card:hover, .number-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vocab-card .emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.vocab-card .english, .phrase-card .english, .number-card .english {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.vocab-card .spanish, .phrase-card .spanish, .number-card .spanish {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== Numbers Grid ========== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.number-card {
    padding: 18px;
}

.number-card .english {
    font-size: 1rem;
}

/* ========== Practice Section ========== */
.practice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.practice-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.practice-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.practice-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.practice-word, .test-word {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
}

.word-display {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.test-display {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.word-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.test-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.practice-feedback, .test-result {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.feedback-text, .result-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== Quiz Section ========== */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.quiz-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quiz-score span:nth-child(2) {
    color: var(--primary);
    font-size: 1.3rem;
}

.quiz-progress {
    flex: 1;
    max-width: 300px;
    min-width: 150px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: var(--transition);
    width: 0%;
}

.quiz-content {
    margin-bottom: 24px;
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: rgba(74, 144, 217, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(74, 144, 217, 0.1);
    color: var(--primary);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.quiz-feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-feedback.correct {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.quiz-feedback.incorrect {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.quiz-feedback.finished {
    background: rgba(74, 144, 217, 0.1);
    color: var(--primary);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links h4, .footer-tip h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.footer-links a {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-tip p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== Recording Pulse Animation ========== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.recording {
    animation: pulse 1s ease-in-out infinite;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-header);
        padding: 20px;
        flex-direction: column;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text p {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .speech-bubble {
        font-size: 1.5rem;
        padding: 16px 24px;
    }
    
    .flag {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-header-with-image {
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .section-header-with-image .section-image {
        width: 72px;
        height: 72px;
    }
    
    .section-header-with-image .section-image svg {
        width: 100%;
        height: 100%;
    }
    
    .vocab-grid, .phrases-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .practice-container {
        grid-template-columns: 1fr;
    }
    
    .quiz-container {
        padding: 24px;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-progress {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0 10px 8px;
    }
}

/* ========== Pronunciation Comparison Styles ========== */

/* Indicador de escucha con pulso */
.listening-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.listening-dot {
    width: 14px;
    height: 14px;
    background: var(--danger);
    border-radius: 50%;
    animation: listening-pulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes listening-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
    }
}

/* Resultado de comparación */
.comparison-result {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-weight: 600;
}

.comparison-header.score-excellent {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.05));
    color: var(--success);
}

.comparison-header.score-good {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.05));
    color: var(--info);
}

.comparison-header.score-fair {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
    color: var(--secondary-dark);
}

.comparison-header.score-poor {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.05));
    color: var(--danger);
}

.comparison-emoji {
    font-size: 1.5rem;
}

.comparison-score {
    font-size: 1.6rem;
    font-weight: 700;
}

.comparison-label {
    font-size: 1rem;
    opacity: 0.85;
}

.comparison-detail {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.comparison-words {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.comparison-word-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.comparison-word-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 80px;
}

.comparison-word-text {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.comparison-word-text.expected {
    color: var(--primary);
}

.comparison-word-text.heard-match {
    color: var(--success);
}

.comparison-word-text.heard-mismatch {
    color: var(--danger);
}

.btn-small-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.3);
    padding: 0;
    line-height: 1;
}

.btn-small-play:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

/* Barra de puntuación */
.score-bar-container {
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.score-bar.score-excellent {
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.score-bar.score-good {
    background: linear-gradient(90deg, var(--info), var(--primary));
}

.score-bar.score-fair {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

.score-bar.score-poor {
    background: linear-gradient(90deg, var(--danger), #C0392B);
}

/* Estadísticas de prueba */
.test-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.test-stat {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Veredicto de pronunciación (OK/NO OK grande y claro) */
.pronunciation-verdict {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.pronunciation-verdict.verdict-pass {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(39, 174, 96, 0.08));
    color: var(--success);
    border: 2px solid var(--success);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.pronunciation-verdict.verdict-fail {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.08));
    color: var(--danger);
    border: 2px solid var(--danger);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .comparison-header {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .comparison-score {
        font-size: 1.3rem;
    }
    
    .comparison-word-label {
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .comparison-word-text {
        font-size: 1rem;
    }
    
    .pronunciation-verdict {
        font-size: 1.1rem;
        padding: 10px 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .speech-bubble {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .flag {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }
    
    .vocab-grid, .phrases-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }
    
    .practice-card {
        padding: 20px;
    }
    
    .word-display {
        font-size: 1.5rem;
    }
    
    .test-display {
        font-size: 1.8rem;
    }
    
    .word-controls {
        flex-direction: column;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .quiz-container {
        padding: 16px;
    }
    
    .quiz-question {
        font-size: 1.1rem;
    }
    
    .quiz-option {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}