.cursos {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
}

.cursos h1,
.cursos h2 {
    text-align: center;
    margin-bottom: 16px;
    color: #b88258;
    letter-spacing: 1.5px;
    font-size: 2rem;
}

.cursos h2 {
    font-size: 1.4rem;
    margin-top: 48px;
    margin-bottom: 24px;
    color: #a76a4b;
}

.intro {
    text-align: center;
    font-size: 1.15rem;
    color: #543524;
    margin: 0 auto 28px auto;
    max-width: 720px;
    line-height: 1.6;
}

.cursos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 36px;
    width: 100%;
}

.curso-card {
    background: #fff7f2;
    border-radius: 16px;
    box-shadow: 0 2px 16px #ffe1cf70;
    padding: 26px 18px 18px 18px;
    max-width: 310px;
    flex: 1 0 240px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    transition: box-shadow .18s, transform .17s;
    border: 2px solid #fbeee2;
}

.curso-card:hover {
    box-shadow: 0 6px 24px #ffccab80;
    transform: translateY(-6px) scale(1.015);
}

.curso-card h2,
.curso-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #a76a4b;
    letter-spacing: 1px;
    text-align: center;
}

.curso-card p {
    font-size: 1.05rem;
    color: #543524;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.5;
}

.curso-card ul {
    font-size: 0.96rem;
    margin-bottom: 10px;
    color: #6e3d29;
    padding-left: 18px;
    text-align: left;
}

.curso-card li {
    margin-bottom: 5px;
}

/* ---------- BOTONES (UNIFICADOS) ---------- */
.botones-curso {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Base compartida por ambos botones */
.leer-mas,
.btn-video {
    background: #ffd7b5;
    color: #b88258;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 1px 5px #ffe1cf70;
    transition: background .2s, color .2s, transform .1s;
    display: inline-flex;            /* asegura misma altura */
    align-items: center;             /* centra el ícono con el texto */
    justify-content: center;
    gap: 6px;                        /* espacio si usás ícono 🎥 */
    min-width: 122px;                /* ancho mínimo igual para los dos */
    line-height: 1;                  /* altura de línea consistente */
}

.leer-mas:hover,
.btn-video:hover {
    background: #f38c5a;
    color: #fff;
    transform: scale(1.03);
}

/* ---------- Detalle ---------- */
.detalle-curso {
    max-width: 700px;
    margin: 25px auto 15px auto;
    background: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 1.07rem;
    color: #91543c;
    box-shadow: 0 2px 9px #ffe1cf66;
    text-align: center;
    border: 2px solid #fbeee2;
}

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
    .cursos-grid {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .curso-card {
        max-width: 95vw;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .cursos {
        padding: 0 7px 20px 7px;
    }

    .curso-card {
        padding: 18px 7px 14px 7px;
    }

    .detalle-curso {
        padding: 12px 6px;
    }
}
