@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
  --background: #f7f7f7;             /* Fondo general muy claro */
  --primary-color: #2c3e50;          /* Texto y detalles en gris azulado oscuro */
  --secondary-color: #ecf0f1;        /* Fondo suave para secciones secundarias */
  --accent-color: #bdc3c7;           /* Acentos suaves en gris claro */
  --glass: rgba(255, 255, 255, 0.8);  /* Fondo glass para tarjetas (transparencia) */
  --transition: 0.4s;
  --border-radius: 15px;
  --font-body: 'Montserrat', sans-serif;  /* Fuente para el cuerpo */
  --font-heading: 'Great Vibes', cursive;  /* Fuente floral para encabezados */
  
  /* Variables para botones */
  --btn-bg: var(--accent-color);
  --btn-text-color: var(--primary-color);
  --btn-border-color: var(--accent-color);
  --btn-radius: 50%;
  --btn-hover-bg: var(--primary-color);
  /* Variables para botones en modal */
  --modal-btn-bg: var(--accent-color);
  --modal-btn-text: var(--primary-color);
  --modal-btn-border: var(--accent-color);
  --modal-btn-radius: 8px;
  --modal-btn-hover-bg: var(--primary-color);
}


/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.849) 60%, rgba(255, 255, 255, 0.959) 95%, rgba(255, 255, 255, 1) 100%),
  url("https://res.cloudinary.com/donfjhvia/image/upload/v1739086560/patrones/4_tbeojo.jpg");
  color: var(--primary-color);
  line-height: 1.6;
}

/*************************************************************
  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);
}

.section{
  width: 90%;
  max-width: 700px !important;
  border: solid 1px #e8b677;
}
/* HEADER: fondo de imagen con overlay glass */
.invitation-header {
  position: relative;
  height: 100vh;
  background:url("https://res.cloudinary.com/donfjhvia/image/upload/v1739152710/headers/aura_azul_zukikk.jpg") center / cover no-repeat;
}
.invitation-header::before {
  content: "";
  position: absolute;
  inset: 0;
 }
.header-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  text-shadow: 0px 2px 2px #2b5a8a;
}
.names-container h1 {
  font-size: 4rem;
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0px 2px 2px #2c3e50;
}
.ampersand {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: #ffffff;
  margin: 0 10px;
  text-shadow: 0px 2px 2px #2c3e50;
}
.invitation-header h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-top: 10px;
}

/* COUNTDOWN */
.countdown .time {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 180px;
  text-shadow: 0px 2px 2px #2c3e50;
}
.count-item div {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}
.count-label {
  font-size: 1.2rem;
  color: #ffffff;
  font-family: var(--font-heading);
  text-shadow: 0px 2px 2px #2c3e50;
}

/* HERO / SAVE THE DATE */
.hero {
  padding: 40px 20px;
  text-align: center;
  background: transparent;
}
.save-date.section {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: -80px auto 40px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.save-date.section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  color: var(--primary-color);
}
.avatar-container {
  margin-bottom: 20px;
}
.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform var(--transition);
}
.avatar:hover {
  transform: scale(1.05);
}
.save-date.section p {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* MAIN CONTENT */
.main-content {
  padding: 20px 0;
}

/* DETAILS DE CEREMONIA Y RECEPCIÓN */
.details.section.corner-decor {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.details-header {
  text-align: center;
  margin-bottom: 20px;
}
.details-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.detail-block {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--border-radius);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  transition: transform var(--transition);
}
.detail-block:hover {
  transform: translateY(-5px);
}
.detail-text {
  padding: 20px;
  background: rgba(255,255,255,0.9);
}
.detail-text h4 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.detail-text p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}
.detail-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.map-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--transition);
}
.map-button:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* DIVIDER */
.divider {
  text-align: center;
  margin: 30px 0;
}
.divider img {
  max-width: 200px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.divider img:hover {
  opacity: 1;
}

/* TIMELINE */
.timeline.section {
  background: transparent;
  padding: 40px 20px;
  margin: 0 auto;
  text-align: center;
  border: 0;
}
.timeline.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}
.timeline-event {
  background: #ffffff;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  border-radius: var(--border-radius);
  transition: background var(--transition);
}
.timeline-event:hover {
  background: rgba(255,255,255,0.95);
}
.event-time {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-color);
}
.event-title {
  font-size: 1.3rem;
  margin: 10px 0;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.event-description {
  font-size: 1rem;
  color: var(--primary-color);
}

/* HOSPEDAJE (HOTELS) */
.hospedaje.section {
  background-color: var(--secondary-color);
  padding: 2.8rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: none;
  text-align: center; /* Asegura que título y contenidos se centren */
  margin: 0 auto;
  font-family: var(--font-heading);
}
.hospedaje.section h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.8rem;
  color: var(--primary-color); /* Se usa primary-color en lugar de heading-color */
}
.hotels-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: center;  /* Centra todos los hoteles */
  align-items: center;        /* Alinea verticalmente al centro */
  margin: 0 auto;
  padding: 0 1rem;            /* Padding lateral para evitar pegado al borde */
  font-family: var(--font-body);
}
.hotel {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  width: 280px;
  text-align: center;
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
  margin: 0 auto;             /* Centra cada card */
}
.hotel:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.hotel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* GALERÍA */
.gallery.section.corner-decor {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.gallery{
  font-family: var(--font-heading) !important;
  font-size: 1.5rem;
}
#galleryContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  font-family: var(--font-heading) !important;
}

.photo {
  width: calc(33.33% - 10px);
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform var(--transition);
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
}
.photo:hover {
  transform: scale(1.03);
}

/* PAPÁS Y PADRINOS */
.papas.section.corner-decor,
.padrinos.section.corner-decor {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.papas.section{
  background-color: var(--secondary-color) !important;
}
.papas.section h2,
.padrinos.section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.details-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.papas.section p,
.padrinos.section p {
  font-size: 1rem;
  color: var(--primary-color);
}

/* CÓDIGO DE VESTIMENTA */
.dress-code.section{
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.dress-code-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  font-family: var(--font-heading);
}
.dress-code h2{
  font-family: var(--font-heading) !important;
}
.dress-code-image {
  text-align: center;
}
.dress-code-image img {
  width: 140px;
  height: 260px;
  border: 3px solid var(--accent-color);
  border-radius: var(--border-radius);
  object-fit: cover;
  transition: transform var(--transition);
}
.dress-code-image img:hover {
  transform: scale(1.05);
}
.dress-code-comment {
  margin-top: 15px;
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-color);
}

/* REGALOS Y DATOS BANCARIOS */
.gift-section.section.corner-decor {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.gift-section h2{
  font-family: var(--font-heading);
}
.details-container.gift-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gift {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  width: 220px;
  transition: transform var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: var(--primary-color);
}
.gift:hover {
  transform: translateY(-5px);
}
.gift h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.gift img {
  width: 80px;
  height: auto;
}
.bank-details {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  width: 220px;
  transition: transform var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.bank-details:hover {
  transform: translateY(-5px);
}
.bank-details h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.bank-details p {
  font-size: 1rem;
  color: var(--primary-color);
}

/* RSVP FORM */
.rsvp-form-container {
  background: var(--glass);
  backdrop-filter: blur(8px);
  /* border-radius: var(--border-radius); */
  padding: 30px;
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  align-items: center;
  border: 0;
}
.rsvp-form-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
#confirmar-invitado-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}
#confirmar-invitado-form label {
  font-weight: bold;
  color: var(--primary-color);
}
#confirmar-invitado-form input,
#confirmar-invitado-form select {
  padding: 10px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  font-size: 1rem;
}
#confirmar-invitado-form button[type="submit"] {
  padding: 12px;
  background: var(--accent-color);
  border: none;
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition);
}
#confirmar-invitado-form button[type="submit"]:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* FOOTER */
footer {
  background: var(--secondary-color);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* LIGHTBOX (opcional) */
#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;  /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightboxContent {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightboxImg {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid var(--primary-color); /* Se usa primary-color en lugar de var(--color-1) */
  border-radius: var(--border-radius);
}
.closeLightbox {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #fff;
  color: #000;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* Personalización del botón de cámara */
#openCameraButton {
  background-color: var(--btn-bg);
  color: var(--btn-text-color);
  border: 2px solid var(--btn-border-color);
  border-radius: var(--btn-radius);
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}
#openCameraButton:hover {
  background-color: var(--btn-hover-bg);
}

/* Personalización de los botones dentro del modal */
.modal-buttons button {
  background-color: var(--modal-btn-bg);
  color: var(--modal-btn-text);
  border: 1px solid var(--modal-btn-border);
  border-radius: var(--modal-btn-radius);
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  transition: background-color 0.3s ease;
}
.modal-buttons button:hover {
  background-color: var(--modal-btn-hover-bg);
}

/*************************************************************
  17. CAPTURA DE FOTOS
*************************************************************/
.photo-capture {
  margin:  0 auto;
  text-align: center;
  font-family: var(--font-heading);
}

.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);
}
