/* Estilos generales */
body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.top-bar {
  background-color: black;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 14px;
  height: 40px;
  align-items: center;
  line-height: 40px;
  position: relative;
  z-index: 2;
}

.top-bar span {
  display: flex;
  align-items: center;
}

header {
  background-color: yellow;
  min-height: 50px;
  /* Sin restricción de altura para mayor flexibilidad */
  text-align: center;
  position: relative; /* Importante para posicionar el botón */
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
}

.logo {
  height: 80%;
  max-height: 45px;
  width: auto;
  margin-right: auto;
}

.experience-img {
  height: 80%;
  max-height: 45px;
  width: auto;
  margin-left: auto;
}

h1 {
  color: green;
  margin: 0 auto;
  padding: 0;
  font-size: 40px;
  text-align: center;
  flex-grow: 1;
}

/* Botón hamburguesa: oculto en vistas grandes */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;    /* Tamaño reducido */
  cursor: pointer;
  color: white;
  padding: 5px 10px;  /* Padding reducido */
  background-color: black;
}

nav {
  background-color: black;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin: 0;
}

nav ul li {
  margin: 0 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  height: 600px;
  margin: 0;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  font-size: 25px;
  border-radius: 10px;
  font-weight: bold;
}

.descripcion {
  text-align: center;
  padding: 20px;
  background-color: white;
  color: black;
}

/* Sección para las opciones del menú */
.menu-options {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 10%;
}

.menu-options a {
  text-decoration: none;
  color: inherit;
  text-align: center;
  margin-bottom: 20px;
}

.menu-options img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.menu-options p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: green;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 50%;
  font-size: 20px;
}

footer {
  background-color: yellow;
  height: 30px;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 30px;
  color: green;
  font-weight: bold;
}

/* Estilos para la Galería */
.gallery {
  text-align: center;
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 10%;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-width: 300px;
}

/* Media Queries */

/* Vista Celular (max-width: 600px) */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    height: auto;
    padding: 10px;
    font-size: 12px;
  }
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    max-height: none;
  }
  .logo, .experience-img {
    max-height: 35px;
    margin: 5px 0;
  }
  h1 {
    font-size: 28px;
    margin: 5px 0;
  }
  /* Mostrar el botón hamburguesa y posicionarlo en la esquina superior derecha */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
  }
  /* Configuración del menú en móviles */
  nav {
    height: auto;            /* Anula la altura fija */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    flex-direction: column;
  }
  nav.open {
    max-height: 300px;        /* Ajusta este valor según la altura total de tu menú */
  }
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 10px 0;
  }
  .slider {
    height: 300px;
  }
  .slide img {
    height: 300px;
  }
  .caption {
    font-size: 18px;
    padding: 10px;
    text-align: center;  /* Centrar el texto en móviles */
  }
  .descripcion {
    padding: 10px;
  }
}

/* Vista Tableta (min-width: 601px and max-width: 992px) */
@media (min-width: 601px) and (max-width: 992px) {
  .top-bar {
    font-size: 13px;
    flex-direction: row;
    height: auto;
    padding: 10px;
  }
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    max-height: none;
    position: relative; /* Para que el botón se posicione correctamente */
  }
  .logo, .experience-img {
    max-height: 40px;
    margin: 5px 0;
  }
  h1 {
    font-size: 32px;
    margin: 10px 0;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
  }
  nav {
    height: auto;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    flex-direction: column;
  }
  nav.open {
    max-height: 300px;
  }
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 10px 0;
  }
  .slider {
    height: 400px;
  }
  .slide img {
    height: 400px;
  }
  .caption {
    font-size: 20px;
    padding: 15px;
    text-align: center; /* Centrar el texto en tabletas */
  }
  .menu-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10%;
  }
}

/* Vista Laptop (min-width: 993px and max-width: 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  .menu-toggle {
    display: none;
  }
  nav {
    display: flex;
  }
  .slider {
    height: 500px;
  }
  .slide img {
    height: 500px;
  }
  .caption {
    font-size: 22px;
    padding: 18px;
  }
  h1 {
    font-size: 38px;
  }
}

/* Vista Escritorio (min-width: 1201px) */
@media (min-width: 1201px) {
  .menu-toggle {
    display: none;
  }
  nav {
    display: flex;
  }
  .slider {
    height: 600px;
  }
  .slide img {
    height: 600px;
  }
  .caption {
    font-size: 25px;
    padding: 20px;
  }
  h1 {
    font-size: 40px;
  }
}

/* Reglas para el mapa en la página Ubicación (celulares y tabletas) */
@media (max-width: 992px) {
  .ubicacion .map {
    width: 100%;
    overflow-x: hidden;
  }
  .ubicacion .map iframe {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
