/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    width: 50px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.btn-contact {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #0056b3;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #333;
    display: block;
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section Styles */
.hero {
    background-image: url('../Recursos/portada1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0;
    text-align: left;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 51, 0.7); /* Dark blue overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 500px;
}

.stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-item h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1em;
    font-weight: 400;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero-content {
        text-align: center;
    }

    .stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }
}
/* Categories Section Styles */
.categories {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.categories h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.categories p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 200px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1.2em;
    color: #333;
    padding: 15px 0;
}

.btn-view-all {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-view-all:hover {
    background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .categories-container {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        width: 80%;
        max-width: 300px;
    }
}
/* Gallery Section Styles */
.gallery {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.gallery h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.gallery p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 1em;
    font-weight: 300;
}
/* Enrollment Process Section Styles */
.enrollment-process {
    padding: 60px 20px;
    background-color: #e7f3ff; /* Light blue background */
    text-align: center;
}

.enrollment-process h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.enrollment-process p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-icon {
    margin-bottom: 15px;
}

.step-icon img {
    width: 40px;
    height: 40px;
    color: #007bff; /* Primary blue color */
}

.process-step h3 {
    font-size: 1.2em;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        width: 80%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}
/* FAQ Section Styles */
.faq {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.faq h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.faq-item:hover h3 {
    color: #0056b3;
}

.faq-item p {
    font-size: 1em;
    color: #555;
    margin-top: 10px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s, opacity 0.3s;
    opacity: 0;
}

.faq-item.active p {
    height: auto;
    opacity: 1;
    margin-top: 10px;
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
/* Enroll Courses Section Styles */
.enroll-courses {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.enroll-content {
    display: flex;
    flex-wrap: wrap;
    background-color: #002147; /* Dark blue background */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.enroll-text {
    padding: 40px;
    flex: 1;
    color: #fff;
}

.enroll-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.enroll-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #c2c2c2;
}

.enroll-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 10px 20px;
    background-color: #fff;
    color: #002147;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: #e6e6e6;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: transparent;
    color: #c2c2c2;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #002147;
}

.enroll-image {
    flex: 1;
    overflow: hidden;
}

.enroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 16px 16px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .enroll-content {
        flex-direction: column;
    }

    .enroll-image img {
        border-radius: 0 0 16px 16px;
    }
}

/* Cursos Recientes Section Styles */
.recent-courses {
    padding: 50px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.recent-courses h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.courses-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.course-card {
    background-color: 	#87CEEB;
    color: white;
    width: 300px;
    margin: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.course-info p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-rating {
    background-color: #ffdd57;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #333;
}

.course-tag {
    background-color: #ff5733;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: white;
}

/* CSS for the styled button */
#styledButton {
    background-color: #1c3a5b; /* Dark blue background */
    color: #fff; /* White text color */
    padding: 10px 20px; /* Padding for the button */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 1em; /* Font size */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Hover effect */
#styledButton:hover {
    background-color: #2a5c84; /* Lighter blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Active effect (when the button is clicked) */
#styledButton:active {
    background-color: #15334a; /* Darker blue when active */
    transform: translateY(2px); /* Push down effect */
}

