/* === COMPORTAMIENTO Y FUENTES GLOBALES === */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #fdfdfd;
  color: #222;
}
h2, nav a {
  font-family: 'Alfa Slab One', cursive;
}
a {
  color: #c0392b; /* Un color rojo peruano para los enlaces */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === BANDERAS Y LOGO === */
.banderas {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Alinear logo en la parte de abajo */
  overflow: visible; /* Permitir que el logo se salga */
}
.banderas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: url("https://upload.wikimedia.org/wikipedia/commons/c/cf/Flag_of_Peru.svg") no-repeat left center;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
}
.banderas::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("https://upload.wikimedia.org/wikipedia/commons/7/78/Flag_of_Chile.svg") no-repeat right center;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
}
.logo-central {
  position: relative;
  z-index: 10;
  height: auto;
  width: 150px; /* Ancho base */
  transform: scale(1.75) translateY(50%); /* 25% más grande y 50% hacia abajo */
  transform-origin: center bottom;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
  margin-bottom: 90px; /* Ajuste fino */
}

/* === BARRA SOCIAL Y NAVEGACIÓN === */
header {
  background: #333;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  padding: 5px 0;
  position: sticky; /* Menú de navegación fijo */
  top: 0;
  z-index: 100;
  
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Para que en pantallas chicas se ajuste */
  gap: 20px;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px; /* Espacio entre items */
}
nav a {
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.3s;
}
nav a:hover {
  color: red;
  text-decoration: none;
}
.pdf-link {
  background-color: #c0392b;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.pdf-link:hover {
  background-color: #a5281a;
  color: #fff;
}
.social-bar {
  display: flex;
  gap: 15px;
}
.social-bar a {
  color: blue;
  font-size: 28px; /* Iconos más grandes */
  transition: color 0.3s, transform 0.3s;
}
.social-bar a:hover {
  color: red;
  transform: scale(1.1);
}

/* === SECCIONES DEL CUERPO === */
section {
  padding: 60px 20px;
}
h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}
.platos .galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.galeria img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* Asegura que todas las imágenes se vean uniformes */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Menú Detallado */
.menu {
  background: #fafafa;
}
.menu-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.menu-categoria h3 {
  font-family: 'Alfa Slab One', cursive;
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 5px;
  margin-bottom: 20px;
}
.plato-item {
  margin-bottom: 20px;
}
.nombre-plato {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0;
}
.descripcion-plato {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}

.historia {
  background: #f4f4f4;
  text-align: center;
}
.historia p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

/* Contacto y Mapa */
.contacto {
  background: #fff;
}
.contacto-info-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.contacto-info, .mapa-ubicacion {
  flex: 1;
  min-width: 300px;
}
.contacto-info p {
  font-size: 18px;
  line-height: 1.8;
}
.contacto-info p i {
  color: #c0392b;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.mapa-ubicacion iframe {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff !important;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  font-weight: bold;
  margin-top: 20px;
}
.whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.05);
  text-decoration: none;
  color: #fff !important;
}

/* === FOOTER Y RESPONSIVE === */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #aaa;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }
  .contacto-info-wrapper {
    flex-direction: column;
  }
  h2 {
    font-size: 28px;
  }
  /* --- OTROS AJUSTES PARA MÓVILES --- */
  /* Aseguramos que la info de contacto y el mapa se apilen bien */
  .contacto-info-wrapper {
    flex-direction: column;
  }
  
  /* Reducimos el tamaño de los títulos principales */
  h2 {
    font-size: 28px;
  }
}
