/* Sección Black Friday: mismos tokens, header y footer de la home de Cyber.ec */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --bf-dark: #0a0e14;
  --bf-gold: #fbbf24;
}

body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 20px; color: var(--blue);
}
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.btn-login {
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.btn-login:hover { background: var(--blue-dark); }

/* BREADCRUMB */
.breadcrumb { background: #f9fafb; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb .container { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* HERO */
.bf-hero { background: var(--bf-dark); color: #fff; position: relative; overflow: hidden; }
.bf-hero h1 {
  font-family: 'Poppins', sans-serif; font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800; line-height: 1.12; margin-bottom: 16px;
}
.bf-hero p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); }
.bf-hero p a { color: var(--bf-gold); }
.bf-badge {
  display: inline-block; background: rgba(251,191,36,.15); color: var(--bf-gold);
  border: 1px solid rgba(251,191,36,.35); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.bf-hero--photo { min-height: 500px; display: flex; align-items: center; }
.bf-hero--photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.bf-hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,.7) 38%, rgba(10,14,20,0) 62%);
}
.bf-hero-text { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.bf-hero-text > * { max-width: 500px; }
.bf-hero--photo h1 { font-size: clamp(30px, 3.6vw, 44px); }
.bf-hero--banner { padding: 32px 0 44px; }
.bf-hero--banner p { max-width: 760px; }
.bf-banner { max-width: 900px; margin-bottom: 28px; }
.bf-banner img { width: 100%; border-radius: 14px; }

/* SUBNAV */
.bf-subnav { border-bottom: 1px solid var(--border); background: #fff; }
.bf-subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: thin; }
.bf-subnav a {
  flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none;
  background: #f3f4f6; border-radius: 999px; padding: 8px 14px; transition: background .2s, color .2s;
}
.bf-subnav a:hover { background: var(--blue-light); color: var(--blue); }
.bf-subnav a[aria-current="page"] { background: var(--blue); color: #fff; }

/* CONTENIDO */
.bf-content { padding-top: 40px; padding-bottom: 64px; }
article { max-width: 820px; }
.bf-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
article h2, .bf-section h2, .bf-sources h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--blue); line-height: 1.25;
}
article h2, .bf-section h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 14px; scroll-margin-top: 84px; }
article h3 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; margin: 24px 0 8px; scroll-margin-top: 84px; }
article p { font-size: 16px; line-height: 1.75; margin-bottom: 14px; color: #374151; }
article ul, article ol { margin: 0 0 16px 22px; }
article li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; color: #374151; }
article a, .bf-faq a { color: var(--blue); }
.bf-table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
caption { text-align: left; padding: 12px 14px; font-size: 13px; color: var(--text-muted); }
th, td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
th { background: var(--blue-light); font-weight: 600; }
.bf-callout {
  background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0;
  padding: 16px 18px; margin: 18px 0 22px;
}
.bf-callout p { margin: 0; }

/* CUENTA REGRESIVA */
.bf-countdown { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.bf-count { background: var(--bf-dark); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.bf-count-label { display: block; font-size: 13px; color: rgba(255,255,255,.7); }
.bf-count-date { display: block; font-family: 'Poppins', sans-serif; font-size: 19px; margin: 4px 0; }
.bf-count-left { display: block; color: var(--bf-gold); font-weight: 600; font-size: 15px; min-height: 22px; }

/* TARJETAS */
.bf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bf-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(37,99,235,.14); border-color: var(--blue); }
.bf-card-img { display: block; aspect-ratio: 16 / 5; background: var(--bf-dark); }
.bf-card-img img { width: 100%; height: 100%; object-fit: contain; }
.bf-card-img--photo img { object-fit: cover; object-position: right center; }
.bf-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.bf-card-body strong { font-family: 'Poppins', sans-serif; font-size: 15px; }
.bf-card-body > span:not(.cat-link) { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cat-link { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }

/* FAQ */
.bf-section { margin-top: 8px; }
.bf-faq { max-width: 820px; }
.bf-faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.bf-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 16px; }
.bf-faq details > div { padding: 0 16px 16px; font-size: 15px; line-height: 1.7; color: #374151; }

/* NOTAS Y FUENTES */
.bf-note { max-width: 820px; margin-top: 40px; background: #fef9c3; color: #713f12; border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.6; }
.bf-sources { max-width: 820px; margin-top: 24px; font-size: 13px; color: var(--text-muted); }
.bf-sources h2 { font-size: 15px; margin-bottom: 8px; }
.bf-sources ul { margin-left: 18px; }
.bf-sources li { margin-bottom: 4px; line-height: 1.5; }
.bf-sources a { color: var(--text-muted); }

/* AUSPICIANTES */
.bf-sponsor { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; background: var(--bf-dark); color: #fff; }
.bf-sponsor img { width: 100%; }
.bf-sponsor-text { padding: 24px 28px 28px; }
.bf-sponsor h2 { font-family: 'Poppins', sans-serif; font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.bf-sponsor p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.bf-sponsor-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-sponsor-btns a { border-radius: 10px; padding: 12px 20px; font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.bf-sponsor-btns a:hover { opacity: .88; }
.bf-btn-wa { background: var(--bf-gold); color: #111827; }
.bf-btn-mail { border: 1px solid rgba(255,255,255,.4); color: #fff; }

/* FOOTER */
footer { background: #111827; color: #d1d5db; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: #fff;
}
.footer-logo-icon {
  width: 32px; height: 32px; background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.footer-desc { font-size: 14px; line-height: 1.7; color: #9ca3af; }
.footer-col h2 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 24px; font-size: 13px; color: #6b7280; text-align: center; }
.footer-credit { margin-top: 8px; }
.footer-credit a { color: #9ca3af; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bf-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bf-hero--photo { display: block; min-height: 0; }
  .bf-hero--photo > img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .bf-hero--photo::after { display: none; }
  .bf-hero-text { padding-top: 24px; padding-bottom: 36px; }
  .bf-hero p { font-size: 16px; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .bf-grid, .bf-countdown { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
}
