@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&display=swap');

/* --- CONTENEDOR GENERAL BANNER --- */
#custom-banner-slideshow-container {
    overflow: hidden !important;
    width: 100%;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}

/* --- TÍTULO PRINCIPAL --- */
.banner-titulo {
    color: #ffffff !important;
    font-size: clamp(36px, 5vw, 68px) !important;
    /*font-weight: 700 !important;*/
    line-height: 1.0 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.85), 0 2px 5px rgba(0, 0, 0, 0.9) !important;
}

/* --- CAJA Y SANGRADO DE TEXTO SECUNDARIO --- */
.banner-caja-texto {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    max-width: 650px !important;
    padding: 20px 25px 20px 15px !important;
    box-sizing: border-box !important;
}

.banner-caja-fondo {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: calc((100% - 100vw) / 2) !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.26) !important;
    z-index: 1 !important;
}

.banner-caja-texto::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    right: -12px !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 0 0 35px 12px !important;
    border-color: transparent transparent #000000 transparent !important;
    z-index: 2 !important;
}

.banner-caja-contenido {
    position: relative !important;
    z-index: 3 !important;
}

.banner-texto-secundario {
    font-family: Arial, sans-serif !important;
    color: #ffffff !important;
    font-size: clamp(13px, 1.8vw, 18px) !important;
    line-height: 1.45 !important;
}

/* --- NAVEGACIÓN CÁPSULA (DESKTOP) --- */
div#custom-banner-slideshow-container a.nav-capsule-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 60px !important;
    padding: 0 !important;
    margin: 0 20px !important;
    overflow: hidden !important;
    z-index: 99 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

div#custom-banner-slideshow-container a.nav-capsule-btn:hover {
    width: 130px !important;
}

div#custom-banner-slideshow-container .capsule-bg-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
    transition: filter 0.3s ease !important;
}

div#custom-banner-slideshow-container .capsule-bg-thumb::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    transition: background-color 0.3s ease !important;
}

div#custom-banner-slideshow-container a.nav-capsule-btn:hover .capsule-bg-thumb::before {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

div#custom-banner-slideshow-container .capsule-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}

div#custom-banner-slideshow-container .nav-capsule-prev .capsule-content {
    padding-left: 27px !important;
    justify-content: flex-start !important;
}

div#custom-banner-slideshow-container .nav-capsule-next .capsule-content {
    padding-right: 27px !important;
    justify-content: flex-end !important;
}

div#custom-banner-slideshow-container .capsule-content svg {
    flex-shrink: 0 !important;
    display: block !important;
    width: 14px !important;
    height: 20px !important;
}

div#custom-banner-slideshow-container .capsule-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

div#custom-banner-slideshow-container a.nav-capsule-prev:hover .capsule-text {
    opacity: 1 !important;
    max-width: 60px !important;
    margin-left: 10px !important;
}

div#custom-banner-slideshow-container a.nav-capsule-next:hover .capsule-text {
    opacity: 1 !important;
    max-width: 60px !important;
    margin-right: 10px !important;
}

/* --- SECCIÓN GRILLA DE CURSOS --- */
.section-grilla-cursos .grilla-container {
    max-width: 900px;
    margin: 80px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.section-grilla-cursos .grilla-container,
.section-grilla-cursos .grilla-container>div {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

.section-grilla-cursos .grilla-bloque-solido {
    background-color: #43C0C7 !important;
    height: 350px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.section-grilla-cursos .grilla-titulo-principal {
    font-family: 'Oswald', 'Arial Narrow', sans-serif !important;
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
}

.section-grilla-cursos .grilla-item {
    position: relative !important;
    display: block !important;
    height: 350px !important;
    width: 100% !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.section-grilla-cursos .grilla-imagen-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.section-grilla-cursos .grilla-imagen-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.section-grilla-cursos .grilla-franja-oscura {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 65px;
    background: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    z-index: 2 !important;

    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.35s ease,
        padding 0.4s ease !important;
}

.section-grilla-cursos .grilla-titulo-curso {
    font-family: 'Oswald', 'Arial Narrow', sans-serif !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    padding-right: 10px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.section-grilla-cursos .flecha-icono {
    flex-shrink: 0 !important;
    display: block !important;
    width: 10px !important;
    height: 16px !important;
    transition: transform 0.3s ease !important;
}

.section-grilla-cursos .grilla-item:hover .grilla-imagen-wrapper img {
    transform: scale(1.12) !important;
}

.section-grilla-cursos .grilla-item:hover .grilla-franja-oscura {
    height: 50% !important;
    background: rgba(0, 0, 0, 0.534) !important;
    align-items: flex-start !important;
    padding-top: 20px !important;
}

.section-grilla-cursos .grilla-item:hover .flecha-icono {
    transform: translateX(4px) !important;
}

/* --- REGLAS MÓVIL AL FINAL (SOBREESCRIBEN TODO LO ANTERIOR) --- */
@media screen and (max-width: 767px) {

    /* Ocultar botones de navegación en móviles con ultra-especificidad */
    div#custom-banner-slideshow-container a.nav-capsule-btn,
    #custom-banner-slideshow-container .nav-arrow-btn,
    #custom-banner-slideshow-container .uk-slidenav,
    #custom-banner-slideshow-container a[data-uk-slideshow-item] {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Altura fluida y adaptable en móviles */
    #custom-banner-slideshow-container,
    #custom-banner-slideshow-container .uk-slideshow-items,
    #custom-banner-slideshow-container .uk-slideshow-items>div {
        min-height: 480px !important;
        height: 480px !important;
    }

    #custom-banner-slideshow-container .banner-overlay {
        padding: 20px 0 !important;
    }

    #custom-banner-slideshow-container .banner-titulo {
        font-size: 32px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    #custom-banner-slideshow-container .banner-caja-texto {
        max-width: 100% !important;
        width: 100% !important;
        padding: 16px 12px !important;
    }

    #custom-banner-slideshow-container .banner-caja-fondo {
        left: -15px !important;
        right: -15px !important;
    }

    #custom-banner-slideshow-container .banner-texto-secundario {
        font-size: 13px !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }
}