
:root {
  --bg: #FFF9F5;
  --bg-alt: #FDF6F0;
  --surface: #FFFFFF;
  --text: #2D2420;
  --text-secondary: #5C4D42;
  --text-muted: #8A7B70;
  --primary: #E29578;
  --primary-dark: #C87A5D;
  --accent: #D4A373;
  --accent-light: #FAEDCD;
  --border: #E8DDD5;
  --shadow-sm: 0 2px 8px rgba(45, 36, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 36, 32, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 36, 32, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 8px; }
p { color: var(--text-secondary); font-size: 1.1rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(226, 149, 120, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226, 149, 120, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(226, 149, 120, 0.05);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 249, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-light);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #FFD166;
  bottom: 10%;
  left: -50px;
  opacity: 0.3;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 40%;
  right: 20%;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 163, 115, 0.3);
}

.hero-sub {
  font-size: 1.25rem;
  margin: 24px 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-desc {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* Carta */
.carta-section {
  background: var(--bg-alt);
}

.letter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.letter-content {
  position: relative;
  z-index: 1;
}

.letter-greeting {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.letter-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.letter-sign {
  margin-top: 32px;
  font-style: italic;
  color: var(--primary-dark);
}

.letter-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  opacity: 0.5;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.gallery-caption {
  padding: 20px;
}

.gallery-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Reasons */
.razones-section {
  background: var(--bg);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.reason-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}

.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.reason-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.reason-card p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Sorpresa */
.sorpresa-section {
  background: linear-gradient(135deg, #FFF5EB 0%, #FDF6F0 100%);
  padding: 120px 0;
}

.sorpresa-content {
  display: flex;
  justify-content: center;
}

.sorpresa-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  position: relative;
  border: 2px solid var(--accent-light);
}

.sorpresa-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.sorpresa-card h2 {
  margin-bottom: 16px;
}

.sorpresa-card p {
  margin-bottom: 32px;
}

.hidden-message {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.5s ease;
}

.hidden-message.active {
  display: block;
}

.message-inner h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.gift-note {
  background: var(--accent-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
}

.footer-copy p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .letter-card {
    padding: 32px 24px;
  }

  .sorpresa-card {
    padding: 40px 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
