/* oswald-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/oswald-v57-latin-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/oswald-v57-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html,
body {
  background-color: #fff8f3;
  padding: 0;
  margin: 0;
  font-size: 18px;
  font-family: "Georgia", "Times New Roman", serif;
  color: #2b2b2b;
  line-height: 1.6;
}

.button {
  background-color: #ff6600;
  color: #fff8f3;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button:hoover {
  background-color: #e65c00;
}

section.main {
  font-family: "Oswald", sans-serif;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

section.main h1,
section.main h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  font-weight: 200;
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome {
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.sai {
  font-family: "Oswald";
  font-weight: 200;
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  margin: 1rem 0;
  line-height: 1.2;
  text-align: center;
}

.provisions {
  font-family: "Oswald", sans-serif;
  font-weight: 200;
  font-size: 3rem;
  letter-spacing: 0.3rem;
  margin-top: 0.5rem;
  text-align: center;
}

section.main h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 200;
  margin-bottom: 1rem;
}

section.main p {
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 700px;
}

section.offerings {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  background-color: #eaeaea;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
  box-sizing: border-box;
}
section.offerings > div {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #eaeaea;
  padding: 20px;
  box-sizing: border-box;
}

section.offerings .offeringsText {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

section.offerings img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporción y llena el espacio */
  display: block;
  border: none;
}

section.offerings h3 {
  font-family: "Oswald", sans-serif;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 200;
}

section.offerings p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

section.offerings .button {
  margin-top: 15px;
}

section.offerings .map {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
  position: relative;
}

section.offerings .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

section.menuNavigation {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px 0;
  padding: 0 10px;
  box-sizing: border-box; /* evita overflow por padding */
}

section.menuNavigation .menuButtons {
  display: flex;
  flex-wrap: wrap; /* permite que bajen de fila en pantallas pequeñas */
  gap: 20px; /* espacio entre botones */
  justify-content: center;
  max-width: 100%; /* asegura que no se salga del contenedor */
  box-sizing: border-box;
}

section.menuNavigation .menuButtons .button {
  flex: 1 1 120px; /* ancho mínimo 120px */
  max-width: calc(25% - 15px); /* 4 botones por fila, descontando gap */
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

section.menuNavigation .menuButtons .button:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 950px) {
  section.menuNavigation .menuButtons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  section.menuNavigation .menuButtons .button {
    width: 100%;
    max-width: none;
  }
}

.menusWrapper {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  grid-auto-rows: min-content;
  grid-auto-flow: dense;
  gap: 10px;
  padding: 10px;
}

.subCategory {
  padding: 10px;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.menusWrapper h3 {
  font-family: "Oswald", sans-serif;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 200;
}

.productsWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.productsWrapper h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 200;
}

.productsWrapper div {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.coffeeMenu {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.coffeeMenu h3 {
  font-family: "Oswald", sans-serif;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 200;
}

.coffee {
  width: 70%;
  margin-top: 10px;
}

.coffee h4 {
  margin: 0;
  padding: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 200;
}

.coffeeOptions {
  font-family: Arial, Helvetica, sans-serif;
  margin: 5px;
  padding: 0;
  text-align: center;
}

.coffeeSizeWrapper {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.coffeeSizeWrapper p {
  margin: 0;
}

@media (max-width: 950px) {
  section.offerings {
    flex-direction: column; /* apila en pantallas pequeñas */
  }

  section.offerings > div {
    flex: 1 1 100%;
  }

  section.offerings .offeringsText {
    padding: 2rem 1rem;
    text-align: center;
  }
}

/* ✅ Menús dinámicos responsive */
.menusWrapper {
  display: grid;
  grid-template-columns: 1fr; /* default: 1 columna */
  gap: 20px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.subCategory,
.coffeeMenu,
.wineMenu {
  display: flex;
  flex-direction: column;
  background-color: #fdf8f3;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.subCategory h3,
.coffeeMenu h3,
.wineMenu h3 {
  text-align: center;
}

/* Productos dentro de cada subcategoría */
.productsWrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Cada producto: nombre + descripción juntos */
.wineMenu .productsWrapper h4 {
  margin: 0 0 5px 0;
}

.wineMenu .productsWrapper p {
  margin: 0 0 10px 0;
  color: #555;
}

/* Responsive */
@media (min-width: 950px) {
  /* Subcategorías en columnas en desktop */
  .menusWrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .subCategory {
    text-align: center;
    padding: 1rem;
  }
}

/* Loader general container */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background-color: #fff8f3;
  font-family: "Oswald", sans-serif;
  color: #2b2b2b;
}

/* The spinning ring */
.loader-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 6px solid #ff6600;
  border-radius: 50%;
  animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #ff6600 transparent transparent transparent;
}

.loader-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.loader-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.loader-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Text below spinner */
.loader-text {
  margin-top: 20px;
  font-weight: 200;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #2b2b2b;
}

/* Dark mode loader for footer sections */
.dark-loader .loader-ring div {
  border-color: #fff8f3 transparent transparent transparent;
}

.dark-loader .loader-text {
  color: #fff8f3;
}

#formLoader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

#vacanciesList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columnas fijas */
  gap: 3rem;
  padding: 3rem 4rem;
  box-sizing: border-box;
  justify-items: stretch; /* cada card ocupa toda su celda */
}

@media (max-width: 950px) {
  #vacanciesList {
    grid-template-columns: 1fr; /* 1 columna en móvil */
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* ✅ Centrar subcategoría cuando hay solo una (por ejemplo Coffee Menu) */
.menusWrapper:has(> .coffeeMenu:only-child),
.menusWrapper:has(> .subCategory:only-child),
.menusWrapper:has(> .wineMenu:only-child) {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ✅ Centrar subcategoría cuando hay solo una (por ejemplo Coffee Menu) */
.menusWrapper.single {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start;
}
