* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f5f5;
color: #333;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
text-align: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header h1 {
font-size: 24px;
margin-bottom: 5px;
}
header p {
font-size: 14px;
opacity: 0.9;
}
main {
max-width: 900px;
margin: 20px auto;
padding: 0 15px;
}
.bar-info {
background: white;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.bar-info h2 {
color: #667eea;
font-size: 20px;
margin-bottom: 5px;
}
.bar-info p {
color: #666;
font-size: 14px;
}
.categories {
display: flex;
gap: 10px;
margin-bottom: 20px;
overflow-x: auto;
padding-bottom: 10px;
}
.category-btn {
padding: 10px 20px;
border: none;
background: white;
color: #667eea;
border: 2px solid #667eea;
border-radius: 20px;
cursor: pointer;
font-weight: 500;
white-space: nowrap;
transition: all 0.3s ease;
}
.category-btn.active {
background: #667eea;
color: white;
}
.category-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 15px;
margin-bottom: 30px;
}
.product-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-image {
width: 100%;
height: 150px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 40px;
}
.product-image-img {
width: 100%;
height: 150px;
object-fit: cover;
display: block;
}
.product-info {
padding: 15px;
}
.product-name {
font-weight: 600;
font-size: 16px;
margin-bottom: 5px;
color: #333;
}
.product-desc {
font-size: 12px;
color: #999;
margin-bottom: 10px;
min-height: 30px;
}
.product-price {
color: #667eea;
font-weight: bold;
font-size: 18px;
margin-bottom: 10px;
}
.quantity-selector {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.qty-btn {
width: 30px;
height: 30px;
border: 1px solid #ddd;
background: white;
cursor: pointer;
border-radius: 4px;
font-weight: bold;
color: #667eea;
}
.qty-input {
width: 40px;
text-align: center;
border: 1px solid #ddd;
padding: 5px;
border-radius: 4px;
}
.add-to-cart {
width: 100%;
padding: 10px;
background: #667eea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.add-to-cart:hover {
background: #764ba2;
}
.cart-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
border-top: 2px solid #ddd;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.cart-info {
font-size: 14px;
}
.cart-total {
font-size: 20px;
font-weight: bold;
color: #667eea;
}
.checkout-btn {
padding: 12px 30px;
background: #667eea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
}
.checkout-btn:hover {
background: #764ba2;
}
.loading {
text-align: center;
padding: 40px;
font-size: 16px;
color: #999;
}
.error {
background: #fee;
color: #c33;
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
border-left: 4px solid #c33;
}
/* Estilos para sección de cuenta */
.account-section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.account-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
border-bottom: 2px solid #667eea;
padding-bottom: 10px;
}
.account-header h2 {
color: #667eea;
margin: 0;
}
.close-account-btn {
background: #e74c3c;
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
}
.account-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.summary-item {
display: flex;
flex-direction: column;
gap: 5px;
}
.summary-label {
font-size: 12px;
color: #666;
font-weight: 500;
}
.summary-value {
font-size: 20px;
font-weight: bold;
color: #333;
}
.summary-value.pending {
color: #e67e22;
}
.summary-value.served {
color: #27ae60;
}
.orders-list {
max-height: 400px;
overflow-y: auto;
}
.order-item {
background: #f8f9fa;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
border-left: 4px solid #667eea;
}
.order-item.served {
border-left-color: #27ae60;
}
.order-item.pending {
border-left-color: #e67e22;
}
.order-item.in_progress {
border-left-color: #3498db;
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.order-status {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
color: white;
}
.order-status.pending {
background: #e67e22;
}
.order-status.in_progress {
background: #3498db;
}
.order-status.served {
background: #27ae60;
}
.order-items-list {
margin: 10px 0;
font-size: 14px;
}
.order-item-row {
display: flex;
justify-content: space-between;
padding: 5px 0;
border-bottom: 1px solid #eee;
}
.order-item-row:last-child {
border-bottom: none;
}
.order-total {
font-weight: bold;
font-size: 16px;
margin-top: 10px;
padding-top: 10px;
border-top: 2px solid #ddd;
}
.account-btn {
padding: 10px 15px;
background: #667eea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
}
.account-btn:hover {
background: #5568d3;
}
@media (max-width: 600px) {
.products-grid {
grid-template-columns: 1fr;
}
.categories {
gap: 8px;
}
.cart-footer {
flex-direction: column;
gap: 10px;
text-align: center;
}
.account-btn {
width: 100%;
margin-bottom: 10px;
}
.checkout-btn {
width: 100%;
}
}
Bienvenido a nuestro menú digital. Selecciona tus productos y realiza tu pedido.
Total cuenta:
€0.00
Pendiente:
€0.00
Servido:
€0.00
Cargando menú...