* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #17365d;
    background: #ffffff;
}

a {
    text-decoration: none;
}

.cursos-banner {
    background: #075da5;
    color: #ffffff;
    padding: 34px 5%;
}

.cursos-banner h1 {
    max-width: 1180px;
    margin: auto;
    font-size: 38px;
}

.cursos-lineas {
    max-width: 1180px;
    margin: 12px auto 0;
}

.cursos-lineas span {
    display: block;
    height: 2px;
    background: #ffffff;
    margin-top: 7px;
}

.cursos-lineas span:first-child {
    width: 190px;
}

.cursos-lineas span:last-child {
    width: 120px;
}

.curso-contenedor {
    width: 90%;
    max-width: 1180px;
    margin: 30px auto 50px;
}

.migas {
    font-size: 14px;
    margin-bottom: 28px;
    color: #52687f;
}

.migas a {
    color: #075da5;
}

.volver {
    display: inline-block;
    color: #075da5;
    font-weight: bold;
    margin-bottom: 15px;
}

.curso-titulo {
    margin: 0 0 25px;
    color: #073c79;
    font-size: 38px;
}

.curso-superior {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.curso-info-con-imagen {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 28px;
}

.curso-imagen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.datos {
    display: grid;
    gap: 17px;
}

.dato strong {
    display: block;
    color: #073c79;
    margin-bottom: 4px;
}

.dato span {
    color: #344e68;
}

.panel-inversion {
    background: #eef7fc;
    padding: 25px;
    border-radius: 9px;
}

.panel-inversion h2 {
    margin: 0 0 12px;
    color: #073c79;
    font-size: 20px;
}

.precio {
    color: #073c79;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 3px;
}

.tipo-pago {
    margin-bottom: 22px;
}

.boton-publico {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 15px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #075da5;
    color: #075da5;
    background: #ffffff;
}

.boton-publico.primario {
    background: #075da5;
    color: #ffffff;
}

.compartir {
    border-top: 1px solid #c9dce9;
    margin-top: 24px;
    padding-top: 20px;
}

.compartir h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.botones-compartir {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.botones-compartir a,
.botones-compartir button {
    border: 1px solid #b8cddd;
    background: #ffffff;
    color: #075da5;
    padding: 9px 11px;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
}

.bloques {
    margin-top: 28px;
    max-width: 780px;
}

.bloque {
    background: #f0f7fb;
    padding: 22px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bloque h2 {
    margin: 0 0 12px;
    color: #073c79;
    font-size: 20px;
}

.bloque p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
}

.contacto {
    margin-top: 22px;
    padding: 20px;
    border-top: 1px solid #c9dce9;
}

.contacto strong {
    display: block;
    color: #073c79;
    margin-bottom: 5px;
}

.volver-final {
    display: inline-block;
    margin-top: 20px;
    color: #075da5;
    font-weight: bold;
}

.cursos-footer-temporal {
    background: #07579a;
    color: #ffffff;
    padding: 22px 5%;
    font-size: 13px;
}

.cursos-footer-temporal div {
    max-width: 1180px;
    margin: auto;
}

@media (max-width: 900px) {

    .curso-superior {
        grid-template-columns: 1fr;
    }

    .curso-info-con-imagen {
        grid-template-columns: 1fr;
    }

    .curso-imagen {
        max-width: 500px;
    }

    .bloques {
        max-width: none;
    }
}

@media (max-width: 600px) {

    .curso-contenedor {
        width: 92%;
    }

    .curso-titulo {
        font-size: 30px;
    }

    .cursos-banner h1 {
        font-size: 31px;
    }
}

/* =====================================================
   LISTADO PÚBLICO DE CURSOS
===================================================== */

.listado-contenedor {
    width: 90%;
    max-width: 1180px;
    margin: 30px auto 50px;
}

.filtros-cursos {
    display: grid;
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        auto;
    gap: 15px;
    align-items: end;
    margin: 25px 0;
}

.filtros-cursos label {
    display: block;
    font-weight: bold;
    color: #073c79;
    margin-bottom: 6px;
    font-size: 14px;
}

.filtros-cursos input,
.filtros-cursos select {
    width: 100%;
    height: 43px;
    padding: 9px 11px;
    border: 1px solid #bacbd9;
    border-radius: 5px;
    background: #ffffff;
    color: #344e68;
}

.acciones-filtro {
    display: flex;
    gap: 8px;
}

.buscar-boton,
.limpiar-boton {
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.buscar-boton {
    border: 1px solid #075da5;
    background: #075da5;
    color: #ffffff;
}

.limpiar-boton {
    border: 1px solid #075da5;
    color: #075da5;
    background: #ffffff;
}

.resultado-cursos {
    margin: 22px 0 10px;
    color: #36526e;
    font-size: 14px;
    font-weight: bold;
}

.tabla-cursos-contenedor {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe6ee;
    border-radius: 8px;
    background: #ffffff;
}

.tabla-cursos {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.tabla-cursos th {
    background: #eaf4fb;
    color: #17365d;
    text-align: left;
    padding: 13px 12px;
    font-size: 14px;
}

.tabla-cursos td {
    padding: 13px 12px;
    border-top: 1px solid #e1e8ee;
    vertical-align: middle;
    color: #344e68;
    font-size: 14px;
}

.tabla-nombre-curso a {
    color: #075da5;
    font-weight: bold;
}

.modalidad-etiqueta {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.modalidad-presencial {
    background: #d9edff;
    color: #075da5;
}

.modalidad-virtual {
    background: #dff3dd;
    color: #28723a;
}

.tabla-accion {
    text-align: right;
}

.ver-curso-boton {
    display: inline-block;
    background: #075da5;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    padding: 9px 13px;
    white-space: nowrap;
}

.paginacion-cursos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
}

.paginacion-cursos a {
    display: inline-block;
    min-width: 38px;
    padding: 9px 11px;
    border: 1px solid #c9d7e2;
    border-radius: 5px;
    text-align: center;
    color: #075da5;
    background: #ffffff;
}

.paginacion-cursos a.activo {
    background: #075da5;
    color: #ffffff;
    border-color: #075da5;
}

.sin-cursos {
    margin: 25px 0;
    padding: 35px;
    background: #eff7fc;
    border-radius: 8px;
    text-align: center;
}

.sin-cursos strong {
    display: block;
    color: #073c79;
    font-size: 20px;
}

.sin-cursos p {
    color: #52687f;
    margin-bottom: 20px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .filtros-cursos {
        grid-template-columns: 1fr 1fr;
    }

    .campo-buscar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {

    .listado-contenedor {
        width: 92%;
    }

    .filtros-cursos {
        grid-template-columns: 1fr;
    }

    .campo-buscar {
        grid-column: auto;
    }

    .acciones-filtro {
        flex-direction: column;
    }

    .buscar-boton,
    .limpiar-boton {
        width: 100%;
    }

    .tabla-cursos {
        min-width: 0;
    }

    .tabla-cursos thead {
        display: none;
    }

    .tabla-cursos,
    .tabla-cursos tbody,
    .tabla-cursos tr,
    .tabla-cursos td {
        display: block;
        width: 100%;
    }

    .tabla-cursos tr {
        padding: 15px;
        border-bottom: 1px solid #dbe6ee;
    }

    .tabla-cursos tr:last-child {
        border-bottom: 0;
    }

    .tabla-cursos td {
        border: 0;
        padding: 6px 0;
    }

    .tabla-cursos td[data-label]:before {
        content: attr(data-label);
        display: block;
        color: #17365d;
        font-weight: bold;
        font-size: 12px;
        margin-bottom: 2px;
    }

    .tabla-accion {
        text-align: left;
        padding-top: 12px !important;
    }

    .ver-curso-boton {
        width: 100%;
        text-align: center;
    }
}

.bloque-pago {
    margin-top: 25px;
}

.aviso-pago {
    background: #fff5df;
    border-left: 4px solid #d99a17;
    padding: 14px 16px;
    margin: 15px 0 20px;
    line-height: 1.5;
    border-radius: 4px;
}

.cuentas-bancarias {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.cuenta-bancaria {
    background: #f5f7f9;
    border: 1px solid #dde3e9;
    border-radius: 7px;
    padding: 18px;
}

.cuenta-bancaria h3 {
    color: #073c79;
    margin: 0 0 15px;
    font-size: 18px;
}

.cuenta-bancaria p {
    margin: 8px 0;
    line-height: 1.45;
}

.cuenta-bancaria strong {
    color: #4a5662;
}

@media (max-width: 700px) {

    .cuentas-bancarias {
        grid-template-columns: 1fr;
    }
}