@font-face {
  font-family: 'clip';
  src: url('../css/fonts/clip.woff') format('woff'),
       url('../css/fonts/clip.woff2') format('woff2'),
       url('../css/fonts/clip.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'clip';
  background-image: url('images/patron-a.jpg');
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
  background-attachment: fixed;
  color: #fefe10;
  text-shadow: -3px -2px 1px #000;
  margin: 0;
  padding: 10px;
  line-height: 1.65;
  overflow-x: hidden;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}
h1 {
  font-size: 4rem;
  text-align: center;
  margin: 10px 0 20px;
  font-weight: normal;
}
.social-links {
  text-align: center;
  margin-bottom: 20px;
}
.social-links a {
  color: #fefe10;
  font-size: 1.5rem;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.25s ease;
}
.social-links a:hover {
  color: #ffffff;
}
.search-bar {
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.search-bar input {
  padding: 8px 40px 8px 8px;
  width: 100%;
  border: none;
  border-radius: 4px;
  background-color: rgba(16, 16, 16, 0.9);
  color: #fefe10;
  font-family: 'clip', sans-serif;
  font-size: 1rem;
}
.search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fefe10;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.search-bar button:hover {
  color: #ffffff;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background-color: #101010;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 100;
  display: none;
}
.search-results.active {
  display: block;
}
.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results li {
  padding: 10px 15px;
  color: #fefe10;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.search-results li .res-name {
  text-align: left;
  flex: 1;
  padding-right: 10px;
}
.search-results li .res-price {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}
.search-results li.no-results {
  cursor: default;
  opacity: 0.7;
  display: block;
  text-align: center;
}
.search-results li:not(.no-results):hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.menu-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  margin-bottom: 15px;
}
.menu-buttons button {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 4px;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  color: #fefe10;
  font-family: 'clip',sans-serif;
  font-size: 2rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
  touch-action: manipulation;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.menu-buttons button:hover {
  border-color: #ffffff;
  color: #ffffff;
}
.menu-buttons button.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fefe10;
}
.gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgb(0, 0, 0);
  z-index: 1000;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.gallery.open {
  display: block;
}
.gallery-container {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateX(100%);
}
.gallery-item.active {
  opacity: 1;
  transform: translateX(0);
}
.gallery-item .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  z-index: 1;
}
.gallery-item .caption {
  position: relative;
  padding: 0.5em 4em 0.5em 4em;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  height: 90%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.gallery-item h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  text-align: center;
}
.gallery-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery-item li {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
}
.no-results {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fefe10;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  z-index: 2;
  display: none;
}
.no-results.active {
  display: block;
}
.nav-next, .nav-previous, .close-gallery {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fefe10;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #ccc;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 1000;
}
.nav-next:hover, .nav-previous:hover, .close-gallery:hover {
  background-color: #ffffff;
  border-color: #ffffff;
}
.nav-previous {
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}
.nav-next {
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}
.close-gallery {
  top: 15px;
  right: 15px;
}
footer {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #fefe10;
  text-shadow: -3px -2px 1px #000;
}
.suggestions-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fefe10;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family:  'clip', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.suggestions-btn:hover {
  background-color: #ffffff;
  color: #101010;
}
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow: hidden;
}
.popup.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-content {
  background-color: #101010;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  color: #fefe10;
  position: relative;
}
.popup-content h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
  text-align: center;
}
.popup-content label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}
.popup-content input, .popup-content textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fefe10;
  font-family: 'clip', sans-serif;
}
.popup-content textarea {
  resize: none;
  height: 100px;
}
.popup-content button {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fefe10;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.popup-content button:hover {
  background-color: #ffffff;
  color: #101010;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fefe10;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.popup-close:hover {
  color: #ffffff;
}
.welcome-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow: hidden;
}
.welcome-popup.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-popup-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url('images/fondoclub.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  height: 90%;
  color: #fefe10;
  position: relative;
  text-align: center;
}
.welcome-popup-btn {
  display: block;
  margin: auto auto 0 auto;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fefe10;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'clip', sans-serif;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.welcome-popup-btn:hover {
  background-color: #ffffff;
  color: #101010;
}
.welcome-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fefe10;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.welcome-popup-close:hover {
  color: #ffffff;
}

@media (min-width: 1024px) {
  html { font-size: 18px; }
  .container { max-width: 1200px; padding: 0 20px; }
  h1 { font-size: 3rem; }
  .search-bar { max-width: 400px; }
  .search-bar input { padding: 10px 45px 10px 10px; font-size: 1.1rem; }
  .menu-buttons button { width: 50%; font-size: 2rem; }
  .gallery-item .caption { padding: 40px 80px 30px 80px; max-width: 700px; height: calc(100vh - 100px); }
  .nav-next, .nav-previous, .close-gallery { width: 60px; height: 60px; font-size: 2rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item .caption { padding: 30px 60px 30px 60px; max-width: 650px; height: calc(100vh - 80px); }
  .menu-buttons button { width: 50%; }
}

@media (max-width: 374px) {
  .gallery-item .caption { padding: 15px 30px 20px 30px; height: calc(100vh - 70px); }
  .gallery-item h2 { font-size: 1.1rem; }
  .gallery-item ul { font-size: 0.8rem; }
}

#welcomePopup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body {
  overflow: auto !important;
}