@charset "utf-8";
/* CSS Document */

/* =======================
   RESET & VARIABLES
   ======================= */
:root {
  --bg-cream: #faf7f2;
  --bg-card: #ffffff;
  --primary: #9b8165;
  --primary-dark: #7a634a;
  --primary-light: #d8c3ad;
  --text-dark: #2c2724;
  --text-muted: #746f6b;
  --border-color: #eae3db;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  text-align: center;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =======================
   PANTALLA DE APERTURA (ENVELOPE MODAL)
   ======================= */
#welcome-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #fcfbf9 0%, #ede6dd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  padding: 20px;
}

#welcome-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-card {
  background: #fff;
  padding: 50px 30px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
}

.welcome-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.welcome-card h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 25px;
}

.welcome-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.btn-open {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-open:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =======================
   CONTENEDOR PRINCIPAL MOBILE-FIRST
   ======================= */
.app-container {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
  min-height: 100vh;
  position: relative;
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
  position: relative;
  height: 75vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6)),
              url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero-date {
  font-size: 1rem;
  letter-spacing: 3px;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 24px;
}

/* =======================
   SECCIONES COMUNES
   ======================= */
section {
  padding: 50px 24px;
  border-bottom: 1px solid var(--border-color);
}

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.ornament {
  margin: 15px auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--primary-light);
}

.icon-heart,
.icon-feather {
  color: var(--primary-light);
  font-size: 0.8rem;
}

/* =======================
   CUENTA REGRESIVA
   ======================= */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.countdown-item {
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 65px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* =======================
   HISTORIA
   ======================= */
.story-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* =======================
   GALERÍA
   ======================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 160px;
  background: #f0ede8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =======================
   ITINERARIO Y EVENTOS
   ======================= */
.event-card {
  background: var(--bg-cream);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  margin-bottom: 25px;
}

.event-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.event-card .time {
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* =======================
   BOTONES DE ACCIÓN (REGALOS & RSVP)
   ======================= */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 15px 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(155, 129, 101, 0.3);
  transition: all 0.3s ease;
  margin: 10px auto;
}

.btn-action:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =======================
   NOTAS IMPORTANTES
   ======================= */
.note-box {
  margin-bottom: 25px;
  text-align: center;
}

.note-box h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.note-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =======================
   FOOTER
   ======================= */
footer {
  padding: 35px 20px;
  background: #f4ede4;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credit {
  font-size: 0.75rem;
  margin-top: 5px;
}