
body {
    font-family: Arial, sans-serif;
    color: #333;
}

.navbar {
    background-color: #29213d;
}

.navbar-brand {
    font-size: 25px;
}

.portada {
    background: linear-gradient(135deg, #29213d, #76518e);
    color: white;
    padding: 110px 20px;
}

.portada h1 {
    font-size: 42px;
    font-weight: bold;
}

.portada p {
    font-size: 19px;
    margin: 20px 0;
}

.btn-principal {
    background-color: #e8b86d;
    color: #29213d;
    padding: 12px 25px;
    font-weight: bold;
}

.seccion {
    padding-top: 65px;
    padding-bottom: 65px;
}

.fondo-claro {
    background-color: #f6f3f8;
}

.tarjeta {
    background: white;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.tarjeta h4 {
    color: #76518e;
}

.precio {
    font-size: 25px;
    font-weight: bold;
    color: #29213d;
}

.categoria {
    background-color: #eee6f4;
    color: #51386b;
    padding: 12px 20px;
    border-radius: 25px;
}

footer {
    background-color: #29213d;
    color: white;
    padding: 25px;
}


/* Botón del carrito */
.btn-carrito {
    background-color: #e8b86d;
    color: #29213d;
    font-weight: bold;
    border: none;
    padding: 9px 15px;
    border-radius: 8px;
}

.btn-carrito:hover {
    background-color: #d9a653;
    color: #29213d;
}

/* Botones para agregar productos */
.btn-agregar {
    background-color: #76518e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 7px;
    width: 100%;
    margin-top: 10px;
}

.btn-agregar:hover {
    background-color: #5d3d75;
    color: white;
}

/* Ventana del carrito */
.modal-content {
    border-radius: 14px;
}

.item-carrito {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cantidad-carrito button {
    border: 1px solid #76518e;
    color: #76518e;
    background: white;
    border-radius: 5px;
    padding: 3px 10px;
}

.btn-eliminar {
    color: #b33a3a;
    background: transparent;
    border: none;
}


/* Modal de compra */
#modalCompra .modal-dialog {
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
}

#modalCompra .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* El formulario ocupa el espacio entre encabezado y pie */
#modalCompra form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Encabezado y botones permanecen visibles */
#modalCompra .modal-header,
#modalCompra .modal-footer {
    flex-shrink: 0;
}

/* Solo los campos tienen desplazamiento */
#modalCompra .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
}
