/* =========================================================
   PLANTILLA BODA ELEGANTE - CSS COMPLETO
   ========================================================= */

:root {
  --primary: #c5a059;
  --primary-dark: #a6823e;
  --primary-light: #e0cc9e;
  --bg-main: #faf7f2;
  --bg-card: #ffffff;
  --text-dark: #1a1a1a;
  --text-main: #333333;
  --text-muted: #666666;
  --border: #e8e1d5;
  --border-light: #f0eae1;
  --success: #2e7d32;
  --error: #c62828;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 50px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  text-align: center;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

.section-content { max-width: 800px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text-dark); }
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-xs); font-weight: 400; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.divider {
  border: none;
  height: 1px;
  max-width: 200px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(232,225,213,0) 0%, rgba(232,225,213,1) 50%, rgba(232,225,213,0) 100%);
}

/* 1. NAVBAR STICKY / PEGAJOSA */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--text-main);
}

.nav-link:hover { color: var(--primary); }

.btn-nav-rsvp {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
}

.btn-nav-rsvp:hover { background-color: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* 2. HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  padding: var(--spacing-md);
}

.hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.35); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; }

.hero .subtitle { font-size: 1rem; letter-spacing: 5px; text-transform: uppercase; color: var(--primary-light); margin-bottom: var(--spacing-sm); }
.hero .couple-names { font-size: 4.5rem; line-height: 1; margin-bottom: var(--spacing-md); color: #ffffff; font-weight: 300; }
.hero .amp { font-family: var(--font-serif); font-style: italic; color: var(--primary); }
.hero .wedding-date { font-size: 1rem; letter-spacing: 3px; color: rgba(255, 255, 255, 0.9); margin-bottom: var(--spacing-xl); }

.btn-scroll {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.1);
}

.btn-scroll:hover { background: #ffffff; color: var(--text-dark); }

/* 3. CONTADOR REGRESIVO */
section { padding: var(--spacing-xl) 0; }

.countdown-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  margin-top: calc(var(--spacing-xl) * -1);
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-lg) var(--spacing-sm);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.time-card {
  background-color: var(--bg-main);
  padding: var(--spacing-md) var(--spacing-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.time-card span { display: block; font-family: var(--font-serif); font-size: 3rem; font-weight: 600; color: var(--primary); line-height: 0.9; }
.time-card small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 0.3rem; display: block; }

/* 4. CITA */
.quote { font-family: var(--font-serif); font-size: 1.8rem; font-style: italic; color: var(--text-dark); margin-bottom: var(--spacing-md); font-weight: 300; }

/* 5. EVENTOS Y UBICACIÓN */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); margin-top: var(--spacing-lg); }

.event-card {
  background-color: var(--bg-card);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.event-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: var(--spacing-sm); }
.event-card h3 { font-size: 1.6rem; margin-bottom: var(--spacing-xs); font-weight: 400; }
.event-place { font-weight: 500; margin-bottom: var(--spacing-xs); }
.event-time { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--spacing-md); }

.btn-map {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-map:hover { background-color: var(--primary); color: #ffffff; }

/* 6. ÁLBUM DE FOTOS - CUADRÍCULA UNIFORME */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.gallery-item:hover img { transform: scale(1.08); }

/* 7. DETALLES */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-md); margin-top: var(--spacing-lg); }

.detail-card {
  background-color: var(--bg-card);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.detail-icon { font-size: 2rem; color: var(--primary); margin-bottom: var(--spacing-xs); }

/* 8. REGALOS */
.gifts-section { background-color: #f5efe6; border-radius: var(--radius-md); padding: var(--spacing-xl) var(--spacing-md); }

.bank-card {
  background-color: var(--bg-card);
  max-width: 420px;
  margin: var(--spacing-md) auto 0;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: left;
  border-left: 4px solid var(--primary);
}

.bank-card p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.bank-card i { color: var(--primary); margin-right: 8px; width: 18px; text-align: center; }

/* 9. BOTÓN Y SECCIÓN RSVP */
.btn-primary-modal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-primary-modal:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 10. MODAL FORMULARIO RSVP */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 2001;
  background-color: var(--bg-card);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: calc(var(--spacing-lg) + var(--spacing-xs)) var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: left;
}

.modal.active .modal-card { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover { color: var(--primary); }

.modal-header { text-align: center; margin-bottom: var(--spacing-md); }
.modal-subtitle { font-family: var(--font-serif); color: var(--primary); font-size: 1.1rem; font-style: italic; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-dark); }

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--bg-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--primary); background-color: #ffffff; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.btn-submit:hover { background-color: var(--primary-dark); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-alert {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-alert.success { display: block; background-color: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; }
.form-alert.error { display: block; background-color: #ffebee; color: var(--error); border: 1px solid #ef9a9a; }

/* 11. LIGHTBOX MODAL CON SLIDER NAVEGABLE */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active { opacity: 1; visibility: visible; }

.lightbox-img-container {
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3002;
}

.lightbox-close:hover { color: var(--primary-light); }

/* Flechas del Slider en Pantalla Completa */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3001;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-arrow:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.lb-prev { left: 25px; }
.lightbox-arrow.lb-next { right: 25px; }

.lightbox-footer {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 3001;
}

.lightbox-caption {
  color: var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.lightbox-counter {
  color: var(--primary-light);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 12. FOOTER */
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.couple-serif { font-family: var(--font-serif); font-size: 2rem; color: var(--primary-light); }
.footer-hashtag { font-size: 0.85rem; letter-spacing: 2px; color: #888888; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: #ccc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom { border-top: 1px solid #333; width: 100%; padding-top: 1.5rem; margin-top: 1rem; font-size: 0.75rem; color: #777; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }

  .nav-menu.active { left: 0; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .couple-names { font-size: 3.2rem; }
  
  .lightbox-arrow.lb-prev { left: 10px; }
  .lightbox-arrow.lb-next { right: 10px; }
}
.detail-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  /* Convierte la imagen al tono dorado exacto del sitio */
  filter: invert(68%) sepia(35%) saturate(548%) hue-rotate(7deg) brightness(92%) contrast(88%);
}