body {


  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fdf9f0; 
  color: #333;
}


h1, h2 {
  color: #9fb47b; 
  text-align: center;
}

p {

  text-align: center;
  margin: 0 20px 20px;

}


nav {

  background-color: #f6f2e8; 
  padding: 10px 0;
  position: sticky; /* La barra de navegación se queda arriba fija*/
  top: 0;
  z-index: 100;
}


nav ul {

  display: flex; /*Coloca los elementos una al lado del otro */
  justify-content: center; /*Centra los elementos horizontalmente*/
  list-style: none; /* Quita los puntos que aparece al listar los elementos*/
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {

  text-decoration: none; /* Quita la linea de subrayar de los enlaces*/
  color: #a3b18a; 
  font-weight: bold;

}


nav ul li a:hover {
  color: #7b8b5a; /* verde más oscuro al pasar el ratón */
}


.fotoPortada {

  background-image: url("../Imagenes/fotoencabezado.jpg"); 
  background-size: cover;
  background-position: center;
  height: 300px; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,22);

}

.overlay {

  background-color: rgba(0, 0, 0, 0.004); 
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#inicio {

  padding: 50px 20px;
  text-align: center;
  background-color: #f8f7f2;
}


#inicio h2 {

  color: #7b8b5a;
  margin-bottom: 15px;

}


#inicio p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}


.carrusel {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}


.carruselFotos {
 width: 100%;
  display: none;
  border-radius: 10px;
}

#cuentaAtras {
  font-size: 2rem;
  font-weight: bold;
  color: #7b8b5a;
  margin-bottom: 20px;
}
#cuentaAtras {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  font-size: 1.5rem;
  color: #3a6b35; /* verde pastel */
  margin-top: 20px;
}

#cuentaAtras div {
  background-color: rgba(255,255,255,0.8);
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  min-width: 70px;
}

.lineaTiempo {
    list-style: none;
    padding: 0;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.lineaTiempo::before { /* Dibuja la linea vertical en la linea del tiempo*/
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #a3b18a; /* línea central */
    transform: translateX(-50%);

}

.lineaTiempo li {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}


/*Alternacion del texto de izquierdaa derecha en linea del tiempo*/
.lineaTiempo li:nth-child(odd) {
    left: 0;
    text-align: right;
}


.lineaTiempo li:nth-child(even) {
    left: 50%;
}

/* Punto verde que marca cada evento en la linea del tiempo*/
.lineaTiempo li::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    background: #7b8b5a;
    border-radius: 50%;
    z-index: 1;
}


/*En los impares mueve el punto a la derecha del bloque*/
.lineaTiempo li:nth-child(odd)::before {
    right: -8px;
}


/*En los pares mueve el punto a la izquierda del bloque*/
.lineaTiempo li:nth-child(even)::before {
    left: -8px;
}


/* Crea el cartelito cuando pasas el raton por encima*/
.lineaTiempo li[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #f6f2e8;
    padding: 5px 10px;
    border-radius: 5px;
    top: -30px;
    white-space: nowrap;
    font-size: 0.9rem;
}


/*Posicion del cartelito a cada uno de los lados*/
.lineaTiempo li:nth-child(odd):hover::after {
    right: 100%;
}


.lineaTiempo li:nth-child(even):hover::after {
    left: 100%;
}


#historia {
  background-color: #fdf9f0; 
  padding: 60px 20px;
  text-align: center;
}


#historia h2 {
  color: #a3b18a;
  margin-bottom: 40px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.historiaContenedor {

  margin: 40px auto;
  max-width: 1000px;
  position: relative;

}

/* Bloques (izquierda y derecha) */
.historiaBloqueIzquierda,
.historiaBloqueDerecha {

  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fffaf3; 
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.historiaBloqueIzquierda:hover,
.historiaBloqueDerecha:hover {

  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);

}


.historiaBloqueIzquierda img,
.historiaBloqueDerecha img {
  width: 45%;
  height: auto;
  object-fit: cover;


}


.texto {

  width: 50%;
  padding: 20px 30px;
  text-align: left;

}

.texto h3 {

  color: #7b8b5a;
  margin-bottom: 10px;

}

.texto p {

  color: #333;
  line-height: 1.6;

}


.historiaBloqueIzquierda {

  flex-direction: row;

}

.historiaBloqueDerecha {

  flex-direction: row-reverse;

}


@media (max-width: 768px) {

  .historiaBloqueIzquierda,
  .historiaBloqueDerecha {
    flex-direction: column;
  }

  .historiaBloqueIzquierda img,
  .historiaBloqueDerecha img,
  .texto {
    width: 100%;
    text-align: center;
  }

  .texto {
    padding: 15px;
  }
}


#mensajes {

  padding: 50px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}


.mensajesContenedor {
  margin-bottom: 30px;
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.mensajesContenedor::-webkit-scrollbar {
  width: 8px;
}

.mensajesContenedor::-webkit-scrollbar-track {
  background: #f6f2e8;
  border-radius: 4px;
}

.mensajesContenedor::-webkit-scrollbar-thumb {
  background: #a3b18a;
  border-radius: 4px;
}

.mensajesContenedor::-webkit-scrollbar-thumb:hover {
  background: #7b8b5a;
}

.sin-mensajes {

  color: #666;
  background: transparent;
  padding: 10px 0;
  text-align: center;
  font-style: italic;

}


.mensaje {
  background-color: #f6f2e8; 
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.subtituloMensajes {

  text-align: center;
  color: #a3b18a; 
  font-size: 1.2rem; 
  margin-bottom: 20px;

}


textarea::placeholder {
    color: #9b9494; /* mismo color que tu texto normal */
    font-family: Arial, sans-serif; /* mismo tipo de letra */
    font-size: 1rem; /* mismo tamaño */
    font-style: normal; 
}

.mensaje h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #7b8b5a;
}

.mensaje p {

  margin: 0;
}
/* Formulario */
#formularioMensaje {

  display: flex;
  flex-direction: column;
  align-items: center;
}


#formularioMensaje label  {

  align-self: flex-start;
  margin-left: 10%;
  color: #666;
}


#formularioMensaje input,
#formularioMensaje textarea {

  width: 80%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #dcd6c6;
  font-size: 1rem;
  box-sizing: border-box;

}

#formularioMensaje button {
  background-color: #a3b18a;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#formularioMensaje button:hover {
  background-color: #7b8b5a;
}



@media (max-width: 600px) {
  #formularioMensaje label {
    align-self: center;
    margin-left: 0;
  }
  #formularioMensaje input,
  #formularioMensaje textarea {
    width: 95%;
  }

}
/* ===== Cómo llegar ===== */
#mapa {
  padding: 50px 20px;
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  background-color: #fdf9f0; /* color de fondo suave */
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}


#mapa h2 {

  color: #a3b18a; /* verde crema */
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

#mapa p {
  color: #5c5c4c; /* gris suave */
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;

}


/* Contenedor del mapa dinámico */
#mapaInteractivo {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  background-color: #f4f1e6; 
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/* Efecto hover para el mapa */
#mapaInteractivo:hover {
  transform: scale(1.02);
}


#mapa p:last-of-type {
  font-style: italic;
  color: #7b8b5a;
}

/* ==== FORMULARIO DE CONFIRMACIÓN (VERSIÓN ELEGANTE Y SUAVE) ==== */

.confirmacionAsistencia {
  background-color: #f9f8f6;
  padding: 80px 20px;
  text-align: center;
}

.confirmacionAsistencia h2 {
  font-family: 'Playfair Display', serif;
  color: #6b8c72;
  font-size: 2em;
  margin-bottom: 10px;
}

.confirmacionAsistencia p {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}

.formularioAsistencia {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.formularioAsistencia .campo {
  margin-bottom: 20px;
}

.formularioAsistencia label {
  display: block;
  font-weight: 600;
  color: #4c6b58;
  margin-bottom: 6px;
  font-size: 0.95em;
}

.formularioAsistencia input,
.formularioAsistencia select,
.formularioAsistencia textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formularioAsistencia input:focus,
.formularioAsistencia select:focus,
.formularioAsistencia textarea:focus {
  border-color: #9bbf9e;
  box-shadow: 0 0 0 3px rgba(155,191,158,0.25);
  outline: none;
}

.btnEnviar {
  display: block;
  width: 100%;
  background-color: #8fb996;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.btnEnviar:hover {
  background-color: #7ca884;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .formularioAsistencia {
    padding: 25px 20px;
  }
}

.ocultar {
  display: none;
}

.formularioInicioSesion {
  background-color: #9fb47b30;
}

.invitadoSeleccionado {
  background-color: #9fb47b;
}

/* ...existing code... */

.iframe-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* centrar y eliminar la barra visual del iframe (siempre que el iframe no exceda su altura) */
.iframe-wrapper iframe {
    max-width: 100%;
    width: 640px;
    height: 3000px; /* mantén o ajusta la altura para que el contenido no necesite scroll */
    border: 0;
    display: block;
    overflow: hidden;              /* oculta barras si el navegador las muestra en el elemento iframe */
    -ms-overflow-style: none;      /* IE/Edge */
    scrollbar-width: none;         /* Firefox */
}

/* ocultar scrollbars en navegadores WebKit (Chrome, Safari) */
.iframe-wrapper iframe::-webkit-scrollbar {
    display: none;
}