/**
 * Infografía — Acerca de las promociones / armado de pliego
 * Tokens: bundles/iimprimime/css/tokens.css
 */

.promo-info {
  --promo-ok: #2e9b4b;
  --promo-ok-bg: rgba(46, 155, 75, 0.08);
  --promo-warn: #c45c16;
  --promo-warn-bg: rgba(196, 92, 22, 0.08);
  --promo-ink: #1a2b3c;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto 2.5rem;
  color: var(--color-text-body);
  font-size: 1.2rem;
}

.promo-info h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.1rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--promo-ink);
  margin: 0 0 0.75rem;
  text-align: center;
}

.promo-info__lead {
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--color-muted);
  max-width: 52rem;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

/* Intro analogy */
.promo-info__analogy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, var(--color-primary-light), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(255, 136, 0, 0.08), transparent 50%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 720px) {
  .promo-info__analogy {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

.promo-info__analogy-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: var(--font-weight-bold);
  color: var(--promo-ink);
  margin: 0 0 0.95rem;
  text-transform: none;
}

.promo-info__analogy-text p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.65;
}

.promo-info__analogy-text p:last-child {
  margin-bottom: 0;
}

.promo-info__tag {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.95rem;
}

/* Pliego diagram */
.promo-pliego {
  background: var(--color-bg-subtle);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.promo-pliego__label {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.promo-pliego__sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 4 / 3;
  background: #dce6ee;
  border: 2px solid #9aafc0;
  border-radius: 4px;
  padding: 6px;
  position: relative;
}

.promo-pliego__job {
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.95);
  animation: promo-fill 0.55s ease both;
}

.promo-pliego__job--a { background: #21A9E0; animation-delay: 0.05s; }
.promo-pliego__job--b { background: #3d8b6e; animation-delay: 0.15s; }
.promo-pliego__job--c { background: #e08a21; animation-delay: 0.25s; }
.promo-pliego__job--d { background: #6b7fd7; animation-delay: 0.35s; }
.promo-pliego__job--e { background: #c45c7a; animation-delay: 0.45s; }
.promo-pliego__job--f { background: #5a9e3a; animation-delay: 0.55s; }
.promo-pliego__job--g { background: #2a9d8f; animation-delay: 0.65s; }
.promo-pliego__job--h { background: #e76f51; animation-delay: 0.75s; }
.promo-pliego__job--empty {
  background: repeating-linear-gradient(
    -45deg,
    #eef3f7,
    #eef3f7 4px,
    #e4ebf1 4px,
    #e4ebf1 8px
  );
  border: 1px dashed #b8c9d6;
  animation: promo-pulse 2s ease-in-out infinite;
  animation-delay: 0.9s;
  color: transparent;
}

.promo-pliego__job--wide {
  grid-column: span 2;
}

@keyframes promo-fill {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes promo-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.promo-pliego__caption {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.45;
}

/* Process steps */
.promo-info__section-title {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: var(--font-weight-bold);
  color: var(--promo-ink);
  text-align: center;
  margin: 0 0 0.5rem;
  text-transform: none;
}

.promo-info__section-sub {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 1.75rem;
  font-size: 1.25rem;
}

.promo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .promo-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .promo-steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(
      90deg,
      var(--color-primary) 0%,
      var(--color-primary) 100%
    );
    opacity: 0.25;
    z-index: 0;
  }
}

.promo-step {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem 1.45rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .promo-step {
    margin-bottom: 0;
  }
}

.promo-step__num {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-weight-extrabold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.promo-step__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  color: var(--color-primary-dark);
}

.promo-step__icon svg {
  width: 100%;
  height: 100%;
}

.promo-step h3 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--promo-ink);
  margin: 0 0 0.55rem;
  text-transform: none;
}

.promo-step p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Pros / cons */
.promo-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 680px) {
  .promo-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-compare__col {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid transparent;
}

.promo-compare__col--pros {
  background: var(--promo-ok-bg);
  border-color: rgba(46, 155, 75, 0.22);
}

.promo-compare__col--cons {
  background: var(--promo-warn-bg);
  border-color: rgba(196, 92, 22, 0.22);
}

.promo-compare__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  text-transform: none;
}

.promo-compare__col--pros .promo-compare__heading {
  color: var(--promo-ok);
}

.promo-compare__col--cons .promo-compare__heading {
  color: var(--promo-warn);
}

.promo-compare__badge {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  flex-shrink: 0;
}

.promo-compare__col--pros .promo-compare__badge {
  background: var(--promo-ok);
}

.promo-compare__col--cons .promo-compare__badge {
  background: var(--promo-warn);
}

.promo-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promo-compare__list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.55rem;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-compare__list li:last-child {
  border-bottom: none;
}

.promo-compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.promo-compare__col--pros .promo-compare__list li::before {
  background: var(--promo-ok);
}

.promo-compare__col--cons .promo-compare__list li::before {
  background: var(--promo-warn);
}

.promo-compare__list strong {
  font-weight: var(--font-weight-semibold);
}

/* Tips */
.promo-tips {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.promo-tips h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--promo-ink);
  margin: 0 0 1rem;
  text-transform: none;
}

.promo-tips__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promo-tips__list li {
  padding: 0.8rem 0 0.8rem 1.85rem;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 1.18rem;
  line-height: 1.55;
}

.promo-tips__list li:last-child {
  border-bottom: none;
}

.promo-tips__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.promo-tips a {
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-semibold);
}

.promo-info .promo-info__aclaraciones {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .promo-pliego__job,
  .promo-pliego__job--empty {
    animation: none;
  }
}
