/* ══════════════════════════════════════════════════════════════
   29 AÑOS DE EVOLUCIÓN — sección complementaria
   Archivo aparte para no tocar css/ux21-2026.css ni el <style> de
   index.php. Reutiliza tokens (--c-brand-*, --radius*, --shadow-card,
   --transition, --c-muted, --c-content, --c-surface) y clases ya
   existentes (.wrap, .sec-head, .sec-label, .svc-tag/.svc-tags,
   .hero-card.glass-card, .process-mini, .btn-primary/.btn-secondary,
   .reveal). Todo lo de aquí usa el prefijo "story-" para no chocar
   con nada del sitio.
   ══════════════════════════════════════════════════════════════ */

#trayectoria { padding: 88px 0; }

/* ── INTRO / RETRATO ─────────────────────────────────────────── */
.story-intro {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center;
  margin-bottom: 64px;
}
.story-copy .sec-label { margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.story-copy h2 em { font-style: normal; color: var(--c-brand-1); }
.story-copy p { font-size: 1rem; color: var(--c-muted); max-width: 46ch; margin-top: 14px; line-height: 1.7; }

.story-portrait { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.story-portrait img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 22%; }
.story-portrait-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-glass) 20%, transparent);
  backdrop-filter: blur(12px) saturate(var(--saturation));
  -webkit-backdrop-filter: blur(12px) saturate(var(--saturation));
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.story-portrait-badge .asp-sep { opacity: .6; }

/* ── PROSA (historia / resiliencia) ──────────────────────────── */
.story-prose { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; margin-bottom: 28px; }
.story-prose p { font-size: 1rem; color: var(--c-muted); line-height: 1.75; }
.story-prose strong { color: var(--c-content); font-weight: 600; }

.story-pull {
  font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.01em;
  color: var(--c-content); max-width: 26ch; margin: 0 0 64px;
  padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--c-content) 10%, transparent);
}
.story-pull em { font-style: normal; color: var(--c-brand-1); }

.story-braid { margin: -24px 0 64px; }
.story-braid svg { width: 100%; height: 56px; display: block; }
.story-braid path { fill: none; stroke-width: 2; }

/* ── SUBTÍTULOS INTERNOS (h3) ────────────────────────────────── */
.story-subhead { margin: 0 0 32px; }
.story-subhead .story-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-brand-1); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.story-subhead .story-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--c-brand-1); border-radius: 2px; }
.story-subhead h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; max-width: 34ch; }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.story-timeline { position: relative; margin: 0 0 72px 6px; padding-left: 28px; border-left: 1px solid color-mix(in srgb, var(--c-content) 12%, transparent); }
.story-tl-item { position: relative; padding-bottom: 40px; }
.story-tl-item:last-child { padding-bottom: 0; }
.story-tl-item::before {
  content: ''; position: absolute; left: -33.5px; top: 3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-brand-1);
}
.story-tl-item[data-brand="2"]::before { border-color: var(--c-brand-2); }
.story-tl-item[data-brand="3"]::before { border-color: var(--c-brand-3); }
.story-tl-item[data-brand="4"]::before { border-color: var(--c-brand-4); background: var(--c-brand-4); }
.story-tl-year { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.story-tl-title { font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.story-tl-desc { font-size: .92rem; color: var(--c-muted); line-height: 1.6; margin-top: 6px; max-width: 56ch; }

/* ── STACK ────────────────────────────────────────────────────── */
.story-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 72px; }
.story-stack-card {
  background: var(--c-surface); border-radius: var(--radius-sm); padding: 20px;
  box-shadow: var(--shadow-card); transition: transform var(--transition);
}
.story-stack-card:hover { transform: translateY(-3px); }
.story-stack-card h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: 12px;
}

/* ── FILOSOFÍA ────────────────────────────────────────────────── */
.story-philosophy { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.story-philosophy .story-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand-1); margin-bottom: 14px;
}
.story-philosophy blockquote {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
}
.story-philosophy blockquote em { font-style: normal; color: var(--c-brand-1); }
.story-philosophy p.story-phil-sub { color: var(--c-muted); line-height: 1.7; margin-top: 18px; }
.story-philosophy p.story-phil-close {
  font-size: 1.1rem; font-weight: 700; color: var(--c-content); margin-top: 28px;
  padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--c-content) 10%, transparent);
}
.story-philosophy p.story-phil-close em { font-style: normal; color: var(--c-brand-1); }

/* ── FÓRMULA UX21 ─────────────────────────────────────────────── */
.story-equation { text-align: center; margin-bottom: 72px; }
.story-equation .process-mini { justify-content: center; margin-top: 0; margin-bottom: 24px; font-size: 11px; }
.story-equation .process-mini span:not(.sep) { font-size: 11px; }
.story-equation .eq-result { background: var(--c-brand-4) !important; color: #fff !important; }
.story-equation h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; max-width: 24ch; margin: 0 auto; letter-spacing: -.01em; line-height: 1.25;
}
.story-equation h3 em { font-style: normal; color: var(--c-brand-1); }

/* ── EXPERIMENTA ──────────────────────────────────────────────── */
.story-exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 56px; }
.story-exp-card { transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.story-exp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px color-mix(in srgb, var(--c-brand-1) 25%, transparent); }
.story-exp-card .hc-cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--c-brand-1); transition: gap var(--transition);
}
.story-exp-card:hover .hc-cta { gap: 12px; }

/* ── CTA DE CIERRE DE LA SECCIÓN ──────────────────────────────── */
.story-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .story-intro { grid-template-columns: 1fr; }
  .story-portrait { order: -1; max-width: 420px; margin: 0 auto; }
}
