/* ===============================
   LAYOUT GENERAL
================================= */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 0;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Fondo general */
.fondo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background-image: url(../imagenes/fondo2025.jpg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

main {
  text-align: center;
}

/* ===============================
   NAVBAR
================================= */
.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #045d3f;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Logo */
.logo img {
  height: 70px;
  width: auto;
}

/* Menú */
.menu {
  display: flex;
  gap: 70px;
}

.menu a {
  text-decoration: none;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva,
    Verdana, sans-serif;
  color: rgb(255, 255, 255);
  font-weight: 600;
}

.menu a:hover {
  color: #1bb1b6;
}

/* Botón agendar */
.agendar {
  display: flex;
  align-items: center;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva,
    Verdana, sans-serif;
}

.btn-agendar {
  background-color: #0aeb55;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-agendar:hover {
  background-color: #0e9eb8;
}

/* ===============================
   SECCIÓN PRINCIPAL
================================= */
.container-principal {
  display: flex;
  align-items: center;
  margin-left: 70px;
  margin-top: 60px;
  margin-bottom: 150px;
  gap: 40px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.container-logo img {
  max-width: 350px;
  height: auto;
  display: block;
}

.container-bienvenida {
  max-width: 600px;
  text-align: left;
  color: white;
}

.container-bienvenida h1 {
  font-size: 50px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  text-align: left;
}

h1 {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  margin: 20px 0;
  color: white;
}

/* ===============================
   SECCIONES "QUIÉNES SOMOS"
================================= */
.container-somos {
  padding: 10px;
  text-align: center;
  background-color: rgb(255, 255, 255);
  margin-top: 50px;
}

.parrafo-somos {
  margin-bottom: 30px;
  font-size: 22px;
  color: #000000;
  margin: 50px;
  text-align: justify;
  font-family: serif;
}

h2 {
  text-align: center;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
  color: rgb(0, 95, 48);
}

.container-conocenos {
  padding: 10px;
  text-align: center;
  background-color: white;
}

h3 {
  text-align: center;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
  color: rgb(0, 95, 48);
}

.parrafo-conocenos {
  margin-bottom: 30px;
  font-size: 22px;
  color: #333;
  text-align: justify;
}

/* ===============================
   GALERÍA MODERNA
================================= */
.container-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  padding: 20px;
}

.imagenes-lugar img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.imagenes-lugar img:hover {
  transform: scale(1.05);
}

/* ===============================
   FOOTER
================================= */
footer {
  text-align: center;
  font-size: 12px;
  padding: 5px 0;
  color: #3e3e41;
  background-color: #d0d0d1cb;
  margin-top: auto;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 950px) {
  .menu-agendar-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .agendar {
    justify-content: center;
    width: 100%;
  }

  .btn-agendar {
    width: fit-content;
    padding: 10px 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
  }

  .navbar-left {
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .logo img {
    max-height: 50px;
  }

  .menu {
    flex-direction: column;
    gap: 5px;
    align-items: center;
    width: 100%;
  }

  .menu a {
    font-size: 16px;
  }

  .agendar {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }

  .btn-agendar {
    padding: 8px 16px;
    font-size: 14px;
  }

  .container-principal {
    flex-direction: column;
    margin-left: 0;
    text-align: center;
  }

  .container-bienvenida {
    text-align: center;
  }

  .container-bienvenida h1 {
    font-size: 32px;
    text-align: center;
  }

  .parrafo-somos,
  .parrafo-conocenos {
    margin: 20px;
    font-size: 18px;
  }

  .menu,
  .agendar {
    display: none;
    flex-direction: column;
    background-color: #045d3f;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
  }

  .menu.activo,
  .agendar.activo {
    display: flex;
  }

  .menu a {
    padding: 10px;
    text-align: center;
    color: white;
    border-bottom: 1px solid #0a9a6a;
  }

  .btn-agendar {
    margin: 0 auto;
  }

  .hamburguesa {
    display: block;
  }
}

/* ===============================
   HAMBURGUESA
================================= */
.hamburguesa {
  font-size: 30px;
  cursor: pointer;
  color: white;
  user-select: none;
  z-index: 1000;
  position: absolute;
  top: 15px;
  right: 30px;
  display: none;
}

/* ===============================
   CARRUSEL (compatible Bootstrap)
================================= */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ===============================
   EVITAR CONFLICTOS GRID vs CARRUSEL
================================= */
.container-imagenes,
.carousel-inner {
  margin: 20px auto;
  max-width: 1100px;
}