/* Kreia · piel "blueprint" para las páginas que usan styles.css (blog, sectores, casos, nosotros, demo, legales).
   Se carga después de styles.css y kb-base.css y reescribe sus componentes con el sistema visual nuevo. */
body { background: var(--bg); font: 400 16px/1.65 var(--f-text); text-transform: none; }
main { padding-top: 0; }
p { color: var(--muted); }
h1, h2, h3, h4,
.page-hero h1, .section-head h2, .cta-panel h2, .board-title, .service-reveal h3 {
  font-family: var(--f-head); font-weight: 500; text-transform: none; letter-spacing: -.03em; font-synthesis: none; color: var(--text);
}

/* ---------- Héroe con marco técnico y lluvia de trazos ---------- */
.page-hero {
  position: relative; overflow: hidden;
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  text-align: left;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--cross), var(--cross)) 0 0 / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 0 0 / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 100% 0 / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 100% 0 / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 0 100% / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 0 100% / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 100% 100% / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 100% 100% / 1px 11px;
  background-repeat: no-repeat;
}
.page-hero .dashes { position: absolute; inset: 0; opacity: .5; }
.page-hero .dashes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent 80%); }
.page-hero .dashes canvas { width: 100%; height: 100%; display: block; }
.page-hero > *:not(.dashes) { position: relative; }
.page-hero h1 { max-width: 20ch; margin: 0; font-size: clamp(36px, 5.2vw, 76px); line-height: 1; letter-spacing: -.04em; }
.page-hero h1 strong { font-weight: 500; color: var(--muted); }
.page-hero p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.6; color: #cfcfca; }
.page-hero .hero-actions, .page-hero .section-actions { justify-content: flex-start; }

.service-kicker, .article-meta, .card-number {
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Secciones ---------- */
.section + .section:not(.dark-band), .section + .cta-panel { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { max-width: 22ch; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.section-head p { max-width: 62ch; font-size: 16px; }
.section.dark-band { border-radius: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: none; }
.section.dark-band::before, .section.dark-band::after { display: none; }

/* ---------- Botones ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  clip-path: none; box-shadow: none; text-shadow: none;
  font: 500 15px/1 var(--f-text); letter-spacing: -.02em; text-transform: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.button::before, .button::after { display: none; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; box-shadow: none; }
.button.primary:hover { background: #ff8a2e; color: var(--accent-ink); }
.button.secondary, .button:not(.primary):not(.text-link) { background: var(--light); color: var(--bg); border: 1px solid transparent; }
.button.secondary:hover { background: #fff; color: var(--bg); }
.button.text-link { min-height: 0; padding: 0; background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.chip { border-radius: var(--radius); clip-path: none; box-shadow: none; padding: 8px 12px; font: 500 13px/1.2 var(--f-text); letter-spacing: -.01em; text-transform: none; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.chip:hover { border-color: var(--muted); }

/* ---------- Tarjetas ---------- */
.card, .process-item, .article-card, .service-card, .client-tile, .side-note,
.answer-block, .article-faq, .article-related, .article-sources, .resource-aside,
.service-tab, .service-reveal, .blog-answer-feature, .blog-topic-group, .section-end-cta {
  border-radius: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: none; clip-path: none;
}
.card::before, .card::after, .process-item::before, .process-item::after, .article-card::before,
.service-card::before, .service-reveal::after, .service-reveal-glow, .booking-form::after { display: none; }
.card:hover, .process-item:hover, .article-card:hover, .service-card:hover { transform: none; box-shadow: none; border-color: #3a3a40; }
.card h3, .process-item h3, .article-card h3, .service-card h3, .side-note h3, .service-reveal h3 { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.card p, .process-item p, .article-card p { font-size: 15px; color: var(--muted); }
.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 22px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--accent); }

/* Bloque de llamada: panel naranja sólido, como los paneles de la home */
.cta-panel { position: relative; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; clip-path: none; padding: clamp(32px, 6vw, 80px); background: var(--accent); }
.cta-panel::before, .cta-panel::after { display: none; }
.cta-panel:hover { transform: none; box-shadow: none; }
.cta-panel h2 { max-width: 18ch; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; color: var(--accent-ink); }
.cta-panel p, .cta-panel .service-kicker { color: rgba(10, 10, 11, .78); }
.cta-panel .button.primary { background: var(--accent-ink); color: var(--text); }
.cta-panel .button.primary:hover { background: #1f1f22; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; padding: 0; }
.faq-item summary { padding: 22px 0; font: 500 18px/1.3 var(--f-head); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.faq-item summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--muted); font: 400 18px/1 var(--f-text); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.faq-item p { padding: 0 0 22px; max-width: 70ch; }

/* ---------- Artículos y guía ---------- */
.article-body { font-size: 17px; }
.article-body h2 { margin-top: 2.2em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.article-body h3 { font-size: 20px; letter-spacing: -.02em; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.75; color: #cfcfca; }
.article-body a:not(.button) { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.side-note { padding: 24px; }
.side-note .button { width: 100%; }
.blog-topic-list strong, .blog-answer-feature h2, .blog-audit-link strong { font-family: var(--f-head); font-weight: 500; letter-spacing: -.02em; }

/* ---------- Pestañas de la antigua página de servicios ---------- */
.service-tab span { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.service-tab strong { font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--f-head); letter-spacing: -.03em; }
.service-tab.is-active { border-color: var(--accent); }

/* ---------- Legales ---------- */
.legal-page h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; }
.legal-page p, .legal-page li { color: #cfcfca; }

/* ---------- Formularios ---------- */
.field label, .choice-field legend, .slot-field legend, .consent-field { font: 500 13px/1.3 var(--f-text); letter-spacing: -.01em; text-transform: none; color: #cfcfca; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  border-radius: var(--radius); clip-path: none; box-shadow: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 400 15px/1.4 var(--f-text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.choice-field label, .slot-field label { border-radius: var(--radius); }
[style*="font-weight: 9"], b, .card strong, .process-item strong { font-weight: 600; }

/* ---------- Página de enlaces (ig) ---------- */
.bio-page main { padding-top: 40px; }
.bio-link { border-radius: var(--radius); clip-path: none; box-shadow: none; }

@media (max-width: 720px) { .page-hero { padding: 24px; } }

/* Fusión con la versión Atmos: el remolino se ve detrás del héroe */
.page-hero { background: transparent; border-color: rgba(244, 244, 241, .12); }
.page-hero .dashes { opacity: .35; }
.page-hero .dashes::after { background: linear-gradient(90deg, rgba(10, 10, 11, .75) 15%, transparent 80%); }
.button { border-radius: var(--pill); }
.faq-item summary::after { border-radius: var(--pill); }
