/* styles.css */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Menú Fijo */
.sticky-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #00B1F8;
  z-index: 1000;
}

.menu-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo img {
  max-height: 50px;
  margin-right: 20px;
}

.main-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu li {
  position: relative;
  margin: 0 15px;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
}

.menu li a:hover {
  background-color: #555;
}

/* Submenús */
.submenu,
.submenu-level2 {
  display: none;
  position: absolute;
  background-color: #00B1F8;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.submenu li,
.submenu-level2 li {
  width: 100%;
}

.submenu li a,
.submenu-level2 li a {
  padding: 10px;
  color: white;
}

.submenu li a:hover,
.submenu-level2 li a:hover {
  background-color: #666;
}

.dropdown:hover > .submenu {
  display: block;
}

.dropdown-submenu:hover > .submenu-level2 {
  display: block;
  left: 100%;
  top: 0;
}

/* Menú Hamburguesa */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

/* Iframes Responsivos */
.responsive-iframe {
  width: 100%;
  height: 500px;
  border: none;
  margin-top: 20px;
}

.section {
  padding: 60px 20px;
  min-height: 100vh;
  border-bottom: 1px solid #ddd;
}

/* Botón para ir arriba */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  z-index: 999;
  transition: opacity 0.3s;
}

.scroll-top-btn.show {
  display: block;
}

/* Agenda con Pestañas */
.tab-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
}

.tab-link {
  background-color: #f1f1f1;
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.3s;
  white-space: nowrap;
  margin-right: 5px;
}

.tab-link.active {
  background-color: #007bff;
  color: white;
}

.tab-content {
  width: 100%;
  display: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
}

.tab-content.active {
  display: block;
}

/* Álbum de Fotos */
.photo-album {
  display: flex;
  overflow-x: auto;
  padding: 20px;
  scroll-snap-type: x mandatory;
}

.photo-item {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 20px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s;
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-item:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  overflow: auto;
}

.lightbox-content {
  position: relative;
  margin: 5% auto;
  max-width: 90%;
  max-height: 80%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  user-select: none;
  z-index: 1002;
}

.next {
  right: 0;
}

.prev {
  left: 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-menu {
    display: none;
    width: 100%;
  }

  #menu-toggle:checked ~ .main-menu {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    margin: 10px 0;
    text-align: center;
  }

  .submenu,
  .submenu-level2 {
    position: static;
    display: none;
    width: 100%;
  }

  .dropdown:hover > .submenu,
  .dropdown-submenu:hover > .submenu-level2 {
    display: none;
  }

  .dropdown > a::after {
    content: "▼";
    margin-left: 5px;
  }

  .submenu.active,
  .submenu-level2.active {
    display: block;
  }

  .responsive-iframe {
    height: 300px;
  }

  .photo-item {
    width: 200px;
    margin-right: 10px;
  }

  .photo-item img {
    height: 150px;
  }
}