/* Carrusel personalizado para Sede Bogotá UNAL */
/* Usa Bootstrap 4.3.1 nativo con personalizaciones mínimas */

.carrusel-container.carousel {
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
    position: relative;
}

/* Carrusel ancho completo */
.carrusel-container.carousel.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

/* Altura personalizada del carrusel */
.carrusel-container .carousel-item {
    height: 450px;
    background: var(--color-blanco);
    position: relative;
}

/* Imágenes del carrusel */
.carrusel-container .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Imágenes de fondo del carrusel */
.carrusel-container .carousel-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Caption personalizado - similar al ejemplo */
.carrusel-container .carousel-caption {
    background: #626161b3;
    border-bottom: solid 7px #94B43B;
    border-radius: 4px;
    padding: 5px;
    bottom: 50px;
    left: 7%;
    right: 7%;
    backdrop-filter: none;
    position: absolute;
    z-index: 10;
    box-shadow: none;
}


.carousel-caption .content-text {
    color: var(--color-blanco);
    /*font-size: 1.1em;*/
    line-height: 1.5;
}

.carousel-caption .btn {
    background-color: var(--color-uno);
    border-color: var(--color-uno);
    color: var(--color-blanco);
    padding: 0.5em 1.5em;
    border-radius: 0.25em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    background-color: var(--color-enlacesHover);
    border-color: var(--color-enlacesHover);
    color: var(--color-blanco);
}

/* Controles de navegación sutiles */
.carrusel-container .carousel-control-prev,
.carrusel-container .carousel-control-next {
    width: 30px;
    height: 30px;
    background: rgba(70, 70, 70, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Mostrar controles al hacer hover sobre el carrusel */
.carrusel-container:hover .carousel-control-prev,
.carrusel-container:hover .carousel-control-next {
    opacity: 0.8;
}

.carrusel-container .carousel-control-prev:hover,
.carrusel-container .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 20px;
    height: 20px;
    position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-right: none;
    border-bottom: none;
    transform: translate(-50%, -50%);
}

.carousel-control-prev-icon::before {
    transform: translate(-30%, -50%) rotate(-45deg);
}

.carousel-control-next-icon::before {
    transform: translate(-70%, -50%) rotate(135deg);
}

/* Indicadores personalizados sobre Bootstrap - Alta especificidad */
div.carrusel-container.carousel ol.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

div.carrusel-container.carousel ol.carousel-indicators li {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(150, 150, 150, 0.8);
    border: 1px solid rgba(150, 150, 150, 1);
    margin: 0 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-indent: -9999px;
    font-size: 0;
    overflow: hidden;
    list-style-type: none;
    padding: 0;
    opacity: 1;
}

/* Anular estilos de interioresSedeBogota.css */
div.carrusel-container.carousel ol.carousel-indicators li::marker {
    content: none;
    display: none;
}

div.carrusel-container.carousel ol.carousel-indicators li.active {
    background-color: var(--color-encabezados);
    border-color: var(--color-encabezados);
    transform: scale(1.2);
    opacity: 1;
}

/* Soporte para videos */
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fondo neutro para slides sin imagen */
.carrusel-container .slide-background-neutral {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    z-index: 1;
}

/* Contenido HTML personalizado (solo como fallback absoluto) */
.carrusel-container .carousel-item .custom-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-uno), var(--color-dos));
    color: var(--color-blanco);
    text-align: center;
    padding: 2em;
    z-index: 1;
}

/* Contenido completo renderizado */
.carrusel-container .carousel-item .slide-full-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    background: var(--color-blanco);
    overflow: hidden;
}


.carousel-item .custom-content .content-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 1em;
}


.carousel-item .custom-content .btn {
    background-color: var(--color-blanco);
    color: var(--color-uno);
    border: 2px solid var(--color-blanco);
    padding: 0.75em 2em;
    border-radius: 0.5em;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.carousel-item .custom-content .btn:hover {
    background-color: transparent;
    color: var(--color-blanco);
    border-color: var(--color-blanco);
}

/* Responsive usando breakpoints de Bootstrap 4 */
@media (max-width: 991.98px) {
    .carrusel-container .carousel-item {
        height: 400px;
    }
    
    .carrusel-container .carousel-caption {
        background: #626161b3;
        border-bottom: solid 7px #94B43B;
        border-radius: 4px;
        padding: 5px;
        bottom: 3em;
        left: 7%;
        right: 7%;
        backdrop-filter: none;
        position: absolute;
        z-index: 10;
        box-shadow: none;
    }
    
    .carrusel-container .carousel-caption .content-text {
        color: var(--color-blanco);
        line-height: 1.5;
    }
    
    .carrusel-container .carousel-item .custom-content h2 {
        font-size: 2em;
    }
    
    .carrusel-container .carousel-item .custom-content p {
        font-size: 1em;
    }
}

@media (max-width: 767.98px) {
    .carrusel-container .carousel-item {
        height: 350px;
    }
    
    .carrusel-container .carousel-caption {
        background: #626161b3;
        border-bottom: solid 7px #94B43B;
        border-radius: 4px;
        padding: 5px;
        bottom: 2em;
        left: 7%;
        right: 7%;
        max-height: 40%;
        overflow-y: auto;
        backdrop-filter: none;
        position: absolute;
        z-index: 10;
        box-shadow: none;
    }
    
    .carrusel-container .carousel-caption .content-text {
        color: var(--color-blanco);
        line-height: 1.5;
        max-height: 3em;
        overflow: hidden;
    }
    
    .carrusel-container .carousel-control-prev,
    .carrusel-container .carousel-control-next {
        width: 30px;
        height: 30px;
        background: rgba(70, 70, 70, 0.2);
    }
    
    .carrusel-container .carousel-control-prev {
        left: 10px;
    }
    
    .carrusel-container .carousel-control-next {
        right: 10px;
    }
    
    .carrusel-container .carousel-indicators {
        bottom: 15px;
    }
    
   
}

@media screen and (max-width: 480px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-item .custom-content {
        padding: 1em;
    }
    
   
}

/* Animaciones suaves */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

/* Efectos hover para el contenedor */
.carrusel-container:hover .carousel-control-prev-icon,
.carrusel-container:hover .carousel-control-next-icon {
    opacity: 1;
}

/* Pantallas muy pequeñas - mantener controles pero más pequeños */
@media (max-width: 575.98px) {
    .carrusel-container .carousel-item {
        height: 300px;
    }
    
    .carrusel-container .carousel-caption {
        background: #626161b3;
        border-bottom: solid 7px #94B43B;
        border-radius: 4px;
        padding: 5px;
        left: 7%;
        right: 7%;
        max-height: 35%;
        backdrop-filter: none;
        position: absolute;
        z-index: 10;
        box-shadow: none;
    }
    
    .carrusel-container .carousel-caption .content-text {
        color: var(--color-blanco);
        line-height: 1.5;
        max-height: 5em;
        overflow: hidden;
    }
    
    .carrusel-container .carousel-control-prev,
    .carrusel-container .carousel-control-next {
        width: 30px;
        height: 30px;
        background: rgba(70, 70, 70, 0.2);
        opacity: 0.8;
    }
    
    .carrusel-container .carousel-control-prev {
        left: 5px;
    }
    
    .carrusel-container .carousel-control-next {
        right: 5px;
    }
    
    div.carrusel-container.carousel ol.carousel-indicators {
        bottom: 10px;
    }
    
    div.carrusel-container.carousel ol.carousel-indicators li {
        width: 5px;
        height: 5px;
        margin: 0 4px;
        background-color: rgba(150, 150, 150, 0.8);
        border: 1px solid rgba(150, 150, 150, 1);
    }
    
    div.carrusel-container.carousel ol.carousel-indicators li.active {
        background-color: var(--color-encabezados);
        border-color: var(--color-encabezados);
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ==============================================
   ESTILOS PARA BOTÓN VER MÁS Y LINK DE IMAGEN
   ============================================== */

/* Botón Ver más - Color aguamarina */
.btn-carrusel-mas {
    background-color: var(--color-aguamarina);
    border: 2px solid var(--color-aguamarina);
    color: var(--color-blanco) !important;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 10px;
    z-index: 10;
    position: relative;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-carrusel-mas:hover {
    background-color: var(--color-blanco);
    color: var(--color-aguamarina) !important;
    border-color: var(--color-aguamarina);
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-carrusel-mas:visited,
.btn-carrusel-mas:link {
    color: var(--color-blanco) !important;
    text-decoration: none !important;
}

.btn-carrusel-mas:focus,
.btn-carrusel-mas:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 201, 173, 0.3);
    color: var(--color-blanco);
}

/* Link de imagen completa del slide */
.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-slide-link:hover {
    text-decoration: none;
}

.carousel-slide-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(91, 201, 173, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-slide-link:hover::after {
    opacity: 1;
}

/* Asegurar que el caption esté por encima del link */
.carousel-caption {
    z-index: 5;
    position: relative;
}

/* Estilos para enlaces del carrusel */
.carousel-caption h5 a {
    transition: opacity 0.3s ease;
}

.carousel-caption h5 a:hover {
    opacity: 0.8;
}

/* Responsive para botón Ver más */
/* ========================================
   INTEGRACIÓN CON BOOTSTRAP 4.3
   ======================================== */

/* Contenedor principal con Bootstrap */
.carrusel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Contenedores Bootstrap responsivos */
.carrusel-container.container {
    /* Bootstrap maneja automáticamente el responsive */
}

.carrusel-container.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Clases de ancho Bootstrap */
.carrusel-container.w-100 { width: 100% !important; }
.carrusel-container.w-75 { width: 75% !important; }
.carrusel-container.w-50 { width: 50% !important; }
.carrusel-container.w-25 { width: 25% !important; }

/* Imágenes responsivas con Bootstrap */
.carrusel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Breakpoints Bootstrap 4.3 */
@media (max-width: 575.98px) {
    /* Extra small devices (portrait phones) */
    .carrusel-container.w-25,
    .carrusel-container.w-50 {
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    /* Small devices (landscape phones) */
    .carrusel-container.w-25 {
        width: 50% !important;
    }
}

@media (max-width: 768px) {
    .btn-carrusel-mas {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-carrusel-mas {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* Estilos más específicos para cursor - carrusel */
div.carrusel-container a.btn-carrusel-mas,
div.carrusel-container.carousel a.btn-carrusel-mas,
.carousel-caption a.btn-carrusel-mas {
    cursor: pointer;
}

div.carrusel-container .carousel-caption h5 a,
div.carrusel-container.carousel .carousel-caption h5 a {
    cursor: pointer;
}

/* Para imágenes dentro de enlaces del carrusel */
div.carrusel-container a img,
div.carrusel-container.carousel a img {
    cursor: pointer;
}

/* Especificidad extra para sobrescribir Bootstrap */
.carousel .carousel-caption a {
    cursor: pointer;
}

/* Máxima especificidad sin important */
div.carrusel-container.carousel.slide .carousel-caption a.btn-carrusel-mas[class*="btn"] {
    cursor: pointer;
}

div.carrusel-container.carousel.slide .carousel-caption h5 a[style*="color"] {
    cursor: pointer;
}

/* ============================================
   ESTILOS FINALES - CURSOR POINTER FORZADO
   Solo usamos !important para cursor por conflicto con Bootstrap
   ============================================ */

/* Botón Ver más - FORZADO */
a[class*="btn-carrusel-mas"],
.btn-carrusel-mas {
    cursor: pointer !important;
}

/* Título con enlace - FORZADO */
.carousel-caption h5 a,
div[class*="carrusel"] .carousel-caption h5 a {
    cursor: pointer !important;
}

/* Imagen con enlace - FORZADO */
.carousel-item a img,
div[class*="carrusel"] a img {
    cursor: pointer !important;
}

/* Cualquier enlace en carrusel - FORZADO */
div[class*="carrusel-container"] a,
div[class*="carrusel"] a {
    cursor: pointer !important;
}
