/* indieweb.cl · service-detail.css — estilos compartidos de las páginas /s/<slug>/.
 * Antes vivía duplicado en 11 <style> blocks. Centralizado para iterar 1 vez.
 * Brand-agnostic: usa --cis-accent, --ink, --paper, --line desde tokens del
 * brand cargado por cada index.html.
 */

body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
main#main { max-width: 1060px; margin: 0 auto; padding: 2rem 1rem 4rem; }

.hero { display: grid; grid-template-columns: 80px 1fr; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.hero-logo { width: 80px; height: 80px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.hero-kicker { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cis-accent); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.hero p.tagline { color: var(--muted); margin: 0; font-size: 1.0625rem; }

.pricing-bar { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: var(--shell-bg); border: 1px solid var(--line); margin: 1rem 0 2rem; align-items: center; font-size: 0.875rem; }
.pricing-bar .label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.6875rem; color: var(--muted); }
.pricing-bar .value { color: var(--ink); }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.health-dot.ok { background: var(--c-green); }
.health-dot.err { background: var(--c-red); }

.cta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cta-row a, .cta-row span { padding: 0.375rem 0.875rem; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.cis-brand .cta-row .primary { background: var(--cis-accent); color: #fff; border: 1px solid var(--cis-accent); }
.cis-brand .cta-row .primary:hover { background: var(--cis-accent-hover, #be185d); color: #fff; }
.cta-row .ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.cis-brand .cta-row .ghost:hover { color: var(--cis-accent); border-color: var(--cis-accent); }

h2 { font-weight: 700; font-size: 1.125rem; margin: 2rem 0 0.75rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.5rem; }
.features li { padding: 0.75rem; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; position: relative; padding-left: 2rem; }
.features li::before { content: '→'; position: absolute; left: 0.75rem; color: var(--cis-accent); font-weight: 700; }

table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
th, td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.875rem; vertical-align: top; }
th { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background: var(--shell-bg); }
tbody tr:last-child td { border-bottom: 0; }
.method { font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; padding: 0.0625rem 0.375rem; background: var(--ink); color: var(--paper); }
.method.GET { background: var(--c-green); }
.method.POST { background: var(--c-blue); }
.method.DELETE { background: var(--c-red); }
.path { font-family: var(--font-mono); font-size: 0.8125rem; }
.cost { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.cost.free { color: var(--muted); }

pre { background: var(--shell-bg); border: 1px solid var(--line); padding: 0.75rem; overflow-x: auto; font-size: 0.8125rem; font-family: var(--font-mono); margin: 0; }
.snippet-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-top: 0.5rem; }
.snippet-tabs button { padding: 0.375rem 0.75rem; border: 1px solid var(--line); border-bottom: none; background: var(--shell-bg); color: var(--muted); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.snippet-tabs button.active { background: var(--paper); color: var(--ink); }

.loading { padding: 4rem 2rem; text-align: center; color: var(--muted); }

/* Productos vendibles (F2 · ADR-022). */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; margin: 0.5rem 0 1.5rem; }
.product { background: var(--paper); border: 1px solid var(--line); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 150ms ease, transform 150ms ease; }
.product:hover { border-color: var(--cis-accent); transform: translateY(-1px); }
.product--free { border-left: 3px solid var(--c-green, #0b7e59); }
.product--paid { border-left: 3px solid var(--cis-accent); }
.product__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.product__label { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin: 0; }
.product__price { font-family: var(--font-mono); font-weight: 800; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; }
.product__rec { font-size: 0.6875rem; font-family: var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 0.25rem; }
.product__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.product__meta { display: flex; gap: 0.875rem; font-size: 0.75rem; color: var(--muted); padding-top: 0.5rem; border-top: 1px solid var(--line); }
.product__meta span { font-family: var(--font-mono); }
.cis-brand .product__cta { margin-top: 0.25rem; padding: 0.5rem 0.75rem; background: var(--cis-accent); color: #fff; border: 1px solid var(--cis-accent); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.cis-brand .product__cta:hover { background: var(--cis-accent-hover, #be185d); color: #fff; }
.cis-brand .product__cta.free { background: transparent; color: var(--c-green, #0b7e59); border-color: var(--c-green, #0b7e59); }
.cis-brand .product__cta.free:hover { background: var(--c-green, #0b7e59); color: #fff; }
