/* ═══════════════════════════════════════════════════════════════
   BUILGENT — Landing por sector (extiende styles-home.css, tema CLARO)
   v2 Ink & Paper (2026-07-05). Un acento por nicho, oscurecido para
   contraste AA sobre papel. Sin gradient-text, sin glows, sin glass.
   ═══════════════════════════════════════════════════════════════ */

/* ─── ACENTO POR SECTOR (text-safe sobre blanco) ─── */
body.sector-page {
  --theme-primary: #B45309;
  --theme-tint-06: rgba(180, 83, 9, 0.06);
  --theme-tint-12: rgba(180, 83, 9, 0.12);
  --theme-tint-30: rgba(180, 83, 9, 0.30);
  /* El hub usa var(--diamond) inline en el H1: en página clara = acento marca */
  --diamond: #0B5FD9;
}
body.theme-inmobiliaria { --theme-primary: #B45309; --theme-tint-06: rgba(180,83,9,0.06); --theme-tint-12: rgba(180,83,9,0.12); --theme-tint-30: rgba(180,83,9,0.30); }
body.theme-clinica      { --theme-primary: #0E7490; --theme-tint-06: rgba(14,116,144,0.06); --theme-tint-12: rgba(14,116,144,0.12); --theme-tint-30: rgba(14,116,144,0.30); }
body.theme-restaurante  { --theme-primary: #C2410C; --theme-tint-06: rgba(194,65,12,0.06); --theme-tint-12: rgba(194,65,12,0.12); --theme-tint-30: rgba(194,65,12,0.30); }
body.theme-peluqueria   { --theme-primary: #BE185D; --theme-tint-06: rgba(190,24,93,0.06); --theme-tint-12: rgba(190,24,93,0.12); --theme-tint-30: rgba(190,24,93,0.30); }
body.theme-abogados     { --theme-primary: #1D4ED8; --theme-tint-06: rgba(29,78,216,0.06); --theme-tint-12: rgba(29,78,216,0.12); --theme-tint-30: rgba(29,78,216,0.30); }
body.theme-fisio        { --theme-primary: #047857; --theme-tint-06: rgba(4,120,87,0.06); --theme-tint-12: rgba(4,120,87,0.12); --theme-tint-30: rgba(4,120,87,0.30); }
body.theme-autoescuela  { --theme-primary: #A16207; --theme-tint-06: rgba(161,98,7,0.06); --theme-tint-12: rgba(161,98,7,0.12); --theme-tint-30: rgba(161,98,7,0.30); }

body.sector-page .section-eyebrow,
body.sector-page .scene-eyebrow { color: var(--theme-primary); }
body.sector-page .section-title .accent { color: var(--theme-primary); font-style: italic; }

/* ─── BREADCRUMB ─── */
.sector-breadcrumb {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
@media (min-width: 1024px) { .sector-breadcrumb { padding: 0 32px; } }
.sector-breadcrumb a { color: var(--muted); transition: color 0.15s; }
.sector-breadcrumb a:hover { color: var(--ink); }
.sector-breadcrumb .sep { margin: 0 8px; color: var(--faint); }
.sector-breadcrumb .current { color: var(--ink); }

/* ─── HERO ─── */
.sector-hero {
  position: relative;
  padding: 56px 0 80px;
}
@media (min-width: 1024px) { .sector-hero { padding: 72px 0 112px; } }

.sector-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
@media (min-width: 960px) {
  .sector-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    padding: 0 32px;
  }
}

.sector-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--theme-primary);
}
.sector-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--theme-primary);
}

.sector-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 18px;
  color: var(--ink);
  max-width: 20ch;
}

.sector-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px;
  max-width: 56ch;
}
.sector-sub strong { color: var(--ink); }

.sector-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}

.sector-hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -32px rgba(21, 24, 30, 0.35);
  aspect-ratio: 4 / 3;
}
.sector-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 11, 16, 0.35));
}

/* ─── SECCIONES ─── */
.sector-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .sector-section { padding: 112px 0; } }

.sector-section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) { .sector-section-inner { padding: 0 32px; } }

/* Narrativa */
.sector-narrative {
  max-width: 70ch;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 16px;
}
.sector-narrative p + p { margin-top: 18px; }
.sector-narrative strong { color: var(--ink); }

/* Pipeline */
.sector-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) { .sector-pipeline { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sector-pipeline { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.sp-step {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.sp-step:hover {
  border-color: var(--theme-tint-30);
  box-shadow: 0 12px 32px -20px rgba(21, 24, 30, 0.25);
}
.sp-step-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--theme-primary);
}
.sp-step-title {
  font-family: var(--font-display); font-size: 22px;
  color: var(--ink); margin-top: 12px; line-height: 1.15;
}
.sp-step-text {
  font-size: 14px; color: var(--muted);
  margin-top: 12px; line-height: 1.55;
}

/* Stats */
.sector-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) { .sector-stats { grid-template-columns: repeat(3, 1fr); } }
.sector-stat {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--theme-tint-06);
  border: 1px solid var(--theme-tint-12);
  text-align: center;
}
.sector-stat-num {
  font-family: var(--font-display);
  font-size: 46px; line-height: 1;
  color: var(--theme-primary);
  font-variant-numeric: tabular-nums;
}
.sector-stat-lbl {
  font-size: 13px; color: var(--muted);
  margin-top: 8px; line-height: 1.45;
}

/* Métricas */
.sector-metric-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
  max-width: 90ch;
  padding: 0;
}
@media (min-width: 768px) { .sector-metric-list { grid-template-columns: 1fr 1fr; gap: 16px 32px; } }
.sector-metric-list li {
  display: flex; gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sector-metric-list li::before {
  content: '◆';
  color: var(--theme-primary);
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 6px;
}

/* FAQ */
.sector-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 880px;
  margin: 32px auto 0;
}
.sector-faq-item {
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease-out);
}
.sector-faq-item[open] {
  border-color: var(--theme-tint-30);
  background: var(--theme-tint-06);
}
.sector-faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-size: 19px;
  color: var(--ink); padding-right: 32px; position: relative;
  line-height: 1.25;
}
.sector-faq-item summary::-webkit-details-marker { display: none; }
.sector-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 24px;
  color: var(--theme-primary); transition: transform 0.25s var(--ease-out);
}
.sector-faq-item[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.sector-faq-item p {
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* CTA */
.sector-cta {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
@media (min-width: 1024px) { .sector-cta { padding: 112px 0; } }
.sector-cta-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.sector-cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 auto;
}
.sector-cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 20px auto 0;
  max-width: 60ch;
  line-height: 1.6;
}
.sector-cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
}

/* Mosaico otros sectores */
.sector-other {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.sector-other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 0 20px;
}
@media (min-width: 768px) { .sector-other-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sector-other-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 0 32px; } }
.so-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease-out);
  text-align: center;
}
.so-card:hover { border-color: var(--line-strong); }
.so-card .e { font-size: 26px; }
.so-card .l { font-size: 13px; color: var(--ink); font-family: var(--font-display); }

/* HUB /sectores/ */
.sector-hub { padding: 72px 0; }
@media (min-width: 1024px) { .sector-hub { padding: 104px 0; } }
.sector-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 0 20px;
}
@media (min-width: 640px) { .sector-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sector-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 32px; } }

.shub-card {
  display: flex; flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.shub-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px -24px rgba(21, 24, 30, 0.3);
}
.shub-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.shub-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shub-body { padding: 24px; }
.shub-emoji { font-size: 28px; line-height: 1; }
.shub-title {
  font-family: var(--font-display); font-size: 24px;
  color: var(--ink); margin-top: 10px; line-height: 1.15;
}
.shub-text {
  font-size: 14px; color: var(--muted);
  margin-top: 12px; line-height: 1.55;
}
.shub-cta {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.15s;
}
.shub-card:hover .shub-cta { color: var(--accent-deep); }
