/* ==========================================================================
   Campaña Psico Black Days 2026 — piezas temporales (.bd-*)
   Solo se carga mientras partials/campana.php reporta una fase activa.
   Autónomo (colores literales): lo cargan el home y las páginas Bootstrap.
   Móvil primero (canvas 412); escritorio desde 1024px (canvas 1920).
   ========================================================================== */

/* ---------- Hero: piezas base (móvil primero, canvas 412) ---------- */
.bd-hero,
.bd-hero *,
.bd-hero *::before,
.bd-hero *::after { box-sizing: border-box; }

.bd-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(266.6deg, #612c68 0%, #000 100%);
  color: #fff;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
}
/* Degradado inferior que oscurece la foto bajo el botón */
.bd-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13.25rem;                                   /* 212px */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
  pointer-events: none;
}
.bd-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.1875rem;                             /* 35px */
}
.bd-hero p { margin: 0; }

.bd-hero .bd-hero__bajada {
  width: 18.375rem;
  max-width: calc(100% - 2.5rem);
  margin-top: 0.6875rem;
  font-size: 0.875rem;                                /* 14px */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.00875rem;
}

/* Caja de ofertas */
.bd-ofertas {
  position: relative;
  width: 21.375rem;                                   /* 342px */
  max-width: calc(100% - 2rem);
  margin-top: 1.5rem;
  padding: 1.75rem 0 1.8125rem;
  border: 1px solid #71058c;
  border-radius: 0.625rem;                            /* 10px */
  box-shadow: 0 0 0.625rem 0.25rem rgba(107, 74, 255, 0.25);
}
.bd-oferta {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bd-oferta + .bd-oferta { margin-top: 2.5rem; }      /* 40px */
.bd-oferta__titulo {
  font-size: 1.125rem;                                /* 18px */
  font-weight: 900;
  line-height: 1.625rem;                              /* 26px */
}
.bd-hero .bd-oferta__valor {
  display: flex;
  align-items: center;
  gap: 0.3307rem;                                     /* 5.29px */
  height: 2.75rem;                                    /* 44px */
  margin-top: 0.375rem;
}
.bd-oferta__hasta {
  width: 5.2906rem;                                   /* 84.65px */
  font-size: 1.2124rem;                               /* 19.4px */
  font-weight: 300;
  line-height: 1.007;
  letter-spacing: 0.1212rem;
}
.bd-oferta__pct {
  width: 6.2825rem;                                   /* 100.52px */
  font-size: 3.0861rem;                               /* 49.38px */
  font-weight: 900;
  line-height: 1.007;
}
.bd-oferta__off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.0781rem;                                   /* 65.25px */
  height: 1.7084rem;                                  /* 27.33px */
  border-radius: 1.5607rem;
  background: linear-gradient(to left, #16bf9c, #1bce97, #007dae);
  font-size: 1.4329rem;                               /* 22.93px */
  font-weight: 900;
  line-height: 1.007;
}

/* «Comienza en» */
.bd-cuenta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 1.9375rem;                              /* 31px */
}
.bd-cuenta__label {
  width: 16.75rem;                                    /* 268px */
  max-width: calc(100% - 2.5rem);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015rem;
}
/* En móvil la caja sangra por ambos lados: solo se ven las líneas de arriba y abajo */
.bd-hero .bd-cuenta__caja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.875rem;                                      /* 30px */
  width: 100%;
  height: 3.3125rem;                                  /* 53px */
  margin-top: 1.125rem;
  border: 1px solid #71058c;
  border-left: 0;
  border-right: 0;
  box-shadow: 0 0 0.625rem 0.25rem rgba(107, 74, 255, 0.3);
}

/* Foto */
.bd-hero__media {
  display: block;
  width: 100%;
  max-width: 25.8125rem;                              /* 413px */
}
.bd-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* CTA sobre la foto */
.bd-hero__cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2.75rem;                                    /* 44px */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5848rem;                                     /* 9.36px */
  width: 21.375rem;
  max-width: calc(100% - 2rem);
}
.bd-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.5969rem;                                  /* 217.55px */
  padding: 0.2924rem;
  border-radius: 2.9241rem;
  background: linear-gradient(to left, #16bf9c, #1bce97, #007dae);
  color: #fff;
  font-size: 0.75rem;                                 /* 12px */
  font-weight: 700;
  line-height: 0.9375rem;                             /* 15px */
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.bd-hero__btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.bd-hero__btn:focus-visible { outline: 0.125rem solid #fff; outline-offset: 0.1875rem; }
.bd-hero__legal {
  font-size: 0.5rem;                                  /* 8px */
  line-height: 1.2;
  letter-spacing: -0.005rem;
}

/* ---------- Hero: piezas base en escritorio (1920 × 814) ---------- */
@media (min-width: 1024px) {
  .bd-hero {
    height: 50.875rem;                                /* 814px */
    background: linear-gradient(250.25deg, #612c68 0%, #000 100%);
    text-align: left;
  }
  .bd-hero::after { display: none; }
  .bd-hero__inner {
    display: block;
    padding: 5.0625rem 0 0 10.125rem;                 /* 81px / 162px */
  }
  .bd-hero .bd-hero__bajada {
    width: 49.25rem;
    max-width: none;
    margin-top: 1.3125rem;
    font-size: 1.875rem;                              /* 30px */
    letter-spacing: 0;
  }

  .bd-ofertas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 49.25rem;
    max-width: none;
    height: 8.125rem;                                 /* 130px */
    margin-top: 2.9375rem;
    padding: 1.25rem 0 0;
    box-shadow: 0 0 0.625rem 0.25rem rgba(107, 74, 255, 0.5);
  }
  .bd-oferta + .bd-oferta { position: relative; margin-top: 0; }
  .bd-oferta + .bd-oferta::before {                   /* divisor vertical */
    content: "";
    position: absolute;
    left: 0;
    top: 0.1719rem;
    width: 1px;
    height: 5.1563rem;                                /* 82.5px */
    background: #fff;
  }
  .bd-oferta__titulo { font-size: 1.375rem; }         /* 22px */
  .bd-hero .bd-oferta__valor { gap: 0.375rem; height: auto; }
  .bd-oferta__hasta { width: 6rem; font-size: 1.375rem; letter-spacing: 0.1375rem; }
  .bd-oferta__pct { width: 7.125rem; font-size: 3.5rem; }                 /* 56px */
  .bd-oferta__off { width: 4.625rem; height: 1.9375rem; border-radius: 1.77rem; font-size: 1.625rem; }

  .bd-cuenta {
    flex-direction: row;
    gap: 2rem;                                        /* 32px */
    width: 49.25rem;
    margin-top: 5.4375rem;                            /* 87px: deja sitio a la pestaña */
  }
  .bd-cuenta__label { width: auto; max-width: none; white-space: nowrap; }
  .bd-hero .bd-cuenta__caja {
    flex: 1 1 auto;
    justify-content: flex-start;
    width: auto;
    margin-top: 0;
    padding-left: 1.75rem;                            /* 28px */
    border: 1px solid #71058c;
    border-radius: 0.625rem;
  }

  .bd-hero__media {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 49.25rem;                                  /* 788 × 749 */
    max-width: none;
  }

  .bd-hero__cta {
    position: static;
    transform: none;
    align-items: flex-start;
    gap: 1.25rem;                                     /* 20px */
    width: 45.6875rem;                                /* 731px */
    max-width: none;
    margin-top: 2.0625rem;
  }
  .bd-hero__btn {
    width: 29.0625rem;                                /* 465px */
    padding: 0.625rem;
    border-radius: 6.25rem;
    font-size: 1.5rem;                                /* 24px */
    line-height: 1.2;
  }
  .bd-hero__legal { font-size: 0.875rem; letter-spacing: -0.00875rem; }   /* 14px */
}

/* ==========================================================================
   Hero PSICO BLACK DAYS (23–27 nov) — modificador .bd-hero--blackdays
   Figma: móvil 5471:27920, escritorio 5467:27041.
   ========================================================================== */
.bd-hero--blackdays {
  background: #1d0b3d url('../img/campanas/black-days/home-blackdays-fondo.webp') right center / cover no-repeat;
}
.bd-hero--blackdays .bd-hero__inner { padding-top: 2.5625rem; }            /* 41px */

/* Título sobre la cinta púrpura */
.bd-hero__cinta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17rem;                                       /* 272 × 73 */
  max-width: calc(100% - 2rem);
  height: 4.5625rem;
  margin: 0;
  padding: 0 1.875rem;
  background: url('../img/campanas/black-days/cinta-titulo-movil.svg') center / 100% 100% no-repeat;
  font-size: 1.5rem;                                  /* 24px */
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015rem;
}
.bd-hero--blackdays .bd-hero__bajada {
  width: 18rem;                                       /* 288px */
  margin-top: 1.125rem;
}

.bd-hero--blackdays .bd-ofertas {
  margin-top: 1.5625rem;
  padding: 1.5625rem 0;
}
.bd-hero--blackdays .bd-oferta + .bd-oferta { margin-top: 2.125rem; }      /* 34px */

/* Pestaña superior de cada oferta («Licencias», «Paquetes»): borde que se desvanece hacia abajo */
.bd-oferta__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17rem;                                       /* 272 × 54 */
  max-width: calc(100% - 2rem);
  height: 3.375rem;
  font-size: 1rem;                                    /* 16px */
  font-weight: 700;
  line-height: 1.007;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}
.bd-oferta__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 0.625rem 0.625rem 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.bd-hero .bd-oferta__unidades {
  height: 2.1875rem;                                  /* 35px */
  margin-top: -0.6875rem;
  font-size: 1.1669rem;                               /* 18.67px */
  font-weight: 900;
  line-height: 2.1875rem;
  white-space: nowrap;
}
.bd-oferta__unidades strong { font-size: 2.1783rem; font-weight: 900; }    /* 34.85px */
.bd-hero .bd-oferta__adic {
  margin-top: 0.4375rem;
  font-size: 1.125rem;                                /* 18px */
  font-weight: 900;
  line-height: 1rem;
  text-transform: uppercase;
}

.bd-hero--blackdays .bd-cuenta { margin-top: 2.5rem; }                     /* 40px */
.bd-hero--blackdays .bd-cuenta__label {
  width: auto;
  font-size: 1.375rem;                                /* 22px */
  letter-spacing: -0.01375rem;
}
.bd-hero--blackdays .bd-cuenta__caja { gap: 0; margin-top: 1.25rem; }
.bd-cuenta__reloj {
  font-size: 1rem;                                    /* 16px */
  line-height: 1.2;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bd-cuenta__reloj b { font-weight: 900; }
/* 412px en Figma; crece en móviles anchos para no cortar en seco el reloj de arena. */
.bd-hero--blackdays .bd-hero__media { max-width: 40rem; margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .bd-hero--blackdays { background-position: center; }
  .bd-hero--blackdays .bd-hero__inner { padding-top: 4.875rem; }           /* 78px */

  .bd-hero__cinta {
    width: 45rem;                                     /* 720 × 73 */
    max-width: none;
    padding: 0;
    background-image: url('../img/campanas/black-days/cinta-titulo.svg');
    font-size: 2.5rem;                                /* 40px */
    letter-spacing: -0.025rem;
    white-space: nowrap;
  }
  .bd-hero--blackdays .bd-hero__bajada {
    display: flex;
    align-items: center;
    width: 49.25rem;
    height: 4rem;                                     /* 64px: el texto rebasa centrado, como en Figma */
    margin-top: 2.8125rem;                            /* 45px */
    font-size: 2.25rem;                               /* 36px */
    font-weight: 900;
    letter-spacing: -0.0225rem;
  }

  .bd-hero--blackdays .bd-ofertas {
    margin-top: 6.1875rem;                            /* 45px + 54px de pestañas */
    padding: 1.25rem 0 0;
  }
  .bd-hero--blackdays .bd-oferta { position: relative; height: 100%; }
  .bd-hero--blackdays .bd-oferta + .bd-oferta { margin-top: 0; }
  .bd-oferta__tab {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 1.25rem + 1px);
    transform: translateX(-50%);
    width: 19.75rem;                                  /* 316px */
    max-width: none;
    font-size: 1.125rem;                              /* 18px */
    letter-spacing: 0.1125rem;
  }
  .bd-oferta__tab::before { box-shadow: 0 0 0.625rem rgba(255, 255, 255, 0.5); }
  .bd-hero .bd-oferta__unidades {
    height: auto;
    margin-top: 0;
    font-size: 1.875rem;                              /* 30px */
    line-height: 1.007;
  }
  .bd-oferta__unidades strong { font-size: 3.5rem; }  /* 56px */
  .bd-hero .bd-oferta__adic {
    margin-top: 0.375rem;
    font-size: 1.375rem;                              /* 22px */
    line-height: 1.625rem;
  }

  .bd-hero--blackdays .bd-cuenta {
    width: 50.25rem;                                  /* 804px */
    margin-top: 2.8125rem;
  }
  .bd-hero--blackdays .bd-cuenta__label { font-size: 1.5rem; letter-spacing: -0.015rem; }
  .bd-hero--blackdays .bd-cuenta__caja {
    flex: 0 0 30.125rem;                              /* 482px */
    justify-content: center;                          /* el reloj real es más corto que el texto de muestra */
    margin-top: 0;
    padding-left: 0;
  }
  .bd-cuenta__reloj { font-size: 1.25rem; letter-spacing: 0.125rem; }      /* 20px */
  .bd-hero--blackdays .bd-hero__media { max-width: none; margin-top: 0; }
  .bd-hero--blackdays .bd-hero__cta { width: 49.25rem; margin-top: 2.8125rem; }
}
