/*css:style.css*/
/* --- Variables de Color y Estilos Base --- */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

.light-theme {
    --primary-color: #309133;
    --background-color: #EDEDED;
    --text-color: #2D2D30;
    --card-bg-color: #ffffff;
    --border-color: #dcdcdc;
}

.dark-theme {
    --primary-color: #8BC34A;
    --background-color: #2D2D30;
    --text-color: #EDEDED;
    --card-bg-color: #3a3a3e;
    --border-color: #4a4a4e;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

section {
    padding: 60px 0;
}

.accent-color {
    color: var(--primary-color);
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1200x600/2D2D30/EDEDED?text=Estudiantes+Exitosos') no-repeat center center/cover;
    color: #EDEDED;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-secondary);
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #2a7a2d; /* Darken for light theme */
    transform: translateY(-2px);
}
.dark-theme.cta-button:hover {
    background-color: #a1d46a; /* Lighten for dark theme */
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-card img {
    margin-bottom: 1rem;
    border-radius: 50%;
}

/* --- Courses Section --- */
.courses {
    background-color: var(--card-bg-color);
    transition: background-color 0.3s;
}
.dark-theme.courses {
    background-color: var(--background-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.course-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.dark-theme.course-card {
    background-color: var(--card-bg-color);
}

.course-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.course-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.course-card ul {
    margin: 1.5rem 0;
    flex-grow: 1;
}

.course-card ul li {
    margin-bottom: 0.8rem;
}

.cta-button-secondary {
    display: block;
    text-align: center;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.course-card.cta-button {
    width: 100%;
    text-align: center;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    margin-bottom: 0.2rem;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #777;
}
.dark-theme.testimonial-card span {
    color: #bbb;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--card-bg-color);
    transition: background-color 0.3s;
}
.dark-theme.faq {
    background-color: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-family: var(--font-secondary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 20px;
}

.faq-item.active.faq-answer {
    max-height: 200px; /* Adjust as needed */
}

.faq-item.active.faq-icon {
    transform: rotate(45deg);
}

/* --- Footer --- */
.footer {
    background-color: var(--card-bg-color);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}
.dark-theme.footer {
    background-color: #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about,.footer-contact,.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social a {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
   .hero h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }

   .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg-color);
        text-align: center;
        padding: 20px 0;
    }

   .nav-links.active {
        display: flex;
    }

   .nav-links li {
        margin-bottom: 15px;
    }

   .menu-icon {
        display: flex;
    }
    
   .course-card.popular {
        transform: scale(1);
    }

   .footer-content {
        flex-direction: column;
        text-align: center;
    }
}