/* ============================================================
   codigonovios.cl — Lista de Regalos / Recaudación para bodas
   Mismo lenguaje visual de la familia (Nos Casamos)
   ============================================================ */
:root {
  --color-primary: #8B3232;     /* Rojo chino / burgundy */
  --color-secondary: #C9A84C;   /* Dorado */
  --color-bg: #F5F0E8;          /* Crema / parchment */
  --color-text: #3C2415;        /* Marrón oscuro */
  --color-accent: #D4A574;      /* Rose gold */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--color-secondary);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 700; color: var(--color-primary);
  text-decoration: none; white-space: nowrap;
}
.brand-dot { color: var(--color-secondary); }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a {
  color: var(--color-text); text-decoration: none; font-weight: 700; font-size: .95rem;
  opacity: .8; transition: opacity .2s;
}
.main-nav a:hover { opacity: 1; color: var(--color-primary); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: .98rem;
  transition: transform .15s, box-shadow .15s; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 4px 14px rgba(139,50,50,.3); }
.btn-primary:hover { background: #742a2a; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  background-size: cover; background-position: center;
  color: #fff; padding: 110px 0 90px; text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem;
  color: var(--color-secondary); margin-bottom: 16px; font-weight: 700;
}
.hero h1 {
  font-family: var(--font-heading); font-size: 2.9rem; line-height: 1.2;
  max-width: 800px; margin: 0 auto 18px; text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-sub { max-width: 640px; margin: 0 auto 30px; font-size: 1.08rem; opacity: .95; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: .9rem; opacity: .85; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-title {
  font-family: var(--font-heading); color: var(--color-primary);
  text-align: center; font-size: 1.9rem; margin-bottom: 10px;
}
.section-sub { text-align: center; opacity: .75; margin-bottom: 34px; }

/* ---------- Grid / Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: 12px; padding: 26px 22px;
  box-shadow: 0 3px 14px rgba(60,36,21,.07); border-top: 3px solid var(--color-secondary);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 8px; font-size: 1.15rem; }
.card p { font-size: .93rem; opacity: .85; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-family: var(--font-heading);
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(139,50,50,.3);
}
.step h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 6px; font-size: 1.05rem; }
.step p { font-size: .9rem; opacity: .85; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-img img { width: 100%; border-radius: 14px; box-shadow: 0 6px 24px rgba(60,36,21,.15); }
.checklist { list-style: none; margin: 16px 0 22px; }
.checklist li { padding: 6px 0; font-size: .98rem; }

/* ---------- Beneficio destacado ---------- */
.benefit-big {
  background: var(--color-primary); color: #fff; border-radius: 14px;
  padding: 34px; text-align: center; margin-top: 30px;
}
.benefit-big h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; }
.benefit-big p { opacity: .9; max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--color-text); color: rgba(255,255,255,.85); padding: 36px 0 20px; margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--color-secondary); }
.footer-copy { text-align: center; font-size: .8rem; opacity: .6; margin-top: 22px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.25); z-index: 99;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .steps, .split { grid-template-columns: 1fr; }
  .header-inner { gap: 14px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .main-nav a { font-size: .85rem; }
  .section-title { font-size: 1.5rem; }
}
