/* Beta: portada de consultoría (Inicio). Usa los tokens de styles.css. */
.g-inicio { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.g-inicio .b-hero { grid-column: span 7; }
.g-inicio .b-preview { grid-column: span 5; }
.g-inicio .b-services, .g-inicio .clients, .g-inicio .b-cta { grid-column: span 12; }
.g-inicio .b-cases, .g-inicio .b-steps { grid-column: span 8; }
.g-inicio .b-products, .g-inicio .b-about { grid-column: span 4; }
.b-more { font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.b-more:hover { text-decoration: underline; }

/* hero */
.b-hero { padding: 26px 30px 22px; display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--yellow); }
/* the headline reads like a chart legend: one series per line, coloured like the three service cards below */
.b-hero h1 { margin: 8px 0 16px; font-size: clamp(32px, 2.75vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.b-hero h1 span { display: flex; align-items: center; gap: .32em; }
.b-hero h1 span::before { content: ""; width: .3em; height: .3em; border-radius: .06em; flex-shrink: 0; background: var(--accent); }
.b-hero h1 span:nth-child(2)::before { background: var(--yellow); }
.b-hero h1 span:nth-child(3)::before { background: var(--c2); }
.b-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.b-actions .status { margin: 0 0 0 8px; }
.b-stack { padding-top: 16px; display: flex; align-items: center; gap: 12px; }
.b-stack { border-top: 1px solid var(--line); }
.b-actions { padding-bottom: 20px; }
.b-stack .kicker { margin: 0; white-space: nowrap; }
.b-stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b-stack li { font-size: 12px; padding: 3px 9px; border-radius: 3px; background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line); }

/* product preview: full width, anchored to the top so the app's header and first row always show */
.b-preview { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #f3f2f1; }
.b-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 1; min-height: 0; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.b-preview:hover img { transform: scale(1.015); }
.b-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--card); position: relative; }
.b-cap strong { color: var(--ink); font-weight: 600; }
.b-go { font-weight: 600; color: var(--accent); white-space: nowrap; }

/* services */
.b-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b-svc { padding: 18px 20px; display: flex; flex-direction: column; }
.b-svc .ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.b-svc:nth-child(2) .ico { background: color-mix(in srgb, var(--yellow) 25%, transparent); color: #a87600; }
:root[data-theme="dark"] .b-svc:nth-child(2) .ico { color: var(--yellow); }
.b-svc:nth-child(3) .ico { background: color-mix(in srgb, var(--c2) 20%, transparent); color: var(--c2); }
.b-svc h3 { margin: 12px 0 4px; font-size: 16px; }
.b-svc p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.b-svc .proof { margin: 12px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.b-svc .b-more { margin-top: auto; padding-top: 14px; }

/* cases */
.b-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b-case { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.b-case img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; transition: transform .25s, box-shadow .25s; }
.b-case:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.b-case .kicker { margin: 0 0 2px; }
.b-case strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* own products */
.b-products ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.b-products a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.b-products img { width: 104px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 4px; flex-shrink: 0; }
.b-products .kicker { display: block; margin: 0 0 2px; }
.b-products strong { font-size: 14px; font-weight: 600; }
.b-products a:hover strong { color: var(--accent); }

/* how I work */
.b-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.b-steps .n { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; font-weight: 600; color: var(--ink-3); display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--yellow); }
.b-steps h4 { margin: 0 0 4px; font-size: 14px; }
.b-steps p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* who is behind */
.b-about { display: flex; flex-direction: column; }
.b-who { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.b-who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.b-who h4 { margin: 0 0 2px; font-size: 15px; }
.b-who p { margin: 0; font-size: 13px; color: var(--ink-2); }
.b-about .b-more { margin-top: auto; }

/* closing band */
.b-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: var(--top); color: var(--top-ink); }
.b-cta p { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

/* Sobre mí: the services panel now lives in Inicio, so the profile takes the full row */
.g-resumen .kpis { display: none; }
.g-resumen .profile { grid-column: span 12; }
@media (min-width: 861px) {
  .g-resumen { grid-template-rows: auto minmax(0, 1fr); }
  .g-resumen.has-strip { grid-template-rows: auto auto minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .g-inicio .b-hero, .g-inicio .b-preview, .g-inicio .b-cases, .g-inicio .b-products, .g-inicio .b-steps, .g-inicio .b-about { grid-column: span 12; }
  .b-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .b-hero { padding: 22px 20px; }
  .b-hero h1 { font-size: 34px; }
  .b-lead { font-size: 15px; }
  .b-actions .status { margin: 4px 0 0; flex-basis: 100%; }
  .b-stack { flex-direction: column; align-items: flex-start; gap: 8px; }
  .b-services, .b-case-grid { grid-template-columns: minmax(0, 1fr); }
  .b-cap { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 520px) { .b-steps ol { grid-template-columns: minmax(0, 1fr); } }

