/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    color: #1a365d;
}

h2 {
    font-size: 2.2rem;
    color: #1a365d;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.4rem;
    color: #2b4c7e;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #2b4c7e;
    transition: all 0.3s ease;
}

a:hover {
    color: #3b6cb7;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    background-color: #e9ecef;
    color: #333;
}

.primary-btn {
    background-color: #e57373;
    color: white;
}

.primary-btn:hover {
    background-color: #ef5350;
    color: white;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #333;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin-left: 25px;
}

.menu ul li a {
    color: #333;
    font-weight: 500;
}

.menu ul li a:hover {
    color: #e57373;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: #f5f7fa;
    padding-top: 120px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: #1a365d;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #4a5568;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* ===== QUIENES SOMOS SECTION ===== */
.quienes-somos {
    background-color: #e9f2ec;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-height: 60px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* ===== CURSOS SECTION ===== */
.courses {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.course {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course:hover .course-image img {
    transform: scale(1.05);
}

.course-info {
    display: flex;
    padding: 15px;
    background-color: #f8f9fa;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-category {
    background-color: #e57373;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.course-level {
    color: #4a5568;
}

.course h3 {
    padding: 0 15px;
    margin-top: 15px;
}

.course p {
    padding: 0 15px;
    font-size: 0.9rem;
    color: #4a5568;
}

.course-btn {
    display: block;
    margin: 15px;
    background-color: #2b4c7e;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.course-btn:hover {
    background-color: #3b6cb7;
    color: white;
}

/* ===== VENTAJAS SECTION ===== */
.ventajas {
    background-color: #f5f7fa;
}

.benefits {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.benefit {
    flex: 0 0 calc(25% - 20px);
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-height: 50px;
}

.benefit h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.benefit p {
    font-size: 0.9rem;
    color: #4a5568;
}

/* ===== TESTIMONIOS SECTION ===== */
.testimonials {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e57373;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial h3 {
    margin-bottom: 5px;
}

.testimonial-role {
    color: #e57373;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #4a5568;
}

/* ===== CONTACTO SECTION ===== */
.contacto {
    background-color: #e9f2ec;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-form {
    flex: 0 0 55%;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 0 0 40%;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.info-item {
    margin-bottom: 25px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.info-icon img {
    max-width: 20px;
    max-height: 20px;
}

.social-media {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.social-icon img {
    max-width: 20px;
    max-height: 20px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a365d;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #e0e0e0;
}

.footer-section ul li a:hover {
    color: #e57373;
}

.footer-form {
    display: flex;
    margin-top: 20px;
}

.footer-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    background-color: #e57373;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-buttons {
    display: flex;
}

.cookie-buttons .btn {
    margin-left: 10px;
}

/* ===== MODAL WINDOW ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    z-index: 2001;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #1a365d;
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-content .btn {
    padding: 12px 20px;
    width: 100%;
    max-width: 350px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .feature {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .course {
        flex: 0 0 calc(50% - 15px);
    }
    
    .benefit {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form,
    .contact-info {
        flex: 0 0 100%;
    }
    
    .contact-info {
        margin-top: 30px;
    }
    
    .footer-section {
        flex: 0 0 calc(50% - 15px);
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .menu ul li {
        margin: 0 0 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .feature,
    .course,
    .benefit,
    .testimonial {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .footer-section {
        flex: 0 0 100%;
    }
    
    .footer-form {
        flex-direction: column;
    }
    
    .footer-form input {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    
    .footer-form .btn {
        border-radius: 5px;
    }
}