/* Promo TrapBag — tarjeta "Prepare ahead of time" en el hero del inicio */

.trapbag-promo {
  --tb-azul: var(--color-azul, #003366);
  --tb-turquesa: var(--color-turquesa, #00a79d);
  --tb-stripe: #4a90b0;

  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  width: min(100%, 300px);
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, var(--tb-azul) 0%, #0a4a7a 100%);
  color: #fff;
  font-family: 'Verdana', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.28);
  overflow: hidden;
  text-decoration: none;
  animation: tb-float 4s ease-in-out infinite, tb-glow 2s ease-out infinite;
}

/* Brillo que cruza la tarjeta */
.trapbag-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: tb-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}


.trapbag-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-turquesa);
}

.trapbag-promo__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tb-turquesa);
  animation: tb-blink 1.2s ease-in-out infinite;
}

.trapbag-promo__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.trapbag-promo__title span {
  color: var(--tb-turquesa);
}

.trapbag-promo__rule {
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--tb-turquesa);
  animation: tb-grow 3s ease-in-out infinite;
}

.trapbag-promo__logo {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
}

/* Desktop: flotando sobre el espacio blanco a la izquierda de la imagen */
@media (min-width: 1100px) {
  .trapbag-promo {
    position: absolute;
    top: 50%;
    /* centrada en el hueco entre el borde y la imagen (~480px de ancho, centrada) */
    left: max(1rem, calc((100% - 480px) / 4 - 150px));
    margin-top: -120px;
  }
}

/* Tablet / móvil: arriba de la imagen, centrada */
@media (max-width: 1099px) {
  .trapbag-promo {
    align-self: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
  }
}

@keyframes tb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes tb-shine {
  0%       { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

/* Anillo turquesa que late alrededor */
@keyframes tb-glow {
  0%   { box-shadow: 0 10px 30px rgba(0, 51, 102, 0.28), 0 0 0 0 rgba(0, 167, 157, 0.7); }
  100% { box-shadow: 0 10px 30px rgba(0, 51, 102, 0.28), 0 0 0 16px rgba(0, 167, 157, 0); }
}

@keyframes tb-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

@keyframes tb-grow {
  0%, 100% { width: 3rem; }
  50%      { width: 6rem; }
}

/* Usuarios que piden menos movimiento: sólo el brillo, más lento */
@media (prefers-reduced-motion: reduce) {
  .trapbag-promo,
  .trapbag-promo__dot,
  .trapbag-promo__rule { animation: none; }
  .trapbag-promo::before { animation-duration: 8s; }
}

/* ---------- Tarjeta derecha: CTA hacia la página de TrapBag ---------- */

.trapbag-cta {
  gap: 1rem;
  cursor: pointer;
  transition: filter 0.25s ease;
}

.trapbag-cta:hover { filter: brightness(1.12); }

.trapbag-cta:focus-visible {
  outline: 3px solid var(--tb-turquesa);
  outline-offset: 4px;
}

.trapbag-cta__msg {
  display: block;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* Botón falso dentro de la tarjeta (toda la tarjeta es el enlace) */
.trapbag-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--tb-turquesa);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
}

.trapbag-cta__arrow {
  display: inline-block;
  animation: tb-nudge 1.2s ease-in-out infinite;
}

/* Desktop: lado derecho, simétrica a la izquierda; flota desfasada */
@media (min-width: 1100px) {
  .trapbag-cta {
    left: auto;
    right: max(1rem, calc((100% - 480px) / 4 - 150px));
    animation-delay: -2s, -1s;
  }
}

@keyframes tb-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .trapbag-cta__arrow { animation: none; }
}
