/* ==========================================================================
   Crónicas de Belleza · layout.css
   Cabecera fija, barra de lectura, secciones y pie de página.
   ========================================================================== */

/* ---------- Barra dorada de lectura ---------- */
.progress {
  position: fixed;
  left: 0; top: 0;
  z-index: 45;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Cabecera ---------- */
.nav {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 20;
  transition: background .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav.is-solid {
  background: rgba(246, 239, 229, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.play .nav { animation: rise 1s ease 8.8s both; }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-serif); font-size: 19px; letter-spacing: .16em; }

.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav__links .btn { margin-left: 8px; }

/* ---------- Secciones ---------- */
.section { position: relative; z-index: 2; padding: 130px 24px; }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #F4EADC; }
.section--sage { background: var(--sage); color: var(--paper); }

.section__intro { max-width: 720px; }
.section__intro--center { margin: 0 auto; text-align: center; }

/* ---------- Pie ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 36px 24px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
