body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Estilos generales para el modal */
.modal-open .modal {
    overflow-x: visible;
    overflow-y: visible;
}

.modal-backdrop {
    z-index: 1040;
    /* Nivel detrás del modal */
    display: none !important;
    /* Solo como medida temporal */
}

.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    max-width: 500px;
    /* Ajusta el ancho según tus necesidades */
    width: 100%;
}

@media (min-width: 768px) {
    .modal-dialog {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

@media (max-width:450px) {
    .modal-dialog {
        position: absolute;
        top: 5%;
        left: 100%;
        transform: translatex(-50%) !important;
        margin: 0;
        max-width: 500px;
        width: 100%;
    }

    .modal {
        overflow: visible;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1055;
        display: none;
        position: absolute;
        /* top: 50%; */
        left: 50%;
        transform: translate(-50%) !important;
        margin: 0;
        /* max-width: 500px; */
        height: 100vh;
        width: 100%;
    }
}

.modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
    display: flex;
}

.modal {
    overflow: visible;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    /* Asegura que esté sobre todos los elementos */
    display: none;
    /* Bootstrap manejará cuándo se muestra */
}

.modal.show {
    display: block;
    /* Bootstrap añade la clase .show cuando el modal está visible */
    display: flex;
    /* Centra el contenido con flexbox solo cuando está abierto */
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    margin: 0;
    /* Sin márgenes adicionales */
    max-width: 500px;
    /* Ajusta el tamaño del modal */
    width: 100%;
    /* Asegura que sea responsivo */
    transform: none;
    /* Elimina transformaciones previas */
}


.modal-backdrop.show {
    opacity: .5;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-content {
    z-index: 1000;
    background-color: #fff;
    border-radius: 10px;
    /* Bordes redondeados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    padding: 20px;
    /* Espaciado interno */
    margin-top: 60px;
    max-height: 80vh;
    overflow-y: scroll;
}

.modal-header {
    border-bottom: none;
    text-align: center;
    /* Centrar el contenido del header */
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-end;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}

.modal-price {
    font-size: 1.2rem;
    color: #888;
    text-align: left;
    margin: 0;
}

.modal-close {
    float: right;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: .5;
    border: none;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.modal-body {
    text-align: center;
}

.modal-body img.img-fluid {
    max-width: 100%;
    /* Asegura que la imagen no exceda el contenedor */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    /* Bordes redondeados en la imagen */
}

.modal-body p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.close {
    margin: 0;
}

.modal-body p span {
    font-weight: bold;
    color: #333;
}

.modal-footer {
    border-top: none;
    display: flex;
    justify-content: space-between;
}

.modal-footer .btn {
    background-color: #800020;
    /* Color de fondo similar al botón de la card */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.modal-footer .btn:hover {
    background-color: #a32c2c;
    /* Color más claro al pasar el mouse */
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {

    .modal-content {
        padding: 15px;
    }

    .modal-body p {
        font-size: 16px;
    }

    .modal-footer {
        flex-direction: column;
    }
}


.product-detail-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-detail-card .price {
    color: red;
    font-size: 24px;
    margin-bottom: 20px;
}

.product-detail-card .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.product-detail-card .tabs button {
    background: none;
    border: none;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.product-detail-card .tabs button.active::after {
    content: '';
    display: block;
    height: 2px;
    background-color: red;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.product-detail-card .tab-content {
    display: none;
}

.product-detail-card .tab-content.active {
    display: block;
}