html {
  scroll-behavior: smooth;
}

body {
  background-color: #fffbf0;
}

.line-child {
  display: block;
  padding-bottom: 10px;
  overflow: hidden;
}

/* Máscara fija que oculta el overflow */
.parallax-mask {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

/* Imagen que se mueve dentro de la máscara */
.parallax-img {
  position: absolute;
  width: 100%;
  height: 130%;
  /* un poco más alto para mover */
  background-size: cover;
  background-position: center;
  will-change: transform;
  object-fit: cover;
}

/* Mobile menu transition */
#mobile-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
}

#mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 0.375rem;
  background-color: #004e64;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  display: flex;
}

#back-to-top:hover {
  background-color: #25a9c3;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Language Dropdown */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #004e64;
  transition: color 0.3s;
}

.language-btn:hover {
  color: #25a9c3;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  min-width: 150px;
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.language-dropdown.open {
  display: flex;
}

.language-option {
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  color: #004e64;
  transition: background-color 0.2s;
}

.language-option:hover {
  background-color: #fffbf0;
}

.language-option.active {
  background-color: #004e64;
  color: white;
  font-weight: 600;
}

/* Mobile language selector */
@media (max-width: 768px) {
  .language-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0;
  }

  .language-dropdown.open {
    display: flex;
  }

  .language-option {
    padding: 0.5rem 1.5rem;
    background: none;
    font-size: 0.75rem;
  }

  .language-option:hover {
    background-color: #f5f5f5;
  }
}

/* Transicion entre paginas */
.transition {
  animation: fade 1.25s backwards;
  -webkit-animation: fade 1.25s backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}