/* LUPATT — Manual de marca (brand guidelines page).
   Production implementation of `LUPATT Brand Guidelines.dc.html`.
   Depends only on the design-system tokens in ../styles.css. */

/* ---------- Page ---------- */
.bg-page {
  font-family: var(--font-secondary);
  color: var(--text-ink);
  background: var(--surface-page);
  line-height: normal;
  width: 100%;
  overflow-x: hidden;
}
.bg-page img { display: block; }
.bg-page p { margin: 0; }

.bg-container {
  max-width: var(--container-xl);
  margin-inline: auto;
}
.bg-section {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: var(--space-12) 48px 0;
}
.bg-band { margin-top: var(--space-12); padding: var(--space-12) 48px; }
.bg-band--sunken { background: var(--surface-sunken); }
.bg-band--azul { background: var(--lupatt-azul); color: var(--text-on-dark); }

/* ---------- Type helpers ---------- */
.bg-eyebrow {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.bg-band--azul .bg-eyebrow { color: rgba(255,255,255,.8); }

.bg-h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  color: inherit;
  margin: 0 0 var(--space-8);
}
.bg-h2--sm { font-size: clamp(26px, 3.4vw, 38px); line-height: var(--leading-tight); margin-bottom: var(--space-6); }
.bg-h2--flush { margin-bottom: 44px; }

.bg-label {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.bg-label--azul { color: var(--color-primary); }
.bg-label--caps { font-size: var(--text-xs); letter-spacing: var(--tracking-caps); color: var(--color-primary); margin-bottom: 18px; }

.bg-mono { font-family: var(--font-secondary), monospace; }

/* ---------- Surfaces ---------- */
.bg-card {
  border-radius: var(--radius-4xl);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-card);
  padding: 36px;
}
.bg-card--pad-32 { padding: var(--space-7); }
.bg-card--ink { background: var(--surface-ink); color: var(--text-on-dark); border-color: transparent; }

.bg-grid { display: grid; gap: var(--space-4); }
.bg-grid--2 { grid-template-columns: 1fr 1fr; }
.bg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bg-mb { margin-bottom: var(--space-4); }

/* ---------- Top bar ---------- */
.bg-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 48px;
  border-bottom: var(--border-width) solid var(--border-default);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.bg-lockup { display: flex; align-items: center; gap: 10px; }
.bg-topbar__meta {
  display: flex;
  gap: 26px;
  font-family: var(--font-primary);
  font-weight: var(--weight-medium);
  font-size: 14px;
  color: var(--text-muted);
}
.bg-topbar__meta span + span { color: var(--text-subtle); }

/* ---------- Hero ---------- */
.bg-hero { position: relative; background: var(--surface-page); padding: var(--space-12) 48px 104px; overflow: hidden; }
.bg-hero__shape { position: absolute; }
.bg-hero__shape--1 { top: -60px; right: -40px; width: 260px; height: 260px; border-radius: 0 0 0 260px; background: var(--lupatt-amarillo); }
.bg-hero__shape--2 { top: 240px; right: 60px; width: 120px; height: 120px; border-radius: var(--radius-pill); background: var(--lupatt-rosado); }
.bg-hero__shape--3 { bottom: -50px; left: -50px; width: 160px; height: 160px; border-radius: var(--radius-pill); background: var(--lupatt-verde); }
.bg-hero__shape--4 { bottom: 70px; left: 300px; width: 54px; height: 54px; border-radius: var(--radius-pill); background: var(--lupatt-azul); }
.bg-hero__dots {
  position: absolute;
  top: 40px;
  left: 48px;
  width: 136px; /* 7 × 10px + 6 × 11px */
  height: 52px; /* 3 × 10px + 2 × 11px */
  opacity: .5;
  background-image: radial-gradient(circle at 3px 3px, var(--slate-300) 3px, transparent 3.5px);
  background-size: 21px 21px;
}
.bg-hero__inner { position: relative; max-width: var(--container-xl); margin: 0 auto; padding-top: var(--space-8); }
.bg-hero__wordmark { width: min(640px, 82%); height: auto; margin: 0 0 var(--space-6); }
.bg-hero__title {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--text-ink);
  max-width: 18ch;
  margin: 0 0 22px;
}
.bg-hero__title em { font-style: normal; color: var(--color-primary); }
.bg-hero__lead {
  font-family: var(--font-secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ---------- 01 Esencia ---------- */
.bg-essence { margin-bottom: var(--space-9); gap: 18px; }
.bg-essence .bg-card { border-radius: var(--radius-3xl); padding: 30px; box-shadow: var(--shadow-sm); }
.bg-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.bg-essence .bg-label { margin-bottom: var(--space-2); }
.bg-body { font-size: var(--text-base); line-height: 1.6; color: var(--text-body); }
.bg-body--sm { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.bg-values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: var(--space-9); }
.bg-value { text-align: center; font-family: var(--font-primary); font-weight: var(--weight-semibold); font-size: 14px; }
.bg-value .bg-icon-tile { width: 56px; height: 56px; border-radius: var(--radius-xl); margin: 0 auto var(--space-3); }

.bg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bg-chips--12 { gap: var(--space-3); }
.bg-chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}
.bg-chips--12 .bg-chip { padding-inline: 20px; }

/* Tint + ink pairs (chips, icon tiles) */
.t-amarillo { background: var(--tint-amarillo); color: #8a6d00; }
.t-naranja  { background: var(--tint-naranja);  color: var(--lupatt-naranja-800); }
.t-azul     { background: var(--tint-azul);     color: var(--lupatt-azul-700); }
.t-morado   { background: var(--tint-morado);   color: var(--lupatt-morado-700); }
.t-rosado   { background: rgba(255,93,175,.16); color: var(--lupatt-rosado-700); }
.t-rosado-lt{ background: rgba(255,93,175,.12); color: var(--lupatt-rosado-700); }
.t-verde    { background: var(--tint-verde);    color: var(--lupatt-verde-800); }
.t-celeste  { background: var(--tint-celeste);  color: var(--lupatt-celeste-700); }
.bg-chips--12 .t-rosado   { background: var(--tint-rosado); }
.bg-chips--12 .t-amarillo { background: rgba(255,217,61,.24); }
.bg-icon-tile.t-rosado  { background: var(--tint-rosado); }
.bg-icon-tile.t-verde   { background: rgba(93,211,158,.18); }
.bg-value .t-rosado     { background: rgba(255,93,175,.16); }
.bg-value .t-verde      { background: rgba(93,211,158,.18); }

/* ---------- 02 Colores ---------- */
.bg-swatch {
  border-radius: var(--radius-3xl);
  padding: 26px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}
.bg-swatch__name { font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-md); }
.bg-swatch__hex { font-family: var(--font-secondary), monospace; font-size: 14px; opacity: .7; }
.bg-swatch--azul     { background: var(--lupatt-azul);     color: #fff; }
.bg-swatch--amarillo { background: var(--lupatt-amarillo); color: var(--lupatt-navy); }
.bg-swatch--rosado   { background: var(--lupatt-rosado);   color: #fff; }
.bg-swatch--verde    { background: var(--lupatt-verde);    color: #073b28; }
.bg-swatch--celeste  { background: var(--lupatt-celeste);  color: #0a4a63; }
.bg-swatch--naranja  { background: var(--lupatt-naranja);  color: #fff; }
.bg-swatch--morado   { background: var(--lupatt-morado);   color: #fff; }
.bg-swatch--navy     { background: var(--lupatt-navy);     color: #fff; }
.bg-swatch--azul .bg-swatch__hex,
.bg-swatch--morado .bg-swatch__hex { opacity: .85; }
.bg-swatch--rosado .bg-swatch__hex,
.bg-swatch--naranja .bg-swatch__hex { opacity: .9; }

.bg-neutral {
  border-radius: var(--radius-2xl);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bg-neutral__chip { width: 100%; height: 48px; border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.bg-neutral__name { font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-base); }
.bg-neutral__hex { font-family: var(--font-secondary), monospace; font-size: var(--text-sm); color: var(--text-subtle); }

.bg-rule-card {
  border-radius: var(--radius-2xl);
  background: var(--surface-ink);
  color: var(--text-on-dark);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bg-rule-card .bg-label { color: var(--lupatt-amarillo); margin-bottom: var(--space-3); }
.bg-rule-card p { font-size: var(--text-base); line-height: 1.6; color: rgba(255,255,255,.82); }

.bg-spectrum { height: 10px; margin-top: var(--space-4); }

/* ---------- 03 Logotipo ---------- */
.bg-logo-grid { grid-template-columns: 1.6fr 1fr; }
.bg-panel { background: var(--surface-card); border-radius: var(--radius-4xl); }
.bg-panel--wordmark { padding: 56px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.bg-panel--wordmark img { width: min(420px, 82%); height: auto; }
.bg-panel--symbol { padding: var(--space-8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); min-height: 240px; }
.bg-panel--symbol .bg-panel__title { font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-subtle); align-self: flex-start; }
.bg-panel--symbol img { height: 120px; width: auto; }
.bg-panel--pad { padding: 36px; }
.bg-panel--pad > .bg-label { margin-bottom: var(--space-6); }

.bg-clearspace {
  display: inline-block;
  position: relative;
  padding: 34px;
  border: var(--border-width-strong) dashed var(--slate-300);
  border-radius: var(--radius-sm);
}
.bg-clearspace::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(#EEF1F5 1px, transparent 1px), linear-gradient(90deg, #EEF1F5 1px, transparent 1px);
  background-size: 17px 17px;
}
.bg-clearspace img { position: relative; height: 58px; width: auto; }
.bg-clearspace + p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 22px; }

.bg-usage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bg-usage > div { border-radius: var(--radius-lg); height: 78px; display: flex; align-items: center; justify-content: center; }
.bg-usage img { height: 32px; width: auto; }
.bg-usage__light { border: var(--border-width) solid var(--border-default); background: #fff; }

/* ---------- 04 Tipografía ---------- */
.bg-type__name { font-size: 64px; line-height: 1; margin-bottom: 18px; }
.bg-type__glyphs { font-size: 18px; color: var(--text-body); margin-bottom: 6px; }
.bg-type__glyphs:last-of-type { margin-bottom: 18px; }
.bg-type__weights { display: flex; flex-direction: column; gap: 3px; font-size: var(--text-base); }
.bg-type__weights .is-light { color: var(--slate-500); }
.f-satoshi { font-family: var(--font-primary); }
.f-inter   { font-family: var(--font-secondary); }
.f-clash   { font-family: var(--font-display); }
.bg-type--display .bg-type__name { font-weight: 600; font-size: clamp(48px, 8vw, 80px); letter-spacing: -0.02em; margin-bottom: 14px; }
.bg-type--display .bg-type__glyphs { font-weight: 500; font-size: 20px; margin: 0; }

/* ---------- 05 Sistema gráfico ---------- */
.bg-shapes { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.bg-dotgrid { display: grid; grid-template-columns: repeat(3, 7px); gap: 6px; }
.bg-dotgrid span { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--lupatt-navy); }
.bg-construction { position: relative; overflow: hidden; }
.bg-construction .bg-label { color: rgba(255,255,255,.55); margin-bottom: 20px; }

/* ---------- 06 Ilustración / 07 Fotografía ---------- */
.bg-illustration {
  border-radius: var(--radius-4xl);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-sunken);
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
}
.bg-illustration svg { display: block; width: 100%; height: 100%; }
.bg-note-title { font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-sm); margin-bottom: var(--space-2); }

.bg-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: 20px; }
.bg-photo {
  position: relative;
  margin: 0;
  height: 160px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface-sunken);
  border: var(--border-width-strong) dashed var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
}
.bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.bg-photo:has(img) { padding: 0; border: 0; }
.bg-photo figcaption { font-family: var(--font-primary); font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--text-subtle); }
.bg-photo:has(img) figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bg-sample { display: flex; gap: var(--space-2); }
.bg-sample span { width: 30px; height: 30px; border-radius: var(--radius-pill); }

/* ---------- 08 Botones / 09 Iconografía ---------- */
.bg-split-buttons { grid-template-columns: 1fr 1.4fr; }
.bg-buttons { display: flex; flex-direction: column; gap: var(--space-6); }
.bg-buttons .bg-label { font-weight: var(--weight-semibold); font-size: var(--text-xs); margin-bottom: var(--space-3); }

.bg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  line-height: normal;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  transition: all .16s var(--ease-standard);
}
.bg-btn:focus-visible { outline: 3px solid var(--color-primary-ring); outline-offset: 2px; }
.bg-btn--primary { border: none; background: var(--color-primary); color: #fff; }
.bg-btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.bg-btn--primary:active { transform: translateY(0); }
.bg-btn--secondary { background: #fff; color: var(--color-primary); border: var(--border-width-strong) solid var(--color-primary); }
.bg-btn--secondary:hover { background: var(--color-primary-subtle); }
.bg-btn--secondary:active { transform: translateY(1px); }
.bg-btn--hover-demo { border: none; background: var(--color-primary-hover); color: #fff; cursor: default; }

.bg-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; justify-items: center; }

/* ---------- 10 Aplicaciones ---------- */
.bg-apps { grid-template-columns: 1.4fr 1fr; }
.bg-billboard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-4xl);
  background: var(--surface-ink);
  padding: 44px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}
.bg-billboard__shape { position: absolute; }
.bg-billboard__shape--1 { top: -30px; right: -30px; width: 160px; height: 160px; border-radius: var(--radius-pill); background: rgba(255,217,61,.9); }
.bg-billboard__shape--2 { bottom: 30px; right: 50px; width: 80px; height: 80px; border-radius: var(--radius-pill); background: var(--lupatt-rosado); }
.bg-billboard__shape--3 { bottom: -20px; right: -10px; width: 90px; height: 90px; border-radius: 0 90px 0 0; background: var(--lupatt-verde); }
.bg-billboard__line {
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(28px, 4vw, 46px);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.bg-billboard img { position: relative; height: 28px; width: auto; }
.bg-social {
  border-radius: var(--radius-4xl);
  background: #fff;
  padding: var(--space-8);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.bg-sticker { padding: 11px 26px; border-radius: var(--radius-pill); font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-lg); }
.bg-sticker--1 { background: var(--lupatt-amarillo); color: var(--lupatt-navy); transform: rotate(-4deg); }
.bg-sticker--2 { background: var(--lupatt-azul); color: #fff; transform: rotate(3deg); }
.bg-sticker--3 { background: var(--lupatt-rosado); color: #fff; transform: rotate(-2deg); }

/* ---------- 11 Voz de marca ---------- */
.bg-voice__title { font-family: var(--font-primary); font-weight: var(--weight-bold); font-size: var(--text-base); margin-bottom: 18px; }
.bg-voice__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bg-voice__list li { display: flex; align-items: center; gap: 11px; font-size: var(--text-base); color: var(--text-body); }
.bg-voice__list--no li { color: var(--slate-500); }
.bg-voice__list--examples { gap: var(--space-4); }
.bg-voice__list--examples li { align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); }
.bg-voice__list--examples li.is-no { color: rgba(255,255,255,.55); }
.bg-voice__list--examples .bg-mark { margin-top: 1px; }
.bg-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-mark--yes { background: var(--tint-verde); }
.bg-mark--no  { background: var(--tint-rosado); }
.bg-card--ink .bg-mark--yes { background: rgba(93,211,158,.25); }
.bg-card--ink .bg-mark--no  { background: rgba(255,93,175,.22); }

/* ---------- Footer ---------- */
.bg-footer { margin-top: var(--space-12); background: var(--surface-ink); color: var(--text-on-dark); padding: var(--space-10) 48px 56px; }
.bg-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-7); align-items: flex-end; }
.bg-footer .bg-lockup { gap: var(--space-3); }
.bg-footer__meta { font-size: var(--text-sm); color: rgba(255,255,255,.5); text-align: right; line-height: 1.7; }
.bg-footer .lupatt-rule { margin-top: var(--space-8); }

/* ---------- Responsive (not in prototype: desktop-only grids collapse) ---------- */
@media (max-width: 1024px) {
  .bg-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bg-values { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-6); }
  .bg-split-buttons, .bg-apps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bg-topbar, .bg-hero, .bg-band, .bg-footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .bg-section { padding-left: var(--space-4); padding-right: var(--space-4); padding-top: var(--space-10); }
  .bg-band, .bg-footer { margin-top: var(--space-10); }
  .bg-band { padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .bg-hero { padding-top: var(--space-10); padding-bottom: var(--space-11); }
  .bg-hero__dots { left: var(--space-4); }
  .bg-hero__shape--1 { width: 160px; height: 160px; border-radius: 0 0 0 160px; }
  .bg-hero__shape--2 { top: auto; bottom: -24px; right: 32px; width: 64px; height: 64px; }
  .bg-hero__shape--4 { display: none; }
  .bg-topbar__meta span:first-child { display: none; }
  .bg-grid--2, .bg-grid--3, .bg-logo-grid { grid-template-columns: 1fr; }
  .bg-values { grid-template-columns: repeat(2, 1fr); }
  .bg-card, .bg-panel--pad { padding: var(--space-6); }
  .bg-panel--wordmark { padding: var(--space-8) var(--space-6); min-height: 180px; }
  .bg-type__name { font-size: 48px; }
  .bg-icons { grid-template-columns: repeat(4, 1fr); }
  .bg-billboard { padding: var(--space-7); }
  .bg-footer__meta { text-align: left; }
}
@media (max-width: 420px) {
  .bg-grid--4 { grid-template-columns: 1fr; }
  .bg-photos { grid-template-columns: 1fr; }
  .bg-usage { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-btn { transition: none; }
  .bg-btn:hover, .bg-btn:active { transform: none; }
}
