.row-margin-bottom {
    margin-bottom: 10px !important;
}

.form-group-margin-bottom-0 {
    margin-bottom: 0 !important;
}

#noOrdenNuevaCompra {
    margin: 0 !important;
}

/* Proporción mantenida para la imagen */
.modal-body-popup-image {
    position: relative;
    padding-top: 177.78%;
    background-color: #2fc7c4;
}

.modal-body-popup-image-capeiros {
    position: relative;
    padding-top: 177.78%;
    background-color: #EA3735;
}

.modal-body-popup-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-body-popup-image-capeiros img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-content-popup {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}

.modal-content-popup {
    width: 60%; /* Aumentado de 60% a 65% */
    max-width: 680px; /* Aumentado de 600px a 680px */
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.modal-dialog {
    width: 60%;
    max-width: 600px;
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - (1.75rem * 2));
}

.logo-header{
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0px 0px 30px 30px;
    background: white;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.modal-header-popup{
    height: 6rem;
    background-color: #2fc7c4;
}
.modal-header-popup-capeiros{
    height: 6rem;
    background-color: #EA3735;
}
.button-close-pupup {
    font-size: 4rem;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    float: right;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .4;
}
.modal-body-popup{
    font-family: sans-serif;
    background-color: #2fc7c4;
    position: relative;
}
.background-body-popup {
    margin: auto;
    width: 90%;
    margin-top: 5%;
    margin-bottom: 5%;
    border-radius: 0px 20px;
    color: white;
    font-size: 1.7rem;
    border: 3px solid 1px solid #86ddbe;
    padding: 2rem;
    background-color: #71d0ce;
}

.custom-footer {
    box-shadow: 0 -2px 10px rgba(229, 229, 229, 0.8);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0px;
    width: 100%;

}
.footer-logo{
    width: 20%;
}
.foot-logo{
    width: 20%;
}
.footer-column {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: black;
}

.footer-center img {
    width: 20%;
    display: block;
    margin: 0 auto;
}

.footer-text-left{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    height: 60px;
    width: 40%;
    background-color: #000;
    color: #FFFFFF;
    left: 0;
    clip-path: polygon(90% 0%, -20000% 100%, 100% 100%);
}
.footer-text-right{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    height: 60px;
    width: 40%;
    background-color: #000;
    color: #fff;
    right: 0;
    clip-path: polygon(10% 0%, 20000% 100%, 0% 100%);
}

/* Para dispositivos más pequeños, podemos mantener el tamaño original */
@media (max-width: 991px) {
    .footer-text-left, .footer-text-right {
        width: 40%; /* Mantenemos el ancho original */
    }
}

@media (max-width: 550px) {
    .modal-content-popup {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        pointer-events: auto;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .2);
        border-radius: .3rem;
        outline: 0;
    }

    .footer-text-left{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        height: 60px;
        width: 40%;
        background-color: #000;
        color: #FFFFFF;
        left: 0;
        clip-path: polygon(90% 0%, -20000% 100%, 100% 100%);
    }
    .footer-text-right{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        height: 60px;
        width: 40%;
        background-color: #000;
        color: #fff;
        right: 0;
        clip-path: polygon(10% 0%, 20000% 100%, 0% 100%);
    }
}

/* Breakpoint específico para tablets grandes */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content-popup,
    .modal-dialog {
        width: 70%; /* Más ancho que en desktop */
        max-width: 750px; /* Tamaño ideal para tablets */
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .modal-content-popup,
    .modal-dialog {
        width: 85%;
        max-width: 100%;
        margin: 20px auto; /* Más margen */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .modal-content-popup,
    .modal-dialog {
        width: 92%;
        margin: 10px auto;
    }

    .modal-dialog {
        align-items: flex-start;
        padding-top: 15px;
    }
}

@media (min-width: 992px) {
    .footer-text-left, .footer-text-right {
        width: 45%; /* Ancho aumentado para ambos */
        font-size: 1.2rem; /* Mismo tamaño de fuente para ambos */
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60px;
        background-color: #000;
        color: #FFFFFF;
    }

    /* Mantener los clip-path originales, solo ajustamos el ancho */
    .footer-text-left {
        left: 0;
        clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
    }

    .footer-text-right {
        right: 0;
        clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    /* Un pequeño ajuste al logo si es necesario */
    .footer-logo {
        margin: 0 5px; /* Margen más reducido */
        height: 40px; /* Aseguramos que el tamaño sea consistente */
    }
}