* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fffaf4;
}

/* ======== ENCABEZADO ======== */
header {
  background-color: #e74c3c;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contenedor-header {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

button {
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  border-color: #afbcb5;
  background-color: #afbcb5;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

button:hover {
  background-color: #818c85;
}

/* ======== Sección introductoria grande ======== */
#inicio {
  text-align: center;
  padding: 80px 20px;
  background: url('https://www.shutterstock.com/image-photo/aerial-view-plaza-de-armas-260nw-2215242255.jpg') center/cover no-repeat;
  color: white;
}

#inicio h2 {
  font-size: 2rem;
}

/* ======== MENÚ ======== */
#header-menu {
  background-color: #e74c3c;
  color: white;
  position: static;
  padding: 15px 0;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#menu {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

#menu header h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.categoria {
  margin: 40px auto;
  max-width: 900px;
}

.categoria h4 {
  color: #333;
  border-bottom: 2px solid #e74c3c;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.categoria ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  list-style: none;
}

figure {
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 250px;
  background: #fffaf4;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

figure:hover {
  transform: scale(1.05);
}

figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
}

figcaption strong {
  display: block;
  color: #e74c3c;
  margin-bottom: 4px;
}

figcaption span {
  color: #27ae60;
  font-weight: bold;
}

#menu a {
  display: inline-block;
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
}

#menu a:hover {
  background-color: #27ae60;
}

.btn-comprar {
  margin-top: 6px;
  padding: 6px 12px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-comprar:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}

/* ======== NOSOTROS ======== */
#nosotros {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#nosotros h3 {
  color: #e74c3c;
  margin-bottom: 15px;
}

#nosotros dl {
  margin-top: 20px;
}

#nosotros dt {
  font-weight: bold;
  color: #333;
}

#nosotros dd {
  margin-bottom: 10px;
}

/* ======== UBICACIÓN ======== */
#ubicacion {
  padding: 60px 20px;
  text-align: center;
}

.mapa-placeholder {
  margin: 20px auto;
  width: 80%;
  height: 300px;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: #666;
}

/* ======== CONTACTO ======== */
#contacto {
  padding: 60px 20px;
  background: url('https://media.istockphoto.com/id/470931972/es/foto/arequipa-plaza-en-la-noche.jpg?s=612x612&w=0&k=20&c=c2Uu9oSf5IqGcopKNuIXWeVzM57F1_sfgN9MMvn75B8=') center/cover no-repeat;
  text-align: center;
}

#contacto button {
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  border-color: #2ecc71;
  background-color: #2ecc71;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contacto button:hover {
  background-color: #27ae60;
}

/* ======== FOOTER ======== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
}

/* ======== SUGERENCIA DEL CHEF ======== */
#sugerencia-chef {
  background-color: #fff; /* Fondo blanco para un look limpio */
  padding: 60px 20px;
}

.sugerencia-contenido {
  display: flex;
  align-items: center;
  gap: 30px; /* Espacio entre la imagen y el texto */
  max-width: 900px;
  margin: auto;
}

.sugerencia-contenido img {
  width: 280px;
  height: auto; /* Altura automática para mantener la proporción */
  border-radius: 10px;
}

.sugerencia-texto h3 {
  color: #e74c3c;
  font-weight: bold;
}

.sugerencia-texto h4 {
  font-size: 1.8rem;
  margin: 5px 0 10px 0; /* Espaciado reducido */
}

.sugerencia-texto .precio {
  font-size: 1.5rem;
  font-weight: bold;
  color: #27ae60;
  margin-top: 15px;
  display: block; /* Para que el margen superior funcione */
}

/* ======== CONTACTO - NUEVA PÁGINA ======== */
.contacto-principal {
  padding: 60px 20px;
  background-color: #fffaf4;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.contacto-principal h2 {
  color: #e74c3c;
  margin-bottom: 15px;
}

.info-contacto p {
  font-size: 1rem;
  margin: 5px 0;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.form-contacto label {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

.form-contacto input,
.form-contacto textarea {
  width: 80%;
  max-width: 500px;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-contacto button {
  margin-top: 15px;
}
/* Botón flotante del carrito */
#btn-carrito {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.3s;
  z-index: 1200;
}

#btn-carrito:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

/* Ventana del carrito */
.carrito {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1100;
  transition: all 0.3s;
}

.carrito.oculto {
  transform: translateY(200%);
  opacity: 0;
}

.carrito h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #e74c3c;
}

#lista-carrito {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

#lista-carrito li {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  font-size: 14px;
}

#vaciar-carrito {
  display: block;
  margin: 10px auto 0;
  padding: 6px 12px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#vaciar-carrito:hover {
  background-color: #c0392b;
}

/* ======== FORMS (Inicio Sesión y Registro) ======== */
.form-section {
    padding: 60px 20px;
    background-color: #fffaf4;
    min-height: calc(100vh - 160px); /* Ajuste para footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #fafafa;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-wrapper.wide {
    max-width: 550px;
}

.form-wrapper h2 {
    font-size: 25px;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #fff;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.form-actions button {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.form-actions button:hover {
    background-color: #27ae60;
}

.form-links {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-links a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

.form-links a:hover {
    text-decoration: underline;
}
