/* Variables globales */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a45b1;
    --accent-color: #ff6584;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --light-bg: #f9f9f9;
    --dark-bg: #2d2b55;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-quiz {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-quiz:hover {
    background-color: #e55a77;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Temas Section */
.temas {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.temas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tema-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tema-img {
    height: 200px;
    overflow: hidden;
}

.tema-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tema-card:hover .tema-img img {
    transform: scale(1.1);
}

.tema-content {
    padding: 20px;
}

.tema-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tema-content p {
    color: var(--light-text);
}

/* Quizzes Section */
.quizzes {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.quiz-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.quiz-img {
    height: 180px;
    overflow: hidden;
}

.quiz-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.quiz-card:hover .quiz-img img {
    transform: scale(1.1);
}

.quiz-content {
    padding: 20px;
}

.quiz-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.quiz-content p {
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Beneficios Section */
.beneficios {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.beneficio-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.beneficio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.beneficio-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Testimonios Section */
.testimonios {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonios-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.testimonios-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonio-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonio-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonio-autor {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Quiz Modal */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.quiz-modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

#quizTitle {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.question {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.option.correct {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
}

.option.incorrect {
    background-color: #f44336;
    color: white;
    border-color: #f44336;
}

.result {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f0f0f0;
    display: none;
}






/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .temas-grid, .quizzes-grid, .beneficios-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 15px;
    }
    
    .footer-links h3::after, .footer-social h3::after {
        margin: 10px auto 0;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .temas-grid, .quizzes-grid, .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 90%;
    }
}