/*************************************************************
  1. VARIABLES DE PALETA (CSS CUSTOM PROPERTIES)
     EARTHY / MADERA
*************************************************************/
:root {
  /* Fondo principal de tarjetas (blanco neutro) */
  --color-bg: #ffffff;
  /* Fondo secundario o global (ligeramente tostado) */
  --color-bg-secondary: #fefaf5;

  /* Texto en marrón suave */
  --color-text: #5f4b3b;

  /* Encabezados en un tono café con leche */
  --color-heading: #8a6a49;

  /* Acento “madera clara” */
  --color-accent: #c89b68;
  /* Hover algo más oscuro */
  --color-accent-hover: #b58555;

  /* Tipografías base (puedes mantener tus fuentes preferidas) */
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Dancing Script', cursive;

  /* Espaciados / Bordes */
  --radius-base: 8px;
  --spacing-base: 20px;
}


/*************************************************************
  2. REINICIO / BASE
*************************************************************/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  /* Fondo general: textura grande */
  /* background-image: url("https://res.cloudinary.com/donfjhvia/image/upload/v1737045884/texturas/test/a8h7rkwud2plhwiyk3ys.jpg"); */
  background-color: #895929;
  background-size: cover;
  /* Ajusta si deseas 'contain' o 'repeat' */
  background-attachment: fixed;
  /* Si quieres efecto parallax */
  color: var(--color-text);
  font-family: var(--font-primary);
}

/*************************************************************
  3. ESTRUCTURA GENERAL
*************************************************************/
.invitation-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: transparent;
  /* Transparente para ver el fondo de body */
}

/* Contenedor principal de contenido */
.main-content {
  flex: 1;
  padding: var(--spacing-base);
}

/*************************************************************
  4. HEADER (Invitación Header)
*************************************************************/
.invitation-header {
  /* Imagen de fondo + gradiente */
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.8673670151654411) 95%, rgba(255, 255, 255, 1) 100%),
      url("https://res.cloudinary.com/donfjhvia/image/upload/v1737067522/template_base/bg_test_3_ewu8rn.jpg") center / cover no-repeat;

  background-blend-mode: overlay;
  /* overlay o multiply, a tu gusto */
  color: var(--color-accent);

  /* Altura mínima en lugar de fija, para pantallas más pequeñas */
  min-height: 700px;

  /* Centrado vertical/horizontal del contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Espaciado y texto */
  padding: var(--spacing-base);
  text-align: center;

  /* Sombra ligera en el texto */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.header-container .names-container h1 {
  margin: 0;
  font-family: var(--font-heading);
  /* Ajuste un poco más pequeño para pantallas medianas */
  font-size: 6.2rem;
}

.header-container h2 {
  margin: 0.5rem 0 0 0;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  /* si quieres darle un toquecito cursivo */
}

/*************************************************************
 1. CONTENEDOR DE NOMBRES
*************************************************************/
/* Contenedor para los nombres en columna */
.names-container {
  display: flex;
  flex-direction: column;
  /* Para que cada nombre ocupe su línea */
  align-items: center;
  /* Centra horizontalmente */
  gap: 0.2rem;
  /* Espacio entre cada línea (novia, “y”, novio) */
  font-size: 6.2rem;
}

/* Nombre de la novia/novio */
.name-block {
  font-size: 2rem;
  /* Ajusta al tamaño deseado */
  font-weight: bold;
  /* O normal, según tu estilo */
  text-align: center;
}

/* “y” (ampersand) */
.ampersand {
  font-size: 3.5rem;
  /* Un poco más pequeño que los nombres */
  font-style: italic;
  /* Opcional para darle un toque distinto */
  margin: 0.2rem 0;
  text-align: center;
}

/*************************************************************
 2. CONTADOR EN LÍNEA
*************************************************************/
.countdown .time {
  display: flex;
  /* Los elementos .count-item se ubican en línea */
  gap: 20px;
  /* Espacio horizontal entre días, horas, etc. */
  justify-content: center;
  /* Centra todo horizontalmente */
  align-items: flex-end;
  /* Alinea los números y las etiquetas */
}

/* Cada bloque Días, Horas, Min, Seg */
.count-item {
  display: flex;
  flex-direction: column;
  /* Número arriba, etiqueta abajo */
  align-items: center;
  /* Centra cada uno */
  color: #fff;
}

/* El número grande */
.count-item>div {
  font-size: 2rem;
  font-weight: bold;
}

/* La etiqueta (Días, Horas, etc.) */
.count-label {
  margin: 0;
  font-size: 0.9rem;
  /* Ajusta el tamaño de la etiqueta */
  color: #fff;
  /* O un color más claro, p.ej: #999 si lo prefieres */
}

/*************************************************************
  5. HERO (opcional) 
     Si usas un hero adicional, ajústalo. 
*************************************************************/
.hero {
  position: relative;
  background:
      /* fallback */
      #fff;
  /* Quita o descomenta si deseas otra imagen
     url("TU-IMAGEN.jpg") center/cover no-repeat; */
  min-height: 600px;
  padding: 40px 20px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Degradado a transparente (ejemplo) */
  background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0) 60%,
          rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/*************************************************************
  6. "SAVE THE DATE" CARD
*************************************************************/
.save-date.section {
  position: relative;
  display: inline-block;
  background: transparent;
  /* Dejas ver el fondo de su contenedor */
  padding: 20px;
  width: 100%;
  margin: 0 auto;
  box-shadow: none;
}

/*************************************************************
  7. SECCIONES (CLASE .section) + ESQUINEROS
*************************************************************/
.section {
  position: relative;
  max-width: 800px;
  margin: var(--spacing-base) auto;
  padding: var(--spacing-base);
  /* border-radius: var(--radius-base); */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Fondo con imagen semitransparente */
  background:
      /* capa semitransparente color crema */
      linear-gradient(rgba(255, 248, 240, 0.733), rgba(255, 248, 240, 0.733)),
      /* imagen de textura suave */
      url("https://img.freepik.com/foto-gratis/patron-ligeramente-texturizado-pintado_1194-6770.jpg?semt=ais_hybrid") center/cover no-repeat;
}


/* Si deseas esquineros, aplica la clase .corner-decor */
.corner-decor {
  position: relative;
  /* para anclar pseudo-elementos */
}

.corner-decor::before,
.corner-decor::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
}

/* Esquina superior izquierda */
.corner-decor::before {
  top: -15;
  left: -15;
  transform: translate(-5%, -5%);
  background-image: url("https://www.pngkit.com/png/full/479-4791194_floral-wreath-esquinas-de-flores-sin-fondo.png");
}

/* Ejemplo de esquina inferior derecha (descomentarlo si deseas) 
.corner-decor::after {
  bottom: 0;
  right: 0;
  transform: translate(15%, 15%);
  background-image: url("https://png.pngtree.com/png-clipart/20230411/original/pngtree-pink-watercolor-floral-frame-with-corner-flowers-png-image_9045829.png");
}
*/

/* Títulos y párrafos dentro de .section */
.section h2 {
  margin-top: 20px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2rem;
}

.section p {
  margin: 0.5rem 0;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
}

/*************************************************************
  8. FOTO AVATAR (Foto novios)
*************************************************************/
.avatar-container {
  text-align: center;
  margin-bottom: 1rem;
}

.avatar-container .avatar {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}





/*************************************************************
  9. BOTONES
*************************************************************/
.map-button,
.button-primary,
button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.map-button:hover,
.button-primary:hover,
button:hover {
  background-color: var(--color-accent-hover);
}

/*************************************************************
  10. DETALLES (Ceremonia/Recepción)
*************************************************************/
/* La sección principal (ya existente) */
.details {
  /* Mantén tus estilos .section, .corner-decor, etc., si los tienes */
  /* Por ejemplo: margin, padding, background, etc. */
}

/* Contenedor para el título */
.details-header {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Espacio debajo del título */
}

/* Contenedor donde van los 2 bloques (Ceremonia y Recepción) */
.details-container {
  display: flex;
  flex-direction: column;
  /* Cada .detail-block va apilado verticalmente */
  gap: 2rem;
  /* Espacio entre bloques Ceremonia/Recepción */
}

/* Bloque que contiene el texto y la imagen de un evento */
.detail-block {
  display: flex;
  flex-direction: row;
  /* Texto a un lado, imagen al otro, en escritorio */
  align-items: flex-start;
  justify-content: center;
  /* Centra horizontalmente si hay espacio */
  gap: 1.5rem;
  /* Separación entre el texto y la imagen */
  text-align: left;
  /* Alinea texto a la izquierda */

}

/* Contenedor del texto dentro de .detail-block */
.detail-text,
.detail-text p {
  flex: 1;
  /* El texto ocupa el espacio sobrante */
  text-align: left;
  /* Alinea texto a la izquierda */

}


/* Ajuste de las imágenes */
.detail-block img {
  max-width: 300px;
  /* O el tamaño que prefieras */
  border-radius: var(--radius-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE: en pantallas pequeñas se apila texto arriba e imagen abajo */
@media (max-width: 768px) {
  .details-container {
      gap: 1.5rem;
  }

  .detail-block {
      flex-direction: column;
      text-align: center;
      /* Centra en móvil si gustas */
      align-items: center;
      /* Centra en la columna */
  }

  /* Contenedor del texto dentro de .detail-block */
  .detail-text,
  .detail-text p {
      flex: initial;
      /* El texto ocupa el espacio sobrante */
      text-align: center;
      /* Alinea texto a la izquierda */

  }

  .detail-block img {
      min-width: 100%;
      height: 400px;
      object-fit: cover;
      /* Recorta la imagen para llenar el cuadro */
      border-radius: var(--radius-base);
      margin-bottom: 0.5rem;
  }
}


/*************************************************************
  11. HOSPEDAJE
*************************************************************/
//* Sección Hospedaje con el título fuera del flex */
#hospedajeSection {
  /* Mantén tus estilos generales de .section si lo deseas */
  margin-bottom: 2rem;
  /* corner-decor, etc. */
}
#hospedajeSection .h2{
  width: 80%;
}

/* El contenedor flex es SOLO la parte de los hoteles */
#hospedajeSection .hotels-wrapper {
  display: flex;
  flex-wrap: wrap;
  /* Permite que en pantallas pequeñas se apilen */
  gap: 20px;
  justify-content: center;
  /* Centra horizontalmente */
  align-items: flex-start;
  /* Alinea los .hotel arriba */
}

/* Cada "card" de hotel */
.hotel {
  flex: 1 1 250px;
  /* base ~250px, luego crece o reduce */
  max-width: 300px;
  /* límite en escritorio */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ajustes de la imagen */
.hotel img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  /* Recorta la imagen para llenar el cuadro */
  border-radius: var(--radius-base);
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* En pantallas muy pequeñas, un hotel por línea */
@media (max-width: 600px) {
  #hospedajeSection .hotels-wrapper .hotel {
      flex: 1 1 100%;
      max-width: none;
  }

  .hotel img {
      width: 100%;
      height: 400px;
      object-fit: cover;
      /* Recorta la imagen para llenar el cuadro */
      border-radius: var(--radius-base);
      margin-bottom: 0.5rem;
  }
}



/*************************************************************
  12. CUENTA REGRESIVA
*************************************************************/
.countdown .time {
  display: flex;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-heading);
}

.countdown .time>div {
  margin: 0 1rem;
  text-align: center;
}

/*************************************************************
  13. GALERÍA
*************************************************************/
.gallery #galleryContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.gallery .photo {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*************************************************************
  14. PAPÁS, PADRINOS
*************************************************************/
.papas,
.padrinos {
  text-align: center;
}

/*************************************************************
  15. DRESS CODE
*************************************************************/
.dress-code-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dress-code-image {
  text-align: center;
}

.dress-code-image img {
  max-width: 150px;
  border-radius: var(--radius-base);
  border: 2px solid var(--color-accent);
}

.dress-code-comment {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
}

/*************************************************************
  16. GIFT SECTION
*************************************************************/
.gift-section .details-container {
  gap: 1rem;
  justify-content: center;
}

.gift {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-base);
  padding: 1rem;
  text-align: center;
}

.gift img {
  max-width: 100px;
  border-radius: var(--radius-base);
}

/* Datos bancarios */
.bank-details {
  text-align: center;
  margin-top: 1rem;
}

/*************************************************************
  17. CAPTURA DE FOTOS
*************************************************************/
.photo-capture button {
  background-color: var(--color-accent);
  border-radius: var(--radius-base);
  color: #fff;
}

.photo-capture button:hover {
  background-color: var(--color-accent-hover);
}

/*************************************************************
  18. FORMULARIO DE CONFIRMACIÓN (RSVP)
*************************************************************/
.confirmacion-invitados-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  /* Centra horizontalmente */
  background-color: #ffffff;
  /* O var(--color-bg) */
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  background:
      /* capa semitransparente color crema */
      linear-gradient(rgba(255, 248, 240, 0.733), rgba(255, 248, 240, 0.733)),
      /* imagen de textura suave */
      url("https://img.freepik.com/foto-gratis/patron-ligeramente-texturizado-pintado_1194-6770.jpg?semt=ais_hybrid") center/cover no-repeat;
}

/* Título */
.confirmacion-invitados-wrapper h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Etiqueta y texto */
.confirmacion-invitados-wrapper label {
  display: block;
  /* Para que ocupe su propia línea */
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
  text-align: center;
  /* O left si prefieres */
}

/* Select */
.confirmacion-invitados-wrapper select {
  width: 100px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Botón */
.confirmacion-invitados-wrapper button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #b1888c;
  /* color-accent ejemplo */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.confirmacion-invitados-wrapper button:hover {
  background-color: #dfa9a3;
  /* color-accent-hover ejemplo */
}

/* Párrafos */
.confirmacion-invitados-wrapper p {
  margin: 0.5rem 0;
}

/* Mensajes (si usas el echo con <p>... ) */
.confirmacion-invitados-wrapper p strong {
  font-weight: bold;
}


/*************************************************************
  19. MODAL
*************************************************************/
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--color-bg);
  margin: auto;
  padding: var(--spacing-base);
  border-radius: var(--radius-base);
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.photo-preview img {
  max-width: 100%;
  border-radius: var(--radius-base);
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.modal-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.btn-save {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-save:hover {
  background-color: var(--color-accent-hover);
}

.btn-share {
  background-color: #3b5998;
  color: #fff;
}

.btn-share:hover {
  background-color: #2e456b;
}

.btn-cancel {
  background-color: #e74c3c;
  color: #fff;
}

.btn-cancel:hover {
  background-color: #c0392b;
}

.close {
  color: var(--color-text);
  float: right;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

/*************************************************************
  20. FOOTER
*************************************************************/
.invitation-footer {
  text-align: center;
  padding: var(--spacing-base);
  background-color: var(--color-heading);
  color: #fff;
}

/*******************************************
 21. Divider
************************************************/
.divider {
  /* Ocupar el 100% del contenedor padre */
  width: 100%;
  height: 50px;
  /* Centrar horizontalmente el contenido */
  display: flex;
  justify-content: center;
  /* Espacio superior e inferior */
  margin: 2rem auto;
}

.divider img {
  /* Ajuste de tamaño relativo */
  width: 60%;
  max-width: 500px;
  /* Límite opcional en pantallas grandes */
  display: block;
}

/********************************************
  22. timeline
  *************************************/
/* Sección general del timeline */
.timeline.section {
  /* Puedes mantener o ajustar tu margen/padding global aquí */
  position: relative; 
}

/* Contenedor de los eventos */
.timeline.section .details-container {
  /* Efecto vertical: 
     Para centrar la línea en el medio, 
     ajusta 'align-items' si deseas */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* o center, si gustas */
  position: relative;
  margin: 0 auto;
  margin-left: 170px;
  max-width: 600px;  /* control de ancho si quieres */
}

/* LíNEA vertical “de fondo” (opcional) */
.timeline.section .details-container::before {
  content: "";
  position: absolute;
  left: 15px;        /* posición del eje vertical */
  top: 0;
  bottom: 0;
  width: 3px;        /* grosor de la línea */
  background: #ddd;  /* color de la línea */
  /* Ajusta según tu paleta */
}

/* Cada evento */
.timeline.section .details-container .event {
  position: relative;
  background: transparent;
  border-radius: 8px;
  padding: .5rem;
  margin: 0 0 0 35px; 
  width: 60%;
}

/* “Punto” o “bala” a la izquierda de cada .event */
.timeline.section .details-container .event::before {
  content: "";
  position: absolute;
  left: -25px;       /* coincidir con la línea en .details-container::before */
  top: 20px;         /* altura relativa donde aparece la bala */
  width: 12px;
  height: 12px;
  background: #b1888c; /* color acento, ajusta a tu gusto */
  border-radius: 50%;  /* forma circular */
  box-shadow: 0 0 0 3px #fff; 
  /* anillo blanco para separarlo del background */
}

/* Estilos para el texto del evento */
.timeline.section .details-container .event p {
  margin: 0.5rem 0;
  color: #444;  /* ajusta según tu paleta */
  line-height: 1.4;
}
