body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #285029;
    color: #3e3e3e;
  }
  
  /* Header */

  header {
    background: #285029;
    color: #fff;
    padding: 20px 0;
    text-align: center;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
  
  }
  
  header h1 {
    margin: 0;
    font-size: 2.5em;
  }
  

  nav {
    background: #092e0b;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
  }

  nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }

  nav a:hover {
    text-decoration: underline;
  }

  .hero {
    background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 5px #000;
  }

  .hero h2 {
    font-size: 3em;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
  }

  .contenido {
    padding: 40px;
    text-align: center;
    background: white;
  }

  .contenido h3 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .contenido p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
  }
  /* footer */

  footer {
    background: #285029;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
  }

  .redes-sociales {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .redes-sociales a img {
    width: 30px;
    height: 30px;
    filter: invert(1); /* Para que se vean blancos en el fondo oscuro */
    transition: transform 0.3s ease;
  }
  
  .redes-sociales a:hover img {
    transform: scale(1.2);
  }
  

  /* platos */

  .plato-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    max-width: 300px;         /* límite de ancho */
    margin: 0 auto;
  }
  
  .plato-card:hover {
    transform: scale(1.02);
  }
  
  .plato-card img {
    width: 100%;
    height: 160px;             /* más compacta */
    object-fit: cover;
  }
  
  .plato-card .contenido-plato {
    padding: 12px;
  }
  
  .plato-card h4 {
    margin: 0 0 8px;
    font-size: 1.2em;
    color: #6f4e37;
  }
  
  .plato-card p {
    margin: 6px 0;
    font-size: 0.95em;         /* más pequeño */
    color: #555;
  }


  
/* Contenedor del carrito oculto al inicio */
.carrito {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.carrito.open {
  right: 0;
}

.carrito-header {
  padding: 15px;
  background: #6f4e37;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cantidad {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cantidad button {
  border: none;
  background: #eee;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 1em;
}

.carrito-footer {
  padding: 15px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
}

.btn-solicitar {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-solicitar:hover {
  background-color: #1ebe5d;
}

#icono-carrito-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6f4e37;
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#icono-carrito-flotante .contador {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  display: none;
}
