body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 60vh; /* 50% de la altura de la ventana */
    overflow: hidden;
    border: 1px solid #ddd;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute; /*absolute*/
    bottom: 15px;
    left: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;/*absolute*/
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 50vh; /* 50% de la altura de la ventana */
    overflow: hidden;
    border: 1px solid #ddd;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;/*absolute*/
    bottom: 15px;
    left: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;/*absolute*/
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}
