:root {
  --bc-red: #ef1b28;
  --bc-yellow: #ffc62f;
  --bc-ink: #101622;
  --bc-paper: #ffffff;
  --bc-soft: #f2f3f5;
}

.bc-download-library {
  color: var(--bc-ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  max-width: 1280px;
  padding: 34px 22px 70px;
}

.bc-download-hero {
  background-color: var(--bc-red);
  background-image:
    radial-gradient(circle at 18px 18px, rgba(128,0,10,.13) 0 8px, transparent 9px),
    linear-gradient(45deg, transparent 43%, rgba(128,0,10,.08) 44% 56%, transparent 57%);
  background-size: 82px 82px, 82px 82px;
  border-radius: 30px;
  box-shadow: 12px 12px 0 var(--bc-ink);
  color: white;
  margin-bottom: 42px;
  padding: clamp(30px, 6vw, 76px);
  text-align: center;
}

.bc-eyebrow {
  color: var(--bc-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  margin: 0 0 12px;
}

.bc-download-hero h1 {
  color: white;
  font-family: 'Luckiest Guy', Impact, sans-serif;
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.02;
  margin: 0 auto 18px;
  max-width: 980px;
  text-shadow: 4px 6px 0 var(--bc-ink);
  text-transform: uppercase;
}

.bc-download-hero p:last-child { font-size: clamp(17px, 2vw, 22px); font-weight: 800; margin: 0 auto; max-width: 780px; }
.bc-account-strip { align-items: center; background: #fff4d5; border: 2px solid var(--bc-ink); border-radius: 18px; display: flex; gap: 18px; justify-content: space-between; margin: -18px 0 34px; padding: 16px 20px; }
.bc-account-strip a { background: var(--bc-ink); border-radius: 999px; color: white; flex: 0 0 auto; font-weight: 900; padding: 11px 17px; text-decoration: none; }

.bc-download-filters {
  align-items: end;
  background: var(--bc-soft);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  margin-bottom: 32px;
  padding: 22px;
}

.bc-download-filters label { display: grid; font-size: 12px; font-weight: 900; gap: 7px; letter-spacing: .05em; text-transform: uppercase; }
.bc-download-filters input,
.bc-download-filters select,
.bc-download-dialog input,
.bc-download-dialog select {
  background: white;
  border: 2px solid var(--bc-ink);
  border-radius: 12px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.bc-search { grid-column: span 2; }
.bc-clear-filters { background: transparent; border: 0; color: var(--bc-red); cursor: pointer; font-weight: 900; min-height: 48px; text-decoration: underline; }

.bc-download-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-download-card { background: white; border: 2px solid var(--bc-ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--bc-ink); overflow: hidden; }
.bc-download-card[hidden] { display: none; }
.bc-download-image { aspect-ratio: 4 / 3; background: #ddd; overflow: hidden; position: relative; }
.bc-preview-button { border: 0; cursor: zoom-in; display: block; padding: 0; text-align: left; width: 100%; }
.bc-preview-button::after { align-items: center; background: rgba(16,22,34,.72); border-radius: 50%; color: white; content: '\2197'; display: flex; font-size: 22px; height: 42px; justify-content: center; opacity: 0; position: absolute; right: 12px; top: 12px; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; width: 42px; }
.bc-preview-button:hover::after, .bc-preview-button:focus-visible::after { opacity: 1; transform: scale(1); }
.bc-download-image img { height: 100%; object-fit: cover; width: 100%; }
.bc-download-image span { background: rgba(16,22,34,.86); bottom: 12px; color: white; font-size: 11px; font-weight: 900; left: 12px; letter-spacing: .1em; padding: 7px 10px; position: absolute; }
.bc-download-card__body { padding: 20px; }
.bc-download-card h2 { font-size: 28px; line-height: 1.05; margin: 0 0 10px; }
.bc-download-card p { color: #49505c; font-size: 14px; }
.bc-download-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.bc-download-tags span { background: #eceef1; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 6px 9px; }
.bc-download-button,
.bc-download-submit { background: var(--bc-red); border: 0; border-radius: 12px; color: white; cursor: pointer; font-weight: 900; min-height: 48px; padding: 12px 16px; width: 100%; }
.bc-download-empty { background: #fff4d5; border-radius: 16px; font-weight: 800; padding: 24px; text-align: center; }
.bc-download-count { color: #626975; font-size: 13px; font-weight: 800; margin: 22px 0 0; text-align: right; }

.bc-download-dialog { border: 0; border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.35); max-height: 90vh; max-width: 640px; padding: 0; width: calc(100% - 28px); }
.bc-download-dialog::backdrop { background: rgba(10,14,22,.8); }
.bc-dialog-close-form { height: 0; position: relative; z-index: 2; }
.bc-dialog-close-form button { background: var(--bc-ink); border: 0; border-radius: 50%; color: white; cursor: pointer; font-size: 26px; height: 42px; position: absolute; right: 14px; top: 14px; width: 42px; }
.bc-dialog-content { padding: 38px; }
.bc-dialog-content h2 { font-size: 36px; margin: 0 0 8px; }
.bc-dialog-content > p:not(.bc-eyebrow) { color: #555; }
.bc-dialog-content form[data-bc-lead-form] { display: grid; gap: 14px; margin-top: 22px; }
.bc-dialog-content label { display: grid; font-size: 13px; font-weight: 800; gap: 6px; }
.bc-dialog-content .bc-check { align-items: start; display: grid; font-weight: 500; gap: 9px; grid-template-columns: 20px 1fr; line-height: 1.35; }
.bc-dialog-content .bc-check input { min-height: 18px; width: 18px; }
.bc-dialog-content .bc-check a { color: var(--bc-red); font-weight: 900; text-decoration: underline; }
.bc-form-message { font-size: 14px; font-weight: 800; margin: 0; text-align: center; }
.bc-account-cta { align-items: center; display: flex; justify-content: center; margin-top: 22px; text-align: center; text-decoration: none; }
.bc-account-note { font-size: 13px; margin: 14px 0 0; text-align: center; }
.bc-account-download-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.bc-account-download-card { border: 2px solid var(--bc-ink); border-radius: 18px; display: grid; gap: 16px; grid-template-columns: 130px 1fr; overflow: hidden; padding: 12px; }
.bc-account-download-card img { border-radius: 10px; height: 110px; object-fit: cover; width: 130px; }
.bc-account-download-card h3 { margin: 5px 0 6px; }
.bc-account-download-card p { color: #626975; font-size: 13px; }
.bc-account-download-card .button { background: var(--bc-red); border: 0; border-radius: 9px; color: white; font-weight: 800; }

.bc-preview-dialog { background: transparent; border: 0; max-height: 94vh; max-width: min(1180px, calc(100vw - 30px)); overflow: visible; padding: 0; width: auto; }
.bc-preview-dialog::backdrop { background: rgba(5,8,14,.92); }
.bc-preview-dialog figure { align-items: center; display: flex; flex-direction: column; margin: 0; max-height: 90vh; }
.bc-preview-dialog img { border: 3px solid white; border-radius: 14px; box-shadow: 0 22px 70px rgba(0,0,0,.55); display: block; max-height: calc(90vh - 54px); max-width: min(1120px, calc(100vw - 40px)); object-fit: contain; }
.bc-preview-dialog figcaption { color: white; font-size: 16px; font-weight: 900; margin-top: 12px; text-align: center; }
.bc-preview-close-form { position: absolute; right: -12px; top: -12px; z-index: 3; }
.bc-preview-close-form button { background: var(--bc-red); border: 2px solid white; border-radius: 50%; color: white; cursor: pointer; font-size: 27px; height: 44px; line-height: 1; width: 44px; }

@media (max-width: 900px) {
  .bc-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-download-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bc-download-library { padding-inline: 14px; }
  .bc-download-hero { border-radius: 22px; box-shadow: 7px 7px 0 var(--bc-yellow); }
  .bc-download-grid,
  .bc-download-filters { grid-template-columns: 1fr; }
  .bc-search { grid-column: auto; }
  .bc-dialog-content { padding: 30px 20px 22px; }
  .bc-account-strip { align-items: stretch; flex-direction: column; }
  .bc-account-strip a { text-align: center; }
  .bc-account-download-grid { grid-template-columns: 1fr; }
  .bc-account-download-card { grid-template-columns: 92px 1fr; }
  .bc-account-download-card img { height: 86px; width: 92px; }
}

/* Area de cliente BC */
body.bc-customer-account main,
body.bc-customer-account .site-main,
body.bc-customer-account .entry-content { overflow: visible; }
body.bc-customer-account .woocommerce {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(28px, 5vw, 64px) 22px 80px;
}
.bc-account-hero {
  align-items: center;
  background-color: var(--bc-red);
  background-image:
    radial-gradient(circle at 18px 18px, rgba(128,0,10,.13) 0 8px, transparent 9px),
    linear-gradient(45deg, transparent 43%, rgba(128,0,10,.08) 44% 56%, transparent 57%);
  background-size: 82px 82px, 82px 82px;
  border-radius: 28px;
  box-shadow: 11px 11px 0 var(--bc-ink);
  color: white;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 185px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  position: relative;
}
.bc-account-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.bc-account-hero > div:first-child { position: relative; z-index: 2; }
.bc-account-hero p { color: var(--bc-yellow); font-size: 13px; font-weight: 900; letter-spacing: .17em; margin: 0 0 9px; }
.bc-account-hero h1 { color: white; font-family: 'Luckiest Guy', Impact, sans-serif; font-size: clamp(42px, 6vw, 76px); font-weight: 400; letter-spacing: .02em; line-height: .98; margin: 0 0 13px; text-shadow: 4px 6px 0 var(--bc-ink); }
.bc-account-hero span { font-size: clamp(15px, 1.8vw, 19px); font-weight: 800; }
.bc-account-hero__logo { filter: drop-shadow(0 10px 12px rgba(0,0,0,.28)); height: auto; max-width: 170px; position: relative; transform: rotate(4deg); width: 18%; z-index: 2; }
body.bc-customer-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
body.bc-customer-account .woocommerce-MyAccount-navigation ul { background: var(--bc-ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--bc-yellow); list-style: none; margin: 0; overflow: hidden; padding: 12px; position: sticky; top: 24px; }
body.bc-customer-account .woocommerce-MyAccount-navigation li { border: 0; list-style: none; margin: 0; padding: 0; }
body.bc-customer-account .woocommerce-MyAccount-navigation li::marker { content: ''; }
body.bc-customer-account .woocommerce-MyAccount-navigation a { align-items: center; border-radius: 12px; color: white; display: flex; font-size: 14px; font-weight: 900; min-height: 49px; padding: 10px 14px; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
body.bc-customer-account .woocommerce-MyAccount-navigation a:hover { background: rgba(255,255,255,.1); color: var(--bc-yellow); transform: translateX(3px); }
body.bc-customer-account .woocommerce-MyAccount-navigation .is-active a { background: var(--bc-red); color: white; }
body.bc-customer-account .woocommerce-MyAccount-navigation li:last-child { border-top: 1px solid rgba(255,255,255,.18); margin-top: 7px; padding-top: 7px; }
body.bc-customer-account .woocommerce-MyAccount-content { background: white; border: 2px solid var(--bc-ink); border-radius: 22px; box-shadow: 7px 7px 0 #dfe2e7; box-sizing: border-box; float: none; min-height: 350px; padding: clamp(24px, 4vw, 48px); width: auto; }
body.bc-customer-account .woocommerce-MyAccount-content h2,
body.bc-customer-account .woocommerce-MyAccount-content h3 { color: var(--bc-ink); }
body.bc-customer-dashboard .woocommerce-MyAccount-content > p { display: none; }
.bc-account-welcome .bc-eyebrow { color: var(--bc-red); }
.bc-account-welcome h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 8px 0 17px; }
.bc-account-welcome > p:not(.bc-eyebrow) { color: #4c5360; font-size: 18px; line-height: 1.55; max-width: 720px; }
.bc-account-quicklinks { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.bc-account-quicklinks a { align-items: center; background: var(--bc-yellow); border: 2px solid var(--bc-ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--bc-ink); color: var(--bc-ink); display: flex; font-weight: 900; justify-content: center; min-height: 70px; padding: 12px; text-align: center; text-decoration: none; }
.bc-account-quicklinks a:first-child { background: var(--bc-red); color: white; }
body.bc-customer-account .woocommerce form.login,
body.bc-customer-account .woocommerce form.register,
body.bc-customer-account .woocommerce-ResetPassword { border: 2px solid var(--bc-ink); border-radius: 20px; margin: 0; padding: 26px; }
body.bc-customer-account .woocommerce form .input-text,
body.bc-customer-account .woocommerce form select { background: white; border: 2px solid var(--bc-ink); border-radius: 11px; min-height: 48px; padding: 9px 12px; }
body.bc-customer-account .woocommerce button.button,
body.bc-customer-account .woocommerce a.button { background: var(--bc-red); border-radius: 11px; color: white; font-weight: 900; min-height: 45px; padding: 13px 20px; }
body.bc-customer-account .woocommerce-MyAccount-content > a,
body.bc-customer-account .woocommerce-MyAccount-content p a { color: var(--bc-red); }
body.bc-customer-account .woocommerce-MyAccount-content .bc-account-quicklinks a { color: var(--bc-ink); }
body.bc-customer-account .woocommerce-MyAccount-content .bc-account-quicklinks a:first-child { color: white; }

@media (max-width: 820px) {
  body.bc-customer-account .woocommerce { grid-template-columns: 1fr; padding-inline: 14px; }
  .bc-account-hero { min-height: 160px; }
  .bc-account-hero__logo { max-width: 125px; width: 22%; }
  body.bc-customer-account .woocommerce-MyAccount-navigation ul { display: flex; gap: 7px; overflow-x: auto; padding: 10px; position: static; scrollbar-width: thin; }
  body.bc-customer-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
  body.bc-customer-account .woocommerce-MyAccount-navigation li:last-child { border-left: 1px solid rgba(255,255,255,.18); border-top: 0; margin: 0 0 0 4px; padding: 0 0 0 8px; }
  body.bc-customer-account .woocommerce-MyAccount-navigation a { min-height: 43px; white-space: nowrap; }
  .bc-account-quicklinks { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .bc-account-hero { align-items: flex-start; border-radius: 20px; box-shadow: 7px 7px 0 var(--bc-ink); padding: 27px 22px; }
  .bc-account-hero span { display: block; max-width: 72%; }
  .bc-account-hero__logo { max-width: 82px; position: absolute; right: 18px; top: 24px; width: 23%; }
  body.bc-customer-account .woocommerce-MyAccount-content { border-radius: 18px; box-shadow: 5px 5px 0 #dfe2e7; padding: 24px 18px; }
}
