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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Navegación */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #667eea;
    color: white;
}

/* Contenido Principal */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

.section {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sección Inicio */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Sección Juegos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.game-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.game-button:hover {
    transform: scale(1.05);
}

/* Sección Progreso */
.progress-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.progress-history {
    margin-top: 2rem;
}

.progress-history h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.history-list {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item.passed {
    border-left: 4px solid #2ecc71;
}

.history-item.failed {
    border-left: 4px solid #e74c3c;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Sección Profesores */
.teachers-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.teacher-info {
    margin-bottom: 3rem;
}

.teacher-info h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.benefits-list li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
}

.pricing h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-card h4 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #666;
}

.pricing-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.pricing-button:hover {
    transform: scale(1.05);
}

.pricing-button.featured {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Sección Guía */
.guide-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.guide-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-button {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.filter-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f0f0;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.guide-card .emoji {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.guide-card .english {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.guide-card .spanish {
    font-size: 1.1rem;
    color: #666;
}

.guide-card .category {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    text-transform: capitalize;
}

.speak-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speak-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.speak-button:active {
    transform: scale(0.95);
}

/* Sección Contacto */
.contact-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-text h4 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 0;
}

.contact-form h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #667eea;
    font-size: 2rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #e74c3c;
}

.modal-body {
    min-height: 400px;
}

/* Modal de Resultados */
.result-modal {
    text-align: center;
    max-width: 500px;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.result-modal h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-modal p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.result-score {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.result-score span {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.result-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.result-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.result-button:hover {
    transform: scale(1.05);
}

.result-button.secondary {
    background: #95a5a6;
}

/* Estilos para respuestas incorrectas */
.wrong-answers-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.wrong-answers-section h3 {
    color: #856404;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.wrong-answers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wrong-answer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    gap: 1rem;
}

.wrong-emoji {
    font-size: 1.5rem;
}

.wrong-spanish {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.wrong-english {
    flex: 1;
    font-weight: bold;
    color: #667eea;
}

.wrong-speak-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrong-speak-button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.wrong-speak-button:active {
    transform: scale(0.95);
}

/* Estilos del Juego Memorama */
.memorama-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.memorama-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.memorama-card:hover {
    transform: scale(1.05);
}

.memorama-card.flipped {
    background: white;
    border: 3px solid #667eea;
}

.memorama-card.matched {
    background: #2ecc71;
    opacity: 0.5;
    cursor: default;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.game-info p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

/* Estilos del Quiz */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-question h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-image {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quiz-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.quiz-option:hover {
    transform: scale(1.05);
}

.quiz-option.correct {
    background: #2ecc71;
}

.quiz-option.incorrect {
    background: #e74c3c;
}

/* Estilos del Arrastrar y Soltar */
.drag-container {
    max-width: 700px;
    margin: 0 auto;
}

.drag-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.drag-image {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px dashed #667eea;
}

.drag-image .emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.drag-image .drop-zone {
    min-height: 50px;
    background: white;
    border: 2px dashed #999;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem;
}

.drag-words {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.drag-word {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: grab;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.drag-word:hover {
    transform: scale(1.1);
}

.drag-word.dragging {
    opacity: 0.5;
}

.drag-word.placed {
    background: #2ecc71;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .memorama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .drag-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
