html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}
:root {
  --top-begin: 0px;
  --top-end: 0px;
  --height-begin: 40px;
  --height-end: 40px;
}
body {
  font-family: system-ui;
  height: 100vh;
  background-color: #fff; /* Fondo blanco por defecto */
  color: #fff; /* Color del texto negro por defecto */
  margin: 0;
  padding: 0;
}
/* Asegurar que el header esté correctamente alineado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: fixed; /* Fijar el header en la parte superior */
  top: 0;
  width: 100%;
  z-index: 1000; /* Z-index más alto para que esté sobre el contenido */
  background-color: #090A20; /* Fondo del header para que no se solape */
  box-sizing: border-box;
}

.profile-container {
  margin-left: 20px; /* Mover el toggle de tema a la izquierda */
}

.toggle {
  width: 40px;
  height: 20px;
  background-color: #bab8b8;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  cursor: pointer;
}

.toggle-icon {
  color: #CF621B;
  display: none;
}

.toggle-icon.active {
  display: block;
}

.toggle-ball {
  width: 18px;
  height: 18px;
  background-color: black;
  position: absolute;
  right: 1px;
  border-radius: 50%;
  transition: 1s ease all;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center; 
}
.logo {
  max-height: 50px;
}
.menu-toggle {
  margin-right: 20px;
  padding: 10px;
  font-size: 22px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  width: auto;
  display: flex;
  align-items: center;
}

.menu-toggle i {
  pointer-events: none; /* Evita que el icono interfiera con el clic del botón */
}


.menu-toggle.active i {
  transform: rotate(90deg); /* Animación de rotación cuando está activo */
}
.menu {
  display: none;
  position: fixed;
  right: 0;
  left: 70%;
  top: 0; /* Será ajustado dinámicamente */
  background-color: rgba(42, 36, 77, 0.9); /* Color de fondo con transparencia */
  padding: 20px;
  z-index: 9999; /* Asegura que esté sobre el contenido */
  overflow-y: auto; /* Habilita el scroll si el contenido es largo */
  transition: transform 0.1s ease-in-out;
  font-weight: 500;
}

.menu.active {
  display: block;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .menu {
    top: 22%;
    height: calc(100vh - 60px);
    width: 100%;
    left: 0;
  }
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
ul li {
  padding: 10px;
  margin-bottom: 30px;
  position: relative;
  color: #757474;
  cursor: pointer;
  transition: 0.5s;
  transition-delay: 1s;
}
ul li i {
  width: 30px;
  font-size: 17px;
  position: relative;
  z-index: 1;
  text-align: center;
  margin-right: 30px;
}


li i:nth-child(2) {
  position: absolute;
  right: 0;
  top: 15px;
  transition: 0.5s;
  opacity: 0.5;
}
ul li li {
  margin-bottom: unset;
  margin-top: 10px;
  padding-left: 50px;
  opacity: 0;
  animation: shochild 1s ease 1 forwards;
  position: relative;
  z-index: 1;
}
@keyframes shochild {
  from {
      opacity: 0;
      transform: translate(0, -20px);
  }
  to {
      opacity: 1;
  }
}
li li:nth-last-child(1) {
  margin-bottom: 0;
  padding-bottom: 0;
}
ul li li::before {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 5px;
  height: 5px;
  content: '';
  background-color: #DD789A;
  z-index: 1;
  transition: 1s;
}
ul li li:nth-child(1),
ul li li:nth-child(1)::before {
  transition-delay: 1.2s;
}
ul li li:nth-child(2),
ul li li:nth-child(2)::before {
  transition-delay: 1.4s;
}
ul li li:nth-child(3),
ul li li:nth-child(3)::before {
  transition-delay: 1.6s;
}
ul li li:nth-child(2) {
  animation-delay: 0.2s;
}
ul li li:nth-child(3) {
  animation-delay: 0.4s;
}
ul ul {
  position: relative;
  display: none;
  transition: 1s;
}
.showMenuChild {
  transform: rotate(180deg);
}
.showMenuChild ~ ul {
  display: block;
}
#action {
  background-color: red;
  position: absolute;
  width: 40px;
  height: var(--height-end);
  border-radius: 30px;
  background-image: linear-gradient(to bottom, #CF621B, #9a966f);
  top: var(--top-end);
  left: 5px;
  transition: 1s;
}
.active li::before {
  background-color: #090A20;
}
.runanimation {
  animation: animationaction 1s ease-in 1;
}
.active, .active li {
  color: #fff;
}
@keyframes animationaction {
  0% {
      height: var(--height-begin);
      top: var(--top-begin);
  }
  30% {
      height: var(--height-begin);
      width: 10px;
      height: 10px;
      transform: translate(15px);
  }
  50% {
      filter: none;
      height: 10px;
  }
  70% {
      width: 10px;
      transform: translate(15px);
      filter: blur(3px);
  }
  100% {}
}
a {
  text-decoration: none; /* Quitar subrayado */
  color: inherit; /* Mantener el color heredado */
}

a:focus, a:hover, a:active {
  outline: none; /* Eliminar efecto de contorno */
}


/* Ajustar el estilo de los botones */
.slider-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #CF621B;
  color: white;
  border: 1px solid #fff;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Mantener el texto en una sola fila */
  margin-right: 2px; /* Distancia de 2px entre botones */
}

.slider-button:hover {
  background-color: #000;
}

/* Estructura del slider */
.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.slider .list {
  display: flex;
  flex-wrap: nowrap; /* Mantener los botones en una línea */
  gap: 2px; /* Espacio de 2px entre los botones */
  width: 100%;
  animation: autoRun 40s linear infinite; /* Animación más lenta, 40s para reducir la velocidad a la mitad */
}

.slider .list .item {
  display: inline-flex; /* Ajustar para que cada botón sea un elemento inline-flex */
  align-items: center;
}

@keyframes autoRun {
  from {
    transform: translateX(0); /* Inicia desde la posición normal */
  }
  to {
    transform: translateX(calc(-200%)); /* Desplaza el doble del ancho para el loop continuo */
  }
}

.slider:hover .list {
  animation-play-state: paused!important;
  filter: grayscale(1);
}

.slider .list .item:hover {
  filter: grayscale(0);
}

.slider[reverse="true"] .list {
  animation: reversePlay 40s linear infinite; /* Ajustar la duración para el modo reverso */
}

@keyframes reversePlay {
  from {
    transform: translateX(calc(-200%));
  }
  to {
    transform: translateX(0);
  }
}


/* Sección del header con imagen de fondo */
.hero {
  background-image: url('Amerian-Galeria/highlights/PSX_20220304_090946.jpg');
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif; /* Ejemplo de tipografía minimalista */
}

.hero-content {
  background: rgba(0, 0, 0, 0.449); /* Reducir opacidad para un look más limpio */
  padding: 20px;
  border-radius: 10px; /* Borde redondeado para una apariencia suave */
}

.hero-content h1 {
  font-size: 2.5rem; /* Reducir tamaño de fuente */
  margin: 0;
}

.hero-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem; /* Espaciado ajustado */
  font-weight: 300;
}

.cta-button {
  padding: 0.5rem 2rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  background-color: #E9722C; /* Color primario más vibrante */
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #CF621B; /* Color de hover */
}


/* Galería estilo Pinterest */
/* Galería estilo Pinterest */
.gallery {
  padding: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.grid-item {
  position: relative;
  height: 300px; /* Altura fija para los elementos de la cuadrícula */
}

.grid-item img {
  width: 100%;
  height: 100%; /* Ajustar la imagen al contenedor */
  object-fit: cover; /* Recortar la imagen para que se ajuste al contenedor */
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Sombra negra */
}

.grid-item img.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  max-width: 444px;
  max-height: 576px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}



/* Galería completa con carrusel */
.full-gallery {
  text-align: center;
  padding: 2rem;
}

.hidden {
  display: none;
}

.slideshow-container {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slides {
  display: fixed;
  transition: transform 0.8s ease;
}


.slides img {
  min-width: 100%;
  user-select: none;
  border: 1px solid black; /* Borde negro de 1px */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Sombra negra */
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}



@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-item {
    height: 150px; /* Altura fija más pequeña para dispositivos móviles */
  }
  .grid-item img.expanded {
    max-width: 296px;
    max-height: 384px;
  }
}
/* Footer */
/* Footer Styles */
.footer {
  background-color: #090A20;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  width: 150px;
  margin-bottom: 20px;
}
.footer-info {
  margin-bottom: 20px;
}
.footer-info p {
  margin: 5px 0;
}
.footer-info a {
  color: #E9722C;
  text-decoration: none;
}
.footer-social ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-social ul li {
  margin: 0 10px;
  background: none;
}
.footer-social ul li div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}
.footer-social ul li a.icon {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 63px;
  background: #CF621B;
  border-radius: 50%;
  font-size: 30px;
  color: #fff;
  transition: .5s;
  margin-bottom: 10px;
  z-index: 1;
}
.footer-social ul li a.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #CF621B;
  transition: .5s;
  transform: scale(1.1);
  z-index: -1;
}
.footer-social ul li a.icon:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 15px #CF621B;
  background-color: #000;
}
.footer-social ul li a.icon:hover {
  color: #CF621B;
  box-shadow: 0 0 5px #CF621B;
  text-shadow: 0 0 5px #CF621B;
  background-color: #000;
}
.footer-social ul li a.usuario {
  position: relative;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 15px;
  background: #CF621B;
  border-radius: 20px;
  transition: .5s;
  z-index: 1;
}
.footer-social ul li a.usuario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: .5s;
  transform: scale(.9);
  z-index: -1;
}
.footer-social ul li a.usuario:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 15px #CF621B;
}
.footer-social ul li a.usuario:hover {
  color: #fff;
  text-shadow: 0 0 5px #CF621B;
  background-color: #000;
}
.footer-social ul li a.icon:hover + a.usuario, .footer-social ul li a.usuario:hover {
  box-shadow: 0 0 5px #CF621B;
  text-shadow: 0 0 5px #CF621B;
}
.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 15px;
  border-radius: 5px;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-logo, .footer-info, .footer-social {
    margin: 0 20px;
  }
  .footer-logo img {
    margin-bottom: 0;
  }
  .footer-social {
    margin-bottom: 0;
  }
  .footer-map iframe {
    height: 400px;
  }
}
@media (max-width: 768px) {
  .footer-social ul {
    flex-direction: column;
  }
  .footer-social ul li {
    margin: 10px 0;
  }
}
.boton-personalizado {
  position: relative;
  display: inline-block;
  background-color: #CF621B;
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  text-align: center;
  transition: all 0.5s;
}
.boton-personalizado:hover {
  background-color: #333;
  box-shadow: 0 0 10px #CF621B;
  text-shadow: 0 0 10px #CF621B;
}
/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #128C7E;
  color: white;
  width: 60px;  /* Establecer ancho fijo */
  height: 60px; /* Establecer altura fija */
  border-radius: 50%; /* Hacerlo perfectamente circular */
  text-align: center;
  line-height: 60px; /* Centrar el ícono verticalmente */
  font-size: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 11111;
}
.whatsapp-button:hover {
  background-color: #075E54; /* Más oscuro en hover */
  transform: scale(1.1); /* Agrandar ligeramente en hover */
}

/* Estilos para el tema oscuro */
body.dark .toggle {
  background-color: #FFF;
}

body.dark .toggle-ball {
  background-color: white;
  right: calc(100% - 19px);
}
/* Tema oscuro */
body.dark {
  background-color: #000; /* Fondo negro */
  color: #FFF; /* Color de texto naranja (color de la marca) */
}

body.dark a {
  color: #FFF; /* Enlaces en naranja */
}

body.dark .menu {
  background-color: rgba(0, 0, 0, 0.9); /* Menú oscuro */
}

body.dark .carousel .list .item .content {
  color: #CF621B; /* Texto en el carrusel de color naranja */
}

body.dark button:hover {
  background-color: #333; /* Efecto hover en botones oscuros */
}
body.dark h1 {
  color: #fff;
}
/* Transición de fondo y color entre temas */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Estilo del botón de cambio de tema */
.boton-cambio-tema {
  width: 60px;
  height: 30px;
  background-color: #CF621B; /* Naranja de la marca */
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.5s ease;
}

/* Pelota que se mueve entre los íconos */
.pelota-boton-cambio-tema {
  width: 25px;
  height: 25px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  transition: transform 0.5s ease; /* Suaviza el movimiento de la pelota */
}

/* Íconos de sol y luna */
.icono-sol, .icono-luna {
  position: absolute;
  font-size: 18px;
  color: #fff; /* Cambia el color del ícono para que se vea sobre el fondo */
  transition: opacity 0.5s ease;
}

.icono-sol {
  left: 10px;
}

.icono-luna {
  right: 10px;
  color: #fff; /* Luna en blanco inicialmente */
  opacity: 0; /* La luna está oculta inicialmente */
}

/* Cuando está en modo oscuro */
body.dark .boton-cambio-tema {
  background-color: #333; /* Color de fondo para el botón en modo oscuro */
}

body.dark .pelota-boton-cambio-tema {
  transform: translateX(24px); /* Mueve la "pelota" hacia el lado de la luna */
}

body.dark .icono-sol {
  opacity: 0; /* Oculta el sol en modo oscuro */
}

body.dark .icono-luna {
  opacity: 1; /* Muestra la luna en modo oscuro */
  color: #090A20; 
}

/* Cuando está en modo claro */
body:not(.dark) .icono-sol {
  opacity: 1; /* Muestra el sol en modo claro */
  color: #CF621B;
}

body:not(.dark) .icono-luna {
  opacity: 0; /* Oculta la luna en modo claro */
}

/* Botón de la derecha */
.flecha-der {
  position: fixed;
  padding: 10px;
  font-size: 2rem;  
  background-color: #090A20;
  color: white;
  border-radius: 15px;
  width: 60px;
  height: 90px;
  cursor: pointer;
  z-index: 99999;
  top: 50%;
  right: 20%;
}

/* Botón de la izquierda */
.flecha-izq {
  position: fixed;
  padding: 10px;
  font-size: 2rem;  
  background-color: #090A20;
  color: white;
  border-radius: 15px;
  width: 60px;
  height: 90px;
  cursor: pointer;
  z-index: 99999;
  top: 50%;
  left: 20%;
}

/* Botón de cierre */
.btn-cerrar {
  position: fixed;
  padding: 5px;
  font-size: 1rem;  
  font-weight: 700;
  background-color: rgba(255, 0, 0, 1);
  color: white;
  border-radius: 50%;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9999;
  top: 2.5vh;
  right: 20vh;
}

.btn-cerrar:hover {
  background-color: rgb(151, 1, 1) !important;
}

.flechas {
  display: none;
}

.flechas.show {
  display: block;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; 
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.866);
  z-index: 999;
}

.overlay.show {
  display: block;
}

@media only screen and (max-width: 768px) {
  .flecha-der, .flecha-izq {
    width: 40px;
    height: 70px;
    font-size: 1.5rem;
    top: 50%;
  }

  .flecha-der {
    right: 5%;
  }

  .flecha-izq {
    left: 5%;
  }

  .btn-cerrar {
    position: fixed;
    padding: 5px;
    font-size: 1rem;  
    background-color: rgba(255, 0, 0, 1);
    color: white;
    border-radius: 15px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    top: 20vh;
    right: 4vh;
  }

}
