/* INICIO Carrusel + overlay gradiente */

/*.hero-owl.owl-carousel .owl-stage-outer {*/
/*    !*overflow: visible;*!*/
/*}*/

/*.hero-owl.owl-carousel .owl-stage {*/
/*    width: 100% !important;*/
/*}*/

.hero-owl.owl-carousel .item {
    position: relative;
}

.hero-owl.owl-carousel .item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .hero-owl.owl-carousel .item img {
        height: 440px;
    }
}

.hero-owl.owl-carousel .item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; /* importante para no bloquear swipe/click */
    z-index: 1;
}

.hero-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    z-index: 2;
    color: #fff;
}

/* FIN Carrusel + overlay gradiente */

/* INICIO Dots centrados debajo del carrusel (sin superposición) */
.owl-theme .owl-dots {
    position: static;
    display: block;
    text-align: center;
    margin: .75rem 0 0;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 3px 4px;
    /*background: rgba(0,0,0,.3);*/
    display: inline-block;
    border-radius: 50%;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--button-bg-color);
}

.owl-theme .owl-dots .owl-dot:focus span {
    outline: 2px solid #000;
}

/* FIN Dots centrados debajo del carrusel (sin superposición) */


/* INICIO Estilos para HomeCards */
.carousel-section {
    width: 100%;
}

.carousel-section .section-title {
    color: #fff;
    font-weight: 600;
    margin: .5rem 0.3rem;
}

/* Flechas centradas verticalmente y alto contraste */
.owl-theme .owl-nav {
    /*position: relative;*/
}

.owl-theme .owl-nav [class*='owl-'] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--button-bg-color) !important;
    color: var(--button-text-color) !important;
    /*background: #000;*/
    /*color: #fff;*/
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    opacity: 0.95;
}

.owl-theme .owl-nav .owl-prev {
    left: -3.75rem;
}

.owl-theme .owl-nav .owl-next {
    right: -3.75rem;
}

.owl-theme .owl-nav [class*='owl-']:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.owl-theme .owl-nav [class*='owl-'][aria-disabled="true"] {
    opacity: .4;
    pointer-events: none;
}

/* Cards */
.card-course {
    position: relative;
    background: #23272b;
    color: #e9ecef;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    height: 250px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.media-wrap {
    position: relative;
    height: 250px;
}

.card-course img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.badge-inscrito {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #000;
    color: #fff;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: .25rem;
}

.title-overlay {
    position: absolute;
    left: .5rem;
    top: 2.5rem;
    right: .5rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    background: rgba(0, 0, 0, .2);
    border-radius: 4px;
    padding: 2px;
}

.details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 115px;
    background: #1f2327;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
    padding: 0 .75rem;
}


.card-course:hover, .card-course:focus-within {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.card-course:hover .details, .card-course:focus-within .details {
    opacity: 1;
    transform: translateY(0);
}

.details p {
    margin: 0 0 .5rem;
    color: #ced4da;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: .5rem;
}

.btn-content {
    background: #25a768;
    color: #fff;
    border: none;
    padding: .35rem .6rem;
    border-radius: 999px;
}

.btn-plus {
    background: #212529;
    color: #fff;
    border: none;
    padding: .35rem .6rem;
    border-radius: 999px;
}

.card-course:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* FIN Estilos para HomeCards */

