/* Existing root variables */
:root {
  --color-primary: #4A7043; /* Forest Green */
  --color-secondary: #8B5E3C; /* Terracotta */
  --color-terra: #6B4E31; /* Rich Brown */
  --color-light: #F5E8C7; /* Warm Cream */
  --color-dark: #2F2E2B; /* Charcoal Brown */
  --color-accent: #D4A017; /* Golden Wheat */
  --color-text: #3C2F2F; /* Dark Brown for text */
  --color-bg: #FDF6E3; /* Warm Off-White background */
  --color-musgo: #232c0c; /* Dark Olive Green */
  --color-naranja:#e79a0ca7; /* Naranja suave */
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lora", "Georgia", serif;
}

body {
  background-color: var(--color-ng);
  color: var(--color-text);
  line-height: 1.8;
  background-size: cover;
  background-attachment: fixed;
  margin-top: 50%; /* Adjust for fixed header height no se monte la imagen a los eventos*/
}

/* Header (unchanged from previous response) */
header {
  /* background-color: var(--color-terra); */
  background-image: url('../images/logos/logo-madera2.jpg');
  /* /background-repeat: no-repeat; */
  /* background-size: cover; */
  /* background-position: center;  */
  position: fixed;
  top:0;
  width: 100%;
  z-index: 1000;
  color: white;
  padding: 2rem 2rem;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background-attachment:scroll;
}

.logo-container {
  display: flex;
  justify-content: center;
}

.logo-container img {
  width: 400px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.664));
  
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s, background-color 0.3s;
  
}

nav ul li a:hover {
  color: var(--color-light);
  background-color: var(--color-primary);
  border-radius: 4px;
}

/* Filtros */
.filtros-restaurantes {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to ensure horizontal scroll */
  gap: 0.5rem;
  margin: 1rem 0 2rem;
  justify-content: flex-start; /* Align to start for scrolling */
  overflow-x: auto; /* Enable horizontal scrolling */
  scrollbar-width: thin; /* Firefox: Slim scrollbar */
  padding: 0.5rem; /* Add padding for better spacing */
}

.filtros-restaurantes::-webkit-scrollbar {
  height: 6px; /* Chrome/Safari: Slim scrollbar */
}

.filtros-restaurantes::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.filtro-btn {
  min-width: 100px; /* Fixed minimum width for uniformity */
  padding: 0.5rem 1rem;
  background: var(--color-light);
  border: 1px solid var(--color-terra);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-family: "Roboto Slab", serif;
  text-align: center; /* Center text for consistent appearance */
  white-space: nowrap; /* Prevent text wrapping */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

.filtro-btn.active {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.3);
}

.filtro-btn:hover {
  background: var(--color-secondary);
  color: white;
}

/* Existing styles for other sections (abridged for brevity) */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background:var(--color-musgo);
  /* background-image: url('../images/logos/logo-madera.jpg'); */
  color: white;
  border-bottom: 5px solid var(--color-light);
}

.hero h1 {
  font-family: "Merriweather", serif;
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: var(--color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  max-width: 900px;
  margin: 0 auto;
  font-style: italic;
}

/* Eventos destacados */
.eventos-destacados {
  padding: 3rem 2rem;
  background: var(--color-bg);
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 1400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.eventos-destacados h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-terra);
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.evento-card {
  background: rgba(208, 174, 143, 0.555);
  margin: 22px;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(212, 160, 23, 0.3);
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.evento-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Sección de restaurantes */
.restaurantes {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 10px;
}

.restaurantes h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-terra);
}

/* Filtros */
.filtros-restaurantes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
  justify-content: center;
}

.filtro-btn {
  padding: 0.5rem 1rem;
  background: var(--color-light);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.filtro-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Grid de restaurantes */
.restaurantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.restaurante-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 2px solid var(--color-terra);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(212, 160, 23, 0.2);
}

.restaurante-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-imagen {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  border-bottom: 3px solid var(--color-secondary);
}

.restaurante-card:hover .card-imagen img {
  transform: scale(1.05);
}

.badge-tipo {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  background: var(--color-primary);
  border: 1px solid var(--color-light);
}

.card-contenido {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-contenido h3 {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.card-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #666;
}

.horario,
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.descripcion {
  margin: 0.5rem 0 1rem;
  color: #555;
  font-size: 0.9rem;
  flex-grow: 1;
}

.btn-visitar {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  margin-top: auto;
}

.btn-visitar:hover {
  background: var(--color-secondary);
}

/* Filtros */
.filtro-btn {
  background: var(--color-light);
  border: 1px solid var(--color-terra);
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  font-family: "Roboto Slab", serif;
}

.filtro-btn.active {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.3);
}

/* Reseñas */
.reviews-section {
  padding: 1rem;
  border-top: 1px solid var(--color-terra);
  margin-top: 1rem;
}

.reviews-section h4 {
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.review {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-light);
}

.review-rating {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.review-comment {
  font-size: 0.85rem;
  color: #555;
}

.review-date {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

.btn-add-review {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-naranja);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: background 0.3s;
}

.btn-add-review:hover {
  background: var(--color-secondary);
}

.btn-add-review:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Footer */
footer {
  /* background: var(--color-dark); */
  background-image: url('../images/logos/logo-madera2.jpg');
  color: white;
  padding: 4rem 2rem 2rem;
  border-top: 5px solid var(--color-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: "Merriweather", serif;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--color-primary);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos específicos para la página de menú */
.menu-page {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.menu-header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.menu-header h1 {
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.restaurante-tipo {
  color: var(--color-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-terra);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(212, 160, 23, 0.2);
}

.restaurante-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

.restaurante-info i {
  margin-right: 0.3rem;
  color: var(--color-primary);
}

/* Filtros del menú */
.menu-filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--color-light);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Grid de platillos */
.menu-grid {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-content: start;
}

.no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #666;
}

.menu-item {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-terra);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(212, 160, 23, 0.2);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.item-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.item-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.menu-item:hover .item-image-container img {
  transform: scale(1.05);
}

.badge-destacado {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-restaurante {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  border: 1px solid var(--color-light);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.item-info h3 {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.item-description {
  margin: 0.5rem 0;
  color: #555;
  font-size: 0.9rem;
  flex-grow: 1;
}

.item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.item-price {
  font-weight: bold;
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.item-allergens {
  font-size: 0.8rem;
  color: #d9534f;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  background: #f8f9fa;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 17px 0px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 55px;
  cursor: pointer;
  width: 100%;
  max-width: 141px;
  margin: 0 auto;
  display: block;
  transition: all 0.1s ease;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.add-to-cart:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.3);
}

.add-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.4);
}

/* Enhanced modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s ease-out;
}

.modal-content {
  background: var(--color-light);
  background-image: url('images/textures/parchment.jpg'); /* Parchment texture for elegance */
  margin: auto;
  padding: 2rem;
  border: 2px solid var(--color-terra);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(212, 160, 23, 0.3);
  position: relative;
  transform: scale(0.95);
  animation: slideInModal 0.3s ease-out forwards;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--color-terra);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.close:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}

.modal h2 {
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.modal p {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

#restaurantLink {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

#restaurantLink:hover {
  color: var(--color-secondary);
}

.modal label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-family: "Roboto Slab", serif;
  color: var(--color-terra);
  font-weight: 500;
  font-size: 1.1rem;
}

.modal textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-terra);
  border-radius: 8px;
  resize: vertical;
  min-height: 120px;
  font-family: "Lora", serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s;
}

.modal textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(74, 112, 67, 0.3);
}

#addWithSuggestion {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem;
  font-family: "Roboto Slab", serif;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

#addWithSuggestion:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(139, 94, 60, 0.3);
}

#addWithSuggestion:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.4);
}

/* Resumen del pedido */
.order-summary {
  flex: 1;
  padding: 1.5rem;
  align-self: flex-start;
  position: sticky;
  top: 1rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-light);
  border: 2px solid var(--color-terra);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(212, 160, 23, 0.2);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.order-header h2 {
  font-family: "Merriweather", serif;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clear {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-clear:hover {
  text-decoration: underline;
}

.order-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 2rem 0;
  color: #666;
}

.empty-cart i {
  font-size: 2rem;
  margin-top: 1rem;
  color: #ddd;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-name {
  flex-grow: 1;
}

.order-item-price {
  font-weight: bold;
  color: var(--color-secondary);
  min-width: 60px;
  text-align: right;
}

.order-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 0.9rem;
}

.order-total {
  text-align: right;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.order-total span {
  color: var(--color-secondary);
}

.delivery-options {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.delivery-option input {
  margin: 0;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  border-radius: 8px;
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--color-secondary);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.3);
}

/* Added back button styles for navigation */
.btn-back {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.btn-back:hover {
  background: var(--color-secondary);
}

/* Added event tabs styles */
.event-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--color-light);
  border: 2px solid var(--color-terra);
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.restaurante-card, .menu-item, .evento-card {
  animation: fadeIn 0.5s ease-out;
}

/* Notification */
.cart-notification {
  animation: fadeIn 0.1s ease-out;
}

.restaurante-card, .menu-item, .evento-card {
  animation: fadeIn 0.5s ease-out;
}

.cart-notification {
  animation: fadeIn 0.1s ease-out;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .restaurantes-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Responsive */
@media (max-width: 768px) {
header {
  flex-direction: column;
  padding: 1.5rem 1rem;
}

nav ul {
  margin-top: -1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none; 
  gap: 1rem;
}

nav ul::-webkit-scrollbar {
  display: none; /* Oculta la barra de desplazamiento en Chrome/Safari */
}

nav ul li a {
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  white-space: nowrap; /* Prevent text wrapping */
}

.logo-container img {
  width: 250px;
  height: auto;
  max-width: 80%;
}
.hero {
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2rem;
}

.eventos-destacados,
.restaurantes {
  padding: 1rem;
}

.restaurantes-grid {
  grid-template-columns: 1fr;
}

.filtros-restaurantes {
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  padding: 0.5rem 1rem;
  gap: 0.4rem;
}

.filtros-restaurantes::-webkit-scrollbar {
  display: none;
}

.filtro-btn {
  flex-shrink: 0;
  min-width: 90px; /* Slightly smaller for mobile */
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem; /* Smaller font for mobile */
  border-radius: 20px;
}

.modal-content {
  width: 95%;
  padding: 1.5rem;
  max-width: 350px;
}

.modal h2 {
  font-size: 1.5rem;
}

.modal textarea {
  min-height: 100px;
  font-size: 0.9rem;
}

#addWithSuggestion {
  padding: 0.6rem;
  font-size: 0.95rem;
}

.menu-page {
  flex-direction: column;
  padding: 1rem;
}

.menu-grid {
  order: 1;
}

.order-summary {
  order: 2;
  margin: 1rem auto;
}

#floatingCartBtn {
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}

.badge-restaurante {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    max-width: 100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
.restaurantes-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  
}
}

@media (min-width: 769px) and (max-width: 1024px) {

  .restaurantes-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .logo-container img {
    width: 400px;
    height: 150px;
  }

  .filtros-restaurantes {
    justify-content: center; /* Center on tablets */
  }

  .filtro-btn {
    min-width: 95px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    max-width: 450px;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
