body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fafafa;
}
body, html {
  margin: 0;
  padding: 0;
}

/* Seccion del carrusel */
.contenedor-carrusel {
  width: 100%;
  height: 100vh;      
  padding-top: -50px; 
  perspective: 1000px;
  overflow: hidden;
  position: relative;
}

.contenedor-carrusel::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(183, 169, 199, 0.5);
  z-index: 1;
  pointer-events: none;
}

.carrusel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform -50s linear; 
}

.carrusel .item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  backface-visibility: visible; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10; 
}

.carrusel .item h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-top: -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;
  animation: fadeUpIn 8s ease-in-out infinite;
}

.carrusel .item p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 60%;
  padding-top: -20px;
  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;
  animation: fadeUpIn 8s ease-in-out infinite;
}

.carrusel .item:hover h1, .carrusel .item:hover p {
  color: #250329;
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

.carrusel .item:hover p {
  color: #250329;
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(253, 253, 253, 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, .fondo2, .fondo3, .fondo4 {
  background-color: #8c6d91;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: overlay;    
}

.fondo1 { background-image: url('img/fondo.jpg'); }
.fondo2 { background-image: url('img/fondo2.jpg'); }
.fondo3 { background-image: url('img/fondo3.jpg'); }
.fondo4 { background-image: url('img/fondo4.jpg'); }

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.carrusel .item h1,
.carrusel .item p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}

.carrusel .item.active h1,
.carrusel .item.active p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s; 
}


/* Barra de navegacion */
.barra-navegacion {
  background: transparent; 
  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;
}

/* Cuando se baja el scroll, se activa esta clase */
.barra-navegacion.scroll-activa {
  background: rgba(146, 99, 153, 1); 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
}

/* Seccion de la nube flotante */
.nube {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffffffcc;
  color: #333;
  padding: 20px 25px;
  border-radius: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", sans-serif;
  font-size: 1.1rem;
  max-width: 320px;
  animation: flotar 3s ease-in-out infinite;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

@keyframes flotar {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


/* Contenedor principal para menú hamburguesa, logo y navegación */
.header-wrapper {
  gap: 18px;
  display: flex;
  align-items: center;
  left: 910px;
  padding-left: 10px;
  background-color: rgba(146, 99, 153, 1);
  height: 70px;
  width: 100%;
  position: relative;
  z-index: 10000;
}

/* Botón hamburguesa */
#menuToggle {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10001;
}

/* Barras del botón */
#menuToggle span {
  display: block;
  z-index: 10002;
  width: 33px;
  height: 4px;
  margin: 3px 0;
  background: rgb(208, 176, 212);
  border-radius: 3px;
  position: relative;
  transform-origin: center;
  transition:
    transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.3s ease;
}

/* Estado cerrado (hamburguesa) */
#menuToggle span:nth-of-type(1) {
  transform: rotate(0) translate(0, 0);
  background: rgb(208, 176, 212);
  opacity: 1;
}

#menuToggle span:nth-of-type(2) {
  opacity: 1;
  transform: scale(1);
  background: rgb(208, 176, 212);
}

#menuToggle span:nth-of-type(3) {
  transform: rotate(0) translate(0, 0);
  background: rgb(208, 176, 212);
  opacity: 1;
}

/* Estado abierto (X) */
#menuToggle.open span:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 9px);
  background: rgb(224, 179, 231);
}

#menuToggle.open span:nth-of-type(2) {
  opacity: 0;
  transform: scale(0);
}

#menuToggle.open span:nth-of-type(3) {
  transform: rotate(-45deg) translate(5px, -9px);
  background: rgb(224, 179, 231);
}

#nenu {
  overflow-y: auto; /* Asegura que tenga scroll si lo necesita */
  max-height: 100vh; /* Para limitar la altura si es necesario */
}

#menu::-webkit-scrollbar {
  width: 8px;
}

#menu::-webkit-scrollbar-track {
  background: #fce9fc;
}

#menu::-webkit-scrollbar-thumb {
  background-color: #924f9a;
  border-radius: 10px;
}

#menu::-webkit-scrollbar-thumb:hover {
  background-color: #a26da8;
}



/* Logo con texto */
.logo-texto {
  display: flex;
  align-items: center;
  gap: 10px; 
}

/* Imagen del logo */
.imagen-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* Texto del logo */
.falling-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  position: relative;
}

.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;
  }
}

/* Navegación centrada y que ocupe el resto del espacio */
.navegacion-centro {
  flex: 1;
  display: flex;
  justify-content: left;
  align-items: center;
}

.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;
}

/* Menú lateral */
#menu {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 400px;
  width: 80vw;
  height: 100vh;
  margin: 0;
  padding: 40px 30px 30px 30px;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(146, 99, 153, 1);
  list-style-type: none;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
  -webkit-font-smoothing: antialiased;
  z-index: 10000;
}

/* Mostrar menú al abrir */
#menu.open {
  transform: translateX(0);
}

/* Títulos principales */
#menu h1 {
  font-size: 2.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(203, 157, 226, 0.5);
  margin-top: 0;
  border-bottom: 2px solid #b161b9;
  padding-bottom: 10px;
}

/* Contenedores de iconos */
.iconos-redes, 
.iconos-redes2 {
  padding: 20px;
  border-radius: 12px;
  background: #f3e5f5;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(177, 113, 186, 0.2);
}

/* Subtítulos */
.subtema h2 {
  font-size: 1.2rem;
  text-align: center;
  color: #5e2b6d;
  border-bottom: 2px solid #b161b9;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

/* Cada ítem con icono y texto */
.icono-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.icono-item:hover {
  background-color: rgba(177, 113, 186, 0.1);
}

/* Enlaces dentro de icono-item */
.icono-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #4c1a52;
  font-weight: 600;
  font-size: 14px;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Imágenes de iconos */
.icono-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(133, 68, 144, 0.2);
  transition: transform 0.3s ease;
}

.icono-item img:hover {
  transform: scale(1.1);
}

.icono-item span{
  font-size: 11px;
}

/* Botón SMS */
.boton-sms {
  background-color: #925fbd;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 12px rgba(146, 99, 153, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-sms:hover {
  background-color: #a780d0;
  transform: scale(1.05);
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}




/* 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);
}

/* Seccion de la informacion de contacto */
.info-contacto {
  background: #f3e5f5;
  padding: 40px 20px;
  text-align: center;
  border-top: 4px solid #b161b9;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
}

.info-contacto h2 {
  color: #66256d;
  margin-bottom: 20px;
}

.info-contacto a {
  color: #7a1554;
  text-decoration: none;
  border-radius: 3px;
}


.fila-contacto.columna {
  flex-direction: column;
}

.fila-contacto {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  margin-bottom: 10px;
  text-align: center;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.fila-contacto iframe{
  width: 100%;
  height: 490px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.fila-contacto h1 {
  color: #93329e;
  margin: 0 0 8px; 
  font-size: 30px;
  text-align: center;
}

.fila-contacto p {
  margin: 0;
  text-align: center;
  padding-left: 5px;
  color: #636363;
}


.fila-contacto img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-left: 8px;
}

.seccion-contacto {
  background: #e8f5e9;
  padding: 60px 20px;
  max-width: 800px;
  margin: 20px auto 80px;
  border-top: 4px solid #bdd8c0;
  border-radius: 8px;
}

.seccion-contacto h2 {
  color: #79a57c;
  text-align: center;
  margin-bottom: 30px;
}

.boton-llamarr {
  display: inline-block;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 50px;
  object-position: center;
  transition: 0.3s ease, transform 0.2s ease;
}

.boton-llamarr:hover {
  transform: scale(1.03);
}
/* Seccion del formulario de contacto */

.formulario-contacto {
  max-width: 600px;
  margin: auto;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formulario-contacto label {
  font-weight: 600;
  color: #444;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto input[type="tel"],
.formulario-contacto input[type="file"],
.formulario-contacto select,
.formulario-contacto textarea {
  padding: 14px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #000;
}

.formulario-contacto textarea {
  resize: vertical;
  min-height: 150px;
}

.formulario-contacto .terminos {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formulario-contacto .terminos a {
  color: #7a1554;
}

.formulario-contacto button {
  padding: 14px;
   background-color: #97b99a;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #4d9954;
}

/* Pie de pagina */
footer {
  background: rgba(146, 99, 153, 255);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

footer p{
  left: auto;
}

@media (max-width: 768px) {
  .barra-navegacion {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 15px;
  }

  .imagen-logo {
    width: 50px;
    border-radius: 50%;
  }

  .falling-titulo {
    font-size: 15px;
  }

  .navegacion-centro {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .navegacion-centro ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .navegacion-centro ul li a {
    font-size: 13px;
    padding: 8px 10px;
  }

  #container {
    top: 10px;
    right: 10px;
    transform: scale(0.85);
  }

  #menuToggle span {
    width: 28px;
    height: 3px;
  }

  .carrusel .item h1 {
    font-size: 1.5rem;
  }

  .carrusel .item p {
    font-size: 1rem;
    max-width: 50%;
  }

  .header-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .formulario-contacto form {
    gap: 10px;
  }

  .nube {
    right: 10px;
    bottom: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .fila-contacto iframe {
    height: 300px;
  }

  .info-contacto,
  .seccion-contacto {
    padding: 20px 10px;
    margin: 20px auto;
  }

  .formulario-contacto button {
    font-size: 0.9rem;
    padding: 10px;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}



/* Modo oscuro */
body,
body * {
  transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}
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 {
  background: rgba(62, 31, 99, 0.5);

}
body.active .barra-navegacion {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

body.active .barra-navegacion.scroll-activa {
  background: #2c0059;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
}

body.active .barra-navegacion .menu a {
  color: #fff;
  text-decoration: none;
}

body.active .barra-navegacion .menu a:hover {
  color: #8160a1;
  transform: scale(1.2);
  text-decoration: none;
}

body.active .info-contacto {
  background-color: #311b92;
  border-top-color: #24136e;
}

body.active .info-contacto a {
  color: #311b92;
}

body.active .info-contacto .iconos-redes img {
  filter: brightness(0.8);
  
}

body.active .seccion-contacto {
  background-color: #4a148c;
  border-top-color: #350f64;
  color: #eee;
}

body.active .formulario-contacto label {
  color: #ddd;
  
}


body.active .formulario-contacto input,
body.active .formulario-contacto select,
body.active .formulario-contacto textarea {
  background-color: #6c22c7;
  border-color: #621fb4;
  color: #ffffff;
  
}

body.active .formulario-contacto button {
  background-color: #f50057;
  
}

body.active .formulario-contacto button:hover {
  background-color: #aa1348;
  
}

body.active footer {
  background: #2c0059;
  color: #ddd;
  
}
body.active .fila-contacto {
  background-color: #493991;
  border-color: #5846aa;
  color: #eee;
  box-shadow: 0 2px 4px rgba(67, 20, 155, 0.1);
  
}

body.active .fila-contacto h1,
body.active .fila-contacto p {
  color: #eee;
  
}

body.active .fila-contacto img {
  filter: brightness(0.8);
  
}

body.active .nube{
  background: #764aa5b7;
  color: #fff;
}



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;
}

body.active #menuToggle span {
  background: #601ea1;
}

body.active #menuToggle span:nth-of-type(1) {
  background: #601ea1;
  opacity: 1;
}

body.active #menuToggle span:nth-of-type(3) {
  background: #601ea1;
  opacity: 1;
}
body.active #menuToggle.open span:nth-of-type(1) {
  background: #601ea1;
}

body.active #menuToggle.open span:nth-of-type(3) {
  background: #601ea1;
}

body.active #menu{
  background: #2c0059;
}

body.active #menu h1 {

  color: #bba3d3;
  text-shadow: 1px 1px 3px #462764;
  border-bottom: 2px solid #462764;
}


body.active .iconos-redes, 
body.active .iconos-redes2 {
  background: #8f73aa;
  box-shadow: 0 6px 15px rgba(36, 13, 90, 0.2);
}

body.active .subtema h2 {
  color: #3b274e;
  border-bottom: 2px solid #816899;
}

body.active .icono-item:hover {
  background-color:  rgba(66, 39, 128, 0.2);
}

body.active .icono-item a {
  color: #40205e;
}


body.active .icono-item img {
  box-shadow: 0 2px 6px rgba(66, 39, 128, 0.2);
  transition: transform 0.3s ease;
}

body.active .boton-sms{
  background-color: #58337c;
}
body.active .boton-sms span{
  color: #cdbfdb;
}

body.active #menu::-webkit-scrollbar-track {
  background: #462764;
}

body.active #menu::-webkit-scrollbar-thumb {
  background-color: #603b85;
  border-radius: 10px;
}

body.active #menu::-webkit-scrollbar-thumb:hover {
  background-color: #6d4b8f;
}
