
.courses-section {
    padding: 50px 0;
    background: #0a0a0a;
}
.courses-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2, 1fr));
    gap: 20px;
}
.course-card {
    position: relative;
    color: #fff;    
    overflow: hidden;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
}
/* Replace URLs with your actual images */

.course-card--chatbots {
    background-image: url('imagen-chatbots.jpg');
}
.course-card--logistica {
    background-image: url('imagen-logistica.jpg');
}
.course-card__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
}
.course-card__content {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.titulocurso {
    position: relative;
    width: 200%;
    height: 180px;               /* ajusta según tu diseño */
    background: #000;           /* fondo negro */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    overflow: hidden;
}

.triangulo__titulo {
    position: absolute;          /* para poder posicionarlo libremente */
    top: 20px;                   /* separación desde arriba */
    left: 20px;                  /* separación desde la izquierda */
    margin: 0;
    color: white;
    font-size: 20px;
    line-height: 1.2;
    max-width: 50%;
    text-transform: uppercase;
    font-weight: bold;
}


.subtitulo {
    height: 55px;
    overflow: hidden;
}

.course-card__tagline {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 60%;
    text-align: right;
    max-width: 80%;
    float: right;    
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.card_titulo {
    max-width: 80%;
    float: right;
    color: #fff;
    text-align: right;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
}

.items_card {    
    float: right;
    color: #fff;
    text-align: right;
    direction: rtl;
    margin-top: 10px;
    list-style-position: inside;
    list-style-type: disc;
    width: 100%;
    padding-left: 40px;
    height: 130px;
    overflow: hidden;
}

.custom-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-bullets li {
    position: relative;
    padding-right: 30px;   /* espacio para el círculo a la derecha */
    margin-bottom: 12px;
    line-height: 1;
    font-size: 12px;
}

.custom-bullets li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6600;
    border-radius: 50%;
}

.course-card__what-you-learn {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.course-card__what-you-learn li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.course-card__what-you-learn li:before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #1e90ff;
}
.course-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.course-card__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.course-card__info .label {
    background: #1e90ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
}
.course-card__info .duration {
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
}
.course-card__schedule {
    font-size: 0.85em;
    opacity: 0.9;
}
.course-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff6600;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
.course-card__btn svg {
    margin-left: 8px;
    width: 12px;
    height: 12px;
    fill: currentColor;
}













/* CSS */
:root {
    --orange: #ff6600;
    --black:  #000;
    --white:  #fff;
    --font:   'Arial Black', sans-serif;
}

.course-banner {
    display: inline-block;
    text-align: center;
    font-family: var(--font);
    color: var(--white);
}

/* Fila superior: modalidad + duración */
.course-banner__top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Elementos comunes */
.banner-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 2px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}

/* Modalidad: fondo naranja, texto e icono blancos */
.banner-item--modality {    
    color: var(--white);
}

.banner-item--modality svg {
    margin-right: 6px;
    fill: var(--white);
}

/* Duración: fondo negro con borde naranja */
.banner-item--duration {
    background-color: var(--black);    
}

/* Dentro de duración: etiqueta en blanco, valor en naranja */
.banner-item--duration .label {
    margin-right: 6px;
    color: var(--white);
}


/* Fila inferior: fechas y horario */
.course-banner__bottom p {
    margin: 2px 0;
    font-size: 0.9rem;
    line-height: 1.2;
}


.cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 10px;
    border-radius: 50px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.3);
    transition: transform .1s ease-in-out;
    margin-top: 20px;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn__text {
    line-height: 1;
}

.cta-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-left: 1em;
}