/* ============================================================
   Steelter — Páginas de detalle de módulo
   ============================================================ */

.module-hero {
  background: linear-gradient(180deg, var(--azul01-50) 0%, var(--white) 100%);
  padding-top: 80px;
  padding-bottom: 80px;
}
.module-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .module-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.module-hero-num {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 16px;
}
.module-hero-num .num-big {
  font-size: 56px;
  letter-spacing: -2px;
  text-transform: none;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1;
}
.module-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 16px 0 20px;
  text-wrap: balance;
}
.module-hero .tagline {
  font-size: 20px;
  line-height: 1.5;
  color: var(--brand-primary);
  font-weight: 600;
  margin: 0 0 24px;
}
.module-hero .description {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.module-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sticky breadcrumb */
.breadcrumb {
  padding-top: 24px;
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 600;
}
.breadcrumb-trail a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb-trail a:hover { color: var(--brand-primary); }
.breadcrumb-trail .sep { opacity: 0.5; }
.breadcrumb-trail .current { color: var(--brand-primary); }

/* Big infographic frame */
.infographic-frame {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.infographic-frame .frame-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.infographic-frame .frame-head .title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.infographic-frame .frame-head .meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.infographic-frame .dots {
  display: inline-flex;
  gap: 6px;
}
.infographic-frame .dots span {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--blanco01-100);
}
.infographic-frame .dots span:nth-child(1) { background: #FF6B6B; }
.infographic-frame .dots span:nth-child(2) { background: #FFD166; }
.infographic-frame .dots span:nth-child(3) { background: #4ECDC4; }

/* Sections inside module pages */
.section-tinted { background: var(--bg-subtle); }
.section-dark { background: var(--azul01-900); color: var(--white); }
.section-dark h2,
.section-dark .section-header h2 { color: var(--white); }
.section-dark p,
.section-dark .section-header p { color: rgba(255,255,255,0.75); }
.section-dark .eyebrow { color: var(--brand-accent); }
.section-dark .eyebrow .dot { background: var(--brand-accent); }

/* "Lo que obtienes" feature grid */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .outcomes { grid-template-columns: 1fr; } }
.outcome {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow var(--motion-base), transform var(--motion-base);
}
.outcome:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.outcome .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--azul01-50);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.outcome .icon svg { width: 22px; height: 22px; }
.outcome h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.outcome p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}

/* Interactive demo container */
.demo-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .demo-block { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-controls h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 4px;
}
.demo-controls .control-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-strong);
  margin-bottom: 8px;
  display: block;
}
.demo-controls .pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-controls .pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  background: white;
  cursor: pointer;
  transition: all var(--motion-quick);
  font-family: inherit;
}
.demo-controls .pill:hover { border-color: var(--brand-accent); color: var(--brand-primary); }
.demo-controls .pill.on {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}
.demo-controls input[type="range"] {
  width: 100%;
  accent-color: var(--brand-accent);
}
.demo-controls .range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
}

/* CTA strip mini */
.cta-strip {
  background: var(--brand-primary);
  color: white;
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.cta-strip p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

/* Process diagram (used by several modules) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr; gap: 12px; }
}
.process-step {
  padding: 24px;
  text-align: center;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 32px;
  font-size: 20px;
  color: var(--brand-accent);
  font-weight: 700;
}
@media (max-width: 900px) {
  .process-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -16px; transform: translateX(50%); }
}
.process-step .ico {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--azul01-50);
  border: 1px solid var(--azul01-100);
  display: grid; place-items: center;
  color: var(--brand-accent);
}
.process-step .ico svg { width: 28px; height: 28px; }
.process-step h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.process-step p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}

/* Side-by-side: ¿Por qué importa? */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Related modules */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--motion-base);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--azul01-200);
  transform: translateY(-2px);
}
.related-card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.related-card h4 {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.3px;
}
.related-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.related-card .go {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14px;
}
