/* ==========================================================================
   Herencias Bilbao AI-First — Maquetación 1:1 sincronizada con Google Stitch
    Consume exclusivamente los tokens definidos en assets/css/tokens.css
   Fuentes Bloqueadas: Newsreader (Headings/KPIs) + Plus Jakarta Sans (Body/UI)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--hb-sans);
  color: var(--hb-ink);
  background-color: var(--hb-ivory);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hb-navy-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--hb-gold-dark);
}

h1, h2, h3, h4 {
  font-family: var(--hb-serif);
  color: var(--hb-navy);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.05rem, 3.5vw, 2.95rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.3rem); font-weight: 700; margin-bottom: 0.85rem; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
h4 { font-family: var(--hb-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.4rem; }

button, input, select, textarea {
  font-family: var(--hb-sans);
}

.hb-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--hb-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--hb-radius);
  z-index: 9999;
  font-weight: 600;
}
.hb-skip-link:focus {
  left: 12px;
}

.hb-container {
  width: 100%;
  max-width: var(--hb-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 1. Top Trust Bar (Stitch Shell) ---------- */
.hb-topbar {
  background: var(--hb-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(182, 141, 64, 0.28);
}

.hb-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.hb-topbar__left,
.hb-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(182, 141, 64, 0.35);
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.76rem;
}

@keyframes hb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.hb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: hb-pulse 2.2s infinite;
}

.hb-status-dot--closed {
  background: var(--hb-gold);
  animation: none;
}

.hb-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.hb-topbar a:hover {
  color: var(--hb-gold-light);
}

.hb-lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px;
}

.hb-lang-switch a {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.hb-lang-switch a.is-active {
  background: var(--hb-gold);
  color: #FFFFFF;
}

/* ---------- 2. Sticky Header & Navigation (Stitch Shell) ---------- */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow-sm);
}

.hb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.hb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.hb-brand__monogram {
  width: 44px;
  height: 44px;
  border-radius: var(--hb-radius);
  background: var(--hb-navy);
  border: 1px solid var(--hb-gold);
  color: var(--hb-gold);
  font-family: var(--hb-serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-brand__name {
  display: block;
  font-family: var(--hb-serif);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--hb-navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hb-brand__sub {
  display: block;
  font-family: var(--hb-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--hb-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.hb-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hb-nav__list > li {
  position: relative;
}

.hb-nav__list a {
  text-decoration: none;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 2px;
  white-space: nowrap;
}

.hb-nav__list a:hover,
.hb-nav__list a[aria-current="page"] {
  color: var(--hb-gold-dark);
}

.hb-has-dropdown:hover .hb-dropdown,
.hb-has-dropdown:focus-within .hb-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hb-dropdown {
  position: absolute;
  left: -80px;
  top: 100%;
  width: 680px;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-top: 3px solid var(--hb-gold);
  border-radius: 0 0 var(--hb-radius) var(--hb-radius);
  box-shadow: var(--hb-shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 950;
}

.hb-dropdown__group-title {
  font-family: var(--hb-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hb-gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.hb-dropdown__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hb-dropdown__links li {
  margin-bottom: 5px;
}

.hb-dropdown__links a {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  padding: 3px 0;
  color: var(--hb-ink);
  white-space: normal;
}
.hb-dropdown__links a:hover {
  color: var(--hb-navy);
  text-decoration: underline;
}

.hb-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 8px 12px;
  font-weight: 600;
  color: var(--hb-navy);
  cursor: pointer;
}

/* ---------- 3. Buttons (ROUND_EIGHT = 8px) ---------- */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--hb-radius);
  font-family: var(--hb-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}

.hb-btn:hover {
  transform: translateY(-1px);
}

.hb-btn--primary {
  background: var(--hb-navy);
  color: #fff;
}
.hb-btn--primary:hover {
  background: var(--hb-navy-mid);
  color: #fff;
}

.hb-btn--gold {
  background: var(--hb-gold);
  color: #fff;
  box-shadow: 0 2px 6px rgba(182, 141, 64, 0.28);
}
.hb-btn--gold:hover {
  background: var(--hb-gold-dark);
  color: #fff;
}

.hb-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hb-btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

.hb-btn--whatsapp {
  background: var(--hb-whatsapp);
  color: #fff;
}
.hb-btn--whatsapp:hover {
  background: #0e7468;
  color: #fff;
}

.hb-btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- 4. Hero Principal (Stitch 7/5 Grid) ---------- */
.hb-hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #102747 55%, #071527 100%);
  color: #fff;
  padding: 54px 0 82px;
  position: relative;
  border-bottom: 4px solid var(--hb-gold);
}

.hb-hero__grid {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hb-navy-mid);
  border: 1px solid rgba(182, 141, 64, 0.55);
  color: #FDE68A;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hb-hero h1 {
  color: #FAF9F6;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hb-hero__lead {
  font-size: 1.08rem;
  color: #CBD5E1;
  margin-bottom: 26px;
  max-width: 620px;
  line-height: 1.65;
}

.hb-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hb-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.hb-trust-metric strong {
  display: block;
  font-family: var(--hb-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--hb-gold-light);
  line-height: 1.15;
}

.hb-trust-metric span {
  font-size: 0.78rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* ---------- 5. Wizard Card (Stitch Elevated Card) ---------- */
.hb-wizard-card {
  background: var(--hb-surface);
  color: var(--hb-ink);
  border-radius: var(--hb-radius);
  padding: 28px;
  box-shadow: var(--hb-shadow-lg);
  border: 1px solid var(--hb-border);
  border-top: 4px solid var(--hb-gold);
}

.hb-wizard-card__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hb-gold-dark);
  margin-bottom: 3px;
}

.hb-wizard-card__title {
  font-size: 1.32rem;
  margin-bottom: 4px;
}

.hb-wizard-card__sub {
  font-size: 0.83rem;
  color: var(--hb-muted);
  margin: 0 0 14px;
}

.hb-wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.hb-wizard-progress span {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #E9E8E5;
  transition: background 0.25s ease;
}

.hb-wizard-progress span.is-active {
  background: var(--hb-gold);
}

.hb-wizard-step {
  display: none;
}
.hb-wizard-step.is-active {
  display: block;
}

.hb-choice-grid {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.hb-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--hb-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hb-choice-btn:hover,
.hb-choice-btn.is-selected {
  border-color: var(--hb-gold);
  background: var(--hb-gold-pale);
  color: var(--hb-navy);
}

.hb-field {
  margin-bottom: 12px;
}

.hb-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-navy);
  margin-bottom: 4px;
}

.hb-field input[type="text"],
.hb-field input[type="tel"],
.hb-field input[type="email"],
.hb-field input[type="number"],
.hb-field select,
.hb-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #C4C6CE;
  border-radius: var(--hb-radius);
  font-size: 0.92rem;
  background: #fff;
  color: var(--hb-ink);
}

.hb-field input:focus,
.hb-field select:focus,
.hb-field textarea:focus {
  outline: 2px solid var(--hb-gold);
  border-color: var(--hb-navy);
}

.hb-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.hb-form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--hb-radius);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.hb-form-feedback.is-success {
  display: block;
  background: var(--hb-green-bg);
  color: #14532D;
  border: 1px solid #86EFAC;
}
.hb-form-feedback.is-error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ---------- 6. AI Answer-First Overlap & Sections (Stitch Signature) ---------- */
.hb-ai-overlap-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 25;
  margin-bottom: 16px;
}

.hb-ai-summary {
  background: #FFFDF8;
  border: 1px solid var(--hb-border);
  border-left: 5px solid var(--hb-gold);
  border-radius: var(--hb-radius);
  padding: 24px 28px;
  box-shadow: var(--hb-shadow-md);
}

.hb-ai-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hb-gold-dark);
  margin-bottom: 8px;
}

.hb-ai-summary__text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--hb-muted);
  line-height: 1.65;
}
.hb-ai-summary__text strong {
  color: var(--hb-ink);
}

/* ---------- 6b. Google AI Overviews #1 Featured Passage & Entity Card ---------- */
.hb-ai-featured-passage {
  background: #FFFDF8;
  border: 1px solid #E5D4B0;
  border-left: 4px solid var(--hb-gold);
  border-radius: var(--hb-radius);
  padding: 20px 24px;
  margin: 0 0 26px;
  box-shadow: var(--hb-shadow-sm);
}

.hb-ai-featured-passage__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hb-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hb-gold-dark);
  margin-bottom: 6px;
}

.hb-ai-featured-passage__text {
  margin: 0;
  font-family: var(--hb-sans);
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--hb-ink);
  font-weight: 450;
}

.hb-ai-featured-passage__text strong {
  color: var(--hb-navy);
  font-weight: 700;
}

.hb-featured-firm-box {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-top: 4px solid var(--hb-gold);
  border-radius: var(--hb-radius);
  padding: 26px 30px;
  margin: 28px 0;
  box-shadow: var(--hb-shadow-sm);
}

.hb-featured-firm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hb-featured-firm-item {
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hb-featured-firm-item strong {
  display: block;
  color: var(--hb-navy);
  margin-bottom: 4px;
}

.hb-section {
  padding: 68px 0;
}

.hb-section--white {
  background: var(--hb-surface);
}

.hb-section--low {
  background: var(--hb-surface-low);
  border-top: 1px solid var(--hb-border);
  border-bottom: 1px solid var(--hb-border);
}

.hb-section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.hb-section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hb-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--hb-gold-dark);
  margin-bottom: 6px;
}

/* ---------- 7. 4 Silos & Numbered Badges (Stitch Style) ---------- */
.hb-silo-block {
  margin-bottom: 42px;
}

.hb-silo-block__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.hb-silo-num {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--hb-navy-mid);
  color: var(--hb-gold);
  font-family: var(--hb-sans);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}

.hb-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--hb-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hb-shadow-md);
  border-color: var(--hb-gold);
}

.hb-card h3 {
  font-family: var(--hb-serif);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hb-card h3 a {
  text-decoration: none;
  color: var(--hb-navy);
}

.hb-card p {
  color: var(--hb-muted);
  font-size: 0.87rem;
  margin: 0 0 14px;
  line-height: 1.6;
}

.hb-card__link {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--hb-gold-dark);
  text-decoration: none;
}

/* ---------- 8. Comparative Table with Highlighted Foral Column ---------- */
.hb-prose table,
.hb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  overflow: hidden;
  box-shadow: var(--hb-shadow-sm);
  font-size: 0.9rem;
}

.hb-prose th,
.hb-table th {
  background: var(--hb-navy);
  color: #fff;
  font-family: var(--hb-serif);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 15px 20px;
}

.hb-table th.hb-col-foral-head {
  color: var(--hb-gold-light);
}

.hb-prose td,
.hb-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hb-border);
  vertical-align: top;
}

.hb-table td.hb-col-foral {
  background: var(--hb-gold-pale);
}

.hb-foral-check {
  display: block;
  font-weight: 700;
  color: var(--hb-gold-dark);
  margin-bottom: 3px;
}

/* ---------- 9. Lawyer Profile E-E-A-T Card (Stitch Layout) ---------- */
.hb-lawyer-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 38px;
  align-items: center;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 38px;
  box-shadow: var(--hb-shadow-sm);
}

.hb-lawyer-portrait {
  background: linear-gradient(145deg, var(--hb-navy), var(--hb-navy-mid));
  border-radius: var(--hb-radius);
  aspect-ratio: 1 / 1.08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid var(--hb-gold);
  padding: 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--hb-shadow-md);
}

.hb-lawyer-portrait--has-photo {
  padding: 0;
  aspect-ratio: 3 / 4;
  background: var(--hb-ivory);
}

.hb-lawyer-portrait--has-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hb-lawyer-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hb-lawyer-portrait__initials {
  font-family: var(--hb-serif);
  font-size: 3.2rem;
  color: var(--hb-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.hb-lawyer-quote {
  margin: 16px 0 18px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--hb-gold);
  font-family: var(--hb-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: #334155;
  line-height: 1.55;
}

.hb-pillars-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 16px 0 22px;
  font-size: 0.84rem;
  color: var(--hb-muted);
}

.hb-credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.hb-pill {
  background: var(--hb-gold-pale);
  color: var(--hb-gold-dark);
  border: 1px solid #E5D4B0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- 10. Simulator, Reviews & FAQs ---------- */
.hb-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.hb-fact-box {
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 14px 16px;
}

.hb-fact-box dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.hb-fact-box dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hb-navy);
}

.hb-sim-box {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 34px;
  box-shadow: var(--hb-shadow-md);
}

.hb-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.hb-sim-result {
  background: var(--hb-navy);
  color: #fff;
  border-radius: var(--hb-radius);
  padding: 28px;
  border-top: 4px solid var(--hb-gold);
}

.hb-sim-result h3 {
  color: var(--hb-gold-light);
  margin-bottom: 12px;
}

.hb-sim-kpi {
  font-family: var(--hb-serif);
  font-size: 1.95rem;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 14px;
}

.hb-sim-notes {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.88rem;
}

.hb-sim-notes li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hb-review-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 22px;
  box-shadow: var(--hb-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hb-stars {
  color: #D97706;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hb-faq-list {
  display: grid;
  gap: 12px;
}

.hb-faq-item {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  overflow: hidden;
  box-shadow: var(--hb-shadow-sm);
}

.hb-faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hb-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.hb-faq-item summary::-webkit-details-marker {
  display: none;
}

.hb-faq-item summary::after {
  content: "▾";
  font-size: 1.1rem;
  color: var(--hb-gold);
  transition: transform 0.2s ease;
}

.hb-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.hb-faq-item__body {
  padding: 14px 22px 18px;
  color: var(--hb-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--hb-surface-low);
}

/* ---------- 11. Inner Pages & Sticky Sidebar ---------- */
.hb-breadcrumbs {
  background: var(--hb-surface-low);
  padding: 10px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--hb-border);
}

.hb-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hb-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #94A3B8;
}

.hb-page-hero {
  background: var(--hb-navy);
  color: #fff;
  padding: 46px 0;
  border-bottom: 3px solid var(--hb-gold);
}

.hb-page-hero h1 {
  color: #FAF9F6;
  margin-bottom: 12px;
}

.hb-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.83rem;
  color: #CBD5E1;
}

.hb-layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 38px;
  padding: 46px 0 72px;
  align-items: start;
}

.hb-prose {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 36px;
  box-shadow: var(--hb-shadow-sm);
}

.hb-prose h2 {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--hb-surface-low);
}

.hb-toc {
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 16px 20px;
  margin: 20px 0 28px;
}

.hb-toc strong {
  display: block;
  color: var(--hb-navy);
  margin-bottom: 8px;
}

.hb-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

.hb-sidebar-sticky {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.hb-widget {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 24px;
  box-shadow: var(--hb-shadow-sm);
}

.hb-widget--dark {
  background: var(--hb-navy);
  color: #fff;
  border-top: 4px solid var(--hb-gold);
}
.hb-widget--dark h3 {
  color: #fff;
}

/* ---------- 12. AI Citation Pillar Components (Stitch Screen 10) ---------- */
.hb-pillar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hb-pillar-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--hb-radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.hb-pillar-tab:hover {
  background: rgba(182, 141, 64, 0.22);
  border-color: var(--hb-gold);
  color: #FFFFFF;
}

.hb-pillar-tab.is-active {
  background: var(--hb-gold);
  border-color: var(--hb-gold);
  color: #FFFFFF;
}

.hb-foral-alert {
  background: var(--hb-gold-pale);
  border: 1px solid #E5D4B0;
  border-left: 4px solid var(--hb-gold);
  border-radius: var(--hb-radius);
  padding: 18px 22px;
  margin: 22px 0 28px;
}

.hb-foral-alert__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hb-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hb-gold-dark);
  margin-bottom: 6px;
}

.hb-foral-alert p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hb-ink);
  line-height: 1.6;
}

.hb-howto-timeline {
  position: relative;
  margin: 26px 0 32px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.hb-howto-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 18px 20px;
}

.hb-howto-step__num {
  width: 44px;
  height: 44px;
  border-radius: var(--hb-radius);
  background: var(--hb-navy);
  border: 1px solid var(--hb-gold);
  color: var(--hb-gold-light);
  font-family: var(--hb-serif);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hb-howto-step__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hb-howto-step__title {
  font-family: var(--hb-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hb-navy);
  margin: 0;
}

.hb-howto-step__badge {
  background: var(--hb-gold-pale);
  border: 1px solid #E5D4B0;
  color: var(--hb-gold-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.hb-docs-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.hb-docs-checklist li {
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hb-docs-checklist li::before {
  content: "✓";
  color: var(--hb-gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.hb-svg-icon {
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
}

.hb-map-facade {
  background: linear-gradient(135deg, var(--hb-navy) 0%, var(--hb-navy-mid) 100%);
  border: 1px solid var(--hb-border);
  border-top: 4px solid var(--hb-gold);
  border-radius: var(--hb-radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--hb-shadow-sm);
}

.hb-print-header {
  display: none;
}

@media print {
  .hb-topbar,
  .hb-header,
  .hb-pillar-tabs,
  .hb-sidebar-sticky,
  .hb-cta-band,
  .hb-footer,
  .hb-floating-wa,
  .hb-mobile-bar,
  .hb-no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .hb-print-header {
    display: block;
    border-bottom: 2px solid #0B1F3A;
    padding-bottom: 10px;
    margin-bottom: 18px;
    font-size: 0.85rem;
  }
  .hb-layout-2col {
    display: block !important;
    padding: 12px 0 !important;
  }
  .hb-prose {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ---------- 13. Pre-Footer CTA Band & Stitch Institutional Footer ---------- */
.hb-cta-band {
  background: var(--hb-navy);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}

.hb-cta-band h2 {
  color: #FAF9F6;
  margin-bottom: 10px;
}

.hb-cta-band p {
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}

.hb-footer {
  background: var(--hb-navy-footer);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 88px;
  border-top: 4px solid var(--hb-gold);
  font-size: 0.88rem;
}

.hb-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.hb-footer h3 {
  font-family: var(--hb-sans);
  color: #FAF9F6;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.hb-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hb-footer li {
  margin-bottom: 8px;
}

.hb-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.hb-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.hb-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.hb-floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 880;
  background: var(--hb-whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--hb-shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hb-floating-wa:hover {
  color: #fff;
  background: #0f766a;
}

.hb-mobile-bar {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hb-menu-toggle {
    display: inline-flex;
  }
  .hb-header__actions {
    display: none;
  }
  .hb-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--hb-surface);
    border-bottom: 2px solid var(--hb-gold);
    padding: 18px 24px;
    box-shadow: var(--hb-shadow-md);
  }
  .hb-nav.is-open {
    display: block;
  }
  .hb-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hb-hero__grid,
  .hb-layout-2col,
  .hb-sim-grid,
  .hb-lawyer-box {
    grid-template-columns: 1fr;
  }
  .hb-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .hb-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hb-trust-strip,
  .hb-pillars-2x2,
  .hb-footer__grid {
    grid-template-columns: 1fr;
  }
  .hb-prose {
    padding: 22px;
  }
  .hb-floating-wa {
    display: none;
  }
  .hb-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 960;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--hb-navy);
    border-top: 2px solid var(--hb-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  }
  .hb-mobile-bar a {
    padding: 14px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
  }
  .hb-mobile-bar__wa {
    background: var(--hb-whatsapp);
  }
}

/* ---------- 14. Editorial Real Photography & Google AI 1:1 Citation Thumbnails ---------- */
.hb-featured-firm-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
}

.hb-featured-firm-avatar {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--hb-gold);
  box-shadow: var(--hb-shadow-sm);
  background: var(--hb-ivory);
  flex-shrink: 0;
}

.hb-featured-firm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hb-author-verify-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hb-ivory);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 12px 16px;
  margin: 0 0 22px;
}

.hb-author-verify-strip__avatar {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--hb-gold);
  flex-shrink: 0;
  background: #fff;
}

.hb-author-verify-strip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hb-author-verify-strip__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.hb-author-verify-strip__meta strong {
  color: var(--hb-navy);
  font-size: 0.89rem;
}

.hb-author-verify-strip__meta span {
  color: var(--hb-muted);
}

.hb-editorial-media {
  margin: 22px 0 26px;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  overflow: hidden;
  box-shadow: var(--hb-shadow-sm);
}

.hb-editorial-media picture {
  display: block;
  width: 100%;
}

.hb-editorial-media img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--hb-surface-low);
}

.hb-editorial-media figcaption {
  padding: 10px 14px;
  font-size: 0.81rem;
  color: var(--hb-muted);
  background: var(--hb-ivory);
  border-top: 1px solid var(--hb-border);
  line-height: 1.45;
}

.hb-office-gallery {
  display: grid;
  gap: 18px;
}

.hb-office-gallery .hb-editorial-media {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hb-office-gallery .hb-editorial-media figcaption {
  flex: 1;
}

.hb-office-gallery--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hb-office-gallery--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hb-office-gallery--4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hb-office-gallery--3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hb-featured-firm-head {
    grid-template-columns: 1fr;
  }
  .hb-office-gallery--4col,
  .hb-office-gallery--3col {
    grid-template-columns: 1fr;
  }
}
