:root {
  --pub-bg: #07111f;
  --pub-surface: #0c1a2d;
  --pub-surface-2: #10223a;
  --pub-line: rgba(148, 163, 184, .16);
  --pub-line-strong: rgba(148, 163, 184, .25);
  --pub-text: #f8fafc;
  --pub-muted: #94a3b8;
  --pub-accent: #36d399;
  --pub-accent-2: #14b8a6;
  --pub-info: #60a5fa;
  --pub-danger: #fb7185;
  --pub-radius: 22px;
}

html { color-scheme: dark; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background:
    radial-gradient(circle at 10% -10%, rgba(20,184,166,.16), transparent 28rem),
    radial-gradient(circle at 100% 0, rgba(59,130,246,.1), transparent 32rem),
    #07111f !important;
  color: var(--pub-text) !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 70%);
}
.container {
  max-width: 1120px !important;
  padding: 28px 24px 50px !important;
  position: relative;
  z-index: 1;
}

.welcome {
  text-align: left !important;
  padding: 42px 0 34px !important;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.welcome::before { display: none !important; }
.welcome-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}
.welcome-kicker {
  display: inline-flex;
  align-items: center;
  color: #99f6e4;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.welcome h1 {
  font-size: clamp(2.4rem, 7vw, 5rem) !important;
  line-height: .95 !important;
  letter-spacing: -.065em !important;
  margin: 0 0 16px !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #fff !important;
}
.welcome p {
  color: var(--pub-muted) !important;
  font-size: clamp(1rem, 2vw, 1.22rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}
.welcome-logo {
  display: block;
  width: auto;
  max-width: 170px !important;
  max-height: 96px;
  margin: 0;
  background: white;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}

.snake-border,
.nav-section {
  background: linear-gradient(180deg, rgba(15,31,51,.96), rgba(10,23,39,.96)) !important;
  border: 1px solid var(--pub-line) !important;
  border-radius: var(--pub-radius) !important;
  padding: 24px !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.24) !important;
  animation: none !important;
}
.snake-border::before,
.snake-border::after { display: none !important; }
.nav-section h2 {
  color: var(--pub-text) !important;
  font-size: .82rem !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  border: 0 !important;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}
.card {
  min-height: 205px !important;
  border-radius: 18px !important;
  padding: 18px !important;
  background: linear-gradient(180deg, rgba(19,38,61,.96), rgba(12,26,44,.98)) !important;
  border: 1px solid var(--pub-line) !important;
  box-shadow: none !important;
  justify-content: space-between !important;
  color: var(--pub-text) !important;
}
.card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(54,211,153,.35) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.22) !important;
}
.card .logo-container {
  width: 100%;
  height: 94px !important;
  border-radius: 14px;
  background: rgba(2,8,23,.28);
  border: 1px solid var(--pub-line);
  margin-bottom: 14px !important;
}
.card .logo-container img {
  max-width: 125px !important;
  max-height: 74px !important;
  object-fit: contain;
}
.pdf-product-preview {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(2,8,23,.34) !important;
  border: 1px solid var(--pub-line);
  color: #6f8398;
}
.pdf-product-preview .ui-icon { width: 30px; height: 30px; stroke-width: 1.45; }
.card .card-title {
  min-height: 0 !important;
  width: 100%;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0 !important;
  margin-bottom: 8px;
}
.card .card-title h3,
.card h3 {
  font-size: .98rem !important;
  letter-spacing: -.01em;
  text-align: left;
  width: 100%;
  color: #fff !important;
}
.card p {
  width: 100%;
  text-align: left;
  color: var(--pub-muted) !important;
  font-size: .78rem !important;
  font-weight: 650 !important;
}
.card p .coa-count { color: #6ee7b7 !important; }
.card-icon { align-self: flex-start; font-size: 1.45rem !important; }
.card.hybrid, .card.indica, .card.sativa { border-left-width: 1px !important; }
.card.hybrid { box-shadow: inset 0 3px 0 #a78bfa !important; }
.card.indica { box-shadow: inset 0 3px 0 #34d399 !important; }
.card.sativa { box-shadow: inset 0 3px 0 #fbbf24 !important; }

.search-container { margin-bottom: 18px !important; }
.search-input {
  height: 48px;
  background: rgba(2,8,23,.5) !important;
  border: 1px solid var(--pub-line-strong) !important;
  color: var(--pub-text) !important;
  border-radius: 13px !important;
  padding: 12px 16px 12px 44px !important;
  font-size: .9rem !important;
}
.search-input:focus {
  border-color: rgba(54,211,153,.65) !important;
  box-shadow: 0 0 0 4px rgba(54,211,153,.09) !important;
  background: rgba(2,8,23,.7) !important;
}
.search-input::placeholder { color: #5e7088 !important; }
.search-icon { left: 15px !important; color: var(--pub-muted) !important; font-size: 1rem !important; opacity: .85 !important; }

.breadcrumb {
  background: rgba(7,17,31,.72) !important;
  border: 1px solid var(--pub-line) !important;
  border-radius: 14px !important;
  padding: 10px !important;
  margin-bottom: 18px !important;
  gap: 5px !important;
  backdrop-filter: blur(14px);
}
.breadcrumb a,
.breadcrumb .current {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #cbd5e1 !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  font-size: .8rem !important;
  font-weight: 650 !important;
}
.breadcrumb a:hover { background: rgba(148,163,184,.08) !important; border-color: var(--pub-line) !important; transform: none !important; }
.breadcrumb .home-btn {
  color: #99f6e4 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.breadcrumb .home-btn .ui-icon {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  flex: 0 0 18px;
  stroke-width: 2;
}
.breadcrumb .current { background: rgba(54,211,153,.08) !important; color: #a7f3d0 !important; border-color: rgba(54,211,153,.12) !important; }
.breadcrumb .separator { color: #42546b !important; font-size: .95rem !important; }

.legal-header,
.flower-header {
  background: linear-gradient(135deg, rgba(13,29,49,.98), rgba(8,20,35,.99)) !important;
  border: 1px solid var(--pub-line) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.26) !important;
  padding: 26px !important;
  margin-bottom: 18px !important;
}
.legal-header::before {
  height: 3px !important;
  background: linear-gradient(90deg, var(--pub-accent), var(--pub-info)) !important;
}
.product-info h1,
.manufacturer-info h3,
.lot-item label {
  color: var(--pub-muted) !important;
  font-size: .68rem !important;
  letter-spacing: .09em !important;
  font-weight: 750 !important;
}
.product-info .product-name {
  color: #fff !important;
  font-size: clamp(1.65rem, 4vw, 2.5rem) !important;
  letter-spacing: -.035em;
  margin-bottom: 18px !important;
}
.lot-item {
  background: rgba(2,8,23,.28);
  border: 1px solid var(--pub-line);
  border-radius: 13px;
  padding: 12px 14px;
}
.lot-item span { font-size: .98rem !important; }
.brand-logo {
  max-width: 150px !important;
  max-height: 92px !important;
  background: white;
  padding: 9px;
  border-radius: 16px;
}
.header-bottom,
.header-footer { border-color: var(--pub-line) !important; }
.manufacturer-info p { color: #cbd5e1 !important; }
.badges { gap: 7px !important; }
.badge-icon {
  width: auto !important;
  height: auto !important;
  min-width: 78px;
  border-radius: 999px !important;
  padding: 8px 10px;
  font-size: .62rem !important;
  background: rgba(148,163,184,.06) !important;
}
.age-badge, .warning-icon { border-radius: 10px !important; }
.social-links a { color: var(--pub-muted) !important; }
.social-links a:hover { color: #fff !important; }

.card-with-thumb { padding: 0 !important; min-height: 270px !important; }
.card-thumb {
  height: 178px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--pub-line);
  padding: 8px;
}
.card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
  border-radius: 7px;
}
.card-content { width: 100%; text-align: left !important; padding: 14px 16px 16px !important; }
.card-content h3 { margin-bottom: 7px !important; }
.card-content p { color: #86efac !important; }
.card-content p.no-coa { color: #fda4af !important; }

.coa-viewer {
  background: linear-gradient(180deg, rgba(15,31,51,.96), rgba(10,23,39,.96)) !important;
  border: 1px solid var(--pub-line) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.26);
}
.coa-viewer h2 {
  text-align: left;
  font-size: 1.08rem;
  letter-spacing: -.015em;
  margin-bottom: 16px !important;
}
.coa-preview {
  background: #eef2f7 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  gap: 14px !important;
}
.coa-main { min-height: 480px !important; }
.coa-main-pdf { width: 100%; min-height: 680px !important; }
.coa-preview iframe {
  width: 100% !important;
  height: min(82vh, 920px) !important;
  min-height: 680px;
  border-radius: 12px !important;
  background: #fff;
}
.coa-pdf-poster {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}
.coa-pdf-poster > img {
  width: min(100%, 420px) !important;
  max-height: 540px !important;
  object-fit: contain;
  box-shadow: 0 12px 34px rgba(15,23,42,.14);
}
.coa-pdf-placeholder {
  min-height: 300px;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
}
.coa-pdf-placeholder .ui-icon { width: 42px; height: 42px; }
.coa-pdf-load { cursor: pointer; }
.coa-thumbnail { width: 180px !important; }
.coa-actions { justify-content: flex-start !important; }
.btn {
  border-radius: 11px !important;
  padding: 11px 15px !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
}
.btn-primary { background: linear-gradient(135deg, #14b8a6, #0f9f8f) !important; color: #031712 !important; }
.btn-secondary { background: rgba(148,163,184,.08) !important; border: 1px solid var(--pub-line) !important; color: #e2e8f0 !important; }

.empty-state {
  color: var(--pub-muted) !important;
  padding: 44px 20px !important;
  border: 1px dashed var(--pub-line-strong);
  border-radius: 16px;
  background: rgba(2,8,23,.2);
}
.empty-state .icon { font-size: 2rem !important; }

.site-footer {
  background: rgba(5,13,24,.92) !important;
  border-top: 1px solid var(--pub-line) !important;
  border-image: none !important;
  padding: 42px 24px 24px !important;
  margin-top: 30px !important;
}
.footer-container, .footer-bottom { max-width: 1120px !important; }
.footer-container { border-color: var(--pub-line) !important; }
.footer-brand h3 { letter-spacing: -.02em !important; font-size: 1.2rem !important; }
.footer-brand p, .footer-contact p, .footer-contact a, .footer-bottom p { color: var(--pub-muted) !important; }
.footer-badge { background: rgba(148,163,184,.06) !important; border-color: var(--pub-line) !important; border-radius: 10px !important; }
.footer-bottom .age-notice { color: #fda4af !important; }

@media (max-width: 760px) {
  .container { padding: 18px 14px 40px !important; }
  .welcome { padding: 36px 2px 24px !important; }
  .welcome h1 { font-size: clamp(2.4rem, 14vw, 4rem) !important; }
  .nav-section, .snake-border, .legal-header, .coa-viewer { padding: 17px !important; border-radius: 18px !important; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .card { min-height: 180px !important; padding: 13px !important; border-radius: 14px !important; }
  .card .logo-container { height: 78px !important; }
  .card .logo-container img { max-width: 104px !important; max-height: 60px !important; }
  .card-with-thumb { padding: 0 !important; min-height: 210px !important; }
  .card-thumb { height: 120px !important; }
  .header-top { flex-direction: column; }
  .brand-logo { max-width: 120px !important; }
  .lot-info { grid-template-columns: 1fr 1fr !important; }
  .header-bottom { align-items: flex-start !important; }
  .badges { width: 100%; }
  .coa-preview { flex-direction: column; }
  .coa-thumbnail { width: 100% !important; max-width: 260px; margin: auto; }
  .coa-main { width: 100%; min-height: 360px !important; }
}

@media (max-width: 420px) {
  .cards-grid { grid-template-columns: 1fr !important; }
  .card { min-height: 150px !important; }
  .lot-info { grid-template-columns: 1fr !important; }
  .breadcrumb { overflow-x: auto; flex-wrap: nowrap !important; }
  .breadcrumb a, .breadcrumb .current { white-space: nowrap; }
}

/* Global COA finder: mantiene intacto el tema público oscuro */
.global-coa-search {
  margin: 18px 0 24px;
  position: relative;
}
.global-coa-search-form {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr);
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,31,51,.96), rgba(10,23,39,.98));
  border: 1px solid var(--pub-line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}
.global-coa-search-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.global-search-kicker {
  color: #6ee7b7;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.global-coa-search-copy strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -.015em;
}
.global-coa-search-copy small {
  color: var(--pub-muted);
  font-size: .76rem;
  line-height: 1.4;
}
.global-coa-search-control {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
}
.global-coa-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-52%);
  color: #6f829a;
  font-size: 1.15rem;
  pointer-events: none;
}
.global-coa-search-control input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px 0 42px;
  background: rgba(2,8,23,.54);
  border: 1px solid var(--pub-line-strong);
  border-radius: 12px;
  color: #fff;
  font-size: .88rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.global-coa-search-control input::placeholder { color: #5e7088; }
.global-coa-search-control input:focus {
  border-color: rgba(54,211,153,.6);
  box-shadow: 0 0 0 4px rgba(54,211,153,.08);
  background: rgba(2,8,23,.78);
}
.global-coa-search-control button {
  height: 48px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #36d399, #14b8a6);
  color: #032117;
  font-weight: 800;
  cursor: pointer;
}
.global-search-clear {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--pub-line);
  background: rgba(148,163,184,.06);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.2rem;
}
.global-search-results {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--pub-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15,31,51,.96), rgba(10,23,39,.96));
  box-shadow: 0 20px 54px rgba(0,0,0,.2);
}
.global-results-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.global-results-heading h2 {
  color: #fff;
  font-size: 1.12rem;
  margin: 5px 0 0;
  letter-spacing: -.02em;
}
.global-results-reset {
  color: #99f6e4;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}
.global-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 11px;
}
.global-result-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(19,38,61,.96), rgba(12,26,44,.98));
  border: 1px solid var(--pub-line);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.global-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(54,211,153,.34);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.global-result-brand {
  display: block;
  color: #6ee7b7;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.global-result-main h3 {
  color: #fff;
  font-size: 1.03rem;
  margin: 0 0 7px;
  letter-spacing: -.015em;
}
.global-result-main p {
  color: var(--pub-muted);
  font-size: .77rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.global-result-main p span { color: #42546b; padding: 0 3px; }
.global-result-main code {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(2,8,23,.4);
  border: 1px solid var(--pub-line);
  color: #bfdbfe;
  font-size: .7rem;
}
.global-result-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 750;
  padding-top: 10px;
  border-top: 1px solid var(--pub-line);
}
.global-result-action b { color: #6ee7b7; font-size: 1rem; }
.global-search-empty {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 1px dashed var(--pub-line-strong);
  border-radius: 15px;
  background: rgba(2,8,23,.2);
}
.global-search-empty strong { color: #fff; }
.global-search-empty span { color: var(--pub-muted); font-size: .82rem; }

@media (max-width: 760px) {
  .global-coa-search-form { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .global-coa-search-copy small { display: none; }
  .global-results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .global-results-grid { grid-template-columns: 1fr; }
  .coa-main-pdf { min-height: 520px !important; }
  .coa-preview iframe { min-height: 520px; height: 72vh !important; }
}

@media (max-width: 480px) {
  .global-coa-search { margin-top: 10px; }
  .global-coa-search-control { display: grid; grid-template-columns: 1fr auto; }
  .global-coa-search-control input { grid-column: 1 / -1; }
  .global-coa-search-icon { top: 24px; }
  .global-coa-search-control button { width: 100%; }
  .global-search-clear { width: 48px; height: 48px; }
}

/* Professional vector icon system */
.ui-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.14em;
  color: currentColor;
}
.btn .ui-icon,
.home-btn .ui-icon,
.footer-badge .ui-icon,
.card-content p .ui-icon {
  margin-right: .42em;
}
.search-icon .ui-icon,
.global-coa-search-icon .ui-icon {
  width: 18px;
  height: 18px;
  margin: 0;
}
.empty-state .icon {
  line-height: 1;
}
.empty-state .icon .ui-icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.45;
  color: #6f8398;
}
.card-thumb-placeholder .ui-icon,
.card-icon .ui-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.45;
}
.card.hybrid .card-icon .ui-icon { color: #a78bfa; }
.card.indica .card-icon .ui-icon { color: #4ade80; }
.card.sativa .card-icon .ui-icon { color: #fbbf24; }
.coa-viewer h2 .ui-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -.2em;
}
.social-links a .ui-icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -.18em;
}
.warning-icon .ui-icon {
  width: 24px;
  height: 24px;
  color: #f59e0b;
  stroke-width: 1.9;
}
.footer-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}
.footer-badge .ui-icon { margin-right: 0; width: 16px; height: 16px; }
