/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Montserrat',sans-serif;
  scroll-behavior:smooth;
  color:#333;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero h1{
	font-family: "Vladimir Script", cursive;
	padding-bottom: 20px;
    font-size: 90px;
    font-weight: normal;
}

.hero p{
    font-size: 30px;
    font-weight: normal;
	padding-bottom: 100px;
}

/* ================= NAV ================= */
.nav.bottom{
  bottom:0;
  top:auto;
  border-top:1px solid #eee;
}

.nav.top{
  top:0;
  bottom:auto;
  border-bottom:1px solid #eee;
}

.nav-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 20px;
}

.logo{
  font-family:'Playfair Display',serif;
  font-size:20px;
  letter-spacing:2px;
  z-index:100000;
}

/* ================= MENÚ DESKTOP ================= */
.menu-links{
  display:flex;
  gap:30px;
}

.menu-links a.active::after{
  content:"";
  position:absolute;
  bottom:-5px;
  left:0;
  width:100%;
  height:2px;
  background:#fff;
}


/* ================= TOGGLE ================= */
.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
  z-index:100000;
}

/* ================= LOGIN ================= */
.hero-login{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f7f5;
  padding:40px 20px;
}

.login-card{
  width:100%;
  max-width:420px;
  background:white;
  padding:50px 40px;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
  text-align:center;
}

.login-card h1{
  font-family:'Playfair Display',serif;
  margin-bottom:10px;
}

.subtitle{
  font-size:14px;
  opacity:0.7;
  margin-bottom:25px;
}

/* ================= INPUTS ================= */
.login-card input{
  width:100%;
  height:48px;
  padding:0 14px;
  margin-bottom:15px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:14px;
  box-sizing:border-box;
}

/* ================= PASSWORD ================= */
.password-wrapper{
  position:relative;
  width:100%;
  margin-bottom:15px;
}

.password-wrapper input{
  width:100%;
  height:48px;
  padding:0 45px 0 14px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:14px;
  box-sizing:border-box;
}

.password-wrapper span{
  position:absolute;
  right:14px;
  top:0;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  font-size:18px;
}

/* ================= FORM ================= */
.login-card form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

/* ================= BUTTON ================= */
/* ================= BOTÓN GLOBAL (EDIT, etc) ================= */
button,
.btn,
.btn-submit {
  padding: 12px 30px;
  background: #c9a86a;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: .3s;
}

button:hover,
.btn:hover,
.btn-submit:hover {
  background: #b89658;
}

/* ================= REGISTER ================= */
.register-card{
  max-width:700px;
}

.register-card .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

/* ================= SECTIONS ================= */
.section {
    max-width: 1100px;
    margin: 0 auto;
}

.section.full {
    max-width: 100%;
}

.center{text-align:center;}

.divider{
  width:80px;
  height:2px;
  background:#c9a86a;
  margin:20px auto;
}

.timeline{
  display:grid;
  gap:30px;
}

.card{
  padding:20px;
  border:1px solid #eee;
}

.gallery {
  width: 100%;
  box-sizing: border-box;
}

/* 🖥 PC → masonry con CSS columns (estable y bonito) */
@media (min-width: 769px) {
  .gallery {
    column-count: 3;
    column-gap: 6px;
  }

  .gallery-item {
    break-inside: avoid;
    margin-bottom: 6px;
  }
}

/* 📱 MÓVIL → grid clásico */
@media (max-width: 768px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* imágenes comunes */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item {
    cursor: pointer;
}

/* 📱 MÓVIL */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.9);

  z-index: 999999 !important;
}

.lightbox.active {
  display: flex !important;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1000000;
}


.lightbox-controls {
  position: absolute;
  bottom: 25px;

  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 15px;
  align-items: center;

  z-index: 1000001;
}

.lightbox-user-wrap {
  position: absolute;
  bottom: 80px;

  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 6px;
  align-items: center;

  color: white;
  font-size: 14px;

  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
  border-radius: 8px;

  z-index: 1000001;
  white-space: nowrap;
}

.lightbox-user-label {
  opacity: 0.8;
}

.lightbox-user {
  font-weight: bold;
}

/* ================= RSVP ================= */
.rsvp input,
.rsvp textarea{
  width:100%;
  padding:12px;
  margin:10px 0;
  border:1px solid #ddd;
}

.rsvp button{
  padding:12px 30px;
  background:#c9a86a;
  border:none;
  color:white;
  cursor:pointer;
  border-radius:4px;
}

.center{
  text-align:center;
  margin-top:10px;
}

/* ================= FOOTER ================= */
footer{
  text-align:center;
  padding:40px;
  background:#111;
  color:white;
}

/* ================= SCROLL TOP ================= */
#scrollTopBtn{
  position:fixed;
  bottom:30px;
  right:30px;
  width:45px;
  height:45px;
  background:#c9a86a;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
  border-radius:50%;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:99999;
}

#scrollTopBtn.show{
  opacity:1;
  pointer-events:auto;
}

#scrollTopBtn:hover{
  transform:translateY(-5px);
}

/* ================= EXTRA LINKS ================= */
.extra-links{
  margin-top:15px;
  font-size:13px;
}

.extra-links a{
  color:#666;
  text-decoration:none;
  transition:.3s;
}

.extra-links a:hover{
  color:#C49739;
}

/* ================= REGISTER BUTTON ================= */
.btn-register{
  display:inline-block;
  margin-top:10px;
  padding:10px 25px;
  border:2px solid #C49739;
  border-radius:30px;
  color:#C49739;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}

.btn-register:hover{
  background:#C49739;
  color:#fff;
}

body.nav-top{
  padding-top:80px; /* ajusta a la altura real del nav */
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .hero h1{
    font-size:40px;
  }

  .menu-toggle{
    display:block;
  }

  .menu-links{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:white;
    flex-direction:column;
    display:none;
    padding-top:90px;
    z-index:9999;
  }

  .menu-links.active{
    display:flex;
  }

  .timeline{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:1fr;
  }
}

.timeline-section {
	padding: 120px 40px;
	background: #f9f9f9;
}

.timeline-container {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
}

/* línea central */
.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	height: 100%;
	background: #ddd;
	transform: translateX(-50%);
	z-index: 0;
}

/* item base */
.timeline-item {
	position: relative;
	display: flex;
	width: 100%;
}

/* IZQUIERDA */
.timeline-item.left {
	justify-content: flex-start;
	padding-right: 60px; /* 👈 separación controlada de la línea */
}

/* DERECHA */
.timeline-item.right {
	justify-content: flex-end;
	padding-left: 60px; /* 👈 separación controlada de la línea */
}

/* tarjeta */
.timeline-content {
	width: 45%;
	max-width: 420px;
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	position: relative;
}

/* imagen */
.timeline-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 10px;
}

.timeline-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.section-title {
	text-align: center;
	font-size: 36px;
	font-weight: 600;
	margin: 0;
	padding-top: 80px;
	text-transform: capitalize;
}

.divider {
	width: 80px;
	height: 2px;
	background: #c9a86a;
	margin: 15px auto 60px auto;
}
.timeline-wrapper {
	position: relative;
}


.config-page{
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px;
}

#invite {
    padding: 100px 20px;
}

/* bloque base */
.invite-container {
    max-width: 800px;
    width: 100%;
    margin: 80px auto;
    text-align: center; /* 👈 SIEMPRE centrado */
}

/* 👇 AQUÍ está la magia */
.invite-container.left {
    margin-left: 0;
    margin-right: auto;
}

.invite-container.right {
    margin-left: auto;
    margin-right: 0;
}

/* opcional: centro explícito */
.invite-container.center {
    margin-left: auto;
    margin-right: auto;
}

/* título SIEMPRE centrado */
.invite-container h2 {
    text-align: center;
}

/* texto justificado */
.invite-container p {
    text-align: justify;
    text-align-last: center; /* opcional bonito */
	font-size: 15px;
}

.wedding-split.vertical {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ===== parte superior ===== */
.contact-top {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.contact-text {
	font-size: 18px;
	color: #444;
	margin-top: 15px;
}

/* ===== parte inferior ===== */
.contact-bottom {
	display: flex;
	gap: 40px;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
}

.contact-box {
	flex: 1;
	min-width: 260px;
	background: #fff;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
	text-align: center;
}

.contact-box h3 {
	margin-bottom: 15px;
}

/* ===== links ===== */
.contact-box a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.contact-box a:hover {
	text-decoration: underline;
}

.contact-box p {
	margin-bottom: 12px;
}

.contact-box p:last-child {
	margin-bottom: 0;
}

/* ===== móvil ===== */
@media (max-width: 768px) {
	.contact-bottom {
		flex-direction: column;
	}
}

/* desktop */
@media (min-width: 1200px) {
    #invite p {
        max-width: 800px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {

	.invite-container {
        margin: 60px auto !important; /* todo centrado en móvil */
        max-width: 100%;
    }

    .invite-container p {
        font-size: 15px;
    }
	
	.timeline-content {
		width: 100%;
		max-width: 100%;
	}

	.timeline-item {
		justify-content: center !important;
		padding-left: 0;
		padding-right: 0;
	}

	.timeline-image {
		width: 100%;
		aspect-ratio: 1 / 1;  /* 👈 clave: cuadrado */
		height: auto;
		overflow: hidden;
	}

	.timeline-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;  /* 👈 recorta sin deformar */
	}
	
	.nav.bottom {
		top: 0 !important;
		bottom: auto !important;
	}
	.menu-links a:hover,
	.menu-links a:focus,
	.menu-links a:active {
		color: #E5D3A3 !important;       /* evita cambio a blanco */
		background: transparent !important;
	}
  
	.fusion-digit {
		font-size: 20px !important;
		min-width: unset !important;
		width: auto;
		padding: 10px 12px;
	}

	.fusion-dash-title {
		font-size: 11px;
	}
  
	.invite-container {
        text-align: center !important;
        margin: 60px auto;
		padding: 0 20px;
    }

    .invite-container .divider {
        margin: 15px auto;
    }

    .invite-container p {
        font-size: 15px;
		padding-left: 20px;
		padding-right: 20px;
    }
	
	.config-page {
        padding: 20px;
    }
	

}