* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-container {
    display: flex;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 650px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    margin-top: 0;
    z-index: 1;
}

.background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.frame2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 50%;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.32);
    z-index: 2;
    position: absolute;
    top: 34%;
    left: 68.5%;
    transform: translate(-50%, -20%);
}

.frame2-title {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 95%;
    height: 15%;
    margin: 10px 0 0 15px;
    font-family: Roboto, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: #222222;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    word-wrap: break-word;
}

.frame2-rectangle {
    width: 90px;
    height: 3px !important;
    margin: 0.5% 0 0 2%;
    background: #7F8C8D;
}

.frame2-text-image {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
    height: 75%;
    margin: 10px 0 2% 15px;
    opacity: 1;
}

.parrafo-boton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 48%;
    height: auto;
}


.parrafo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 95%;
    height: 65%;
    margin: 5% 0 0 0;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #222222;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    min-width: 150px;
    height: 40px;
    padding: 8px 12px;
    background: #16A186;
    color: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .boton:hover {
        background: #138C75;
        Cambia el color del botón al pasar el ratón
    }

.imagenes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 48%;
    height: auto;
}

.espacio-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 48%;
    height: auto;
    background: transparent;
    transform: rotate(0deg);
    opacity: 1;
}

.imagen-book {
    width: 95%;
    height: 100%;
}

.slides-navigation {
    position: absolute;
    height: 56px;
    top: 560px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
    border-radius: 4px;
    background: rgba(34, 34, 34, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    z-index: 2;
    transition: width 0.3s ease;
}

.click-area-left {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    padding: 8px 0 0 0;
    cursor: pointer;
    opacity: 1;
    background: transparent;
    z-index: 3;
}

.inner-arrow-left {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 3.44px 3px 3.44px 2.38px;
    background: transparent;
    opacity: 1;
}

.arrow-left-icon {
    position: absolute;
    width: 18.62px;
    height: 17.12px;
    top: 3.44px;
    left: 7.38px;
    background: none;
    opacity: 1;
}

.slide-indicator {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    background: none;
    box-shadow: none;
}

.dot-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #F5F5F5;
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: none;
}

.rectangle {
    width: 24px;
    height: 12px;
    background: #16A186;
    border-radius: 8px;
    opacity: 1;
    margin: 0;
}

.click-area-right {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    padding: 8px 0 0 0;
    cursor: pointer;
    background: transparent;
    z-index: 3;
}

.inner-arrow-right {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 3.44px 3px 3.44px 2.38px;
    background: transparent;
    opacity: 1;
}

.arrow-right-icon {
    position: absolute;
    width: 18.62px;
    height: 17.12px;
    top: 3.44px;
    left: 7.38px;
    background: none;
    opacity: 1;
}


@media (max-width: 768px) {
    .carousel-container {
        width: 100%;
        /*        height: 50vh;*/
        height: 650px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    .background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        /*        top: -20%;*/
        left: 0;
    }

    .frame2 {
        width: 90% !important;
        height: auto;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        padding: 16px;
        /*        margin-bottom: 90px;*/
        margin-top: 180px;
        background: #FFFFFF;
        border-radius: 8px;
        box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 2;
    }

    .frame2-title {
        font-size: 18px;
        text-align: left;
        margin-bottom: 8px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        margin: 0;
    }

    .frame2-rectangle {
        display: none;
    }

    .frame2-text-image {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin: 0;
    }

    .parrafo-boton {
        width: 100%;
        gap: 0px;
    }

    .parrafo {
        width: 100%;
        margin-top: 12px;
        font-size: 14px;
        line-height: 18px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .boton {
        font-size: 14px;
        margin-top: 16px;
        width: 100%;
        padding: 10px 20px;
    }

    .imagenes {
        display: none;
    }

    .slides-navigation {
        width: 60%;
        height: 8%;
        top: 85%;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        background: rgba(34, 34, 34, 0.3);
        border-radius: 8px;
    }

    .slide-indicator {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #F5F5F5;
    }

    .rectangle {
        width: 20px;
        height: 10px;
        border-radius: 5px;
        background-color: #16A186;
    }

    .click-area-left,
    .click-area-right {
        width: 32px;
        height: 32px;
    }

    .arrow-left-icon,
    .arrow-right-icon {
        width: 20px;
        height: 20px;
        top: -1.75px;
    }
}

@media (max-width: 1000px) {
    .frame2 {
        width: 60%;
    }
}

@media (min-width: 1700px) {
    .frame2 {
        width: 45%;
    }
}

@media (min-width: 1800px) {
    .frame2 {
        width: 40%;
    }
}

@media (min-width: 2000px) {
    .frame2 {
        width: 35%;
    }
}

@media (min-width: 2200px) {
    .frame2 {
        width: 30%;
    }
}
