body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfbf7;
    color: #333;
    margin: 0;
    padding: 0;
}
header {
    background-color: #d32f2f;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
h1 { margin: 0; font-size: 2.5em; }
.subtitle { font-style: italic; margin-top: 5px; }
.shop-status {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Sección del Menú */
.menu-section {
    flex: 2;
    min-width: 300px;
}
.menu-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.filter-btn {
    background: white;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.filter-btn.active, .filter-btn:hover {
    background: #d32f2f;
    color: white;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.menu-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.menu-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.menu-item-content { padding: 15px; }
.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.menu-item h3 { color: #d32f2f; margin: 10px 0; }
.price { font-weight: bold; font-size: 1.2em; color: #388e3c; margin: 10px 0; }

button.add-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
button.add-btn:hover { background-color: #f57c00; }

.extras-container {
    text-align: left;
    margin: 10px 0;
    font-size: 0.9em;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
}
.extras-container label {
    display: block;
    margin: 3px 0;
    cursor: pointer;
}
.rating-container { margin: 5px 0; }
.star { cursor: pointer; color: #ddd; font-size: 1.3em; transition: color 0.2s; }
.star.filled { color: #ffc107; }
.star:hover { transform: scale(1.2); }
.review-count { font-size: 0.85em; color: #777; margin-left: 5px; }

/* Sección del Carrito */
.cart-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cart-header h2 {
    margin: 0;
}
.clear-cart-btn {
    background: none;
    border: 1px solid #ddd;
    color: #777;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
}
.clear-cart-btn:hover {
    background-color: #f1f1f1;
    color: #d32f2f;
}
.cart-items { list-style: none; padding: 0; border-bottom: 2px solid #eee; margin-bottom: 15px; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 10px; align-items: center; }
.total { font-size: 1.5em; font-weight: bold; text-align: right; margin: 15px 0; color: #d32f2f; }

/* Formulario */
form { display: flex; flex-direction: column; gap: 12px; }
.delivery-options {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}
.delivery-options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
input, textarea, select { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; }
.btn-order { background-color: #d32f2f; color: white; border: none; padding: 15px; font-size: 1.2em; border-radius: 5px; cursor: pointer; transition: background 0.3s; }
.btn-order:hover { background-color: #b71c1c; }
.remove-btn { background: none; border: none; color: #999; cursor: pointer; font-size: 1.2em; margin-left: 5px; }
.remove-btn:hover { color: #d32f2f; }

/* Mapa */
.map-section {
    flex-basis: 100%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.map-section iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.social-links { margin-top: 10px; }
.social-links a {
    color: #ff9800;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

/* Responsive Design - Ajustes para móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    .menu-section, .cart-section, .map-section {
        min-width: 100%;
        flex: 1 1 100%;
    }
    .cart-section {
        position: static; /* Quitar sticky en móviles para que fluya natural al final */
    }
    h1 {
        font-size: 1.8em;
    }
    .menu-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
}