@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/* RESET BOX-SIZING GLOBAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: url(https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1400&q=80) no-repeat center center fixed;
  background-size: cover;
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 249, 243, 0.9);
  z-index: -1;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

p {
  text-align: center;
  margin-bottom: 30px;
}

.sucursales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  overflow-x: hidden;
}

.sucursales a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #E1281D;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.sucursales a:hover {
  background-color: #E1281D;
}

@media (max-width: 600px) {
  .sucursales {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sucursales a {
    width: 100%;
  }
}

body {
  padding: 20px;
  overflow-x: hidden;
}

.hero-banner {
  background-color: #fff3e8;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  font-weight: 600;
  color: #d35400;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.menu-item {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.menu-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.menu-item p {
  margin: 0;
  font-weight: 600;
  color: #333;
}

.menu-item span {
  display: block;
  margin: 5px 0 10px;
  color: #888;
}

.menu-item .desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

button {
  background-color: #E1281D;
  color: white;
  border: none;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #E1281D;
}

.carrito {
  margin-top: 40px;
  padding: 20px;
  background-color: #fff8f0;
  border: 1px solid #ffead4;
  border-radius: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.carrito h2 {
  margin-top: 0;
  text-align: center;
}

#carrito-lista {
  list-style: none;
  padding: 0;
}

#carrito-lista li {
  margin-bottom: 5px;
  font-weight: 500;
}

.boton-finalizar {
  text-align: center;
  margin-top: 1rem;
}

.boton-finalizar button {
  background-color: #14522b;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.boton-finalizar button:hover {
  background-color: #14522b;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sucursal-card,
.menu-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: #E1281D;
  color: white;
  padding: 1.5rem;
}

.logo {
  height: 50px;
  width: auto;
  /* border-radius: 2%;
  background-color: #fbfbfb; */
  filter: drop-shadow(0 0 2px rgb(255, 255, 255));
}

.buscador {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem;
  max-width: 600px;
}

.buscador input {
  width: 70%;
  padding: 0.8rem;
  margin-right: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.buscador button {
  padding: 0.8rem 1.2rem;
  background-color: #E1281D;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bienvenida {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff5ec;
  background-image: url('../img/fondo.png');
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
}

.bienvenida-img {
  max-width: 80%;
  height: auto;
  margin-bottom: 2rem;
}

.btn-pedido {
  background-color: #E1281D;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-pedido:hover {
  background-color: #E1281D;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  background-color: #E1281D;
  color: white;
  position: relative;
  box-sizing: border-box;
  margin-top: 160px;
}

.footer-logo {
  width: 150px;   /* ajustá el tamaño que quieras */
  height: auto;   /* mantiene proporción */
  filter: drop-shadow(0 0 2px rgb(254, 254, 254));
}

.footer-socials img {
  width: 40px;    /* tamaño de los íconos */
  height: auto;
  margin: 0 5px;  /* un poquito de espacio entre ellos */
}

.categoria {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid #E1281D;
  padding-bottom: .5rem;
  text-align: left;
  font-weight: 600;
}

.subgrupo {
  font-size: 1.4rem;
  margin: 1.5rem 0 .5rem;
  color: #555;
  text-align: left;
  font-weight: 500;
}

.menu-selector select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding: 12px 16px;
  padding-right: 40px;
  border: 2px solid #E1281D;
  border-radius: 12px;
  background-color: #fff8f0;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23EF3340' d='M70 105L15 35h110z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.menu-selector select:hover {
  border-color: #E1281D;
  background-color: #fff3eb;
}

.menu-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
