/* ============================================================
   BODALISTA.COM — Sistema de Diseño Compartido
   Versión 1.0 · 2026
   ============================================================ */

/* Google Fonts — carga no bloqueante via HTML */
:root {
  --ivory:         #FAF5EE;
  --ivory-deep:    #F2EBE0;
  --ivory-dark:    #E8DED0;
  --champagne:     #C9A96E;
  --champagne-light: #E8D5A8;
  --champagne-dark:  #8B6B35;
  --champagne-pale:  #F7EFD8;
  --burgundy:      #6B1A2E;
  --burgundy-light: #9B3A52;
  --burgundy-pale:  #F5E8EB;
  --blush:         #E8B8BF;
  --blush-deep:    #C4848E;
  --blush-pale:    #FDF0F2;
  --charcoal:      #2C1F1F;
  --charcoal-soft: #3D2B2B;
  --text-muted:    #5D4A45;
  --text-light:    #8C7570;
  --cream:         #FFFAF4;
  --white:         #FFFFFF;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --shadow-sm:   0 2px 8px rgba(44,31,31,0.06);
  --shadow-md:   0 4px 24px rgba(44,31,31,0.10);
  --shadow-lg:   0 8px 48px rgba(44,31,31,0.14);
  --shadow-xl:   0 16px 64px rgba(44,31,31,0.18);
  --shadow-warm: 0 4px 32px rgba(139,107,53,0.14);
  --shadow-warm-lg: 0 12px 56px rgba(139,107,53,0.20);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height:  72px;
  --container:   1200px;
  --section-gap: 96px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--ivory); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── Typography Scale ───────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--charcoal); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; }
p { line-height: 1.75; color: var(--text-muted); }
em { font-style: italic; }
strong { font-weight: 600; color: var(--charcoal); }

/* ─── Layout ────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 40px; }
.container-xs { max-width: 600px; margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }

/* ─── Section Labels ─────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--champagne-dark);
  margin-bottom: 20px;
}
.label::before, .label::after {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--champagne);
}
.label-center { justify-content: center; }

/* ─── Dividers & Ornaments ───────────────────────────────── */
.divider { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne), transparent); margin: 24px 0; }
.divider-center { margin: 24px auto; }
.ornament { font-family: var(--font-display); font-size: 20px; color: var(--champagne); letter-spacing: 10px; opacity: 0.7; text-align: center; margin-bottom: 20px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.3s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--burgundy); color: var(--ivory);
  box-shadow: 0 4px 20px rgba(107,26,46,0.30);
}
.btn-primary:hover {
  background: var(--burgundy-light);
  box-shadow: 0 6px 28px rgba(107,26,46,0.40);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--champagne-dark), var(--champagne));
  color: var(--cream); box-shadow: var(--shadow-warm);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--champagne), var(--champagne-dark));
  box-shadow: var(--shadow-warm-lg); transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--champagne); color: var(--charcoal);
  background: transparent;
}
.btn-outline:hover { background: var(--champagne-pale); border-color: var(--champagne-dark); }
.btn-ghost { color: var(--champagne-dark); padding: 15px 0; }
.btn-ghost:hover { color: var(--burgundy); }
.btn-lg { padding: 18px 40px; font-size: 15px; }
.btn-sm { padding: 10px 22px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--cream); border-radius: var(--radius-lg);
  border: 1px solid var(--ivory-dark); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px 32px; }
.card-champagne { background: var(--champagne-pale); border-color: var(--champagne-light); }
.card-burgundy { background: var(--burgundy-pale); border-color: var(--blush); }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
}
.badge-gold { background: var(--champagne-pale); color: var(--champagne-dark); border: 1px solid var(--champagne-light); }
.badge-burgundy { background: var(--burgundy-pale); color: var(--burgundy); border: 1px solid var(--blush); }
.badge-green { background: #E8F5E8; color: #2D6A2D; border: 1px solid #B8DDB8; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; letter-spacing: 0.04em; }
.form-input {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid var(--ivory-dark); border-radius: var(--radius-sm);
  background: var(--cream); font-family: inherit; font-size: 14px;
  color: var(--charcoal); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
.form-input::placeholder { color: var(--text-light); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ─── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); transition: all 0.3s var(--ease);
  background: rgba(250,245,238,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
#nav.scrolled { border-bottom-color: var(--ivory-dark); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.nav-logo-main { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.04em; }
.nav-logo-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--champagne-dark); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--charcoal); background: var(--ivory-deep); }
.nav-links a.active { color: var(--burgundy); }
.nav-cta { margin-left: 8px; padding: 10px 22px !important; background: var(--burgundy); color: var(--ivory) !important; border-radius: var(--radius-sm); font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-cta:hover { background: var(--burgundy-light) !important; color: var(--ivory) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--charcoal); color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 2rem; color: var(--champagne); letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--champagne-light); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.60); transition: color 0.2s; }
.footer-links a:hover { color: var(--champagne); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-legal a:hover { color: var(--champagne); }

/* ─── Page Header (interior pages) ──────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: linear-gradient(160deg, var(--ivory-deep) 0%, var(--ivory) 60%);
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,169,110,0.08), transparent);
  pointer-events: none;
}
.page-header .label { justify-content: center; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ─── Hero base ───────────────────────────────────────────── */
#hero { padding-top: var(--nav-height); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }

/* ─── Testimonial Cards ──────────────────────────────────── */
.testi-card { padding: 32px; background: var(--cream); border: 1px solid var(--ivory-dark); border-radius: var(--radius-lg); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--champagne); font-size: 14px; }
.testi-text { font-size: 15px; line-height: 1.75; color: var(--charcoal-soft); margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); overflow: hidden; flex-shrink: 0; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 600; font-size: 14px; color: var(--charcoal); }
.testi-meta { font-size: 12px; color: var(--text-light); }

/* ─── FAQ Accordion ──────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--ivory-dark); }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; text-align: left; cursor: pointer; gap: 16px;
  font-size: 15px; font-weight: 500; color: var(--charcoal);
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--burgundy); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; border: 1.5px solid var(--champagne); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; font-size: 16px; color: var(--champagne); }
.faq-trigger.active .faq-icon { background: var(--champagne); color: var(--cream); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-body.open { max-height: 400px; }
.faq-body p { padding: 0 0 24px; font-size: 14px; line-height: 1.8; }

/* ─── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-champagne { color: var(--champagne); }
.text-burgundy { color: var(--burgundy); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.bg-ivory { background: var(--ivory); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-cream { background: var(--cream); }
.bg-champagne-pale { background: var(--champagne-pale); }
.bg-burgundy { background: var(--burgundy); }
.bg-charcoal { background: var(--charcoal); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; } .mb-48 { margin-bottom: 48px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }
.fade-up-d5 { transition-delay: 0.5s; }

@keyframes shimmer { 0%,100%{opacity:0.6} 50%{opacity:1} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:0.8} 100%{transform:scale(1.5);opacity:0} }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-gap: 64px; --nav-height: 64px; }
  .container, .container-sm, .container-xs { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(250,245,238,0.98); backdrop-filter: blur(16px); padding: 16px 20px 24px; gap: 4px; box-shadow: 0 8px 32px rgba(44,31,31,0.12); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 12px 16px; border-radius: var(--radius-md); }
  .nav-cta { text-align: center; background: var(--burgundy); color: var(--ivory) !important; margin-top: 8px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .btn-lg { padding: 16px 28px; font-size: 14px; }
}
