/* ============================================================
   InvitaEK — Editorial Luxe Design System
   ============================================================ */

/* ---------- Custom Properties ---------- */
/* Inspired by adrianachavarriaga.tatui.store earth-tone palette */
:root {
  --charcoal: #1A1A1A;
  --ivory: #FAF6F1;
  --cream: #F5F0E8;
  --sand: #D4C5B0;
  --gold: #B8860B;
  --gold-light: #D4AF37;
  --gold-pale: rgba(184, 134, 11, 0.06);
  --rose: #D4A0A0;
  --white: #FFFFFF;
  --grey-200: #E5E1DB;
  --grey-400: #A09A92;
  --grey-600: #6B6560;
  --earth-warm: hsl(36, 22%, 63%);
  --earth-deep: hsl(30, 42%, 20%);
  --earth-accent: hsl(30, 42%, 30%);
  --earth-muted: hsl(35, 21%, 53%);
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
  --shadow-gold: 0 6px 24px rgba(184, 134, 11, 0.18);
  --shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.1);
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --max-w: 1200px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Playfair Display', serif; }
.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Montserrat', sans-serif; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.25; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

[data-i18n] { transition: opacity 0.15s ease; }

/* ---------- AOS-compatible Animations ---------- */
.aos-init { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aos-animate { opacity: 1; transform: translateY(0); }

/* Intersection Observer fallback */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-light);
  z-index: 1000;
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.brand span { color: var(--gold); }

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--gold-light);
  border-radius: 20px;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  background: transparent;
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--gold);
  color: var(--white);
}
.lang-btn:hover:not(.active) {
  color: var(--gold);
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 246, 241, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 48px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--charcoal);
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, rgba(26, 26, 26, 0.7) 40%, transparent 70%),
              linear-gradient(220deg, rgba(184, 134, 11, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--cream) 0%, var(--ivory) 50%, rgba(212, 160, 160, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(250, 246, 241, 0.85);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.hero-cta:hover::before {
  left: 100%;
}

/* ============================================================
   TEMPLATES SECTION
   ============================================================ */
.templates-section {
  padding: 96px 0;
  background: var(--ivory);
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--charcoal);
  margin-bottom: 12px;
}

.section-heading p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--grey-600);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.template-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

.template-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
}

.template-thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--cream), var(--gold-pale), rgba(212, 160, 160, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}

.template-thumb-icon {
  font-size: 3.5rem;
  transition: transform var(--transition-slow);
}

.template-card:hover .template-thumb-icon {
  transform: scale(1.15);
}

.template-body {
  padding: 24px;
}

.template-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.template-desc {
  font-size: 0.88rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 56px;
}

.template-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.template-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
}

.template-btn {
  padding: 10px 20px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.template-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.template-btn:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}
.template-btn:hover::before { left: 100%; }

.templates-loading, .templates-error {
  text-align: center;
  padding: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--grey-400);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 96px 0;
  background: var(--cream);
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.step-card:hover {
  background: var(--white);
  border-color: var(--grey-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}

.step-card:hover .step-number {
  opacity: 0.8;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--gold-light); }

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--grey-400);
  margin-bottom: 32px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--grey-600);
  border-top: 1px solid rgba(250, 246, 241, 0.1);
  padding-top: 24px;
}

/* ============================================================
   ORDER FORM — WIZARD (crear.html)
   ============================================================ */
.crear-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--ivory);
}

.crear-header {
  text-align: center;
  padding: 48px 24px 32px;
}

.crear-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--charcoal);
  margin-bottom: 8px;
}

.crear-header p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--grey-600);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--grey-200);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s ease;
  width: 0%;
}

/* Step dots */
.step-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--grey-400);
  background: transparent;
  transition: all var(--transition);
}

.step-dot.active {
  border-color: var(--gold);
  background: transparent;
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.2);
}

.step-dot.completed {
  border-color: var(--gold);
  background: var(--gold);
}

/* Form steps */
.form-wizard {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step card */
.step-card-form {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.step-card-form h2 {
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.step-card-form .step-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--grey-600);
  margin-bottom: 32px;
}

/* Form fields */
.field {
  margin-bottom: 24px;
  position: relative;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-400);
  color: var(--charcoal);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}

.form-input::placeholder {
  color: var(--grey-400);
  font-style: italic;
}

textarea.form-input {
  resize: vertical;
  min-height: 60px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A09A92' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

/* Input row for side-by-side fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 479px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Dynamic item rows */
.dynamic-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}

.dynamic-item:hover {
  box-shadow: var(--shadow-md);
}

.dynamic-item-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.dynamic-item-row.three-col {
  grid-template-columns: 100px 1fr 1fr;
}

@media (max-width: 479px) {
  .dynamic-item-row,
  .dynamic-item-row.three-col {
    grid-template-columns: 1fr;
  }
}

.field-small { max-width: 120px; }
.field-grow { flex: 1; }

.dynamic-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.btn-remove {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  background: none;
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-remove:hover {
  background: rgba(212, 160, 160, 0.15);
  color: #b07070;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1px dashed var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-top: 8px;
  transition: all var(--transition);
}
.btn-add:hover {
  background: rgba(184, 134, 11, 0.06);
  border-style: solid;
}

.btn-add::before {
  content: '+';
  font-size: 1.2rem;
  line-height: 1;
}

/* Section dividers inside form steps */
.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-200);
}

/* File upload label */
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  transition: color var(--transition);
}
.file-label:hover { color: var(--gold-light); }
.file-label-text { text-decoration: underline; }

/* Navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 16px;
}

.btn-prev {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--grey-400);
  color: var(--grey-600);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-prev:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-next, .btn-publish-form {
  padding: 14px 40px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-next::before, .btn-publish-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}

.btn-next:hover, .btn-publish-form:hover {
  background: var(--gold-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-gold);
}
.btn-next:hover::before, .btn-publish-form:hover::before { left: 100%; }

.btn-next:disabled, .btn-publish-form:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   GALLERY & MUSIC (Step 5)
   ============================================================ */
.drop-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(184, 134, 11, 0.03);
}

.drop-zone:hover, .drop-zone.dragover {
  background: rgba(184, 134, 11, 0.08);
  border-color: var(--gold-light);
  box-shadow: inset 0 0 20px rgba(184, 134, 11, 0.05);
}

.drop-zone-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.drop-zone-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.7);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-thumb:hover .thumb-remove { opacity: 1; }

.gallery-count {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-top: 8px;
}

/* Music */
.music-section { margin-top: 40px; }

.music-upload-btn {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-top: 8px;
  transition: all var(--transition);
}
.music-upload-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.music-status {
  display: none;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(184, 134, 11, 0.08);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 500;
}
.music-status.visible { display: block; }

/* ============================================================
   COLORS & FONTS (Step 6)
   ============================================================ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.color-field {
  text-align: center;
}

.color-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.color-field input[type="color"] {
  width: 56px;
  height: 56px;
  border: 2px solid var(--grey-200);
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  background: transparent;
  transition: border-color var(--transition);
}
.color-field input[type="color"]:hover,
.color-field input[type="color"]:focus {
  border-color: var(--gold);
}

/* ============================================================
   PREVIEW & PUBLISH (Step 7)
   ============================================================ */
.preview-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}

.preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
  transition: opacity 0.4s ease;
}

.preview-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0.9);
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--grey-600);
}
.preview-loader.visible { display: flex; }

.preview-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.publish-panel {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(184, 134, 11, 0.06);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.publish-panel.visible { display: block; }

.publish-panel h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.published-link {
  display: block;
  word-break: break-all;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius);
}

.publish-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-copy, .btn-whatsapp, .btn-view {
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-copy {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-copy:hover {
  background: var(--gold-light);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1EB954;
}

.btn-view {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-view:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Small phones */
@media (max-width: 479px) {
  .step-card-form { padding: 24px 16px; }
  .form-nav { flex-direction: column; }
  .btn-prev, .btn-next, .btn-publish-form { width: 100%; text-align: center; }
  .template-thumb { height: 160px; }
  .step-dots { gap: 10px; }
  .step-dot { width: 10px; height: 10px; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-iframe { height: 350px; }
}

/* Tablets */
@media (min-width: 480px) and (max-width: 767px) {
  .templates-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Desktop */
@media (min-width: 768px) {
  .templates-grid { gap: 40px; }
  .preview-iframe { height: 600px; }
}

@media (min-width: 1024px) {
  .hero { min-height: 85vh; }
  .templates-section { padding: 120px 0; }
  .how-section { padding: 120px 0; }
}

/* ============================================================
   SCROLL REVEAL (Intersection Observer)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ENHANCED ANIMATIONS (from adrianachavarriaga.tatui.store)
   ============================================================ */

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Smooth entrance for cards/sections */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gentlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Loading shimmer effect for skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--cream) 25%, var(--ivory) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-lg);
}

/* Hover scale for images (gallery-style) */
.hover-scale img {
  transition: transform var(--transition-slow);
}
.hover-scale:hover img {
  transform: scale(1.05);
}

/* Card glassmorphism hover */
.card-glass {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}
.card-glass:hover {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(184, 134, 11, 0.2);
  box-shadow: var(--shadow-hover);
}

/* Smooth text reveal */
.text-reveal {
  overflow: hidden;
}
.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.text-reveal.visible span {
  transform: translateY(0);
}

/* Section divider line (gold gradient) */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  max-width: 200px;
  margin: 0 auto;
}

/* Floating badge/tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid rgba(184, 134, 11, 0.12);
}

/* Image overlay on hover (gallery-style from Adriana site) */
.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.4));
  opacity: 0;
  transition: opacity var(--transition);
}
.img-overlay:hover::after {
  opacity: 1;
}
.img-overlay img {
  transition: transform var(--transition-slow);
}
.img-overlay:hover img {
  transform: scale(1.05);
}

/* ============================================================
   USER MENU DROPDOWN
   ============================================================ */
.user-menu { position: relative; }
.user-menu-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--text-dark, #2C2420); font-family: inherit; font-size: 0.9rem;
  padding: 6px 10px; border-radius: 8px; transition: background 0.2s;
}
.user-menu-toggle:hover { background: rgba(184, 134, 11, 0.08); }
.um-avatar, .um-avatar-lg {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--gold, #B8860B), var(--gold-light, #D4AF37));
}
.um-avatar { width: 32px; height: 32px; font-size: 0.85rem; }
.um-avatar-lg { width: 40px; height: 40px; font-size: 1rem; flex-shrink: 0; }
.um-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-chevron { transition: transform 0.2s; }
.user-menu-dropdown.open ~ .user-menu-toggle .um-chevron,
.user-menu .user-menu-dropdown.open + .um-chevron { transform: rotate(180deg); }

.user-menu-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1000; overflow: hidden;
}
.user-menu-dropdown.open { display: block; }

.um-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: linear-gradient(135deg, #FAF6F1, #F0E6D6);
}
.um-header-name { font-weight: 600; font-size: 0.95rem; color: #2C2420; }
.um-header-email { font-size: 0.8rem; color: #7A706A; margin-top: 2px; }
.um-divider { height: 1px; background: #f0ebe4; margin: 0; }
.um-section-title {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: #B8860B; padding: 12px 16px 4px;
}
.um-orders { max-height: 240px; overflow-y: auto; }
.um-order {
  padding: 10px 16px; border-bottom: 1px solid #f5f0eb;
  transition: background 0.15s;
}
.um-order:hover { background: #FAF6F1; }
.um-order:last-child { border-bottom: none; }
.um-order-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.um-order-names { font-weight: 500; font-size: 0.88rem; color: #2C2420; }
.um-badge {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.um-badge-draft { background: #FFF3E0; color: #E65100; }
.um-badge-pub { background: #E8F5E9; color: #2E7D32; }
.um-badge-exp { background: #FAFAFA; color: #9E9E9E; }
.um-order-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; font-size: 0.78rem; color: #7A706A;
}
.um-action {
  color: #B8860B; font-weight: 500; text-decoration: none; font-size: 0.78rem;
}
.um-action:hover { text-decoration: underline; }
.um-see-all {
  display: block; text-align: center; padding: 8px;
  font-size: 0.8rem; color: #B8860B; text-decoration: none;
}
.um-see-all:hover { background: #FAF6F1; }
.um-menu-link {
  display: block; padding: 10px 16px; font-size: 0.88rem;
  color: #2C2420; text-decoration: none; transition: background 0.15s;
}
.um-menu-link:hover { background: #FAF6F1; }
.um-menu-create { color: #B8860B; font-weight: 500; }
.um-logout {
  display: block; width: 100%; padding: 12px 16px;
  font-size: 0.88rem; color: #C62828; text-align: left;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.um-logout:hover { background: #FFF5F5; }
.um-empty { padding: 16px; text-align: center; font-size: 0.85rem; color: #9E9E9E; }

/* Template Picker Grid (step 0) */
.template-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 16px;
}
.template-picker-card {
  padding: 20px; border-radius: 12px; border: 2px solid #f0ebe4;
  cursor: pointer; transition: all 0.3s ease; text-align: center;
}
.template-picker-card:hover { border-color: var(--gold, #B8860B); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(184,134,11,0.1); }
.template-picker-card.selected { border-color: var(--gold, #B8860B); background: rgba(184,134,11,0.04); }
.picker-icon { font-size: 2rem; margin-bottom: 8px; }
.template-picker-card h3 { font-size: 1rem; margin: 0 0 6px; color: #2C2420; }
.template-picker-card p { font-size: 0.8rem; color: #7A706A; margin: 0 0 8px; line-height: 1.4; }
.picker-price { font-size: 0.85rem; font-weight: 600; color: var(--gold, #B8860B); }

/* Dashboard page */
.dashboard-page { padding: 120px 0 60px; min-height: 60vh; }
.dashboard-actions { text-align: center; margin-bottom: 40px; }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.order-card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #f0ebe4; transition: box-shadow 0.3s; }
.order-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-couple { font-size: 1.2rem; font-weight: 600; color: #2C2420; margin: 0 0 4px; }
.order-date { font-size: 0.9rem; color: #7A706A; margin: 0 0 4px; }
.order-meta { font-size: 0.8rem; color: #9E9E9E; margin: 0 0 4px; }
.order-expires { font-size: 0.8rem; color: #E65100; margin: 0 0 12px; }
.order-template { font-size: 0.75rem; color: #B8860B; font-weight: 500; }
.badge { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-draft { background: #FFF3E0; color: #E65100; }
.badge-published { background: #E8F5E9; color: #2E7D32; }
.badge-expired { background: #FAFAFA; color: #9E9E9E; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-btn { padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; text-decoration: none; font-weight: 500; transition: all 0.2s; }
.order-btn-edit { background: var(--gold, #B8860B); color: #fff; }
.order-btn-edit:hover { opacity: 0.9; }
.order-btn-view { background: #E8F5E9; color: #2E7D32; }
.order-btn-share { background: #E8F5E9; color: #128C7E; }
.empty-state { text-align: center; padding: 60px 20px; color: #7A706A; }

@media (max-width: 768px) {
  .user-menu-dropdown { width: 280px; right: -20px; }
  .um-name { display: none; }
}

/* ============================================================
   PRINT (hide non-essential)
   ============================================================ */
@media print {
  .site-header, .site-footer, .form-nav, .progress-bar, .step-dots { display: none; }
  .form-step { display: block !important; }
}
