/*------------------ Estilos Generales ------------------*/

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  background-color: #FDF9FF;
  color: #2D1E40;
  background: url(Assets/Img/Salon_violeta2.png) no-repeat center center;
  background-size: cover;
}

h1 {
  text-align: center;
  font-size: 1.5em;
  color: white;
}

#principal {
  background-color: mediumorchid;
  width: 150px;
}

/*------------------ Título ------------------*/

.Titulo {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  color: #7B2CBF;
  background-color: #EDE4F7;
  text-shadow: none;
  border: 2px solid #D4B5F9;
  border-radius: 20px;
  padding: 20px;
  margin: 30px auto;
  width: 80%;
  text-align: center;
}

/*------------------ Menú ------------------*/

nav {
  width: 100%;
  background: linear-gradient(90deg, #7B2CBF, #7B2CBF);
  color: white;
  font-family: 'Georgia', sans-serif;
  box-shadow: 0px 2px 10px rgba(123, 44, 191, 0.3);
  padding-bottom: 1%;
}

.Menu {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
}

nav a {
  color: white;
  font-size: 1.7rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav a:hover {
  background-color: #cf7df5;
  color: #FDF9FF;
  border-radius: 4px;
}

/*------------------ Imágenes y Video ------------------*/

img {
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(112, 0, 79, 0.5);
}

.video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 900px;
  background-color: black;
  margin: 20px auto;
  box-shadow: 15px 15px 10px rgba(112, 0, 79, 0.5);
}

/*------------------ WhatsApp ------------------*/

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: none;
  box-shadow: none;
}

/*------------------ Sección Cartas ------------------*/

.seccion-cartas {
  background: #f8f8f8;
  padding: 60px 20px;
}

.fila-cartas {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.columna {
  flex: 1;
  max-width: 300px;
}

.columna h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

/*------------------ Carrusel ------------------*/
/*------------------ Carrusel ------------------*/
#galeria {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 280px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
}

#book {
  display: flex;
  gap: 20px;
  width: max-content;
  height: auto;
  animation: carrusel 20s linear infinite; /* Automático en escritorio */
}

#book img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin-right: 20px;
}

/* Animación automática (solo escritorio) */
@keyframes carrusel {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-300px); }   /* 1 imagen */
  40%  { transform: translateX(-600px); }   /* 2 imágenes */
  60%  { transform: translateX(-900px); }   /* 3 imágenes */
  80%  { transform: translateX(-1200px);}   /* 4 imágenes */
  100% { transform: translateX(0); }
}

/*------------------ Mobile ------------------*/
@media (max-width: 768px) {
  #book {
    animation: none;                /* Se desactiva el auto carrusel */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #book img {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 80vw;     /* más grande en móviles */
    height: auto;
  }
}

/*------------------ Mapa ------------------*/

#Mapa {
  margin: auto;
  width: 100%;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

#map {
  width: 100%;
  height: 80%;
  box-shadow: 10px 10px 20px rgba(112, 0, 79, 0.5);
  border-radius: 10px;
  border: 1px solid black;
  padding: 10px;
}

/*------------------ Footer ------------------*/

footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 220px;
}

.footer-section h2, .footer-section h3 {
  margin-bottom: 15px;
}

.footer-section p, .footer-section li, .footer-section a {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a:hover {
  color: #cf7df5;
}

.footer-section-contact img{
   background-color: rgba(32, 238, 32, 0.75);
}
.footer-section-contact a{
  text-decoration: none;
  color: rgb(255, 255, 255);

}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 15px;
}
#git-hub a:visited {
    text-decoration: none; /* Quita el subrayado */
    color: inherit; /* Evita que cambie de color después de ser visitado */
}
.footer-section-contact img:hover{
    background-color: rgba(32, 238, 32, 0.75);
    
}
.footer-section-contact a{
  text-decoration: none;
  color: rgb(255, 255, 255);

}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/*------------------ Navegación Carrusel ------------------*/

.navegacion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

button {
  background-color: #ffffff;
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease-in-out, transform 0.2s;
}

button:hover {
  background-color: #000000;
  transform: scale(1.1);
}

button img {
  width: 30px;
  height: 30px;
}

#prevBtn img {
  transform: rotate(180deg);
}

/*------------------ Media Queries ------------------*/

@media (max-width: 1024px) {
  .video {
    width: 100%;
  }
  .fila-cartas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .Titulo {
    font-size: 2em;
    width: 90%;
  }


  nav {
    position: relative;
  }

  nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, rgba(123,44,191,0.7), transparent);
    pointer-events: none; /* no bloquea el scroll */
  }

  .Menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 1rem;
    padding: 0 1rem;
  }

  .Menu::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
}



  .video {
    flex-direction: column;
    width: 95%;
  }


  .whatsapp {
    width: 60px;
    height: 60px;
  }

  button {
    width: 40px;
    height: 40px;
  }

  button img {
    width: 20px;
    height: 20px;
  }


@media (max-width: 480px) {
  .Titulo {
    font-size: 1.5em;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  #map {
    height: 200px;
  }

  .video {
    height: auto;
  }
}
