/* ===== Estilos Generales ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
     padding: 40px 20px 20px;
    background-color: #f4f4f9;
    color: #333;
}

h1 {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 30px;
}

h2 {
    color: #e67e22;
    margin-bottom: 15px;
}

/* ===== Menú y Categorías ===== */
.menu {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.categoria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== Tarjetas de Productos ===== */
.producto {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.producto img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.detalles {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.detalles h3 {
    margin: 0 0 5px 0;
    color: #34495e;
}

.detalles p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.detalles span {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* ===== Ingredientes y Cantidad ===== */
.ingredientes, .opciones {
    margin: 8px 0;
}

.ingredientes label, .opciones label {
    margin-right: 12px;
    font-size: 0.85em;
}

.cantidad {
    width: 60px;
    padding: 3px 5px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* ===== Botón Agregar ===== */
button.agregar {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button.agregar:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* ===== Resumen del Pedido ===== */
.pedido {
    margin-top: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pedido h2 {
    margin-top: 0;
}

.pedido ul {
    list-style-type: none;
    padding-left: 0;
}

.pedido li {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
}

/* ===== Total ===== */
.pedido strong {
    display: block;
    margin-top: 15px;
    font-size: 1.2em;
    color: #2c3e50;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .producto {
        flex-direction: column;
        align-items: center;
    }

    .producto img {
        width: 100%;
        height: auto;
    }

    .detalles {
        width: 100%;
        text-align: center;
    }

    button.agregar {
        width: 80%;
        margin: 10px auto 0 auto;
    }
}

/* BOTÓN FLOTANTE */
.btn-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.btn-flotante:hover {
  transform: scale(1.1);
}

/* Contador */
#contador {
  background: white;
  color: #e63946;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 14px;
  margin-left: 5px;
}


.menu-fijo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  display: flex;
}

/* SELECT OCUPA TODO EL ANCHO */
.menu-fijo select {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: bold;
  outline: none;
  background: #000000;
  color: white;
  appearance: none;
  text-align: center;
}

@media (max-width: 600px) {
  .menu-fijo {
    padding: 0;
  }

  .menu-fijo select {
    font-size: 18px;
    padding: 16px;
    border-radius: 0;
  }
}