/* La etiqueta (600 unidades de ancho). Se usa en pantalla y en impresión. */
@font-face { font-family: 'Noto Sans'; font-weight: 400; src: url(fonts/noto-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 600; src: url(fonts/noto-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 700; src: url(fonts/noto-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 800; src: url(fonts/noto-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 600; font-style: italic; src: url(fonts/noto-sans-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Pacifico'; src: url(fonts/pacifico-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bebas Neue'; src: url(fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: italic; src: url(fonts/playfair-display-latin-700-italic.woff2) format('woff2'); }

.tag {
  position: relative; width: 600px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink); border-radius: 34px;
  font-family: 'Noto Sans', sans-serif; line-height: 1.25; text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.tag * { box-sizing: border-box; margin: 0; padding: 0; }
.tag-head {
  flex: none; height: 168px; background: var(--head); color: var(--brand);
  display: flex; align-items: center; justify-content: center; padding: 14px 30px;
}
.tag-head.has-hole { padding-top: 46px; }
.tag-hole { position: absolute; top: 16px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: #fff; border: 2px dashed #9a9a9a; }
.tag-brand { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; line-height: 1.55; }
.tag-brand.font-firma { font-family: 'Pacifico', cursive; }
.tag-brand.font-impacto { font-family: 'Bebas Neue', sans-serif; letter-spacing: .03em; }
.tag-brand.font-clasica { font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic; }
.tag-brand.font-moderna { font-weight: 800; }
.tag-brand-img { max-width: 100%; object-fit: contain; }

/* marco fino interior, como la etiqueta impresa */
.tag-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  margin: 0 18px 18px; padding: 10px 18px 12px;
  border: 3px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px;
}
.tag-code, .tag-series, .tag-kind { flex: none; white-space: nowrap; overflow: hidden; text-align: center; }
.tag-code { font-size: 38px; font-weight: 800; }
.tag-series { font-size: 31px; font-weight: 600; font-style: italic; display: flex; align-items: center; gap: 18px; }
.tag-series::before, .tag-series::after { content: ''; flex: 1; min-width: 20px; height: 3px; background: var(--line); }
.tag-kind { font-size: 28px; font-weight: 600; font-style: italic; }

.tag-main { flex: 1; min-height: 0; position: relative; margin: 10px 0; overflow: hidden; }
.tag-wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: 100%; object-fit: contain; }
.tag-features { position: relative; overflow-wrap: break-word; }
.tag-features ul, .tag-features ol { list-style: none; }
.tag-features ol { counter-reset: n; }
.tag-features li { position: relative; padding-left: 1.2em; margin-bottom: .08em; }
.tag-features ul > li::before { content: ''; position: absolute; left: 0; top: .28em; width: .68em; height: .68em; border-radius: 50%; background: var(--bullet); }
.tag-features ol > li { counter-increment: n; }
.tag-features ol > li::before { content: counter(n) '.'; position: absolute; left: 0; color: var(--bullet); font-weight: 800; }
.tag-features b, .tag-features strong { font-weight: 700; }

.tag-foot { flex: none; display: flex; align-items: center; border-top: 3px solid var(--line); padding-top: 12px; min-height: 132px; }
.tag-qr { flex: none; display: flex; gap: 14px; padding-right: 18px; margin-right: 18px; border-right: 3px solid var(--line); }
.tag-qr-code { width: 122px; height: 122px; background: #fff; padding: 6px; font-size: 13px; }
.tag-qr-code svg { display: block; width: 100%; height: 100%; }
.tag-qr-side { width: 128px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.tag-qr-text { font-size: 19px; font-weight: 700; line-height: 1.2; overflow: hidden; max-height: 72px; overflow-wrap: break-word; }
.tag-icon { align-self: center; width: 44px; height: 44px; color: var(--bullet); object-fit: contain; }
.tag-icon svg { display: block; width: 100%; height: 100%; }
.tag-price { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; font-size: 54px; font-weight: 800; }
.tag-price-prefix { font-size: .72em; }
