/* ======= Estilo general ======= */
body {
    background: linear-gradient(to bottom right, #333, #495057);
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ======= Título principal ======= */
h2 {
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ======= Sección de cada categoría ======= */
.menu-section {
    background: #666;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

.menu-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ======= Título de categoría ======= */
.menu-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ff6b35;
    border-bottom: 2px solid #ffd5c2;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.categoria-imagen {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.categoria-imagen:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

@media (max-width: 576px) {
    .categoria-imagen {
        width: 80px;
        height: 80px;
    }
}

/* Agregado para la vista movil */
@media (max-width: 576px) {
    #modalDetalleProducto .modal-body img {
        max-height: 200px;
    }
}

.producto-item {
    padding: 12px;
    background: #333;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #ffe1d0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.producto-item:not(:last-child) {
    border-bottom: 1px solid #ffd5c2;
}

.producto-item:hover {
    transform: translateX(5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    border-color: #FF6B35;
    background: #444;
}

/* Nombre del producto */
.producto-nombre {
    font-weight: 600;
    color: #ffffff;
}

/* Precio */
.producto-precio {
    color: #ff6b35;
    font-weight: bold;
}

/* Descripción */
.producto-descripcion {
    font-size: 0.9rem;
    color: #ffffff;
}

.btnn{
    background-color: #6c757d;
    color: #ffe1d0;
    transition: transform 0.3s ease;
}

.btnn:hover{
    background-color: #FF6B35;
    transform: scale(1.08);
}

/* Estilos para el modal de detalles */
#modalDetalleProducto .modal-content {
    background: linear-gradient(135deg, #2d2d2d 70%, #444 100%);
    border-radius: 18px;
    border: 2px solid #ff6b35;
    box-shadow: 0 8px 32px rgba(68,68,68,0.18);
    color: #fff;
}

#modalDetalleProducto .modal-header {
    background: #ff6b35;
    color: #fff;
    border-bottom: 2px solid #ffd5c2;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 18px 24px;
}

#modalDetalleProducto .modal-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

#modalDetalleProducto .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

#modalDetalleProducto .modal-body {
    padding: 32px 24px;
}

#modalDetalleProducto .modal-body img {
    border-radius: 12px;
    border: 2px solid #666;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.18);
    background: #3d3d3d;
}

#modalProductoNombre {
    color: #ff6b35;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#modalProductoCategoria {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

#modalProductoDescripcion {
    font-size: 1rem;
    color: #ffd5c2;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#modalProductoPrecio {
    color: #44d17c;
    font-size: 1.5rem;
    font-weight: bold;
}

#modalProductoStock {
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1rem;
}

#btnAgregarDesdeModal {
    background: #ff6b35;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

#btnAgregarDesdeModal:hover {
    background: #dc3545;
    transform: scale(1.05);
}

#modalDetalleProducto .modal-footer {
    background: #3d3d3d;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top: 1px solid #666;
}

#modalDetalleProducto .btn-secondary {
    background: #6c757d;
    color: #ffe1d0;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: background 0.2s;
}

#modalDetalleProducto .btn-secondary:hover {
    background: #ff6b35;
    color: #fff;
}

/* Agrega esto a tu archivo CSS */
#form-envio .was-validated .form-control:invalid,
#form-envio .was-validated .form-select:invalid {
    border-color: #dc3545;
}

#form-envio .was-validated .form-control:valid,
#form-envio .was-validated .form-select:valid {
    border-color: #198754;
}

#modalConfirmacion .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Responsividad para el modal de detalle de producto */
@media (max-width: 576px) {
    #modalDetalleProducto .modal-dialog {
        max-width: 98vw;
        margin: 8px auto;
    }
    #modalDetalleProducto .modal-content {
        padding: 8px;
        border-radius: 12px;
    }
    #modalDetalleProducto .modal-body .row {
        flex-direction: column;
    }
    #modalDetalleProducto .modal-body .col-md-6 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }
    #modalDetalleProducto img#modalProductoImagen {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
    #modalDetalleProducto h4,
    #modalDetalleProducto p,
    #modalDetalleProducto .badge,
    #modalDetalleProducto .btn-lg {
        font-size: 1rem !important;
    }
    #modalDetalleProducto .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
}