/* =========================================================
   BLOQUE BLACK MONDAY - ESTILOS PRINCIPALES
========================================================= */
#bf-widget-wrapper {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
  background-color: #073843;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url('/img/cms/patrones/afro_room.jpg'),
    url('/img/cms/patrones/afro_pattern_black_organic.svg');
  background-blend-mode: overlay, multiply;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% auto, auto, 600px 600px;
  background-position: top center, top center, center;
}

/* Fondo adaptativo sin corte visual */
#bf-widget-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,142,174,0) 55%,
    rgba(0,142,174,0.3) 75%,
    rgba(0,142,174,0.55) 95%,
    #073843 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   CABECERA PRINCIPAL
========================================================= */
#bf-widget-wrapper .cabecera-marcas {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}
#bf-widget-wrapper .cabecera-marcas h2 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  background: linear-gradient(90deg, #00bcd4 0%, #00e5ff 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: fadeDown 1s ease forwards;
}
#bf-widget-wrapper .cabecera-marcas h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 4px;
  background: linear-gradient(90deg, #00e5ff, #00bcd4, #00e5ff);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  animation: pulseLine 2.5s infinite ease-in-out;
}
#bf-widget-wrapper .cabecera-marcas .sub {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.5px;
  margin-top: 15px;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
}

/* =========================================================
   BLOQUE DE TARJETAS FIJAS (SEMANALES)
========================================================= */
#bf-widget-wrapper .blackmonday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 70px auto 100px auto;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-sizing: border-box;
}
#bf-widget-wrapper .blackmonday-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 420px;
  cursor: pointer;
}
#bf-widget-wrapper .blackmonday-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}
#bf-widget-wrapper .blackmonday-card .oferta-imagen {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transition: filter 0.3s ease;
}
#bf-widget-wrapper .blackmonday-card:hover .oferta-imagen {
  filter: brightness(0.7);
}
#bf-widget-wrapper .blackmonday-card .contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 30px 25px 35px 25px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 80%);
}
#bf-widget-wrapper .blackmonday-card .fecha {
  font-size: 26px;
  font-weight: 700;
  color: #00bcd4;
  margin-bottom: 10px;
}
#bf-widget-wrapper .blackmonday-card p {
  font-size: 15px;
  color: #ddd;
  margin-bottom: 15px;
  line-height: 1.6;
}
#bf-widget-wrapper .blackmonday-card a {
  font-size: 14px;
  color: #00bcd4;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
#bf-widget-wrapper .blackmonday-card a:hover {
  text-decoration: underline;
}

/* =========================================================
   BUSCADOR DE MARCAS
========================================================= */
#bf-widget-wrapper .instruccion-buscador {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 16px;
}
#bf-widget-wrapper .filtros {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
#bf-widget-wrapper .filtros input {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 15px;
  width: 100%;
  max-width: 320px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}
#bf-widget-wrapper .filtros input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
#bf-widget-wrapper .filtros input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* =========================================================
   RESULTADOS DINÁMICOS - TARJETAS DE MARCA
========================================================= */
.tarjeta-marca {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  color: #fff;
  animation: fadeIn 0.4s ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-marca:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.tarjeta-marca h3 {
  font-size: 26px;
  color: #00e5ff;
  margin-bottom: 10px;
}
.tarjeta-marca p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}
.descuentos span {
  display: inline-block;
  margin: 8px 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.desc-base {
  background: #fff;
  color: #111;
}
.desc-extra {
  background: #00e5ff;
  color: #111;
}
.btn-ver {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-ver:hover {
  background: #00e5ff;
  transform: translateY(-2px);
}

/* =========================================================
   ANIMACIONES
========================================================= */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.6; width: 140px; }
  50% { opacity: 1; width: 180px; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  #bf-widget-wrapper {
    padding: 50px 0;
  }
  #bf-widget-wrapper .cabecera-marcas h2 {
    font-size: 42px;
    letter-spacing: 1.5px;
  }
  #bf-widget-wrapper .cabecera-marcas .sub {
    font-size: 16px;
    max-width: 90%;
  }
  #bf-widget-wrapper .blackmonday-grid {
    gap: 25px;
    padding: 25px;
  }
  #bf-widget-wrapper .blackmonday-card {
    min-height: 360px;
  }
  #bf-widget-wrapper .blackmonday-card .fecha {
    font-size: 22px;
  }
  .tarjeta-marca {
    margin-top: 25px;
    padding: 20px;
  }
  .tarjeta-marca h3 {
    font-size: 22px;
  }
}

/* =========================================================
   GRID DE RESULTADOS DINÁMICOS (tarjetas-marca)
========================================================= */
#gridMarcas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
