/* ============================================
   MELI UX Challenge — Components
   All reusable UI components
   ============================================ */

/* ── Route Nav (Vertical Roadmap Sidebar) ── */
.route-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 4px 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.route-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-20px);
}

/* Vertical track line */
.route-nav__track {
  position: absolute;
  left: 7px; /* center of the 16px dot */
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Animated fill line (grows from top as user scrolls) */
.route-nav__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
  transition: height 0.4s var(--ease-in-out);
}

/* Each node row */
.route-nav__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  cursor: pointer;
}

/* The dot */
.route-nav__dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
  background: var(--surface-background);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

/* Label */
.route-nav__label {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--text-placeholder);
  white-space: nowrap;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

/* ── Visited state ── */
.route-nav__node.is-visited .route-nav__dot {
  background: var(--border-medium);
  border-color: var(--border-medium);
}

.route-nav__node.is-visited .route-nav__label {
  opacity: 0.45;
  transform: translateX(0);
}

/* ── Active state ── */
.route-nav__node.is-active .route-nav__dot {
  background: var(--brand-secondary);   /* #2968C8 — contraste 5.1:1 sobre blanco */
  border-color: var(--brand-secondary);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(41, 104, 200, 0.15);
}

.route-nav__node.is-active .route-nav__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--brand-secondary);
  font-weight: var(--weight-bold);
  font-size: 12px;
}

/* ── Hover on non-active ── */
.route-nav__node:not(.is-active):hover .route-nav__dot {
  border-color: var(--brand-secondary);
  transform: scale(1.1);
}

.route-nav__node:not(.is-active):hover .route-nav__label {
  opacity: 0.7;
  transform: translateX(0);
  color: var(--text-secondary);
}

/* ── Soon state (not clickable) ── */
.route-nav__node--soon {
  cursor: default;
  pointer-events: none;
}

.route-nav__node--soon .route-nav__dot {
  border-style: dashed;
  opacity: 0.4;
}

.route-nav__node--soon .route-nav__label {
  opacity: 0.3;
  transform: translateX(0);
  font-size: 10px;
  font-style: italic;
}


/* ── Section Intro ── */
.section-intro {
  margin-bottom: var(--space-2xl);
}

.section-intro__number {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-intro__number::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.section-intro__title {
  font-size: var(--font-display-lg);
  line-height: var(--lh-display-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-intro__subtitle {
  font-size: var(--font-heading-lg);
  line-height: var(--lh-heading-lg);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
}

/* ── Content Block ── */
.content-block {
  max-width: none;
  margin-bottom: var(--space-2xl);
}

.content-block p {
  font-size: var(--font-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block--full {
  max-width: none;
}

/* ── Metric Card ── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.metric-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card__value {
  font-size: 36px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.metric-card__value--yellow {
  color: var(--brand-secondary);
}

.metric-card__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

/* ── Quote Block ── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.quote-block {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-medium);
  position: relative;
  transition: border-left-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.quote-block:hover {
  border-left-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.quote-block__icon {
  font-size: 28px;
  line-height: 1;
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.quote-block__text {
  font-size: var(--font-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.quote-block__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.quote-block__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.quote-block__name {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.quote-block__meta {
  font-size: var(--font-body-sm);
  color: var(--text-placeholder);
}

/* ── Insight Card ── */
.insight-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 4px);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.insight-card__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.insight-card__text {
  font-size: var(--font-heading-md);
  line-height: var(--lh-heading-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* ── Highlight Block (full-width statement) ── */
.highlight-block {
  background: var(--brand-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.highlight-block__text {
  font-size: var(--font-heading-xl);
  line-height: var(--lh-heading-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-inverse);
}

.highlight-block__label {
  font-size: var(--font-body-sm);
  color: rgba(255, 255, 255, 0.65);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

/* ── NPS Highlight ── */
.nps-highlight {
  text-align: center;
  padding: var(--space-2xl) 0;
  margin: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.nps-highlight__value {
  font-size: 56px;
  font-weight: var(--weight-bold);
  color: var(--feedback-error);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.nps-highlight__label {
  font-size: var(--font-heading-md);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

/* ── Split Layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin: var(--space-2xl) 0;
}

.split-layout--reverse {
  direction: rtl;
}

.split-layout--reverse > * {
  direction: ltr;
}

.split-layout__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.split-layout__visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ── Persona Card ── */
.persona-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-sm);
}

.persona-card__image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-primary-soft);
  flex-shrink: 0;
}

.persona-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-card__name {
  font-size: var(--font-heading-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.persona-card__role {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.persona-card__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
}

.persona-card__detail {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
}

.persona-card__detail-label {
  font-size: var(--font-body-sm);
  color: var(--text-placeholder);
  font-weight: var(--weight-medium);
  display: block;
  margin-bottom: 2px;
}

.persona-card__frustration {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  padding: var(--space-md);
  background: var(--feedback-error-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--feedback-error);
}

.persona-card__frustration strong {
  color: var(--feedback-error);
  font-weight: var(--weight-semibold);
}

/* ── HMW Block ── */
.hmw-block {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.hmw-block__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--interactive-action);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.hmw-block__question {
  font-size: var(--font-heading-xl);
  line-height: var(--lh-heading-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hmw-block__sub-questions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hmw-block__sub-question {
  font-size: var(--font-body-lg);
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
}

.hmw-block__sub-question::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--interactive-action);
  font-weight: var(--weight-semibold);
}

/* ── Principles Strip ── */
.principles-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.principle-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.principle-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.principle-card__number {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.principle-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-body-md);
}

.principle-card__desc {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

/* ── Direction Card ── */
.direction-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 2px solid var(--brand-primary);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.direction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

.direction-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--brand-primary);
  color: var(--text-primary);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.direction-card__title {
  font-size: var(--font-heading-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.direction-card__desc {
  font-size: var(--font-body-lg);
  color: var(--text-secondary);
}

/* ── Benchmark Grid ── */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.benchmark-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.benchmark-card:hover {
  border-color: var(--interactive-action);
  box-shadow: var(--shadow-sm);
}

.benchmark-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: var(--font-heading-lg);
}

.benchmark-card__name {
  font-size: var(--font-body-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.benchmark-card__pattern {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-body-md);
}

.benchmark-card__tag {
  display: inline-block;
  font-size: var(--font-body-sm);
  font-weight: var(--weight-medium);
  color: var(--interactive-action);
  background: rgba(52, 131, 250, 0.08);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ── Heuristics Strip ── */
.heuristics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.heuristic-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-body-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: default;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  position: relative;
}

.heuristic-pill:hover {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
}

.heuristic-pill__number {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--brand-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Pains & Gains ── */
.pains-gains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.pains-gains__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pains-gains__header {
  font-size: var(--font-heading-md);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pains-gains__header--pain {
  color: var(--feedback-error);
}

.pains-gains__header--gain {
  color: var(--feedback-success);
}

.pain-item,
.gain-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--border-subtle);
  font-size: var(--font-body-md);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
  display: flex;
  align-items: start;
  gap: var(--space-sm);
}

.pain-item {
  border-left: 3px solid var(--feedback-error);
}

.gain-item {
  border-left: 3px solid var(--feedback-success);
}

.pain-item__severity,
.gain-item__impact {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pain-item__severity--alta {
  background: var(--feedback-error-soft);
  color: var(--feedback-error);
}

.pain-item__severity--media {
  background: rgba(255, 119, 51, 0.08);
  color: var(--feedback-warning);
}

.gain-item__impact {
  background: var(--feedback-success-soft);
  color: var(--feedback-success);
}

/* ── Priority Table ── */
.priority-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-2xl) 0;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.priority-table th {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-background-alt);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.priority-table td {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.priority-table tr:last-child td {
  border-bottom: none;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  min-width: 32px;
}

.priority-badge--p0 {
  background: var(--brand-primary);
  color: var(--text-primary);
}

.priority-badge--p1 {
  background: var(--brand-secondary-soft);
  color: var(--brand-secondary);
}

.priority-badge--p2 {
  background: var(--surface-background-alt);
  color: var(--text-secondary);
}

/* ── Assumptions Table ── */
.assumptions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-xl) 0;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.assumptions-table th {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-background-alt);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.assumptions-table td {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: var(--lh-body-md);
}

.assumptions-table tr:last-child td {
  border-bottom: none;
}

.assumptions-table td:first-child {
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: var(--brand-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--subtle {
  background: var(--surface-background-alt);
  color: var(--text-secondary);
}

/* ── Scroll CTA ── */
.scroll-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--font-body-md);
  font-weight: var(--weight-medium);
  cursor: pointer;
  margin-top: var(--space-2xl);
  transition: color var(--duration-fast) var(--ease-out);
}

.scroll-cta:hover {
  color: var(--text-primary);
}

.scroll-cta__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: var(--text-primary);
  font-size: 16px;
  animation: bounceDown 1.5s var(--ease-in-out) infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Footer ── */
.site-footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.site-footer__title {
  font-size: var(--font-heading-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-inverse);
}

.site-footer__text {
  font-size: var(--font-body-md);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: var(--brand-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-top: var(--space-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Experience Audit ── */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.audit-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.audit-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.audit-card__issues {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.audit-card__issue {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
  line-height: var(--lh-body-md);
}

.audit-card__issue::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--feedback-warning);
}

/* ── Sub-heading ── */
.sub-heading {
  font-size: var(--font-heading-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}

.sub-heading:first-child {
  margin-top: 0;
}

/* ── Source Tag (credibility labels) ── */
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: var(--space-sm);
  line-height: 1;
  position: relative;
  top: -1px;
}

.source-tag--brief {
  background: rgba(41, 104, 200, 0.10);
  color: var(--brand-secondary);
}

.source-tag--inferencia {
  background: rgba(130, 80, 200, 0.10);
  color: #6B42B0;
}

.source-tag--benchmark {
  background: rgba(0, 166, 80, 0.10);
  color: var(--feedback-success);
}

.source-tag--supuesto {
  background: rgba(255, 119, 51, 0.10);
  color: var(--feedback-warning);
}

/* Source tag within sub-headings */
.sub-heading .source-tag {
  font-size: 9px;
  top: -2px;
}

/* ── Executive Summary ── */
.exec-summary {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl);
  margin: 0 auto;
  max-width: var(--max-width);
  position: relative;
  box-shadow: var(--shadow-md);
}

.exec-summary__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.exec-summary__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
}

.exec-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.exec-summary__item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-background-alt);
}

.exec-summary__item-label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.exec-summary__item-value {
  font-size: var(--font-body-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
}

.exec-summary__item-value strong {
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
}

/* ── Decision Grid (Solution section) ── */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.decision-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.decision-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.decision-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 18px;
}

.decision-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-body-md);
}

.decision-card__desc {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

/* ── Pain Resolution Table ── */
.pain-resolution {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.pain-resolution__row {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 0.6fr;
  gap: var(--space-md);
  align-items: center;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.pain-resolution__pain {
  font-size: var(--font-body-md);
  color: var(--feedback-error);
  font-weight: var(--weight-medium);
}

.pain-resolution__arrow {
  font-size: 16px;
  color: var(--text-placeholder);
}

.pain-resolution__decision {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.pain-resolution__screen {
  font-size: var(--font-body-sm);
  color: var(--brand-secondary);
  font-weight: var(--weight-semibold);
  background: var(--brand-secondary-soft);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
}

/* ── Hypothesis Banner ── */
.hypothesis-banner {
  background: rgba(255, 119, 51, 0.06);
  border: 1px solid rgba(255, 119, 51, 0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.hypothesis-banner__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hypothesis-banner__text {
  font-size: var(--font-body-md);
  line-height: var(--lh-body-md);
  color: var(--text-primary);
}

.hypothesis-banner__text strong {
  font-weight: var(--weight-semibold);
  color: var(--feedback-warning);
}

/* ── KPI Hero (Impact section) ── */
.kpi-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
}

.kpi-hero__value {
  font-size: 72px;
  font-weight: var(--weight-bold);
  color: var(--feedback-success);
  letter-spacing: -0.04em;
  line-height: 1;
}

.kpi-hero__label {
  font-size: var(--font-heading-md);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  margin-top: var(--space-sm);
}

.kpi-hero__sublabel {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Impact Metrics Grid ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.impact-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.impact-card__value {
  font-size: var(--font-heading-xl);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  margin-bottom: var(--space-xs);
}

.impact-card__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

.impact-card__type {
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-sm);
}

/* ── Validation Table ── */
.validation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-xl) 0;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.validation-table th {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-background-alt);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.validation-table td {
  font-size: var(--font-body-md);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: var(--lh-body-md);
}

.validation-table tr:last-child td {
  border-bottom: none;
}

.validation-table td:first-child {
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Risk Cards ── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.risk-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--feedback-warning);
}

.risk-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.risk-card__desc {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
  margin-bottom: var(--space-sm);
}

.risk-card__mitigation {
  font-size: var(--font-body-sm);
  color: var(--feedback-success);
  font-weight: var(--weight-medium);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

/* ── Closing Block ── */
.closing-block {
  background: var(--brand-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0 0;
}

.closing-block__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.closing-block__item-label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.closing-block__item-text {
  font-size: var(--font-body-lg);
  color: var(--text-inverse);
  line-height: var(--lh-body-lg);
  font-weight: var(--weight-medium);
}

/* ── Section Hypothesis Notice ── */
.section-notice {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  font-style: normal;
  font-weight: var(--weight-medium);
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 119, 51, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 119, 51, 0.18);
}

.section-notice::before {
  content: '△';
  font-style: normal;
  color: var(--feedback-warning);
  font-size: 12px;
  font-weight: var(--weight-bold);
}

/* ── Bullet List (for exec summary / solution) ── */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bullet-list li {
  font-size: var(--font-body-lg);
  color: var(--text-primary);
  line-height: var(--lh-body-lg);
  padding-left: var(--space-lg);
  position: relative;
}

.bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
  font-weight: var(--weight-semibold);
}

/* ══════════════════════════════════════
   06 · DISEÑO DE LA SOLUCIÓN
   ══════════════════════════════════════ */

/* ── Flow Image (User Flow full-width) ── */
.flow-image {
  width: 100%;
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.flow-image__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg);
}

.flow-image__img {
  display: block;
  min-width: 900px;
  width: 100%;
  height: auto;
}

.flow-image__caption {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
}

/* ── Screen Gallery (grid de pantallas) ── */
.screen-gallery {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.screen-gallery--flow {
  grid-template-columns: 1fr;
}

.screen-gallery--wireframes {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.screen-gallery--wireframes .screen-gallery__img-wrap {
  background: var(--surface-background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  min-height: 420px;
}

.screen-gallery--wireframes .screen-gallery__img {
  width: auto;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.screen-gallery--highfi {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.screen-gallery--highfi .screen-gallery__img-wrap {
  background: var(--surface-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.screen-gallery--highfi .screen-gallery__img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.screen-gallery__item {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screen-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screen-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-gallery__img-wrap {
  background: #f0f0f0;
  overflow: hidden;
}

.screen-gallery__img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-gallery__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-bg);
}

/* ── Screen Placeholder (estado vacío) ── */
.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-bg);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color 0.3s ease;
}

.screen-placeholder:hover {
  border-color: var(--brand-secondary);
}

.screen-placeholder__icon {
  font-size: 40px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.screen-placeholder__text {
  font-size: var(--font-body-sm);
  color: var(--text-placeholder);
  font-weight: var(--weight-medium);
}

.screen-placeholder--small {
  min-height: 200px;
}

.screen-placeholder--small .screen-placeholder__icon {
  font-size: 28px;
}

/* ── Figma CTA Card ── */
.figma-cta {
  margin-top: var(--space-xl);
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) 16px;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.figma-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(162,89,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.figma-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.figma-cta__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-cta__icon svg {
  width: 48px;
  height: 48px;
}

.figma-cta__content {
  flex: 1;
}

.figma-cta__title {
  font-size: var(--font-h3);
  font-weight: var(--weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.figma-cta__desc {
  font-size: var(--font-body);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.figma-cta__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: #ffffff;
  color: #1e1e2e;
  font-size: var(--font-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.figma-cta__button:hover {
  background: #f0f0f0;
  transform: scale(1.04);
}

.figma-cta__button svg {
  width: 16px;
  height: 16px;
}

/* ── Section Divider (between sub-blocks) ── */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--border-subtle);
  margin: var(--space-xxl) 0;
}

/* ══════════════════════════════════════
   v2 ITERATION — New Components
   ══════════════════════════════════════ */

/* ── Context Card (replaces Persona) ── */
.context-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-sm);
}

.context-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.context-card__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.context-card__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
  margin-right: var(--space-sm);
}

.context-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.context-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-background-alt);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
}

.context-card__item:hover {
  background: var(--brand-primary-soft);
}

.context-card__icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.context-card__item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-card__item-label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.context-card__item-value {
  font-size: var(--font-body-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
}

.context-card__quote {
  padding: var(--space-md) var(--space-lg);
  background: var(--feedback-error-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--feedback-error);
  font-size: var(--font-body-lg);
  font-style: italic;
  color: var(--text-primary);
  line-height: var(--lh-body-lg);
}

.context-card__quote strong {
  font-style: normal;
  font-weight: var(--weight-semibold);
  color: var(--feedback-error);
}

/* ── Hypothesis Card (replaces Impact metric) ── */
.hypothesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.hypothesis-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hypothesis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-secondary);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.hypothesis-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hypothesis-card:hover::before {
  opacity: 1;
}

.hypothesis-card__metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.hypothesis-card__value {
  font-size: var(--font-heading-xl);
  font-weight: var(--weight-bold);
  color: var(--brand-secondary);
  letter-spacing: -0.02em;
}

.hypothesis-card__baseline {
  font-size: var(--font-body-sm);
  color: var(--text-placeholder);
  font-weight: var(--weight-medium);
}

.hypothesis-card__name {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
}

.hypothesis-card__hypothesis {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  line-height: var(--lh-body-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-secondary-soft);
  border-radius: var(--radius-sm);
}

.hypothesis-card__hypothesis strong {
  font-weight: var(--weight-semibold);
  color: var(--brand-secondary);
}

.hypothesis-card__reason {
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

.hypothesis-card__reason strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.hypothesis-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.hypothesis-card__tag--operativa {
  background: var(--feedback-success-soft);
  color: var(--feedback-success);
}

.hypothesis-card__tag--cx {
  background: rgba(41, 104, 200, 0.08);
  color: var(--brand-secondary);
}

.hypothesis-card__tag--negocio {
  background: var(--brand-primary-soft);
  color: #B08C00;
}

.hypothesis-card__tag--ux {
  background: rgba(130, 80, 200, 0.10);
  color: #6B42B0;
}

.hypothesis-card__tag--norte {
  background: var(--feedback-error-soft);
  color: var(--feedback-error);
}

/* ── Scope Table (Fuera de alcance) ── */
.scope-section {
  margin: var(--space-2xl) 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.scope-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
  transition: background var(--duration-fast) var(--ease-out);
}

.scope-item:hover {
  background: var(--surface-background-alt);
}

.scope-item__what {
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--lh-body-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.scope-item__what::before {
  content: '✕';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--text-placeholder);
  background: var(--surface-background-alt);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 1px;
}

.scope-item__why {
  font-size: var(--font-body-md);
  color: var(--text-secondary);
  line-height: var(--lh-body-md);
}

/* ── Edge Case Grid (Diseño para la fricción) ── */
.edge-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.edge-case-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.edge-case-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.edge-case-card__title-icon {
  font-size: 18px;
}

.edge-case-card__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.edge-case-card__col {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

.edge-case-card__col--before {
  background: var(--feedback-error-soft);
  border-left: 2px solid var(--feedback-error);
}

.edge-case-card__col--after {
  background: var(--feedback-success-soft);
  border-left: 2px solid var(--feedback-success);
}

.edge-case-card__col-label {
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  display: block;
}

.edge-case-card__col--before .edge-case-card__col-label {
  color: var(--feedback-error);
}

.edge-case-card__col--after .edge-case-card__col-label {
  color: var(--feedback-success);
}

/* ── Resilient Card (Diseño resiliente) ── */
.resilient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.resilient-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.resilient-card__title {
  font-size: var(--font-body-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.resilient-card__title-icon {
  font-size: 18px;
}

.resilient-card__branches {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.resilient-card__branch {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-body-sm);
  color: var(--text-primary);
  line-height: var(--lh-body-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.resilient-card__branch--if {
  background: var(--feedback-success-soft);
  border-left: 2px solid var(--feedback-success);
}

.resilient-card__branch--else {
  background: rgba(255, 119, 51, 0.06);
  border-left: 2px solid var(--feedback-warning);
}

.resilient-card__branch-label {
  font-weight: var(--weight-bold);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 1px;
}

.resilient-card__branch--if .resilient-card__branch-label {
  background: rgba(0, 166, 80, 0.15);
  color: var(--feedback-success);
}

.resilient-card__branch--else .resilient-card__branch-label {
  background: rgba(255, 119, 51, 0.15);
  color: var(--feedback-warning);
}

/* ── Decision Trade-off Note ── */
.decision-tradeoff {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(41, 104, 200, 0.05);
  border: 1px solid rgba(41, 104, 200, 0.12);
  border-radius: var(--radius-md);
  font-size: var(--font-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

.decision-tradeoff strong {
  font-weight: var(--weight-semibold);
  color: var(--brand-secondary);
}

/* ── Section Text (paragraph under sub-heading) ── */
.section-text {
  font-size: var(--font-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ── Lightbox Modal ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox__label {
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox__close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}

/* Cursor pointer en cards de imágenes */
.screen-gallery__item {
  cursor: zoom-in;
}
