/* =========================================================
   ALFA · Manual de Marca y Sistema de Producto
   100 % autocontenido dentro de /marca. Consume tokens.css.
   Soporta modo claro y modo oscuro [data-theme="dark"] en vivo.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/manrope-latin.woff2") format("woff2-variations");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--alfa-paper);
  color: var(--alfa-ink);
  font-family: var(--alfa-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 360ms var(--alfa-ease), color 360ms var(--alfa-ease);
}

img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }

::selection {
  background: var(--alfa-copper);
  color: #fff;
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Tipografía editorial ---------- */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--alfa-copper);
}

h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.02;
  margin-top: 14px;
  max-width: 18ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 10px;
  max-width: 24ch;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--alfa-ink-2);
  text-wrap: pretty;
}

.small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alfa-muted);
}

section {
  padding: 96px 0;
  border-top: 1px solid var(--alfa-line-soft);
  scroll-margin-top: 68px;
}

.sec__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.sec__head .lead { margin-top: 0; }

/* ---------- Barra superior fija ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--alfa-paper) 84%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--alfa-line);
}

.top__in {
  width: min(1220px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 60px;
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--alfa-ink);
  text-decoration: none;
}
.top__brand svg { width: 40px; height: auto; color: var(--alfa-copper); }
.top__brand b { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; }
.top__tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--alfa-line);
  color: var(--alfa-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top__links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.top__links::-webkit-scrollbar { display: none; }
.top__links a {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--alfa-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 240ms var(--alfa-ease), background-color 240ms var(--alfa-ease);
}
.top__links a:hover,
.top__links a.is-active {
  color: var(--alfa-ink);
  background: var(--alfa-surface-2);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--alfa-line);
  background: var(--alfa-surface);
  color: var(--alfa-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 240ms var(--alfa-ease), transform 240ms var(--alfa-ease);
}
.theme-btn:hover { border-color: var(--alfa-violet); }
.theme-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--alfa-violet);
}

.top__dl {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--alfa-violet);
  color: var(--alfa-violet-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 240ms var(--alfa-ease), transform 240ms var(--alfa-ease);
}
.top__dl:hover { background: var(--alfa-violet-hover); transform: translateY(-1px); }

/* ---------- Portada editorial ---------- */
.cover {
  padding: 72px 0 80px;
}

.cover__top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.cover__stage {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.cover__hero-card {
  position: relative;
  border-radius: var(--alfa-radius-lg);
  background: #14110E;
  color: #F7F5F0;
  padding: clamp(36px, 6vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #2A231E;
}
.cover__hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(76, 87, 240, 0.22), transparent 48%),
    radial-gradient(circle at 22% 84%, rgba(200, 122, 78, 0.2), transparent 52%);
  pointer-events: none;
}

.cover__coords {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.52);
  font-variant-numeric: tabular-nums;
}

.cover__mark {
  position: relative;
  z-index: 1;
  width: min(460px, 90%);
  margin: 28px auto;
  color: #F7F5F0;
}
.cover__mark svg { width: 100%; height: auto; }

.cover__lockup-line {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  padding-top: 18px;
}
.cover__lockup-line b {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #F7F5F0;
}
.cover__lockup-line span {
  font-size: 12px;
  color: #C87A4E;
}

.cover__photo-card {
  position: relative;
  border-radius: var(--alfa-radius-lg);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--alfa-line);
}
.cover__photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover__photo-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(20, 17, 14, 0.76);
  backdrop-filter: blur(12px);
  color: #F7F5F0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover__index {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--alfa-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cover__index a {
  font-size: 12px;
  color: var(--alfa-muted);
  text-decoration: none;
  display: flex;
  gap: 8px;
  transition: color 200ms var(--alfa-ease);
}
.cover__index a b {
  color: var(--alfa-copper);
  font-variant-numeric: tabular-nums;
}
.cover__index a:hover { color: var(--alfa-ink); }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  border-radius: var(--alfa-radius-lg);
  min-height: 210px;
  border: 1px solid var(--alfa-line);
  overflow: hidden;
}
.tile svg { width: 100%; max-width: 240px; height: auto; position: relative; z-index: 1; }
.tile--paper { background: var(--alfa-surface); }
.tile--ink { background: #14110E; color: #F7F5F0; border-color: #2A231E; }
.tile--soft { background: var(--alfa-surface-2); }
.tile--photo {
  background: #14110E;
  color: #F7F5F0;
}
.tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: contrast(1.05);
}

.cap {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alfa-muted);
}

/* ---------- 01 · Plano geométrico CAD del símbolo ---------- */
.blueprint {
  margin-top: 24px;
  border-radius: var(--alfa-radius-lg);
  background: #11131A;
  border: 1px solid #262B38;
  padding: clamp(24px, 4vw, 44px);
  color: #F3F1EC;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
}

.blueprint__svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background:
    linear-gradient(rgba(122, 131, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 131, 255, 0.06) 1px, transparent 1px),
    #0C0E14;
  background-size: 20px 20px;
  border: 1px solid rgba(122, 131, 255, 0.16);
  padding: 20px;
}

.blueprint__specs {
  display: grid;
  gap: 14px;
}
.bp-row {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.1);
}
.bp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-row span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #929AFF;
}
.bp-row b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: #F3F1EC;
  font-variant-numeric: tabular-nums;
}

/* ---------- 02 · Color + proporción + click-to-copy ---------- */
.ratio-bar {
  margin-bottom: 28px;
  border-radius: var(--alfa-radius);
  overflow: hidden;
  display: flex;
  height: 52px;
  border: 1px solid var(--alfa-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ratio-bar > div {
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
}

.sw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sw__i {
  border-radius: var(--alfa-radius);
  overflow: hidden;
  border: 1px solid var(--alfa-line);
  background: var(--alfa-surface);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
  transition: transform 260ms var(--alfa-ease), box-shadow 260ms var(--alfa-ease), border-color 260ms var(--alfa-ease);
}
.sw__i:hover {
  transform: translateY(-3px);
  box-shadow: var(--alfa-shadow-2);
  border-color: var(--alfa-violet);
}
.sw__c {
  height: 112px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
}
.sw__badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(20, 17, 14, 0.72);
  color: #fff;
}
.sw__t {
  padding: 14px 16px;
  font-size: 11px;
  color: var(--alfa-muted);
  line-height: 1.5;
}
.sw__t b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--alfa-ink);
  margin-bottom: 2px;
}
.sw__t b i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--alfa-violet);
  opacity: 0;
  transition: opacity 200ms;
}
.sw__i:hover .sw__t b i,
.sw__i.is-copied .sw__t b i { opacity: 1; }
.sw__t code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--alfa-ink-2);
}

/* ---------- 03 · Tipografía ---------- */
.type-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-bottom: 32px;
}
.type-glyph {
  padding: 36px;
  border-radius: var(--alfa-radius-lg);
  background: var(--alfa-surface);
  border: 1px solid var(--alfa-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.type-glyph__aa {
  font-size: clamp(72px, 9vw, 118px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--alfa-ink);
}
.type-glyph__set {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--alfa-muted);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.type {
  padding: 8px 28px;
  border-radius: var(--alfa-radius-lg);
  background: var(--alfa-surface);
  border: 1px solid var(--alfa-line);
}
.type__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--alfa-line-soft);
}
.type__row:last-child { border-bottom: 0; }
.type__row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alfa-muted);
  min-width: 140px;
}
.t1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.t2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.025em; }
.t3 { font-size: 19px; font-weight: 500; }
.t4 { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--alfa-copper); }

/* ---------- 04 · Papelería e imprenta de estudio ---------- */
.stationery-stage {
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--alfa-radius-lg);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 50%),
    #E5DECFE8;
  border: 1px solid var(--alfa-line);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
[data-theme="dark"] .stationery-stage {
  background: #171B24;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.bcard {
  width: min(340px, 100%);
  aspect-ratio: 1.75 / 1;
  border-radius: 8px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 42px rgba(20, 17, 14, 0.16), 0 2px 6px rgba(20, 17, 14, 0.08);
  position: relative;
  overflow: hidden;
}
.bcard--front {
  background: #FAF7F0;
  color: #14110E;
  border: 1px solid rgba(20, 17, 14, 0.08);
}
.bcard--back {
  background: #14110E;
  color: #F7F5F0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(18px);
}
.bcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bcard__head svg { width: 64px; color: #A9502A; }
.bcard__head span {
  font-size: 9px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: #14110E;
}
.bcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.bcard__person b { display: block; font-size: 12px; font-weight: 700; }
.bcard__person span { display: block; font-size: 10px; color: #6E6559; }
.bcard__contact {
  text-align: right;
  font-size: 9.5px;
  line-height: 1.5;
  color: #4A423A;
  font-variant-numeric: tabular-nums;
}
.bcard--back svg { width: 118px; color: #C87A4E; }
.bcard--back span {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: rgba(247, 245, 240, 0.65);
}

/* Hoja clínica / fórmula impresa real */
.rx-sheet {
  background: #FFFFFF;
  color: #14110E;
  border-radius: 6px;
  padding: 32px 30px;
  box-shadow: 0 24px 54px rgba(20, 17, 14, 0.18);
  border: 1px solid rgba(20, 17, 14, 0.08);
}
.rx-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #14110E;
}
.rx-sheet__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rx-sheet__brand svg { width: 52px; color: #A9502A; }
.rx-sheet__brand b { font-size: 12px; letter-spacing: 0.28em; }
.rx-sheet__doc {
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7C7367;
}

.rx-sheet__patient {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4A423A;
}
.rx-sheet__patient b { color: #14110E; }

.rx-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.rx-grid th,
.rx-grid td {
  padding: 8px 8px;
  border: 1px solid #E3DDD1;
  text-align: center;
}
.rx-grid th {
  background: #F7F5F0;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #7C7367;
}
.rx-grid td:first-child {
  font-weight: 700;
  color: #A9502A;
  background: #FAF8F4;
}

.rx-sheet__summary {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #F7F5F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.rx-sheet__summary b { font-size: 13px; font-variant-numeric: tabular-nums; }

.rx-sheet__foot {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #EBE5DA;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #7C7367;
}

/* ---------- 05 · Uniformes y bordado real ---------- */
.uniform-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.photo-mockup {
  position: relative;
  border-radius: var(--alfa-radius-lg);
  overflow: hidden;
  border: 1px solid var(--alfa-line);
  background: #14110E;
}
.photo-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bordado cobre superpuesto sobre el bolsillo de la sobrecamisa cruda */
.embroidery-mark {
  position: absolute;
  left: 25.4%;
  top: 42.2%;
  width: 8.8%;
  transform: translate(-50%, -50%) rotate(-3deg);
  color: #9A4622;
  filter: drop-shadow(0 1px 0.5px rgba(255, 255, 255, 0.45)) drop-shadow(0 1px 1px rgba(20, 17, 14, 0.32));
  opacity: 0.92;
  pointer-events: none;
}

/* Lupa de detalle del bordado */
.embroidery-loupe {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 17, 14, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(247, 245, 240, 0.16);
  color: #F7F5F0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.embroidery-loupe__swatch {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg, #EAE3D5 0 2px, #E1D9C8 2px 4px);
  border: 2px solid #C87A4E;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #A9502A;
}
.embroidery-loupe b { display: block; font-size: 12px; }
.embroidery-loupe span { display: block; font-size: 11px; color: rgba(247, 245, 240, 0.7); }

.garment-cards {
  display: grid;
  gap: 14px;
}
.garment-card {
  padding: 22px;
  border-radius: var(--alfa-radius);
  background: var(--alfa-surface);
  border: 1px solid var(--alfa-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.garment-swatch {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(20, 17, 14, 0.12);
}

/* ---------- 06 · Señalética y fachada real ---------- */
.facade-stage {
  position: relative;
  border-radius: var(--alfa-radius-lg);
  overflow: hidden;
  border: 1px solid var(--alfa-line);
  box-shadow: var(--alfa-shadow-2);
}
.facade-stage img {
  width: 100%;
  height: auto;
}

/* Rótulo arquitectónico montado exactamente sobre el dintel negro mate de la foto */
.facade-sign-overlay {
  position: absolute;
  left: 50%;
  top: 26.2%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  pointer-events: none;
}
.facade-sign-overlay svg {
  width: clamp(54px, 7.5vw, 102px);
  color: #D28558;
  filter: drop-shadow(0 0 18px rgba(210, 133, 88, 0.35));
}
.facade-sign-overlay__text {
  display: flex;
  flex-direction: column;
}
.facade-sign-overlay__text b {
  font-size: clamp(18px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #F4EFE6;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.facade-sign-overlay__text span {
  margin-top: 5px;
  font-size: clamp(7px, 0.85vw, 11px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #C87A4E;
}

/* Vinilo esmerilado discreto en la puerta de cristal */
.facade-door-vinyl {
  position: absolute;
  left: 65.2%;
  top: 63%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(247, 245, 240, 0.82);
  pointer-events: none;
}
.facade-door-vinyl svg {
  width: clamp(24px, 3.2vw, 44px);
  margin-inline: auto;
}
.facade-door-vinyl span {
  display: block;
  margin-top: 3px;
  font-size: clamp(6px, 0.65vw, 9px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 07 · Empaque sobre travertino real ---------- */
.pack-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

/* Sello cobre termograbado sobre la tapa del estuche rígido */
.case-foil-overlay {
  position: absolute;
  left: 49.5%;
  top: 43.5%;
  width: 11.5%;
  transform: translate(-50%, -50%) rotate(28.5deg);
  color: #C87A4E;
  opacity: 0.84;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

/* ---------- 08 · Sistema de Producto / WebApp (Escala Fase 2) ---------- */
.app-icons-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
  padding: 32px;
  border-radius: var(--alfa-radius-lg);
  background: var(--alfa-surface);
  border: 1px solid var(--alfa-line);
}

.webapp-frame {
  margin-top: 24px;
  border-radius: var(--alfa-radius-lg);
  border: 1px solid var(--alfa-line);
  background: var(--alfa-surface);
  box-shadow: var(--alfa-shadow-2);
  overflow: hidden;
}

.webapp-topbar {
  padding: 12px 20px;
  background: var(--alfa-surface-2);
  border-bottom: 1px solid var(--alfa-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.webapp-dots {
  display: flex;
  gap: 6px;
}
.webapp-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--alfa-line);
}
.webapp-url {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--alfa-paper);
  border: 1px solid var(--alfa-line);
  font-size: 11px;
  color: var(--alfa-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.webapp-shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.webapp-nav {
  padding: 20px 14px;
  border-right: 1px solid var(--alfa-line-soft);
  background: var(--alfa-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.webapp-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 18px;
}
.webapp-nav__brand svg { width: 34px; color: var(--alfa-copper); }
.webapp-nav__brand b { font-size: 11px; letter-spacing: 0.24em; }

.webapp-nav__list { display: grid; gap: 4px; }
.webapp-nav__item {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--alfa-ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.webapp-nav__item.is-on {
  background: var(--alfa-violet-soft);
  color: var(--alfa-violet);
  font-weight: 600;
}
.webapp-nav__badge {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--alfa-surface);
  color: var(--alfa-muted);
}

.webapp-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.webapp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.webapp-header h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.webapp-header p { font-size: 12px; color: var(--alfa-muted); }

.webapp-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--alfa-violet);
  color: var(--alfa-violet-ink);
  font-size: 12px;
  font-weight: 600;
  border: 0;
}

.webapp-cards {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.wa-panel {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--alfa-line);
  background: var(--alfa-paper);
}
.wa-panel__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alfa-copper);
  margin-bottom: 12px;
}

.wa-rx-row {
  display: grid;
  grid-template-columns: 44px repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--alfa-line-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.wa-rx-row:last-child { border-bottom: 0; }
.wa-rx-row b { color: var(--alfa-ink); font-weight: 700; }
.wa-rx-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--alfa-surface);
  border: 1px solid var(--alfa-line);
  text-align: center;
  font-weight: 600;
}

.wa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, var(--alfa-ok) 14%, transparent);
  color: var(--alfa-ok);
}
.wa-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* ---------- Tablas, Notas, Don'ts y Descargas ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13.5px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--alfa-line-soft);
  vertical-align: middle;
}
th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alfa-muted);
  font-weight: 700;
}
td:first-child { font-weight: 600; color: var(--alfa-ink); }
td { color: var(--alfa-ink-2); }

.note {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--alfa-radius);
  border-left: 3px solid var(--alfa-violet);
  background: var(--alfa-violet-soft);
  font-size: 14px;
  color: var(--alfa-ink);
}
.note--copper {
  border-left-color: var(--alfa-copper);
  background: var(--alfa-copper-tint);
}
.note b { font-weight: 700; }

.dont {
  position: relative;
  border: 1px solid var(--alfa-line);
  border-radius: var(--alfa-radius);
  padding: 22px;
  background: var(--alfa-surface);
}
.dont__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--alfa-copper-tint);
  color: var(--alfa-danger);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.dont__x {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 12px;
  color: var(--alfa-muted);
}
.dont__x svg { width: 126px; height: auto; }
.dont p { font-size: 13px; color: var(--alfa-ink-2); line-height: 1.45; }
.dont b { color: var(--alfa-danger); }

.dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dl a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--alfa-radius);
  border: 1px solid var(--alfa-line);
  background: var(--alfa-surface);
  color: var(--alfa-ink);
  text-decoration: none;
  transition: border-color 280ms var(--alfa-ease), transform 280ms var(--alfa-ease), box-shadow 280ms var(--alfa-ease);
}
.dl a:hover {
  border-color: var(--alfa-violet);
  transform: translateY(-2px);
  box-shadow: var(--alfa-shadow-1);
}
.dl b { font-size: 15px; font-weight: 600; display: block; }
.dl span { font-size: 12.5px; color: var(--alfa-muted); }
.dl i {
  font-style: normal;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--alfa-violet-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alfa-violet);
  font-weight: 700;
  white-space: nowrap;
}

footer {
  padding: 44px 0 72px;
  border-top: 1px solid var(--alfa-line);
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .sec__head,
  .cover__top,
  .cover__stage,
  .blueprint,
  .type-hero,
  .stationery-stage,
  .uniform-layout,
  .pack-layout,
  .webapp-shell,
  .webapp-cards {
    grid-template-columns: 1fr;
  }
  .webapp-nav { border-right: 0; border-bottom: 1px solid var(--alfa-line-soft); }
  .cover__index { grid-template-columns: repeat(2, 1fr); }
  .g2, .g3, .g4, .sw, .dl, .app-icons-bar { grid-template-columns: repeat(2, 1fr); }
  .top__links { display: none; }
}

@media (max-width: 580px) {
  .wrap, .top__in { width: calc(100% - 32px); }
  .g2, .g3, .g4, .sw, .dl, .app-icons-bar, .cover__index { grid-template-columns: 1fr; }
  .type__row { flex-direction: column; gap: 6px; }
  .bcard--back { transform: none; }
  .embroidery-loupe { position: static; margin: 12px; }
}

/* Símbolo v3: el destello del antirreflejo es violeta salvo en las piezas a una
   sola tinta (bordado, foil, grabado, señalética en metal), donde va del color
   del trazo. */
.embroidery-mark, .case-foil-overlay, .sign svg, .senal svg, .dont__x svg,
.uniform svg, .stamp svg { --alfa-destello: currentColor; }
