.promo-resources {
  --promo-border-color: var(--c-primary-2, #396cfe);
  --promo-border-width: 2px;
  --promo-radius: 18px;
  --promo-tab-radius: 16px;
  --promo-tab-border-muted: #d9e2ff;
  --promo-tab-bg: #f6f8ff;
  --promo-card-bg: #fff;
  margin: 48px 0 48px;
}

/* Card */
.promo-resources__card {
  position: relative;
  background: var(--promo-card-bg);
  border: var(--promo-border-width) solid var(--promo-border-color);
  border-radius: var(--promo-radius);
  border-top-left-radius: 0;
  overflow: visible;
  padding: 40px 32px;
}

.promo-resources__card--single {
  border-top-left-radius: var(--promo-radius);
}

.promo-resources__card--full {
  padding: 40px 36px;
  background: transparent;
  isolation: isolate;
  min-height: 320px;
}

.promo-resources__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  --promo-photo: none;
  background-image: var(--promo-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(0.95);
}

.promo-resources__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.86) 45%,
    rgba(243, 244, 246, 0.82) 100%
  );
  pointer-events: none;
}

.promo-resources__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}

/* Tabs */
.promo-resources__tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  margin: -80px auto 42px -34px;
  padding: 0;
}

.promo-resources__card--full .promo-resources__tabs {
  margin-left: -36px;
}

.promo-resources__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 0;
  margin-left: -10px;
  padding: 0 22px;
  border: var(--promo-border-width) solid var(--promo-tab-border-muted);
  border-bottom: none;
  border-radius: var(--promo-tab-radius) var(--promo-tab-radius) 0 0;
  background: var(--promo-tab-bg);
  color: var(--c-ink, #010b3c);
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  cursor: pointer;
  appearance: none;
}

/* Con solape (margin-left negativo), las de la izquierda van por encima. */
.promo-resources__tab:nth-child(1) { z-index: 3; }
.promo-resources__tab:nth-child(2) { z-index: 2; }
.promo-resources__tab:nth-child(3) { z-index: 1; }

.promo-resources__tab:first-child {
  margin-left: 0;
}

.promo-resources__tab > span,
.promo-resources__tab > em {
  position: relative;
  z-index: 1;
}

.promo-resources__tab em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-primary-2, #396cfe) 12%, #fff);
  color: var(--c-primary-2, #396cfe);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.promo-resources__tab-panel {
  display: none;
}

.promo-resources__tab.is-active {
  background: var(--promo-card-bg);
  border-color: var(--promo-border-color);
  border-bottom-color: var(--promo-card-bg);
  color: var(--c-primary, #0000ff);
  min-height: calc(38px + var(--promo-border-width));
  margin-bottom: calc(-1 * var(--promo-border-width));
  z-index: 5;
}

.promo-resources__tab:hover {
  z-index: 4;
}

.promo-resources__tab.is-active::after {
  content: '';
  position: absolute;
  left: var(--promo-border-width);
  right: var(--promo-border-width);
  bottom: calc(-1 * (var(--promo-border-width) + 1px));
  height: calc(var(--promo-border-width) + 4px);
  background: var(--promo-card-bg);
  pointer-events: none;
}

.promo-resources__tab.is-active em {
  background: var(--c-primary, #0000ff);
  color: #fff;
}

.promo-resources__tab-panel.is-active {
  display: block;
  animation: promoTabIn .42s cubic-bezier(.2, .75, .22, 1) both;
}

/* Badge */
.promo-resources__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 72px;
}

.promo-resources__badge img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(10, 26, 77, 0.12));
}

/* Content */
.promo-resources__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.promo-resources__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-primary-2, #396cfe) 12%, #fff);
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-primary-2, #396cfe);
}

.promo-resources__title {
  margin: 0;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--c-ink, #010b3c);
}

.promo-resources__title-line {
  margin: 6px 0 0;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-primary, #0000ff);
}

.promo-resources__subtitle {
  margin: 12px auto 0;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text, #4a4a4a);
}

.promo-resources__downloads-intro {
  margin: 14px auto 0;
  max-width: 540px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-ink, #010b3c);
}

/* Downloads */
.promo-resources__downloads {
  margin-top: 20px;
}

.promo-resources__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px 20px;
  width: 100%;
}

.promo-resources__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  min-width: min(100%, 140px);
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--c-ink, #010b3c);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.promo-resources__item:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.promo-resources__item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 11vw, 108px);
  height: clamp(88px, 11vw, 108px);
}

.promo-resources__item-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-resources__arrow-circle {
  fill: var(--c-primary-2, #396cfe);
}

.promo-resources__arrow-stroke {
  stroke: #fff;
}

.promo-resources__item-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 100%;
  padding: 0 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .promo-resources__tab-label {
    font-size: 0;
  }

  .promo-resources__tab-label::after {
    content: attr(data-mobile-label);
    font-size: 13px;
  }
}

@keyframes promoTabIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.985);
    filter: blur(4px);
  }
  70% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-resources__item,
  .promo-resources__tab-panel {
    animation: none !important;
    transition: none;
  }
}
