/* Estilos Generales */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #4CAF50;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --gray-color: #777;
    --light-gray: #eee;
    --white: #fff;
    --black: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    padding-bottom: 60px;
}

/* Navegación */
#navbar-pc {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 50px;
    margin-right: 20px;
}

.menu {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.menu:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Main Content */
main {
    padding: 20px 5%;
}

.box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 30px;
}

.subtitle {
    color: var(--gray-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.features {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Chat Section */
.chat-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 30px 0;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--white);
}

.bot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.chat-messages {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
    background: var(--light-color);
}

.chat-input {
    display: flex;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

.chat-input button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Study Levels */
.study-levels {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.level-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.level-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.level-card ul {
    list-style: none;
}

.level-card li {
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.level-card li:hover {
    color: var(--primary-color);
}

/* Video Resources */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.video-card p {
    padding: 15px;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 0 15px;
    margin-top: 15px;
}

.project-card p {
    padding: 0 15px;
    margin: 10px 0;
    color: var(--gray-color);
}

.project-author {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.8rem;
    color: var(--gray-color);
    font-style: italic;
}

.project-highlight {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: center;
}

.highlight-content img {
    width: 300px;
    border-radius: 10px;
    object-fit: cover;
}

/* Teachers Section */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.teacher-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 5px solid var(--light-gray);
}

.teacher-subject {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.teacher-bio {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.teacher-testimonials {
    margin: 40px 0;
}

.testimonial {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 5% 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Mobile Navigation */
#navbar-movil {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
    justify-content: space-around;
}

#navbar-movil i {
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    padding: 10px;
}

/* Active Section */
.active-section {
    display: block !important;
}

section:not(.active-section) {
    display: none;
}

/* Buttons */
.cta-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #navbar-pc {
        display: none;
    }
    
    #navbar-movil {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .features, .study-levels {
        flex-direction: column;
    }
    
    .highlight-content {
        flex-direction: column;
    }
    
    .highlight-content img {
        width: 100%;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}