html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.curso-hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.curso-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: url("../img/DH.jpg") no-repeat center center/cover;
}

.curso-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.curso-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.curso-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== SECCIONES ===== */
.section {
    padding: 5rem 2rem;
    animation: fadeIn 1s ease-in;
}

.section h2 {
    text-align: center;
    color: #6a11cb;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.curso-obstaculos {
    background: #fff;
    padding: 6rem 2rem;
    text-align: center;
}

.curso-obstaculos h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #6a11cb;
}

.curso-obstaculos .intro-text {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.obstaculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.obstaculo-item {
    background: linear-gradient(135deg, #fafafa 0%, #f3f3f3 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obstaculo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.obstaculo-item .icon {
    font-size: 2.5rem;
    color: #6a11cb; /* tono del hero */
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.obstaculo-item:hover .icon {
    color: #d58c52; /* color secundario */
}

.obstaculo-item p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}



/* ===== BENEFICIOS ===== */
.lista-beneficios {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.lista-beneficios li {
    background: linear-gradient(90deg, rgba(106,17,203,0.1) 0%, rgba(37,117,252,0.1) 100%);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    transition: background 0.3s ease;
}

.lista-beneficios li:hover {
    background: linear-gradient(90deg, rgba(106,17,203,0.2) 0%, rgba(37,117,252,0.2) 100%);
}

.grid-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.modulo-card {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modulo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.modulo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5d4bb8;
}

.modulo-card ul {
    list-style: disc inside;
    font-size: 1rem;
    line-height: 1.6;
}


/* ===== RESULTADOS ===== */
.grid-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resultado {
    background: #fff;
    border-left: 5px solid #6a11cb;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.resultado:hover {
    transform: translateY(-6px);
    border-left-color: #2575fc;
}

/* ===== INSTRUCTORES ===== */
.grid-instructores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.instructor-card {
    background: linear-gradient(135deg, rgba(106,17,203,0.05) 0%, rgba(37,117,252,0.05) 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* ===== TABLA DE INVERSIÓN ===== */
.tabla-inversion {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    max-width: 800px;
    text-align: left;
}

.tabla-inversion th {
    background: #6a11cb;
    color: #fff;
    padding: 1rem;
    font-weight: 600;
}

.tabla-inversion td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.tabla-inversion tr:nth-child(even) {
    background: rgba(106,17,203,0.05);
}

/* ===== PROMOCIÓN FINAL ===== */
.promocion {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.promocion strong {
    color: #6a11cb;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

