:root {
  --forest: #1C2B22;
  --forest-light: #263A2E;
  --cream: #FAF8F5;
  --sand: #F0EBE1;
  --gold: #C89D54;
  --gold-hover: #B3883E;
  --text-dark: #232323;
  --text-muted: #66635E;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- BOTÓN DE MÚSICA --- */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.music-btn:hover {
  transform: scale(1.08);
}

.hidden {
  display: none !important;
}

/* --- PANTALLA DE SOBRE (INTRO) --- */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.envelope-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.envelope-content {
  max-width: 480px;
  border: 1px solid rgba(200, 157, 84, 0.35);
  padding: 48px 28px;
}

.subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 16px;
}

.names-intro {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.names-intro span {
  font-style: italic;
  color: var(--gold);
}

.guest-welcome {
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: 32px;
  font-weight: 300;
}

/* --- BOTONES --- */
.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-outline, .btn-outline-dark, .btn-gold {
  display: inline-block;
  text-decoration: none;
  padding: 12px 26px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  border: 1px solid var(--gold);
  color: var(--text-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.btn-gold {
  color: var(--gold);
}

.btn-outline:hover, .btn-outline-dark:hover, .btn-gold:hover {
  background: var(--gold);
  color: #fff;
}

.full-width {
  width: 100%;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Enfoca los rostros de la pareja tanto en móvil como en escritorio */
  background-position: 42% 32%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

/* Degradado inferior para que el texto sea 100% legible sin tapar sus rostros */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 43, 34, 0.15) 0%,
    rgba(28, 43, 34, 0.05) 45%,
    rgba(28, 43, 34, 0.85) 85%,
    rgba(28, 43, 34, 0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 56px;
  width: 100%;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.hero-title i {
  color: var(--gold);
  font-weight: 400;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto;
}

.hero-date {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  font-weight: 300;
}

.scroll-down {
  display: inline-block;
  margin-top: 24px;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- SECCIONES GENERALES --- */
.section {
  padding: 84px 20px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-forest { background: var(--forest); }
.text-light { color: var(--cream); }
.text-center { text-align: center; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-label.gold {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* --- CITA Y COUNTDOWN --- */
.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--forest);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 32px;
}

.time-box {
  min-width: 72px;
  padding: 16px 10px;
  border: 1px solid rgba(200, 157, 84, 0.4);
  background: #fff;
}

.time-box span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--forest);
  line-height: 1;
}

.time-box small {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* --- ITINERARIO --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.event-card {
  background: var(--forest-light);
  border: 1px solid rgba(200, 157, 84, 0.25);
  padding: 36px 24px;
  text-align: center;
}

.event-time {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 8px 0;
}

.event-place {
  font-weight: 500;
  margin-bottom: 4px;
}

.event-address {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 12px;
}

/* --- PALETA DE COLORES --- */
.palette {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* --- MESA DE REGALOS --- */
.gift-card {
  background: #fff;
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 24px;
  border: 1px solid rgba(200, 157, 84, 0.3);
}

.bank-name {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.account-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 8px 0;
  color: var(--forest);
}

.account-holder {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copy-feedback {
  display: block;
  font-size: 0.78rem;
  color: var(--forest);
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
}

/* --- FORMULARIO RSVP --- */
.form-container {
  max-width: 540px;
}

.rsvp-form {
  background: #fff;
  padding: 36px 28px;
  border: 1px solid rgba(200, 157, 84, 0.3);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #DCD7CE;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-status {
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--forest);
}

/* --- FOOTER --- */
.footer {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 40px 20px;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.footer-sub {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 4px;
}