/* ============================================================
   Minisitio público — codigonovios.cl/minisitio/{slug}
   Reusa tokens v2.0 de style.css (--color-*, --font-*, --radius)
   F1 · 27-Ago-2026
   ============================================================ */

/* P1.4: footer siempre abajo + body flex column (aplica en ambos shells) */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- Header del minisitio ---------- */
.ms-header {
  background: #fff;
  border-bottom: 2px solid var(--color-secondary);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 50;
}
.ms-header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ms-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; color: var(--color-primary);
  text-decoration: none; white-space: nowrap;
}
.ms-nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.ms-nav a {
  color: var(--color-text); text-decoration: none; font-weight: 700;
  font-size: .9rem; opacity: .8; transition: opacity .2s; padding: 4px 2px;
}
.ms-nav a:hover { opacity: 1; color: var(--color-primary); }
.ms-nav a.active { opacity: 1; color: var(--color-primary); }
/* P1.5: botón hamburguesa (oculto en desktop, visible en mobile) */
.ms-nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-primary); line-height: 1; min-width: 44px; min-height: 44px; }

/* ---------- Hero ---------- */
.ms-hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end; justify-content: center;
  background-size: cover; background-position: center;
  color: #fff; text-align: center; padding: 70px 0 56px;
}
.ms-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60,36,21,.45) 0%, rgba(60,36,21,.78) 100%);
}
.ms-hero .container { position: relative; z-index: 1; }
/* P2.7: eyebrow en blanco + sombra para contraste AA sobre la foto */
.ms-hero .hero-eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ms-hero h1 {
  font-family: var(--font-heading); font-size: 3rem; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.4); margin-bottom: 10px;
}
.ms-hero .fecha { font-size: 1.15rem; opacity: .95; margin-bottom: 6px; }
.ms-hero .countdown {
  font-size: .95rem; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px; padding: 8px 20px; display: inline-block; margin: 10px 0 16px;
  backdrop-filter: blur(4px);
}
.ms-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.ms-chip {
  background: rgba(255,255,255,.92); color: var(--color-text);
  font-weight: 700; font-size: .88rem; border-radius: 30px; padding: 7px 16px;
}
.ms-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Secciones ---------- */
.ms-section { padding: 44px 0 20px; }
.ms-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
  margin-bottom: 20px;
}
.ms-card h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.2rem; margin-bottom: 12px; }
.ms-card p, .ms-card li { font-size: .95rem; }
.ms-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--color-secondary-strong); font-weight: 700; margin-bottom: 4px; }

/* Cronograma */
.ms-crono { list-style: none; }
.ms-crono li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(60,36,21,.12); }
.ms-crono li:last-child { border-bottom: none; }
.ms-crono .hora { font-weight: 700; color: var(--color-primary); min-width: 58px; }
.ms-crono .actividad { opacity: .9; }

/* Timeline */
.ms-timeline { list-style: none; position: relative; padding-left: 22px; }
.ms-timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--color-secondary);
}
.ms-timeline li { position: relative; padding: 0 0 20px 10px; }
.ms-timeline li::before {
  content: ''; position: absolute; left: -19px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid var(--color-secondary);
}
.ms-timeline .t-fecha { font-size: .8rem; font-weight: 700; color: var(--color-secondary-strong); text-transform: uppercase; letter-spacing: 1px; }
.ms-timeline .t-texto { font-size: .95rem; }
.ms-timeline .t-imagen { display: block; width: 100%; height: auto; border-radius: 10px; margin-top: 8px; box-shadow: var(--shadow-card); }

/* Galería — masonry con columns (respeta proporción; fotos verticales enteras) */
.ms-galeria { columns: 2 240px; column-gap: 14px; }
.ms-galeria img {
  width: 100%; height: auto; display: block; margin-bottom: 14px;
  border-radius: 10px; box-shadow: var(--shadow-card); transition: transform .2s;
  break-inside: avoid;
}
.ms-galeria img:hover { transform: scale(1.02); }

/* Video */
.ms-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.ms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-video-native { width: 100%; height: auto; max-height: 70vh; display: block; border-radius: 12px; background: #000; }

/* FAQ */
.ms-faq details {
  border: 1.5px solid #e6ddcc; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
  background: #fff;
}
.ms-faq summary { font-weight: 700; cursor: pointer; color: var(--color-primary); font-size: .95rem; }
.ms-faq details p { margin-top: 8px; font-size: .92rem; opacity: .9; }

/* Regalos */
.ms-regalo-card {
  background: #fff; border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary);
  margin-bottom: 16px;
}
.ms-regalo-card h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.1rem; margin-bottom: 8px; }
.ms-codigo {
  display: inline-block; border: 1.5px dashed var(--color-secondary); border-radius: 30px;
  padding: 6px 18px; font-weight: 700; letter-spacing: 2px; color: var(--color-primary);
  margin: 8px 0;
}
.ms-lista-tiendas { list-style: none; margin-top: 8px; }
.ms-lista-tiendas li { padding: 6px 0; border-bottom: 1px dashed rgba(60,36,21,.12); font-size: .93rem; }

/* Footer */
.ms-footer {
  background: var(--color-text); color: rgba(255,255,255,.8);
  padding: 26px 0; margin-top: 40px; text-align: center; font-size: .85rem;
}
.ms-footer a { color: var(--color-secondary); text-decoration: none; margin-left: 14px; }
.ms-footer span a { margin-left: 0; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .ms-hero { min-height: 54vh; padding: 56px 0 44px; background-position: 50% 30%; }
  .ms-hero h1 { font-size: 2.1rem; }
  .ms-nav-toggle { display: block; margin-left: auto; }
  .ms-nav { display: none; flex: 0 0 100%; flex-direction: column; gap: 0; }
  .ms-nav.open { display: flex; }
  .ms-nav a { padding: 10px 2px; font-size: 1rem; }
  .ms-galeria { columns: 2 150px; column-gap: 10px; }
  .ms-galeria img { margin-bottom: 10px; }
}

/* ---------- Homepage: Lo esencial + aviso + teaser (13-sep-2026) ---------- */
.ms-aviso {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff7e6; border: 1.5px solid var(--color-secondary);
  border-left: 5px solid var(--color-secondary-strong);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
}
.ms-aviso-ico { font-size: 1.2rem; line-height: 1.35; }
.ms-aviso p { margin: 0; font-size: .95rem; color: var(--color-text); }
.ms-esencial { list-style: none; margin: 6px 0 0; }
.ms-esencial li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed rgba(60,36,21,.12);
}
.ms-esencial li:last-child { border-bottom: none; }
.ms-esencial .ms-ico { width: 1.3em; flex: none; }
.ms-esencial .ms-es-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--color-secondary-strong); font-weight: 700; min-width: 74px; flex: none;
}
.ms-esencial .ms-es-val { font-size: .95rem; }
.ms-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ms-rsvp-plazo {
  margin-top: 14px; font-size: .95rem; font-weight: 400;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px; padding: 7px 18px; display: inline-block;
}
.ms-teaser-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ms-teaser-head .ms-label { margin-bottom: 0; }
.ms-teaser-link { font-size: .85rem; font-weight: 700; color: var(--color-primary); text-decoration: none; white-space: nowrap; }
.ms-teaser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ms-teaser-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow-card); }
.ms-teaser-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ms-teaser-item:hover img { transform: scale(1.04); }
@media (min-width: 560px) { .ms-teaser { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) {
  .ms-esencial .ms-es-label { min-width: 64px; font-size: .68rem; }
  .ms-acciones .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Bloque Código Novios (producto; tono práctico) ---------- */
.ms-cn {
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-card); border-top: 3px solid var(--color-primary);
  margin-bottom: 20px;
}
.ms-cn-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ms-cn-word { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-primary); }
.ms-cn-dot { color: var(--color-secondary); }
.ms-cn-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--color-secondary-strong); font-weight: 700; }
.ms-cn-bajada { font-size: .95rem; margin: 0 0 12px; }
.ms-cn-code {
  display: inline-block; border: 1.5px dashed var(--color-secondary); border-radius: 30px;
  padding: 5px 16px; font-weight: 700; letter-spacing: 2px; color: var(--color-primary);
  margin: 0 0 12px;
}
.ms-cn-cta { margin: 0 0 10px; }
.ms-cn-cta .btn { width: 100%; }
.ms-cn-trust { font-size: .82rem; opacity: .8; margin: 0; }
.ms-regalo-card .ms-cn-brand { margin-bottom: 10px; }
.ms-regalo-card .ms-cn-trust { margin-top: 10px; }
@media (min-width: 560px) { .ms-cn-cta .btn { width: auto; } }


/* Logo de marca en el header (consistencia con noscasamos.vip) */
.ms-brand { display: inline-flex; align-items: center; }
.ms-brand-logo { height: 38px; width: auto; display: block; }
@media (max-width: 560px) {
  .ms-brand-logo { height: 30px; }
}
