
html {
  font-size: 100%; /* Ajusta la tipografía relativa */
  scroll-behavior: smooth; /* Scroll suave */
}

body {
  line-height: 1.6;
  text-rendering: optimizeSpeed;
}

p {
  padding: 0;
  margin: 0;
}

ol,
ul {
  list-style: none; /* Quitar viñetas de listas */
}

img,
picture {
  max-width: 100%;
}

table {
  border-collapse: collapse; /* Quitar bordes entre celdas */
  width: 100%;
}

body {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  background-color: #ffe3fb;
}

h1 {
  font-family: "Alex Brush", serif;
  font-weight: 550;
  font-style: normal;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 1000;
  padding: 15px 20px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

header.scrolled {
  background-color: #222222;
  color: rgb(0, 0, 0);
  box-shadow: 0 10px 35px 0 rgba(0, 0, 0, .1);
}

#contenido-w {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  justify-content: center;
  flex-direction: column;
}

#contenido-w section {
  padding: 40px 0;
  width: 100%;
  border-radius: 10px;
}

.counter {
  color:#521750;
  margin: 0;
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 4.3rem;
}

section#agenda-fecha {
  padding: 80px 0;
  background-color: #F4D4CB; /* Fallback color */
  background-image: url('/img/section5.jpg'); /* Path to your image */
  background-size: cover; /* Ensures the image covers the entire div */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-position: center; /* Centers the image */
}

.icono h2,
.icono h3 {
  padding: 0;
  margin: 0;
}

nav a.scrolled {
  color: rgb(0, 0, 0);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

nav {
  display: flex;
  gap: 50px;
  color: #fff;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff45f9;
}

.button-nav {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-nav:hover {
  background-color: #0056b3;
}

.the-nautigal-regular {
  font-family: "Alex Brush", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  line-height: 0.8em;
}

i {
  font-size: 4em;
}

.fa-shake-body {
  animation: shake 0.8s ease-in-out infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

.inicio {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  transition: opacity 1s ease-out;
  background-color: #ffe4e4;
}

.carta {
  /* background: white; */
  padding: 20px;
  /* border: 2px solid #d1c4e9; */
  /* border-radius: 10px; */
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s, opacity 1s ease-out;
}

i.fa-regular.fa-envelope.fa-shake {
  font-size: 6.5em;
}

.carta:hover {
  transform: scale(1.1);
}

.oculto {
  opacity: 0; /* Hace que el elemento se desvanezca */
  pointer-events: none; /* Evita la interacción cuando está oculto */
}

.contenido {
  display: none;
}

.fecha-span {
  margin-left: 15px;
  margin-right: 15px;
  height: 50px;
  border-right: 1px solid;
  background: rgb(255, 255, 255);
}

.fecha-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carta h2 {
  font-size: 0.8em;
  color: #000;
  font-weight: 600;
}

.shadow-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background-color: #f7b7a338;
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background-color: #0000005c;
}

/* Contenedor de partículas */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Asegúrate de que esté por encima del slider */
  pointer-events: none; /* Esto evita que interfiera con el slider */
}

/* Estilo de cada partícula (pétalo de rosa) */
.particle {
  position: absolute;
  width: 20px; /* Tamaño base ajustable */
  height: 20px;
  background-image: url("https://static.vecteezy.com/system/resources/thumbnails/046/391/269/small_2x/pink-cherry-blossom-petal-png.png"); /* Cambia esto a la URL de tu imagen */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: moveParticles linear infinite;
  transform: rotate(0deg); /* Permite rotación */
}

/* Animación de los pétalos */
@keyframes moveParticles {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(calc(100vw - 50%)) rotate(360deg);
    opacity: 0;
  }
}

/* Slider para asegurarte que quede debajo */
.slider {
  position: relative;
  z-index: 0; /* Colocado debajo de las partículas */
}

.contenido.activo {
  display: block;
  background-color: #f2f2f2;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* Estilo general del slider */
.slider {
  position: relative;
  overflow: hidden; /* Oculta las imágenes que salen del contenedor */
  width: 100%;
  height: 100vh; /* Altura fija del slider */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 100%; /* Las imágenes inician fuera de la vista */
  transition: transform 1s ease, opacity 1s ease; /* Animaciones suaves */
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 1800px rgb(0, 0, 0); /* Sombra interna */
  pointer-events: none; /* Permite interactuar con la imagen debajo */
  z-index: 1; /* Coloca la sombra por encima de la imagen */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para que ocupe todo el espacio */
}

.slide.activa {
  left: 0; /* Posición visible en el slider */
  opacity: 1; /* Hace visible la imagen activa */
  z-index: 1;
}

.slide.inactiva {
  opacity: 0; /* Se desvanece cuando pasa a ser inactiva */
  z-index: 0;
}

/* Estilo para centrar el mensaje */
.mensaje-fijo {
  position: absolute;
  top: 58%; /* Posición vertical */
  left: 50%; /* Posición horizontal */
  transform: translate(-50%, -50%); /* Asegura el centrado completo */
  text-align: center;
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  width: 80%;
  max-width: 900px; /* Opcional: Limita el ancho en pantallas grandes */
}

/* Ajustes para los títulos y texto */
.mensaje-fijo h1 {
  font-size: 9rem; /* Reduce el tamaño si es necesario */
  line-height: 6rem;
  margin: 0;
}

.iconos h1 {
  font-size: 3rem;
  line-height: 3rem;
  margin: 0;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

.dia-especial {
  font-size: 4rem;
}

.mensaje-fijo h2 {
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mensaje-fijo .fecha-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mensaje-fijo .fecha-display div {
  text-align: center;
  width: 100px;
}

.mensaje-fijo p {
  margin: 0;
  font-size: 1.5rem;
}

#agenda-fecha h1 {
  font-size: 5.5rem;
  margin: 0;
}

#portada {
  width: 100%;
  height: 100vh; /* Cada sección ocupa toda la pantalla */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #f7f2f0;
}

#no-ninos {
  width: 100%;
}

/* Estilo del contador */
.contador {
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-family: Arial, sans-serif; */
  /* font-size: 4em; */
  color: #521750;
  text-align: center;
  gap: 60px;
}

.fecha-display div {
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 200;
}

.contador .tiempo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contador .valor {
  font-size: 3.5rem;
  font-weight: bold;
  color: #521750;
}

.contador .unidad {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #521750;
}

.btn-calendario {
  display: inline-block;
  padding: 15px 25px;

  color: #521750;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, #f7b7a3, #d16ba5);
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-calendario:hover,
.btn:hover {
  background-color: #e686df; /* Azul más oscuro */
}

.btn {
  display: inline-block;
  padding: 15px 25px;

  color: #521750;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, #f7b7a3, #d16ba5);
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

.btn-nav {
  display: inline-block;
  padding: 5px 20px;
  background-color: transparent;
  border: 1.5px solid #f39fed;
  color: #f39fed;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.iconos {
  display: flex;
  justify-content: center;
  gap: 50px;
  /*padding: 20px;*/
  z-index: 2;
  flex-wrap: wrap;
}

.typewriter {
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 30px;
  background-color: #333;
  animation: blink 0.7s steps(2, start) infinite;
  margin-left: 5px;
}

@keyframes blink {
  50% {
    background-color: transparent;
  }
}

.carta img {
  width: 30%;
  animation: bounce 1.5s infinite;
  display: inline;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0); /* Posición original */
  }
  40% {
    transform: translateY(-25px); /* Rebote hacia arriba */
  }
  60% {
    transform: translateY(-15px); /* Rebote más pequeño */
  }
}

.icono {
  flex: 1; /* Las cajas se distribuyen uniformemente */
  color: rgb(35, 35, 35);
  text-align: center;
  padding: 60px 0;
  border-radius: 5px;
  font-weight: 300;
}

.icono-clip {
  background: #f8f8f8;
  /*clip-path: polygon(2% 15%, 90% 10%, 110% 120%, 50px 95%);*/
}

.scroll-container {
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Alinea los elementos uno debajo del otro */
  align-items: center; /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
}

.scroll-text {
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  font-size: 3.5rem;
  font-weight: 500;
  width: 0; /* Inicialmente oculto */
  opacity: 0; /* Inicialmente invisible */
  visibility: hidden; /* Oculto hasta que comience la animación */
  border-right: 2px solid #fff; /* Cursor simulado */
  animation: typing 5s steps(20, end) forwards, fade-in 1s ease-in-out forwards, blink-caret 0.75s step-end infinite;
}

.scroll-text:nth-child(2) {
  animation-delay: 5s; /* Comienza después de la primera línea */
}

/* Animación de escritura */
@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

/* Animación de aparición gradual */
@keyframes fade-in {
  from {
      opacity: 0;
      visibility: hidden;
  }
  to {
      opacity: 1;
      visibility: visible;
  }
}

/* Animación del cursor parpadeante */
@keyframes blink-caret {
  from, to {
      border-color: transparent;
  }
  50% {
      border-color: #fff;
  }
}

.scroll-text h4 {
  font-family: "Alex Brush", serif;
  font-size: 3.5rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  color: #521750;
  line-height: 3.3rem;
}

#participacion h3 {
  font-size: 2.3rem;
  font-weight: 900;
  padding: 0;
  margin: 0;
}

/* Diseño responsivo para dispositivos móviles */
@media (max-width: 768px) {
  section#agenda-fecha {
    padding: 150px 0
  }

  .icono {
    min-width: 100%; /* Cada caja ocupa toda la pantalla */
  }

  .counter {
    color:#521750;
    margin: 0;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 2.3rem;
  }

  #participacion h3 {
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0;
    margin: 0;
}

.scroll-text h4 {
  font-family: "Alex Brush", serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  color: #521750;
  line-height: 1.7rem;
}

}

/* Modal */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Empieza invisible */
  transition: opacity 0.5s ease; /* Transición de suavidad */
}

.modal.mostrar {
  display: flex; /* Mostrar el modal */
  opacity: 1; /* Cambiar a visible */
}

.modal-contenido {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.9); /* Inicio reducido */
  transition: transform 0.5s ease; /* Suavidad al aparecer */
}

.modal.mostrar .modal-contenido {
  transform: scale(1); /* Crece suavemente */
}

.icono img {
  width: 30%;
}

#agenda-fecha h2 {
  margin: 0 0 10px 0;
}

/* Botón de cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.cerrar:hover {
  color: #ff0000;
}

/* Sección principal */
#nuestra-historia {
  text-align: center; /* Centra el encabezado */
}

#nuestra-historia h2 {
  font-size: 2rem;
  color: #333; /* Color de texto */
  text-transform: uppercase;
  font-weight: bold;
}

.display2 {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

/* Contenedor del contenido */
#nuestra-historia .contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto; /* Centra el contenido horizontalmente */
}

/* Estilo de la imagen */
#nuestra-historia .contenido img {
  max-width: 100%; /* Asegura que la imagen no se desborde */
  width: 40%; /* La imagen ocupará el 40% del contenedor */
  object-fit: cover;
  margin: -20px;
  transition: transform 0.5s ease-in-out; /* Agrega una transición suave para la rotación */
  transform: rotate(-10deg); /* Gira la imagen inicialmente 20 grados */
}

#nuestra-historia .contenido img:hover {
  transform: rotate(0deg); /* Endereza la imagen al pasar el mouse */
  zoom: 1;
}

/* Estilo del texto */
#nuestra-historia .contenido p {
  font-size: 0.9rem;
  color: #000000; /* Color de texto */
  text-align: center;
}

/* Diseño para pantallas pequeñas */
@media (max-width: 768px) {
  #nuestra-historia .contenido {
    flex-direction: column; /* Cambia a una columna en lugar de fila */
  }
}

.display-banco {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Estilos del modal */
.modalbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: white;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  color: #ff6ec0;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* max-width: 400px; */
  margin: 20px auto;
  padding: 20px;
  /* border: 1px solid #ccc; */
  border-radius: 10px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  /* background-color: #f9f9f9; */
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
  align-self: flex-start;
}

form input,
form textarea,
form select {
  margin-bottom: 15px;
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #f367e9;
  outline: none;
  box-shadow: 0 0 5px rgba(236, 84, 203, 0.5);
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Add responsiveness */
@media (max-width: 480px) {
  form {
    padding: 15px;
  }

  form input,
  form textarea,
  form select {
    font-size: 12px;
  }
}

button {
  color: rgb(255, 109, 187);
  border: none;
  background: none;
  cursor: pointer;
}

.icono p {
  font-weight: 400;
}

i.fa-regular.fa-copy.fa-shake {
  font-size: 1.3em;
}

/* Mensaje de agradecimiento */
#mensajeAgradecimiento {
  text-align: center;
  margin-top: 20px;
}

.display {
  z-index: 2;
}

i.fa-solid.fa-heart.fa-beat {
  font-size: 0.5em;
  color: #ff4f69;
  margin: 0 20px 0 30px;
}

/* Contenedor principal */
.timeline {
  display: flex;
  flex-direction: column; /* Alineación vertical */
  align-items: center; /* Centrado horizontal */
  position: relative;
  margin: 40px 0;
  gap: 30px; /* Espaciado entre elementos */
  padding: 20px 0; /* Espaciado superior e inferior */
}

/* Línea central */
.timeline::before {
  content: "";
  position: absolute;
  width: 6px; /* Ancho de la línea aumentado para mayor visibilidad */
  height: 100%; /* Altura completa */
  background: linear-gradient(180deg, #f7b7a3, #d16ba5); /* Gradiente vertical */
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite; /* Animación más lenta y fluida */
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-radius: 3px; /* Bordes redondeados para la línea */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera para profundidad */
}

/* Elementos de la línea de tiempo */
.timeline-item {
  position: relative;
  background: linear-gradient(289deg, #af6e93, #f7b7a3);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  border-radius: 16px; /* Bordes más redondeados */
  padding: 25px; /* Más espacio interno */
  width: 90%; /* Ancho relativo al contenedor */
  max-width: 400px; /* Máximo ancho ajustado */
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease; /* Efecto hover mejorado */
}

/* Alternancia izquierda/derecha */
.timeline-item:nth-child(odd) {
  align-self: flex-start; /* Alineado a la izquierda */
  margin-left: 30px; /* Margen desde la línea central */
}
.timeline-item:nth-child(even) {
  align-self: flex-end; /* Alineado a la derecha */
  margin-right: 30px; /* Margen desde la línea central */
}

/* Títulos y texto dentro de los elementos */
.timeline-item h2 {
  margin: 0 0 12px;
  letter-spacing: 1px; /* Espaciado entre letras */
  font-size: 1.5rem;
    color: #521750;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-item p {
  font-size: 1rem; /* Tamaño de fuente aumentado */
  color: #ffffff; /* Texto blanco para mejor contraste */
  margin: 0;
  line-height: 1.6; /* Mejor espaciado entre líneas */
}

/* Mejora del estilo con efecto hover */
.timeline-item:hover {
  transform: scale(1.05); /* Escala ligeramente al pasar el ratón */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
  background-position: 100% 50%; /* Cambio de gradiente al hacer hover */
}

/* Animación del gradiente */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .timeline {
    gap: 20px; /* Reducir espacio entre elementos */
  }

  .timeline::before {
    width: 4px; /* Reducir grosor de la línea */
  }

  .timeline-item {
    max-width: 300px; /* Reducir ancho máximo */
    padding: 20px; /* Reducir espacio interno */
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    align-self: center; /* Centrar todos los elementos */
    margin-left: 0;
    margin-right: 0;
  }
}

.container-map {
  display: flex;
  align-items: stretch;
  /* max-width: 800px; */
  margin: 50px auto;
  /* padding: 20px; */
  background-color: #f9f9f9;
  border-radius: 10px;
}

.image-container-map {
  flex: 2; /* Ocupa el 50% del ancho */
  overflow: hidden; /* Evita que la imagen se desborde */
  height: 350px; /* Altura fija para el contenedor de la imagen */
}

.image-container-map img {
  width: 100%; /* La imagen ocupa todo el ancho del contenedor */
  height: 100%; /* La imagen ocupa todo el alto del contenedor */
  object-fit: cover; /* Ajusta la imagen sin deformarla */
  display: block; /* Elimina espacio extra debajo de la imagen */
}

.text-container-map {
  flex: 2; /* Ocupa el 50% restante del ancho */
  display: flex;
  padding: 20px;
  flex-direction: column; /* Alinea el texto verticalmente */
  justify-content: center; /* Centra el texto verticalmente */
}

.text-container-map h3,
#itinerario h3,
.icono h3,
#confirmacion h3 {
  font-size: 1.8rem;
  color: #521750;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

section#confirmacion {
  margin: 200px 0;
}

.text-container-map .btn-mapa {
  /* display: inline-block; */
  /* padding: 10px 20px; */
  /* font-size: 1rem; */
  background-color: #3498db;
  /* text-decoration: none; */
  /* border-radius: 5px; */
  width: 40%;
  margin: 0 auto;
  /* transition: background-color 0.3s ease; */
}

/* Estilos para el reproductor */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* background-color: rgba(255, 255, 255, 0.8); */
  /* padding: 10px 20px; */
  /* border-radius: 25px; */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

#playPauseBtn {
  background-color: #d16ba5;
  color: #521750;
  border: none;
  padding: 10px 15px;
  font-weight: 700;
  text-transform: uppercase;
  /* border-radius: 20px; */
  cursor: pointer;
  /* font-size: 1rem; */
  transition: background-color 0.3s ease;
}

#playPauseBtn i {
  font-size: 0.9rem;
}

#playPauseBtn:hover {
  background-color: #a345e6;
}

#camara-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  padding: 20px;
}

#mensaje {
  color: #521750;
}

@media (max-width: 768px) {
  .container-map {
    width: 90%;
    flex-direction: column; /* Cambia la disposición a columna */
    align-items: center; /* Centra los elementos horizontalmente */
    text-align: center; /* Alinea el texto al centro */
  }

  .image-container-map {
    flex: none; /* Elimina el comportamiento flexible */
    width: 100%; /* La imagen ocupa todo el ancho */
    height: auto; /* Altura automática para adaptarse al contenido */
  }

  .image-container-map img {
    height: auto; /* Ajusta la altura automáticamente */
    object-fit: contain; /* Asegura que la imagen no se recorte */
  }

  .text-container-map {
    flex: none; /* Elimina el comportamiento flexible */
    width: 100%; /* El texto ocupa todo el ancho */
    padding: 20px; /* Espaciado interno */
  }

  .text-container-map .btn-mapa {
    width: 80%; /* Botón más ancho para dispositivos móviles */
  }
}

/* Estilos generales para móviles */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Texto base más pequeño */
  }

  h1,
  h2,
  h3 {
    font-size: 1.5rem; /* Reducir encabezados */
    margin: 0.5rem 0;
  }

  .mensaje-fijo h1 {
    font-size: 5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

  .mensaje-fijo {
top: 60%
  }

  .modal-content {
    width: 80%
  }

  header {
 padding: 18px 0;
  }

  nav {
    display: none;
  }

  .mensaje-fijo p {
    font-size: 1rem;
    margin-top: 10px;
  }

  .btn,
  .btn-calendario {
    padding: 10px 15px;
    font-size: 0.9rem; /* Reducir tamaño de botones */
  }

  .iconos {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; /* Centrar iconos */
  }

  .icono img {
    width: 20%; /* Asegurar que las imágenes se adapten */
  }

  .contador {
    gap: 20px; /* Reducir separación entre los contadores */
  }

  .contador .valor {
    font-size: 1.5rem; /* Reducir el tamaño del contador */
  }

  #nuestra-historia .contenido {
    flex-direction: column; /* Cambiar a disposición en columna */
    gap: 10px;
    width: 90%;
  }

  #nuestra-historia .contenido img {
    width: 80%;
  }

  /* Modal en pantallas pequeñas */
  .modal-contenido {
    width: 95%; /* Reducir ancho del modal */
    padding: 15px;
  }

  .close {
    font-size: 20px; /* Reducir tamaño del botón de cerrar */
  }
}
