* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #F5F5F5;
    color: #0f172a;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background: white;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: gray;
    text-decoration: none;
    font-weight: 500;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, #277804, #0E2B01);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

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

.btn {
    background: #ffffff;
    color: #1e3a8a;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: #0f172a;
    color: #ffffff;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.bg-light {
    background-color: #f1f5f9;
}

/* Valores */
.valores {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.valores div {
    flex: 1;
    min-width: 250px;
}

/* Cursos */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Formulario */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

textarea {
    resize: none;
    height: 120px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media(max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .valores {
        flex-direction: column;
    }
}
