/* =============================================================================
   Promo BLACK FRIDAY 2026 — Drinkology Academia
   Archivo independiente: para quitar la promo, borra la sección
   <section id="black-friday"> y el enlace .bf-chip de index.html y en/index.html,
   y las dos líneas que cargan promo-black-friday.css / .js.
   ============================================================================= */

/* ---------- Aviso en la portada (chip dorado) ---------- */
.bf-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 auto 18px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--gold-line); border-radius: var(--r-pill);
  background: rgba(10,10,11,.72); color: var(--ink);
  font-size: .875rem; line-height: 1.2; text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  position: relative; z-index: 2;
}
.bf-chip__tag {
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--on-gold);
  font: 700 .6875rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
}
.bf-chip strong { color: var(--gold-light); font-weight: 600; }
.bf-chip svg { width: 16px; height: 16px; color: var(--gold-light); }
@media (hover: hover) { .bf-chip:hover { border-color: var(--gold-light); box-shadow: var(--glow-gold); } }

/* ---------- Sección ---------- */
.bf { position: relative; padding-block: var(--section-y); background: #000; overflow: clip; isolation: isolate; }
.bf::before { /* brillo dorado de fondo */
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(168,130,60,.22), transparent 70%);
  pointer-events: none;
}
.bf::after { /* línea dorada superior */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
/* Celular: texto → precios → video. Tableta/escritorio: texto + video a la izquierda, precios a la derecha.
   Pantallas grandes: video | texto | precios. */
.bf__grid { display: grid; gap: var(--s-6); align-items: start; grid-template-areas: "copy" "card" "media"; }
.bf__copy { grid-area: copy; }
.bf__card { grid-area: card; }
.bf__media { grid-area: media; }
@media (min-width: 960px) {
  .bf__grid { grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy card" "media card"; column-gap: var(--s-8); align-items: start; }
  .bf__card { align-self: center; }
  .bf__media { max-width: 300px; }
}
@media (min-width: 1200px) {
  .bf__grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "media copy card"; column-gap: var(--s-6); align-items: center; }
  .bf__media { max-width: none; }
  .bf__title-big { font-size: clamp(3.25rem, 6.4vw, 5.75rem); }
  .bf__off-num { font-size: clamp(4rem, 7vw, 6.5rem); }
}

/* Video vertical de la promo */
.bf__media { position: relative; margin: 0 auto; width: 100%; max-width: 340px; aspect-ratio: 3 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gold-line); background: #111 center / cover no-repeat; box-shadow: var(--shadow-soft), 0 0 60px -20px rgba(168,130,60,.45); }
.bf__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf__sound { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,10,11,.7); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color var(--t-med), color var(--t-med); }
.bf__sound svg { width: 20px; height: 20px; }
.bf__sound .bf__snd-on { display: none; }
.bf__sound[aria-pressed="true"] .bf__snd-on { display: inline; }
.bf__sound[aria-pressed="true"] .bf__snd-off { display: none; }
@media (hover: hover) { .bf__sound:hover { border-color: var(--gold-light); color: var(--gold-light); } }

.bf__kicker { display: inline-flex; align-items: center; gap: 10px; }
.bf__live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(201,164,92,.7); animation: bfPulse 2s infinite; }
@keyframes bfPulse { 0% { box-shadow: 0 0 0 0 rgba(201,164,92,.6); } 70% { box-shadow: 0 0 0 10px rgba(201,164,92,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); } }

.bf__title { margin-top: var(--s-2); font-family: var(--font-display); line-height: .92; letter-spacing: var(--tracking-tight); }
.bf__title-pre { display: block; font-size: var(--fs-h3); font-weight: 400; color: var(--ink-soft); letter-spacing: -.01em; margin-bottom: 10px; }
.bf__title-big {
  display: block; font-size: clamp(3.25rem, 12vw, 7.5rem); font-weight: 700; text-transform: uppercase;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 35%, var(--gold-light) 50%, var(--ink) 65%, var(--ink) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bfShine 6s var(--ease-soft) infinite;
}
@keyframes bfShine { 0%, 40% { background-position: 100% 0; } 80%, 100% { background-position: -50% 0; } }

.bf__off { display: flex; align-items: baseline; gap: 14px; margin-top: var(--s-3); }
.bf__off-num { font: 700 clamp(4rem, 14vw, 8rem)/.85 var(--font-display); letter-spacing: -.05em; color: var(--gold-light); }
.bf__off-txt { font: 500 var(--fs-lead)/1.25 var(--font-display); color: var(--ink); max-width: 14ch; }
.bf__lead { margin-top: var(--s-3); max-width: 46ch; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.5; }
.bf__lead strong { color: var(--ink); font-weight: 500; }

/* Cuenta regresiva */
.bf__count { margin-top: var(--s-4); }
.bf__count-label { margin-bottom: 12px; }
.bf__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 440px; }
.bf__unit { padding: 14px 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); text-align: center; }
.bf__unit b { display: block; font: 600 clamp(1.75rem, 6vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bf__unit span { display: block; margin-top: 6px; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); }
.bf__deadline { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-soft); }
.bf__deadline strong { color: var(--ink); font-weight: 500; }

/* Tarjeta de precios */
.bf__card { position: relative; padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(168,130,60,.10), rgba(255,255,255,.02)); box-shadow: var(--shadow-soft); }
@media (min-width: 720px) { .bf__card { padding: var(--s-5); } }
.bf__badge { position: absolute; top: -14px; right: 20px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--gold); color: var(--on-gold); font: 700 .75rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.bf__card h3 { font: 500 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -.02em; }
.bf__card-sub { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-small); }

.bf__rows { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.bf__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.bf__row-name { font-weight: 500; }
.bf__row-name small { display: block; margin-top: 2px; font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); }
.bf__row-price { text-align: right; white-space: nowrap; }
.bf__was { display: block; font-size: var(--fs-small); color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(201,164,92,.8); }
.bf__now { display: block; font: 600 1.625rem/1.1 var(--font-display); letter-spacing: -.02em; color: var(--gold-light); font-variant-numeric: tabular-nums; }

.bf__total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--gold-line); }
.bf__total-label { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); }
.bf__total .bf__now { font-size: clamp(2.25rem, 6vw, 2.75rem); }
.bf__save { grid-column: 1 / -1; margin-top: 10px; display: inline-flex; justify-self: start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(168,130,60,.14); border: 1px solid var(--gold-line); color: var(--gold-light); font-size: var(--fs-small); font-weight: 500; }

.bf__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.bf__cta .btn { flex: 1 1 200px; justify-content: center; }
.bf__fine { margin-top: var(--s-2); font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }

/* Promoción terminada: promo-black-friday.js pone [hidden] en la sección y el aviso. */
.bf[hidden], .bf-chip[hidden] { display: none !important; }
