body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fafafa;
}
body, html {
  margin: 0;
  padding: 0;
}

/* Seccion del carrusel */
.contenedor-carrusel {
  aspect-ratio: 16 / 9; 
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.contenedor-carrusel::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(191, 151, 240, 0.5);
    z-index: 1;
    pointer-events: none;
  }

.carrusel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform -40s;
}

.carrusel .item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}

.carrusel .item h1 {
  color: #fff;
  font-size: clamp(4rem, 6vw, 2.5rem) !important;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.carrusel .item p {
  color: #fff;
  font-size: clamp(4rem, 4vw, 1.8rem) !important;
  text-align: center;
  max-width: 60%;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.carrusel .item:hover h1, .item:hover p {
  color: #37133b;
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

.carrusel .item:hover p {
  color: #37133b;
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

.telefono-link {
  display: inline-block;
  color: #fff;
  font-size: clamp(4rem, 4vw, 1.8rem);
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.item:hover .telefono-link {
  color: #37133b;
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

.carrusel .item:nth-child(1) { transform: rotateY(0deg)   translateZ(450px); }
.carrusel .item:nth-child(2) { transform: rotateY(90deg)  translateZ(450px); }
.carrusel .item:nth-child(3) { transform: rotateY(180deg) translateZ(450px); }
.carrusel .item:nth-child(4) { transform: rotateY(270deg) translateZ(450px); }

.fondo1 { background-image: url('img/fondo5.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat;}
.fondo2 { background-image: url('img/fondo6.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; }
.fondo3 { background-image: url('img/fondo7.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; }
.fondo4 { background-image: url('img/fondo8.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; }

.fondo1, .fondo2, .fondo3, .fondo4{
    background-color: #8c6d91;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-blend-mode: overlay;    
}


.barra-navegacion {
  background: rgba(146, 99, 153, 1); 
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  gap: 10px;
  z-index: 99999;
  transition: background 0.4s ease, box-shadow 0.3s ease;
}



.logo-texto {
  display: flex;
  align-items: center;  
  gap: 10px;    
}

/* Logo */
.imagen-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Texto del logo */
.falling-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  top: 2px;

}

.falling-titulo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #af6fa2, #e3a5d1);
  animation: subrayadoAnimado 2s infinite ease-in-out;
  transform-origin: left;
}

@keyframes subrayadoAnimado {
  0% {
    transform: scaleX(0);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0);
    opacity: 0.5;
  }
}



.navegacion-centro {
  display: flex;
  justify-content: left;
  align-items: left;
  flex: 1;
}

.navegacion-centro ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Estilos enlaces de navegación */
.navegacion-centro ul li a {
  position: relative;
  display: block;
  text-transform: uppercase;
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: 0.5s;
  z-index: 1;
}

.navegacion-centro ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 2px solid #af6fa2;
  border-bottom: 2px solid #af6fa2;
  transform: scaleY(2);
  opacity: 0;
  transition: 0.3s;
}

.navegacion-centro ul li a::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #af6fa2;
  transform: scaleY(0);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

.navegacion-centro ul li a:hover {
  color: #fff;
}

.navegacion-centro ul li a:hover::before,
.navegacion-centro ul li a:hover::after {
  transform: scaleY(1);
  opacity: 1;
}


/* boton del modo oscuro */
#container {
  position: fixed;
  right: 20px;
  width: 70px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(145deg, #96679b, #c27cc9);
  transition: background-color 0.4s ease;
  z-index: 9997;
}

.circle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #bf84c5;
  box-shadow: 0 2px 5px rgba(240, 70, 203, 0.5);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z'/%3E%3C/svg%3E");
  transition: left 0.4s ease, background-color 0.4s ease;
}

#container.active .circle {
  left: 38px;
  background-color: #461677;
  box-shadow: 0 2px 5px rgba(118, 39, 223, 0.863);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z'/%3E%3C/svg%3E");
}

#container.active {
  background: linear-gradient(145deg, #2f0a53, #480d83);
}

@media (max-width: 768px) {
  .barra-navegacion {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    height: auto;
  }

  .logo-texto {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .imagen-logo {
    width: 45px;
  }

  .falling-titulo {
    font-size: 13px;
  }

  .navegacion-centro {
    width: 100%;
    justify-content: flex-start;
  }

  .navegacion-centro ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .navegacion-centro ul li a {
    font-size: 14px;
    padding: 6px 10px;
  }

   #container {
  width: 50px;
  height: 28px;
  top: 20px;
}

.circle {
  width: 22px;
  height: 22px;
  top: 3px;
  left: 2px;
}
}



/* Modo oscuro */

body.active {
background: #121212;
color: #fff;
  
}

body.active h1,
body.active h2,
body.active h3 {
  color: #eee;
}
body.active .carrusel p{
  color: #fff;
}
body.active .contenedor-carrusel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(49, 8, 100, 0.5);
  z-index: 1;
}
body.active .barra-navegacion {
  background: #2c0059;
}

body.active .navegacion-centro ul li a {
  color: #fff;

}

body.active .navegacion-centro ul li a::before {
  border-top: 2px solid #481877;
  border-bottom: 2px solid #481877;

}

body.active .navegacion-centro ul li a::after {
 
  background-color: #481877;

}

body.active .falling-titulo::after {
  background: linear-gradient(to right, #481877, #6c37a0);
  animation: subrayadoAnimado 2s infinite ease-in-out;
  transform-origin: left;
}
