/* ============================================================
   codigonovios.cl — Lista de Regalos / Recaudación para bodas
   Brand family: Nos Casamos (noscasamos.vip)
   Versión: v2.0 visual — 08-Ago-2026 (brand guidelines v1.0)
   ============================================================ */
:root {
  --color-primary: #8B3232;     /* Rojo chino / burgundy — acciones y títulos */
  --color-secondary: #C9A84C;   /* Dorado — progreso / recaudado / detalles */
  --color-secondary-strong: #8A6D1F;   /* Dorado oscuro — texto sobre fondos claros (AA) */
  --color-bg: #F5F0E8;          /* Crema / parchment — fondo general */
  --color-text: #3C2415;        /* Marrón oscuro — texto, footer */
  --color-accent: #D4A574;      /* Rose gold — gradientes, hover */
  --color-track: #E6DDD0;       /* Track de barras de progreso */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', -apple-system, sans-serif;
  --radius: 12px;
  --shadow-card: 0 3px 14px rgba(60,36,21,.07);
  --shadow-card-hover: 0 10px 28px rgba(60,36,21,.14);
}

* { 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;
  cursor: pointer; font-family: var(--font-body);
}
.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-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: rgba(139,50,50,.06); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero (landing) ---------- */
.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 (landing) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-icon { font-size: 2.2rem; margin-bottom: 12px; }
.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; }

/* ============================================================
   LISTA PÚBLICA /n/{slug} (v2.0 visual)
   ============================================================ */

/* Portada de la lista — composición premium */
.lista-hero {
  padding: 64px 0 40px; text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.lista-hero .hero-eyebrow { margin-bottom: 10px; color: var(--color-secondary-strong); }
.lista-hero h1 {
  font-family: var(--font-heading); color: var(--color-primary);
  font-size: 2.6rem; line-height: 1.15; margin-bottom: 8px;
}
.lista-hero .fecha {
  font-size: 1rem; opacity: .75; margin-bottom: 14px;
}
.lista-codigo {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px dashed var(--color-secondary);
  color: var(--color-text); font-weight: 700; font-size: .85rem;
  padding: 6px 16px; border-radius: 30px; letter-spacing: 1px;
  margin-top: 6px;
}
.lista-codigo span { color: var(--color-primary); letter-spacing: 2px; }

/* Progreso total — el héroe de la lista */
.progress-total {
  max-width: 620px; margin: 28px auto 0; background: #fff;
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
}
.progress-total .bar { height: 16px; background: var(--color-track); border-radius: 99px; overflow: hidden; }
.progress-total .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 99px; transition: width .8s ease;
}
.progress-total .label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; font-size: .92rem;
}
.progress-total .recaudado { font-weight: 700; font-size: 1.15rem; color: var(--color-primary); }
.progress-total .meta { opacity: .65; }
.progress-total .pct {
  font-weight: 700; color: var(--color-secondary-strong); font-size: 1.05rem;
}

/* Grid de deseos */
.deseos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin-top: 34px;
}

/* Card de deseo — elevada */
.deseo-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.deseo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.deseo-card .deseo-icon { font-size: 1.8rem; line-height: 1; }
.deseo-card h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.2rem; }
.deseo-card .desc { font-size: .92rem; opacity: .8; }
.deseo-card .monto { font-size: 1.35rem; font-weight: 700; color: var(--color-text); }
.deseo-card .mini-bar { height: 9px; background: var(--color-track); border-radius: 99px; overflow: hidden; }
.deseo-card .mini-fill {
  height: 100%; background: var(--color-secondary); border-radius: 99px;
  transition: width .6s ease;
}
.deseo-card .avance { font-size: .82rem; opacity: .65; }
.deseo-card .btn { margin-top: auto; }

/* Modal de regalo */
.modal {
  position: fixed; inset: 0; background: rgba(60,36,21,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; padding: 30px 28px;
  max-width: 440px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.3);
  border-top: 4px solid var(--color-secondary);
}
.modal-box h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 16px; font-size: 1.3rem; }
.modal-box label { display: block; font-size: .88rem; font-weight: 700; margin: 12px 0 4px; }
.modal-box input {
  width: 100%; padding: 11px 13px; border: 1.5px solid #d8cdbc;
  border-radius: 8px; font-size: 1rem; font-family: var(--font-body);
  transition: border-color .2s;
}
.modal-box input:focus { outline: none; border-color: var(--color-primary); }
.modal-note {
  font-size: .8rem; opacity: .7; margin-top: 12px;
  background: var(--color-bg); border-radius: 8px; padding: 10px 12px;
}
.transfer-note { opacity: 1; border: 1px solid var(--color-secondary); background: #FBF7EC; }
.modal-hint { font-size: .78rem; opacity: .65; margin-top: 4px; }
.modal-breakdown {
  margin-top: 14px; border: 2px solid var(--color-primary);
  border-radius: 10px; padding: 10px 14px; background: #fff;
  box-shadow: 0 2px 8px rgba(139,50,50,.08);
}
.bd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; padding: 4px 0; color: var(--color-text); }
.bd-row span:last-child { font-weight: 700; }
.bd-comision { color: var(--color-secondary-strong); border-bottom: 1px dashed rgba(201,168,76,.5); padding-bottom: 8px; }
.bd-total { margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--color-secondary); }
.bd-total span:first-child { font-size: .98rem; font-weight: 700; color: var(--color-primary); }
.bd-total span:last-child { font-size: 1.35rem; font-weight: 700; color: var(--color-primary); }
.modal-confirm {
  margin-top: 16px; border: 2px solid var(--color-primary);
  border-radius: 10px; padding: 14px 16px; background: #fff;
}
.confirm-text { font-size: 1rem; color: var(--color-text); }
.confirm-text strong { color: var(--color-primary); font-size: 1.3rem; }
.confirm-detalle { font-size: .85rem; opacity: .75; margin-top: 6px; }
.deseo-card-libre { border-top: 3px dashed var(--color-secondary); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; text-align: center; }

/* Sello de confianza */
.trust-stripe {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-top: 34px; padding: 16px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-card); font-size: .88rem; opacity: .9;
}
.trust-stripe strong { color: var(--color-primary); }

/* Estados */
.error-banner {
  background: #fdecea; border: 1.5px solid #d9534f; color: #a33;
  padding: 14px 18px; border-radius: 10px; margin: 20px 0; text-align: center;
}
.gracias-banner {
  padding: 16px 18px; border-radius: 10px; margin: 18px 0; text-align: center;
  font-weight: 600; font-size: .95rem;
}
.gracias-ok { background: #eaf7ea; border: 1.5px solid #2e8b57; color: #1e6b3e; }
.gracias-pendiente { background: #fff7e6; border: 1.5px solid #e6a23c; color: #8a5a10; }
.gracias-fallo { background: #fdecea; border: 1.5px solid #d9534f; color: #a33; }
#loading { text-align: center; padding: 60px 0; color: var(--color-primary); font-weight: 700; }

/* ---------- 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: .8; margin-top: 22px; }

/* Footer: logos más visibles sobre fondo oscuro */
.footer .logos-row { padding-top: 18px; }
.footer .logos-row img { opacity: 1; filter: grayscale(1) contrast(1.12); }
.footer .logos-row img:hover { opacity: 1; filter: grayscale(.15); }
.footer { padding-bottom: 76px; }

/* ---------- 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); }

/* ============================================================
   LANDING HUMANA v2 (09-Ago-2026) — capturas reales + sellos B&W
   ============================================================ */

/* Hero de marca (sin foto de banco: gradiente + mockup del producto) */
.hero-brand {
  background: linear-gradient(150deg, #3C2415 0%, #6E2A2A 55%, #8B3232 100%);
  position: relative;
}
.hero-brand .hero-note { opacity: .85; }
.hero-mockup { margin-top: 42px; display: flex; justify-content: center; }

/* Marco tipo celular para las capturas */
.phone-frame {
  background: #151515;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
  max-width: 290px;
  width: 100%;
}
.phone-frame img {
  display: block; width: 100%; height: auto;
  border-radius: 24px;
  background: #fff;
}

/* Franja de sellos de confianza (patrón noscasamos.vip) */
.section-trust {
  background: #fff;
  border-top: 1px solid rgba(201,168,76,.2);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 22px 0 16px;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 44px; flex-wrap: wrap; padding: 8px 0 4px;
}
.logos-row img {
  max-height: 28px;
  max-width: 110px;
  height: auto;
  width: auto;
  filter: grayscale(1) contrast(1.05);
  opacity: .72;
  transition: opacity .2s, filter .2s;
}
.logos-row img:hover { opacity: 1; filter: grayscale(.2); }
.logos-row img[src*="bluehost"] { max-width: 90px; }
.logos-note { text-align: center; font-size: .85rem; opacity: .6; margin: 0 0 4px; }

/* Split invertido (captura a la derecha) */
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* Mini-galería de capturas de pago */
.shots-2 { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.shots-2 .phone-frame { max-width: 240px; }
.shot-caption { text-align: center; font-size: .82rem; opacity: .65; margin-top: 10px; }

/* Testimonios con fotos reales (solo prueba social, nunca fondo) */
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px;
}
.testimonio-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
  display: flex; flex-direction: column;
}
.testimonio-card .t-foto {
  width: 100%; height: 190px; object-fit: cover; display: block;
}
.testimonio-card .t-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.testimonio-card h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.08rem; }
.testimonio-card .t-rol { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-secondary-strong); font-weight: 700; }
.testimonio-card p { font-size: .92rem; opacity: .85; }

/* Íconos SVG en beneficios (en vez de emojis) */
.card-icon svg { width: 38px; height: 38px; color: var(--color-primary); }
.card-icon { line-height: 1; }

/* CTA final */
.cta-final {
  background: linear-gradient(150deg, #3C2415 0%, #8B3232 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-final h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.cta-final p { opacity: .9; max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .testimonios-grid { grid-template-columns: 1fr; }
  .phone-frame { max-width: 250px; }
  .shots-2 .phone-frame { max-width: 200px; }
  .hero-mockup { margin-top: 30px; }
  .cta-final { padding: 54px 0; }
  .cta-final h2 { font-size: 1.55rem; }
  .split-reverse { direction: ltr; }
  .logos-row { gap: 26px; }
  .logos-row img { max-height: 22px; max-width: 90px; }
  .logos-row img[src*="bluehost"] { max-width: 70px; }
}
@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: 10px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
  .main-nav a { font-size: .82rem; white-space: nowrap; }
  .section-title { font-size: 1.5rem; }
  .lista-hero { padding: 40px 0 26px; }
  .lista-hero h1 { font-size: 1.8rem; }
  .lista-codigo { font-size: .78rem; padding: 5px 12px; }
  .deseos-grid { grid-template-columns: 1fr; gap: 16px; }
  .progress-total { padding: 16px 18px; }
  .progress-total .recaudado { font-size: 1rem; }
  .modal-box { padding: 24px 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .modal-actions { flex-direction: column; }
  .modal { overflow-y: auto; align-items: flex-start; }
}
