/*
 * Reusable components, styled to match Landing.html + the handoff design
 * spec (section 5: shape/type rules). These back the [entropica_*]
 * shortcodes in includes/class-shortcodes.php AND can be applied by hand to
 * any markup (course pages, custom templates, Elementor text/HTML widgets).
 */

/* generic surface card */
.ent-card-surface {
  background: var(--ent-surface);
  border: 1px solid var(--ent-line);
  border-radius: var(--ent-radius);
  padding: 24px;
}

/* pill / eyebrow label, e.g. "Preparación en línea" on the hero */
.ent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ent-accent-soft);
  color: var(--ent-accent);
  border-radius: var(--ent-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

.ent-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ent-accent);
  margin-bottom: 10px;
}

/* badge / chip, e.g. quiz status, plan "most popular", active/inactive filter */
.ent-badge {
  display: inline-block;
  border-radius: var(--ent-radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.ent-badge-accent { background: var(--ent-accent-soft); color: var(--ent-accent); }
.ent-badge-warm   { background: #FBEADF; color: var(--ent-warm); }
.ent-badge-success{ background: var(--ent-success-soft); color: var(--ent-success); }
.ent-badge-warning{ background: var(--ent-warning-soft); color: var(--ent-warning); }
.ent-badge-danger { background: var(--ent-danger-soft); color: var(--ent-danger); }

/* "chip activo/inactivo" pattern from the handoff spec's button/chip row */
.ent-chip-active   { background: var(--ent-accent-soft); color: var(--ent-accent); border-radius: var(--ent-radius-pill); padding: 7px 14px; font-size: 13px; font-weight: 700; }
.ent-chip-inactive { background: var(--ent-surface-2); color: var(--ent-ink-2); border-radius: var(--ent-radius-pill); padding: 7px 14px; font-size: 13px; font-weight: 700; }

/* progress bar, used for course %, quiz score, streaks (spec: 6-9px, rounded) */
.ent-progress {
  height: 8px;
  background: var(--ent-surface-2);
  border-radius: var(--ent-radius-pill);
  overflow: hidden;
}
.ent-progress > span {
  display: block;
  height: 100%;
  background: var(--ent-accent);
  border-radius: var(--ent-radius-pill);
}
.ent-progress.ent-progress-thin { height: 6px; }
.ent-progress.ent-progress-thick { height: 9px; }

/* stat tile, e.g. "days streak", "XP this week" */
.ent-stat-tile {
  background: var(--ent-surface);
  border: 1px solid var(--ent-line);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
}
.ent-stat-tile .ent-stat-value {
  font-family: var(--ent-font-head);
  font-size: 24px;
  font-weight: 600;
}
.ent-stat-tile .ent-stat-label {
  font-size: 12px;
  color: var(--ent-ink-2);
}

/* step card ("how it works" numbered card) */
.ent-step-card {
  background: var(--ent-surface);
  border: 1px solid var(--ent-line);
  border-radius: 18px;
  padding: 28px;
}
.ent-step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ent-accent-soft);
  color: var(--ent-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ent-font-head);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}

/* pricing card */
.ent-price-card {
  position: relative;
  background: var(--ent-surface);
  border: 1px solid var(--ent-line);
  border-radius: var(--ent-radius);
  padding: 30px 26px;
}
.ent-price-card.ent-price-featured {
  border-color: var(--ent-accent);
  box-shadow: var(--ent-shadow-card);
}
.ent-price-card .ent-price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ent-accent);
  color: var(--ent-accent-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--ent-radius-pill);
  letter-spacing: .03em;
  white-space: nowrap;
}
.ent-price-card .ent-price-name {
  font-family: var(--ent-font-head);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ent-price-card .ent-price-tagline {
  font-size: 14px;
  color: var(--ent-ink-2);
  margin-bottom: 18px;
}
.ent-price-card .ent-price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.ent-price-card .ent-price-amount b {
  font-family: var(--ent-font-head);
  font-size: 42px;
  font-weight: 600;
}
.ent-price-card .ent-price-amount span {
  font-size: 15px;
  color: var(--ent-ink-2);
}
.ent-price-card .ent-price-sub {
  font-size: 13px;
  color: var(--ent-accent);
  font-weight: 600;
  margin-bottom: 22px;
}
.ent-price-card hr {
  border: none;
  height: 1px;
  background: var(--ent-line);
  margin: 22px 0;
}
.ent-price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ent-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.ent-price-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ent-accent-soft);
  color: var(--ent-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* final CTA banner (dark) */
.ent-cta-banner {
  background: var(--ent-ink-strong);
  border-radius: 26px;
  padding: 60px;
  text-align: center;
  color: #F7F4EE;
}
.ent-cta-banner h2 {
  font-family: var(--ent-font-head);
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  color: #F7F4EE;
}
.ent-cta-banner p {
  font-size: 18px;
  opacity: .78;
  max-width: 520px;
  margin: 0 auto 30px;
}

/* stats strip (3-up numbers, e.g. hero problem strip) */
.ent-stats-strip {
  background: var(--ent-surface);
  border: 1px solid var(--ent-line);
  border-radius: var(--ent-radius-lg);
  padding: 40px;
  display: grid;
  gap: 30px;
  text-align: center;
}
.ent-stats-strip .ent-stats-item + .ent-stats-item {
  border-left: 1px solid var(--ent-line);
}
.ent-stats-strip .ent-stats-number {
  font-family: var(--ent-font-head);
  font-size: 46px;
  font-weight: 600;
  color: var(--ent-accent);
}
.ent-stats-strip .ent-stats-caption {
  font-size: 15px;
  color: var(--ent-ink-2);
  margin-top: 4px;
}

/* subject color swatch, e.g. course card accent dot */
.ent-subject-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

@media (max-width: 782px) {
  .ent-stats-strip { grid-template-columns: 1fr !important; }
  .ent-stats-strip .ent-stats-item + .ent-stats-item {
    border-left: none;
    border-top: 1px solid var(--ent-line);
    padding-top: 20px;
  }
}
