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

body {
    font-family: 'Montserrat', sans-serif;
    color: #3b3d42;
    line-height: 1.6;
    background: #f5f5f5;
}

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

header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 3px solid #003777;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    height: 70px;
    width: auto;
}

header nav {
    flex: 1;
    text-align: center;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    color: #003777;
    font-size: 28px;
    font-weight: 700;
}

.btn-ingresar {
    background: #0ea0ef;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-ingresar:hover {
    background: #003777;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-ingresar span {
    font-size: 18px;
}

.slider-section {
    position: relative;
    background: white;
    margin-bottom: 40px;
}

.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    background: rgba(0, 55, 119, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

.slide-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 55, 119, 0.7);
    color: white;
    border: none;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #0ea0ef;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

.courses-section {
    padding: 60px 0;
}

.courses-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    color: #003777;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-content {
    padding: 20px;
}

.course-card h3 {
    font-family: 'Roboto', sans-serif;
    color: #003777;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.course-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a1a2a4;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #003777;
}

#modalImage {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modalTitle {
    font-family: 'Roboto', sans-serif;
    color: #003777;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

#modalDescription {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

#modalDetails {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#modalDetails p {
    margin: 5px 0;
    color: #666;
}

.btn-primary {
    background: #0ea0ef;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background: #003777;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #003777;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea0ef;
}

footer {
    background: #003777;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        height: 50px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .btn-ingresar {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}