/* Variables CSS */
:root {
    --primary: rgb(255, 158, 0);
    --secondary: rgb(0, 128, 0);
    --accent: #bcfea7;
    --dark: #457b9d;
    --light: #d0d0d0;
    --text: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --blue: rgb(0, 128, 0);;
   
    --white: #FFFFFF;
    --light-blue: #E6F0FF;
    --light-red: #FFE6EA;
    --gray: #F5F5F5;
    --dark-gray: #333333;
}


/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(to right, var(--blue) 0%, var(--blue) 40%, var(--red) 60%, var(--red) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-left: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--blue);
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-btn {
    background-color: var(--white);
    color: var(--blue);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* Contenido principal */
.courses-page {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.courses-layout {
    display: flex;
    gap: 30px;
}

/* Índice lateral */
.courses-index {
    flex: 0 0 250px;
    background-color: var(--gray);
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.courses-index h3 {
    color: var(--blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
}

.index-list {
    list-style: none;
}

.index-list li {
    margin-bottom: 10px;
}

.index-list a {
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.index-list a:hover,
.index-list a.active {
    background-color: var(--blue);
    color: var(--white);
}

/* Contenido de cursos */
.courses-content {
    flex: 1;
}

.course-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.course-section:last-child {
    border-bottom: none;
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, var(--blue), var(--red));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
}

.course-title {
    font-size: 2rem;
    color: var(--blue);
}

.course-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.course-details {
    background-color: var(--gray);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background-color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 10px;
}

.modules-list {
    list-style: none;
    margin-top: 20px;
}

.modules-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.modules-list li:before {
    content: '✓';
    color: var(--blue);
    font-weight: bold;
    margin-right: 10px;
}

.modules-list li:last-child {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--blue), var(--red));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--blue) 0%, var(--blue) 40%, var(--red) 60%, var(--red) 100%);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--white);
    bottom: 0;
    left: 0;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .courses-layout {
        flex-direction: column;
    }

    .courses-index {
        position: static;
        margin-bottom: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }
}