/* ==========================================================================
   DESIGN SYSTEM - INVITACIÓN BODA INID & MARCO
   Basado fielmente en la paleta, tipografías y composición del PDF original.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #F5F0E8;
  --bg-cream-light: #F9F6F0;
  --bg-card-dark: #6B3518;
  --bg-card-rust: #83401C;
  --bg-card-terracotta: #9B431E;
  
  --color-terracotta: #9B431E;
  --color-terracotta-dark: #6B3518;
  --color-terracotta-light: #C0451A;
  --color-gold-accent: #E5A128;
  
  --text-dark: #2A1D17;
  --text-muted: #5C473B;
  --text-light: #FFFFFF;
  --text-cream: #F5F0E8;
  
  /* Typography */
  --font-serif: 'Belleza', 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive;
  --font-heading: 'Amarego', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Shadow & Elevation */
  --shadow-soft: 0 4px 20px rgba(42, 29, 23, 0.08);
  --shadow-card: 0 10px 30px rgba(42, 29, 23, 0.15);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.35);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  
  /* Max Mobile Container Width */
  --container-max-width: 540px;
}

/* Base Reset & Typography Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #1a1614;
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Canvas Wrapper (Keeps PDF Invitation Aspect & Feel on Desktop) */
.mobile-canvas {
  width: 100%;
  max-width: var(--container-max-width);
  background-color: var(--bg-main);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  overflow-x: hidden;
  position: relative;
}

/* Floral Corner Ornaments */
.floral-header-accent,
.floral-footer-accent {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.5rem 1rem;
}

.floral-accent-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  fill: var(--color-terracotta);
}

/* Button Component Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #222222;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Deckled / Torn Paper Divider Element */
.torn-paper-divider {
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,65 C650,150 900,10 1200,80 L1200,120 L0,120 Z' fill='%23F5F0E8'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.torn-paper-top {
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 C150,30 350,160 500,55 C650,-30 900,110 1200,40 L1200,0 L0,0 Z' fill='%23F5F0E8'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  margin-bottom: -30px;
  position: relative;
  z-index: 5;
}

/* Heart Line Dividers */
.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem auto;
  width: 80%;
}

.heart-divider::before,
.heart-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
}

.heart-divider.dark::before,
.heart-divider.dark::after {
  background-color: var(--color-terracotta);
}

.heart-divider span {
  color: #FFFFFF;
  font-size: 1rem;
}

.heart-divider.dark span {
  color: var(--color-terracotta);
}
