/* diagnostico.css */

/* Generic Resets */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body {
  margin: 0; max-width: 100%; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: #F3F3EF; color: #14161A; font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}
* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header overrides for search view */
.d-header {
  position: relative; z-index: 100; background: #0C0C0E;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.d-header .wrap { height: 76px; display: flex; align-items: center; }

/* Views */
.view { min-height: calc(100vh - 76px); display: flex; flex-direction: column; }
.view-active { display: flex; }

/* SEARCH HERO */
.d-hero {
  background-color: #0C0C0E; color: #FFFFFF; align-items: center; justify-content: center;
  padding: 4rem 1rem; background-image: radial-gradient(circle at 50% 100%, rgba(203, 80, 36, 0.15), transparent 60%);
}
.d-hero-content { max-width: 680px; padding-top: 1.5rem; text-align: center; z-index: 10; width: 100%; }
.d-eyebrow {
  display: inline-block; max-width: 100%; margin-bottom: 1.25rem; color: #F0A080;
  font: 700 0.76rem/1.4 var(--font-mono, ui-monospace); letter-spacing: 0.08em;
  text-transform: uppercase; text-wrap: balance;
}
.d-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 1.5rem;
  font-family: var(--font-display, system-ui); letter-spacing: -0.03em; color: #FFFFFF;
}
.d-hero h1 > span { display: block; }
.d-hero-highlight {
  width: fit-content; margin: 0 auto 1rem; padding: 0.34em 0.62em 0.38em;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 0.28em;
  background: #CB5024; box-shadow: 0 12px 34px rgba(203,80,36,0.28);
  color: #FFFFFF; font-size: 0.62em; font-weight: 850; line-height: 1;
  letter-spacing: 0.015em; text-transform: uppercase;
}
.d-hero p { color: #9A9AA1; font-size: 1.125rem; margin-bottom: 3rem; text-wrap: balance; line-height: 1.5; }
.d-hero-benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 680px; margin: 2rem auto 0; padding: 0; color: #E7E7E9;
  font-size: 0.9rem; line-height: 1.35; list-style: none; text-align: left;
}
.d-hero-benefits li {
  display: flex; min-height: 96px; gap: 0.8rem; align-items: flex-start; padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  background: rgba(255,255,255,0.045); backdrop-filter: blur(8px);
}
.d-benefit-icon {
  display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center;
  border: 1px solid rgba(240,160,128,0.3); border-radius: 9px;
  background: rgba(203,80,36,0.12); color: #F0A080;
}
.d-benefit-icon svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 639px) {
  .d-hero { justify-content: flex-start; padding-top: 5rem; padding-bottom: 3rem; }
  .d-hero-content { padding-top: 0; }
  .d-eyebrow { padding-inline: 0.5rem; font-size: 0.68rem; line-height: 1.45; }
  .d-hero-highlight { margin-bottom: 0.85rem; font-size: 0.58em; }
  .d-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .d-hero-benefits li { min-height: 112px; padding: 0.8rem; flex-direction: column; gap: 0.6rem; }
}

/* SEARCH INPUT */
.d-search-instruction {
  margin: 0 auto 0.7rem !important; color: #FFFFFF !important;
  font-size: 1rem !important; font-weight: 700; letter-spacing: 0.01em;
}
.d-search-box { position: relative; width: 100%; max-width: 760px; margin: 0 auto; display: flex; gap: 0.75rem; flex-direction: column; }
@media (min-width: 640px) { .d-search-box { flex-direction: row; } }
.d-search-input-wrap { position: relative; flex-grow: 1; }
.d-search-input {
  width: 100%; padding: 1rem 1rem 1rem 3rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16); background: #17171B; color: #FFF; font-size: 1rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.d-search-input:focus { border-color: #CB5024; box-shadow: 0 0 0 3px rgba(203, 80, 36, 0.2); }
.d-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9A9AA1; pointer-events: none; }
.d-search-btn {
  background: #CB5024; color: #FFF; border: none; border-radius: 8px; padding: 1rem 1.5rem;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap;
}
.d-find-btn {
  background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.32); border-radius: 8px;
  padding: 1rem 1.35rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s; white-space: nowrap;
}
.d-find-btn:hover { border-color: #F0A080; background: rgba(203,80,36,0.12); }
.d-find-btn:active { transform: scale(0.98); }
.d-find-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.d-search-btn:hover { background: #A83E1A; }
.d-search-btn:active { transform: scale(0.98); }
.d-search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.d-search-help { margin: 1rem auto 0 !important; min-height: 1.4em; color: #9A9AA1 !important; font-size: 0.85rem !important; }
.d-search-help.is-error { color: #FF9C83 !important; }

/* AUTOCOMPLETE */
.d-autocomplete {
  position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
  background: #FFFFFF; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  overflow: hidden; z-index: 100; text-align: left; max-height: 320px; overflow-y: auto; border: 1px solid #EFEFEA;
}
@media (max-width: 639px) {
  .d-autocomplete {
    position: static;
    margin-top: 8px;
    max-height: 240px;
  }
}
.d-ac-item { padding: 1rem; cursor: pointer; border-bottom: 1px solid #EFEFEA; color: #14161A; transition: background 0.1s; }
.d-ac-item:last-child { border-bottom: none; }
.d-ac-item:hover, .d-ac-item.active { background: #F7F7F4; }
.d-ac-name { font-weight: 600; display: block; font-size: 1rem; }
.d-ac-addr { font-size: 0.85rem; color: #5E5E59; display: block; margin-top: 0.25rem; }

/* LOADING */
.d-loading { align-items: center; justify-content: center; background: #F3F3EF; color: #14161A; text-align: center; }
.d-spinner-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 2rem; }
.d-spinner {
  width: 100%; height: 100%; border: 4px solid #E4E4DF; border-top-color: #CB5024;
  border-radius: 50%; animation: spin 1s cubic-bezier(0.6, 0.05, 0.2, 0.95) infinite;
}
.d-spinner-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #CB5024; opacity: 0.6; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.d-loading-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-display, system-ui); letter-spacing: -0.02em; color: #14161A; }
.d-loading-phase { font-size: 1rem; color: #82827C; font-weight: 500; height: 24px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* REPORT LAYOUT */
.d-report { padding: 4rem 1.5rem; position: relative; }
.d-report-wrap { max-width: 900px; margin: 0 auto; width: 100%; }
.d-chapters { display: flex; flex-direction: column; gap: 3.5rem; }

/* CHAPTERS */
.d-chapter {
  background: #FFFFFF; border-radius: 16px; border: 1px solid #E8E8E2;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03); overflow: hidden;
}
.d-chapter-header {
  background: #101012; color: #FFFFFF; padding: 2rem 2.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.d-chapter-num {
  font-size: 1.5rem; font-weight: 800; font-family: var(--font-display, system-ui);
  color: #CB5024; border: 2px solid #CB5024; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}
.d-chapter-title { font-size: 1.65rem; font-weight: 700; margin: 0; color: #FFF; letter-spacing: -0.02em; font-family: var(--font-display, system-ui); }
.d-chapter-content { padding: 2.5rem; display: flex; flex-direction: column; gap: 2.5rem; }

/* SECTION HEADINGS */
.d-section-h3 { font-size: 1.25rem; font-weight: 700; color: #14161A; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.d-calm-message { background: #F7F7F4; border-radius: 12px; padding: 1.5rem; color: #5E5E59; line-height: 1.5; font-size: 0.95rem; border-left: 3px solid #D4D4CE; }

/* CH1 HERO */
.d-ch1-wrap { display: flex; flex-direction: column; gap: 2rem; }
.d-ch1-hero { display: flex; gap: 1.5rem; align-items: center; }
.d-hero-img-wrap { width: 100px; height: 100px; border-radius: 12px; overflow: hidden; background: #F7F7F4; flex-shrink: 0; border: 1px solid #E8E8E2; }
.d-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.d-hero-img-fallback { width: 100px; height: 100px; border-radius: 12px; background: #F7F7F4; display: flex; align-items: center; justify-content: center; color: #C8C8C3; border: 1px solid #E8E8E2; flex-shrink: 0; }
.d-ch1-info h3 { margin: 0 0 0.5rem; font-size: 1.5rem; font-family: var(--font-display, system-ui); letter-spacing: -0.02em; color: #14161A; }
.d-ch1-meta { color: #5E5E59; font-size: 0.9rem; margin-bottom: 0.75rem; }
.d-ch1-stars { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: #14161A; }
.d-ch1-stars svg { color: #F2A516; width: 16px; height: 16px; }
.d-ch1-summary { background: #14161A; color: #FFF; padding: 2rem; border-radius: 12px; border-left: 4px solid #CB5024; }
.d-ch1-summary h3 { margin: 0 0 0.75rem; font-size: 1.35rem; color: #FFF; }
.d-ch1-summary p { margin: 0; color: #D4D4CE; line-height: 1.6; font-size: 1.05rem; }
.d-ch1-verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1.5rem; border: 1px solid #E3E3DC; background: #E3E3DC; border-radius: 12px; overflow: hidden; }
.d-ch1-verdicts article { min-width: 0; padding: 1.2rem; background: #FFF; }
.d-ch1-verdicts span { display: block; margin-bottom: .5rem; color: #CB5024; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.d-ch1-verdicts strong { display: block; color: #14161A; line-height: 1.4; }
.d-ch1-verdicts p { margin: .5rem 0 0; color: #5E5E59; font-size: .88rem; line-height: 1.45; }

/* CH2 DEMAND & VISIBILITY */
.d-market-demand { display: flex; flex-direction: column; gap: 1.5rem; }
.d-md-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.d-md-stat { background: #F7F7F4; padding: 1.5rem; border-radius: 12px; display: flex; flex-direction: column; gap: 0.25rem; border: 1px solid #E8E8E2; }
.d-md-stat span { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: #8A8A84; letter-spacing: 0.05em; }
.d-md-stat strong { font-size: 1.75rem; font-weight: 800; color: #14161A; font-family: var(--font-display, system-ui); line-height: 1.1; }
.d-md-stat small { font-size: 0.8rem; color: #5E5E59; margin-top: 0.25rem; }
.d-md-keywords h4 { margin: 0 0 1rem; font-size: 1.05rem; color: #14161A; }
.d-kw-grid { display: grid; gap: 0.75rem; }
.d-kw-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: #FFF; border: 1px solid #E8E8E2; border-radius: 8px; }
.d-kw-item strong { color: #14161A; font-size: 0.95rem; }
.d-kw-stats { display: flex; gap: 1rem; align-items: center; }
.d-kw-vol { font-weight: 700; color: #CB5024; font-size: 0.9rem; }
.d-kw-reason { font-size: 0.8rem; color: #8A8A84; background: #F7F7F4; padding: 0.25rem 0.5rem; border-radius: 4px; }
.d-md-note { font-size: 0.8rem; color: #A6A6A0; margin-top: 0.5rem; }

.d-vis-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.d-query-evidence { margin-top: 2rem; }
.d-query-evidence ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #E3E3DC; }
.d-query-evidence li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #E3E3DC; }
.d-query-evidence li span { color: #5E5E59; }
.d-query-evidence li strong { color: #14161A; text-align: right; }
.d-query-evidence > p, .d-evidence-summary { color: #5E5E59; line-height: 1.55; }
.d-vis-card { padding: 1.5rem; border: 1px solid #E8E8E2; border-radius: 12px; background: #FFF; }
.d-vis-card span { display: block; font-size: 0.75rem; font-weight: 700; color: #8A8A84; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.d-vis-card strong { display: block; font-size: 2rem; font-weight: 800; color: #14161A; font-family: var(--font-display, system-ui); line-height: 1.1; margin-bottom: 0.5rem; }
.d-vis-card p { margin: 0; font-size: 0.85rem; color: #5E5E59; }

/* CH3 FUNNEL & CHANNELS */
.d-funnel-list { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.d-funnel-list::before { content: ''; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 2px; background: #E8E8E2; z-index: 1; }
.d-funnel-stage { display: flex; gap: 1.25rem; position: relative; z-index: 2; align-items: flex-start; }
.d-funnel-status { width: 32px; height: 32px; border-radius: 50%; background: #FFF; border: 2px solid #E8E8E2; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 0.5rem; }
.d-funnel-status.confirmado { border-color: #1F9D55; background: #DBF3E5; }
.d-funnel-status.friccion, .d-funnel-status.pendiente_de_comprobar { border-color: #F2A516; background: #FDF3E1; }
.d-funnel-status.fuga_critica, .d-funnel-status.no_detectado { border-color: #E0341D; background: #FBE0DB; }
.d-funnel-info { background: #F7F7F4; padding: 1.25rem; border-radius: 12px; flex-grow: 1; border: 1px solid #E8E8E2; }
.d-funnel-info strong { display: block; font-size: 1.05rem; color: #14161A; margin-bottom: 0.5rem; }
.d-funnel-info p { margin: 0; font-size: 0.9rem; color: #5E5E59; line-height: 1.5; }

.d-channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.d-channel-card { padding: 1.25rem; border: 1px solid #E8E8E2; border-radius: 12px; background: #FFF; display: flex; flex-direction: column; gap: 0.75rem; }
.d-channel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.d-channel-head strong { font-size: 1rem; color: #14161A; }
.d-channel-card p { margin: 0; font-size: 0.85rem; color: #5E5E59; line-height: 1.4; flex-grow: 1; }
.d-channel-card small { font-size: 0.75rem; font-weight: 700; color: #8A8A84; text-transform: uppercase; padding-top: 0.75rem; border-top: 1px solid #F3F3EF; }
.d-channel-card small.is-direct { color: #1F9D55; }

/* BADGES */
.d-channel-badge { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 4px; letter-spacing: 0.05em; }
.ch-confirmado { background: #DBF3E5; color: #1F9D55; }
.ch-no_detectado { background: #FBE0DB; color: #E0341D; }
.ch-no_se_pudo_confirmar, .ch-sin_datos { background: #EFEFEA; color: #5E5E59; }

/* CH4 COMPETITORS & REPUTATION */
.d-benchmark-table-wrap { overflow-x: auto; border: 1px solid #E8E8E2; border-radius: 12px; margin-bottom: 2rem; }
.d-benchmark-table { width: 100%; border-collapse: collapse; text-align: left; background: #FFF; font-size: 0.9rem; }
.d-benchmark-table th, .d-benchmark-table td { padding: 1rem; border-bottom: 1px solid #E8E8E2; }
.d-benchmark-table th { background: #F7F7F4; font-weight: 700; color: #14161A; white-space: nowrap; }
.d-benchmark-table tr:last-child td { border-bottom: none; }
.d-benchmark-table td strong { color: #14161A; }
.d-rep-stats { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.d-rep-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.d-rep-stat span { font-size: 0.75rem; font-weight: 700; color: #8A8A84; text-transform: uppercase; letter-spacing: 0.05em; }
.d-rep-stat strong { font-size: 1.5rem; font-weight: 800; color: #14161A; }
.d-web-grid { display: grid; gap: 0.75rem; }
.d-web-item { padding: 1.25rem; background: #F7F7F4; border-radius: 12px; border: 1px solid #E8E8E2; }
.d-web-item strong { display: block; font-size: 1rem; color: #14161A; margin-bottom: 0.5rem; }
.d-web-item p { margin: 0; font-size: 0.9rem; color: #5E5E59; line-height: 1.5; }

/* CH5 ESTIMATION & OPPORTUNITIES */
.d-est-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.d-est-card { background: #14161A; color: #FFF; padding: 1.5rem; border-radius: 12px; border: 1px solid #2A2C32; display: flex; flex-direction: column; gap: 0.5rem; }
.d-est-card span { font-size: 0.75rem; font-weight: 700; color: #F0A080; text-transform: uppercase; letter-spacing: 0.05em; }
.d-est-card strong { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display, system-ui); }
.d-est-card small { font-size: 0.85rem; color: #A6A6A0; }
.d-est-note { font-size: 0.85rem; color: #5E5E59; line-height: 1.5; margin-bottom: 1.5rem; }

.d-opps-grid { display: grid; gap: 1rem; }
.d-opp-card { padding: 1.5rem; border-left: 4px solid #CB5024; background: #F7F7F4; border-radius: 0 12px 12px 0; border-top: 1px solid #E8E8E2; border-right: 1px solid #E8E8E2; border-bottom: 1px solid #E8E8E2; }
.d-opp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.d-opp-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #14161A; }
.d-opp-impact { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 4px; background: #FFF0EA; color: #CB5024; white-space: nowrap; }
.d-opp-evidence { font-size: 0.9rem; color: #5E5E59; margin-bottom: 1rem; line-height: 1.5; }
.d-opp-action { font-size: 0.95rem; font-weight: 600; color: #14161A; background: #FFF; padding: 1rem; border-radius: 8px; border: 1px solid #E8E8E2; margin-bottom: 0.75rem; }
.d-opp-meta { font-size: 0.75rem; color: #8A8A84; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.d-plan-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.d-plan-item { padding: 1rem; background: #FFF; border: 1px solid #E8E8E2; border-radius: 8px; }
.d-plan-item strong { display: block; font-size: 0.95rem; color: #14161A; margin-bottom: 0.25rem; }
.d-plan-item p { margin: 0; font-size: 0.85rem; color: #5E5E59; }

/* CH6 BOOKFLY */
.d-bookfly-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.d-bookfly-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1rem; color: #14161A; line-height: 1.5; }
.d-bookfly-list li svg { color: #CB5024; flex-shrink: 0; margin-top: 0.15rem; }
.d-bookfly-cta-box { background: #14161A; padding: 2rem; border-radius: 12px; color: #FFF; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.d-bookfly-cta-box h4 { margin: 0; font-size: 1.35rem; color: #FFF; }
.d-bookfly-cta-box p { margin: 0; color: #D4D4CE; font-size: 0.95rem; line-height: 1.5; }

/* CTAs & MODALS */
.d-locked-cta { background: #FFF7F3; border: 2px solid #F0C8B8; padding: 2.5rem; border-radius: 16px; text-align: center; }
.d-locked-cta-inner { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.d-locked-cta h3 { margin: 0; font-size: 1.5rem; color: #14161A; }
.d-locked-cta p { margin: 0; font-size: 1rem; color: #5E5E59; line-height: 1.5; }
.d-btn-primary { background: #CB5024; color: #FFF; border: none; padding: 1rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.d-btn-primary:hover { background: #A83E1A; }
.d-btn-secondary { background: #FFF; color: #14161A; border: 1px solid #C8C8C3; padding: 1rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.d-btn-secondary:hover { background: #F7F7F4; }

.d-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.d-tech-details { margin-top: 2rem; padding: 1.5rem; background: #FFF; border: 1px solid #E8E8E2; border-radius: 12px; }
.d-tech-details summary { font-weight: 600; cursor: pointer; color: #5E5E59; user-select: none; }
.d-tech-content { margin-top: 1.5rem; font-size: 0.85rem; color: #5E5E59; display: flex; flex-direction: column; gap: 1rem; }
.d-tech-row { padding: 0.75rem; border: 1px solid #E8E8E2; border-radius: 8px; background: #F7F7F4; }
.d-tech-row strong { color: #14161A; display: block; margin-bottom: 0.25rem; }

/* MODAL FOR LOCKED */
.d-locked-overlay { position: fixed; inset: 0; background: rgba(243, 243, 239, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; transition: opacity 0.4s ease; }
.d-modal { background: #FFFFFF; border-radius: 16px; width: 100%; max-width: 480px; box-shadow: 0 24px 70px rgba(20, 22, 26, 0.2); padding: 2.5rem 2rem; position: relative; border: 2px solid #CB5024; margin: auto 0; }
.d-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #8A8A84; }
.d-modal-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.75rem; color: #14161A; padding-right: 2rem; }
.d-modal-title span { color: #14161A; }
.d-modal-demand-evidence { display: grid; gap: 0.45rem; margin: -0.25rem 0 1rem; }
.d-modal-demand-evidence span { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.7rem; border: 1px solid #E8E8E2; border-radius: 8px; background: #F7F7F4; color: #3F3F3B; font-size: 0.78rem; line-height: 1.3; }
.d-modal-demand-evidence b { flex: 0 0 auto; color: #14161A; white-space: nowrap; }
.d-modal-desc { font-size: 1rem; color: #3F3F3B; margin-bottom: 2rem; line-height: 1.5; }
.d-risk-preview { display: grid; gap: 0.35rem; margin: -0.5rem 0 1.5rem; padding: 1.25rem 1.3rem; border: 2px solid #CB5024; border-radius: 12px; background: #14161A; box-shadow: 0 10px 24px rgba(20,22,26,0.16); }
.d-risk-label { color: #F3B59D; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.d-risk-preview strong { color: #FFF; font-size: 1.35rem; line-height: 1.2; }
.d-risk-preview strong > span { display: block; }
.d-risk-preview strong > span + span { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #34363C; }
.d-risk-preview small { color: #E7E7E3; font-size: 0.92rem; line-height: 1.45; }
.d-risk-benefits-title { display: block; margin-bottom: 0.7rem; color: #FFFFFF; font-size: 1.05rem; font-weight: 800; }
.d-risk-benefits { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.d-risk-benefits li::marker { color: #F0A080; }
.d-form-group { margin-bottom: 1.25rem; }
.d-form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: #14161A; }
.d-form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #CBCBC4; border-radius: 8px; font-size: 1rem; outline: none; transition: border-color 0.2s; background: #FFF; color: #14161A; }
.d-form-input:focus { border-color: #CB5024; box-shadow: 0 0 0 3px rgba(203, 80, 36, 0.1); }
.d-form-check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: #5E5E59; margin-bottom: 2rem; cursor: pointer; line-height: 1.4; }
.d-submit-btn { width: 100%; background: #CB5024; color: #FFF; border: none; padding: 1.125rem; border-radius: 8px; font-size: 1.125rem; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.d-form-note { font-size: 0.8125rem; color: #82827C; text-align: center; margin-top: 1.5rem; padding: 1rem; background: #F7F7F4; border-radius: 8px; line-height: 1.5; }

/* PRINT MEDIA */
@media print {
  body { background: #FFF !important; }
  .d-report { padding: 0 !important; }
  .d-chapters { gap: 0 !important; }
  .d-chapter {
    page-break-before: always; page-break-inside: avoid;
    box-shadow: none !important; border: none !important; margin-bottom: 0 !important; border-radius: 0 !important;
  }
  .d-chapter:first-child { page-break-before: auto; }
  .d-chapter-header {
    background: #FFF !important; color: #14161A !important; border-bottom: 3px solid #14161A !important;
    padding: 1rem 0 !important; margin-bottom: 1rem !important;
  }
  .d-chapter-num { color: #14161A !important; border-color: #14161A !important; }
  .d-chapter-title { color: #14161A !important; }
  .d-chapter-content { padding: 1rem 0 !important; }
  .d-actions, .d-locked-overlay, .d-locked-cta, .d-tech-details { display: none !important; }
  .d-est-card, .d-ch1-summary, .d-bookfly-cta-box { background: #F7F7F4 !important; color: #14161A !important; border: 1px solid #E8E8E2 !important; }
  .d-est-card h3, .d-est-card strong, .d-ch1-summary h3, .d-ch1-summary p, .d-bookfly-cta-box h4, .d-bookfly-cta-box p { color: #14161A !important; }
}

@media (max-width: 768px) {
  .d-ch1-verdicts { grid-template-columns: 1fr; }
  .d-query-evidence li { align-items: flex-start; flex-direction: column; }
  .d-query-evidence li strong { text-align: left; }
  .d-chapter-header { padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .d-chapter-content { padding: 1.5rem; }
  .d-actions { flex-direction: column; }
  .d-ch1-hero { flex-direction: column; align-items: flex-start; }
}


/* NEW BOOKFLY REST STYLES */
.bfr-color-orange { color: #CB5024 !important; }
.bfr-color-black { color: #14161A !important; }
.bfr-color-green { color: #1F9D55 !important; }
.bfr-color-gray { color: #5E5E59 !important; }
.bfr-bg-orange { background: #CB5024 !important; }
.bfr-bg-green { background: #1F9D55 !important; }
.bfr-bg-gray { background: #5E5E59 !important; }
.bfr-border-orange { border-left: 4px solid #CB5024 !important; }
.bfr-border-green { border-left: 4px solid #1F9D55 !important; }
.bfr-border-gray { border-left: 4px solid #E8E8E2 !important; }

.bfr-h2 { font-size: 2rem; font-family: var(--font-display); font-weight: 800; margin: 0 0 2rem 0; letter-spacing: -0.02em; }
.bfr-subtitle { font-size: 1.25rem; font-family: var(--font-display); font-weight: 700; margin: 2rem 0 1rem 0; }
.bfr-story { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; }

/* CH1 */
.bfr-hero-opp { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2.5rem; }
.bfr-hero-val { font-size: 3.5rem; font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.bfr-hero-opp-gray { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2.5rem; }
.bfr-hero-val-gray { font-size: 2.5rem; font-family: var(--font-display); font-weight: 700; line-height: 1; }
.bfr-hero-lbl { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.bfr-indicators { display: flex; gap: 3rem; margin-bottom: 2.5rem; border-top: 1px solid #E8E8E2; padding-top: 2rem; }
.bfr-ind { display: flex; flex-direction: column; gap: 0.25rem; }
.bfr-ind-val { font-size: 2rem; font-family: var(--font-display); font-weight: 800; line-height: 1; }
.bfr-ind-lbl { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.bfr-reasons-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.bfr-reasons-list li { font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: baseline; }
.bfr-reasons-list li strong { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }

/* CH2 */
.bfr-competitors-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.bfr-comp-item { display: flex; gap: 1.5rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid #E8E8E2; }
.bfr-comp-item:last-child { border-bottom: none; }
.bfr-comp-pos { font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; width: 40px; }
.bfr-comp-info { display: flex; flex-direction: column; }
.bfr-comp-name { font-size: 1.15rem; font-weight: 700; }
.bfr-comp-meta { font-size: 0.95rem; }

.bfr-table-wrap { overflow-x: auto; margin-top: 1rem; }
.bfr-clean-table { width: 100%; border-collapse: collapse; text-align: left; }
.bfr-clean-table th { padding: 0.75rem 1rem; border-bottom: 2px solid #14161A; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.bfr-clean-table td { padding: 1rem; border-bottom: 1px solid #E8E8E2; font-size: 1.05rem; }

/* CH3 Tree */
.bfr-tree { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 1rem; }
.bfr-tree-branch { display: flex; flex-direction: column; gap: 1rem; }
.bfr-tree-node { font-size: 1.2rem; font-weight: 700; }
.bfr-node-root { font-family: var(--font-display); letter-spacing: -0.01em; }
.bfr-tree-line { width: 2px; height: 20px; background: #E8E8E2; margin-left: 1rem; }
.bfr-tree-leaf { padding: 1.5rem; background: #F7F7F4; display: flex; flex-direction: column; gap: 0.5rem; }
.bfr-tree-leaf strong { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bfr-tree-leaf span { font-size: 1.05rem; }
.bfr-tree-checks { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; padding-left: 2rem; border-left: 2px solid #E8E8E2; margin-left: 1rem; }
.bfr-tree-check { display: flex; gap: 1rem; align-items: flex-start; }
.bfr-check-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 0.35rem; flex-shrink: 0; }
.bfr-check-text { display: flex; flex-direction: column; gap: 0.25rem; }
.bfr-check-text strong { font-size: 1.05rem; }
.bfr-check-text span { font-size: 0.95rem; }

/* CH4 */
.bfr-rep { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: center; padding: 3rem 0; background: #F7F7F4; border-radius: 12px; }
.bfr-rep-hero { display: flex; align-items: baseline; gap: 0.5rem; }
.bfr-rep-score { font-size: 4rem; font-family: var(--font-display); font-weight: 800; line-height: 1; }
.bfr-rep-max { font-size: 2rem; font-weight: 700; }
.bfr-rep-total { font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* CH5 */
.bfr-actions-list { display: flex; flex-direction: column; gap: 2rem; }
.bfr-action-item { display: flex; gap: 1.5rem; }
.bfr-action-num { font-size: 2rem; font-family: var(--font-display); font-weight: 800; line-height: 1; }
.bfr-action-content { display: flex; flex-direction: column; gap: 1rem; flex-grow: 1; }
.bfr-action-row { display: flex; flex-direction: column; gap: 0.25rem; font-size: 1.05rem; }
.bfr-action-row span:first-child { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* CH6 */
.bfr-vs { display: flex; gap: 2rem; margin-top: 1rem; }
.bfr-vs-col { flex: 1; padding: 2rem; border-top: 4px solid; display: flex; flex-direction: column; gap: 1.5rem; border-radius: 12px; }
.bfr-vs-today { background: #F7F7F4; border-color: #E8E8E2; }
.bfr-vs-bookfly { background: #FFF0EA; border-color: #CB5024; }
.bfr-vs-col h4 { font-size: 1.25rem; font-family: var(--font-display); margin: 0; }
.bfr-vs-col ul { padding-left: 1.5rem; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.bfr-vs-col li { font-size: 1.05rem; }

/* Screen report cards */
.d-chapter {
  border: 1px solid #DDDCD5 !important;
  box-shadow: 0 18px 50px rgba(20, 22, 26, .08) !important;
  border-radius: 18px !important;
}
.d-chapter-header {
  background: #14161A !important;
  padding: 1.6rem 2rem !important;
  color: #FFF !important;
  border-bottom: 4px solid #CB5024;
}
.d-chapter-num { font-size: 1rem !important; width: 34px !important; height: 34px !important; border: 2px solid #F07A4D !important; color: #F07A4D !important; }
.d-chapter-title { color: #FFF !important; font-size: 1.5rem !important; }
.d-chapter-content { padding: 2rem !important; }
.d-tech-details { display: none !important; }

@media print {
  body { background: #FFF !important; }
  .d-report { padding: 0 !important; }
  .d-chapters { gap: 0 !important; display: block !important; }
  .d-chapter {
    page-break-before: always;
    page-break-inside: avoid;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2rem 0 !important;
    min-height: auto;
  }
  .d-chapter:first-of-type { page-break-before: auto; }
  .d-locked-overlay, .d-locked-cta, .d-actions, .d-tech-details { display: none !important; }
  .bfr-tree-leaf { background: #F7F7F4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bfr-rep { background: #F7F7F4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bfr-vs-today { background: #F7F7F4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bfr-vs-bookfly { background: #FFF0EA !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Fix layout on A4 */
  .bfr-indicators { display: flex; flex-direction: row !important; }
  .bfr-vs { display: flex; flex-direction: row !important; }

  /* Hide print headers from previous media query */
  .d-chapter-header {
    background: transparent !important;
    color: #14161A !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }
  .d-chapter-title { color: #14161A !important; }
}

@media (max-width: 768px) {
  .bfr-indicators { flex-direction: column; gap: 1.5rem; }
  .bfr-vs { flex-direction: column; }
}

/* Commercial six-page report */
.bfr-restaurant-id { display: flex; align-items: center; gap: 1rem; }
.bfr-restaurant-id h3 { margin: 0 0 .25rem; color: #14161A; font-size: 1.35rem; }
.bfr-restaurant-id p { margin: 0; color: #6F6F69; }
.bfr-restaurant-photo { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.bfr-photo-fallback { display: grid; place-items: center; background: #F2F2EE; color: #A7A7A0; font-weight: 800; }
.bfr-opportunity-hero { padding: 2.4rem; background: #FFF4EE; border-top: 5px solid #CB5024; text-align: center; }
.bfr-opportunity-hero > span, .bfr-demand-story > span, .bfr-position-story > span, .bfr-reputation-hero > span {
  display: block; color: #5E5E59; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.bfr-reservation-range { margin: .5rem 0 0; color: #CB5024; font-family: var(--font-display, system-ui); font-size: 4.4rem; font-weight: 900; line-height: .95; letter-spacing: -.05em; }
.bfr-opportunity-hero > strong { display: block; color: #14161A; font-size: 1.1rem; }
.bfr-economic-range { margin-top: 1.15rem; color: #14161A; font-family: var(--font-display, system-ui); font-size: 2rem; font-weight: 800; white-space: nowrap; }
.bfr-opportunity-hero small { display: block; color: #5E5E59; }
.bfr-opportunity-hero p { max-width: 680px; margin: 1.2rem auto 0; color: #6F6F69; font-size: .82rem; line-height: 1.5; }
.bfr-ticket-basis {
  max-width: 660px;
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  border: 1px solid #E4CFC4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
  color: #4E4E49;
  font-size: .78rem;
  line-height: 1.45;
}
.bfr-ticket-basis strong, .bfr-ticket-basis span, .bfr-ticket-basis em { display: block; }
.bfr-ticket-basis strong { color: #14161A; }
.bfr-ticket-basis em { margin-top: .25rem; color: #7A4C38; font-style: normal; font-weight: 700; }
.bfr-opportunity-hero.is-unknown { background: #F3F3EF; border-color: #A7A7A0; }
.bfr-no-estimate { margin-top: .6rem; color: #5E5E59; font-size: 2rem; font-weight: 800; }
.bfr-opportunity-hero.is-unknown > strong { margin-top: .6rem; color: #2E6B4F; }
.bfr-method-note { margin: -1.25rem 0 0; color: #777770; font-size: .78rem; line-height: 1.5; }
.bfr-cover-indicators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #E3E3DD; }
.bfr-cover-indicators article { padding: 1.25rem 1.4rem; border-right: 1px solid #E3E3DD; }
.bfr-cover-indicators article:last-child { border-right: 0; }
.bfr-cover-indicators span { color: #6F6F69; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bfr-cover-indicators strong { display: block; margin: .45rem 0; color: #14161A; font-size: 1.25rem; line-height: 1.15; }
.bfr-cover-indicators article:first-child strong { color: #CB5024; font-size: 2rem; }
.bfr-cover-indicators p { margin: 0; color: #6F6F69; font-size: .84rem; }
.bfr-cover-indicators article.bfr-booking-warning { background: #FFF8F4; }
.bfr-cover-indicators article.bfr-booking-warning > strong { color: #9F3D1C; font-size: 1.05rem; }
.bfr-booking-opportunity { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid #E8CFC3; }
.bfr-booking-opportunity > span, .bfr-booking-opportunity > small { display: block; color: #6F6F69; font-size: .72rem; font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.bfr-booking-opportunity > b { display: block; margin: .18rem 0; color: #CB5024; font-family: var(--font-display, system-ui); font-size: 2.15rem; font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.bfr-cover-reasons h3, .bfr-named-competitors h3, .bfr-web-checks h3 { margin: 0 0 .8rem; color: #14161A; font-size: 1.05rem; }
.bfr-cover-reasons > div { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid #E8E8E2; }
.bfr-cover-reasons b { color: #CB5024; }
.bfr-cover-reasons p { margin: 0; color: #282A2E; }
.bfr-demand-story { position: relative; padding: 2rem; background: #F7F7F4; }
.bfr-demand-story > strong { display: block; margin: .25rem 0; color: #14161A; font-size: 3.2rem; font-weight: 900; line-height: 1; }
.bfr-demand-story > b { color: #5E5E59; }
.bfr-demand-story > p { max-width: 650px; margin: 1rem 0 0; color: #393935; line-height: 1.5; }
.bfr-demand-story aside { position: absolute; top: 2rem; right: 2rem; display: flex; flex-direction: column; text-align: right; color: #CB5024; }
.bfr-demand-story aside strong { font-size: 1.8rem; }
.bfr-measured-queries { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.bfr-measured-queries > span { margin-right: .2rem; color: #777770; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bfr-measured-queries > b { padding: .35rem .55rem; border: 1px solid #DCDCD6; border-radius: 999px; background: #FFF; color: #4E4E49; font-size: .74rem; font-weight: 600; }
.bfr-addressable-market { padding: 1.4rem; border: 1px solid #DCDCD6; border-radius: 1rem; background: #FFF; }
.bfr-addressable-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; }
.bfr-addressable-heading > div > span, .bfr-representative-queries h3 { color: #777770; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bfr-addressable-heading h3 { margin: .2rem 0; color: #14161A; font-size: 1.35rem; }
.bfr-addressable-heading p { max-width: 650px; margin: 0; color: #5E5E59; font-size: .86rem; line-height: 1.5; }
.bfr-addressable-range { min-width: 210px; text-align: right; }
.bfr-addressable-range strong { display: block; color: #CB5024; font-size: 2rem; line-height: 1; }
.bfr-addressable-range span { color: #5E5E59; font-size: .75rem; }
.bfr-demand-families { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .6rem; margin-top: 1rem; }
.bfr-demand-families > div { padding: .7rem; border-radius: .65rem; background: #F7F7F4; }
.bfr-demand-families span, .bfr-demand-families small { display: block; color: #6F6F69; font-size: .68rem; }
.bfr-demand-families strong { display: block; margin: .15rem 0; color: #14161A; font-size: 1.15rem; }
.bfr-representative-queries { margin-top: 1.1rem; }
.bfr-representative-queries article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid #E7E7E1; }
.bfr-representative-queries article div span, .bfr-representative-queries article div strong, .bfr-representative-queries article small { display: block; }
.bfr-representative-queries article div span, .bfr-representative-queries article small { color: #6F6F69; font-size: .7rem; }
.bfr-representative-queries article b { color: #14161A; font-size: .78rem; white-space: nowrap; }
.bfr-representative-queries article em { color: #CB5024; font-size: .78rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.bfr-representative-queries article small { grid-column: 1 / -1; }
.bfr-addressable-caveat { margin: .8rem 0 0; color: #777770; font-size: .72rem; line-height: 1.45; }
.bfr-data-unavailable {
  padding: 1.6rem;
  background: #F7F7F4;
  border: 1px solid #DCDCD6;
  border-left: 5px solid #8A8A84;
  border-radius: 12px;
}
.bfr-data-unavailable > span {
  display: block;
  color: #6F6F69;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bfr-data-unavailable > strong { display: block; margin: .35rem 0; color: #14161A; font-size: 1.45rem; }
.bfr-data-unavailable p { margin: 0; color: #4E4E49; line-height: 1.5; }
.bfr-data-unavailable small { display: block; margin-top: .65rem; color: #777770; }
.bfr-data-unavailable.is-low-volume { border-left-color: #CB5024; background: #FFF8F4; }
.bfr-history-signal { display: flex; align-items: baseline; gap: .6rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #E5D8D1; }
.bfr-history-signal b { color: #CB5024; font-size: 1.6rem; }
.bfr-history-signal span { color: #5E5E59; font-size: .82rem; }
.bfr-position-story { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .25rem 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #14161A; }
.bfr-position-story > strong { grid-row: span 2; color: #CB5024; font-size: 3.2rem; line-height: 1; }
.bfr-position-story p { margin: 0; color: #5E5E59; }
.bfr-named-competitors article { display: grid; grid-template-columns: 44px 42px 1fr; align-items: center; gap: .8rem; padding: .62rem 0; border-bottom: 1px solid #E8E8E2; }
.bfr-named-competitors img, .bfr-comp-fallback { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.bfr-comp-fallback { display: grid; place-items: center; background: #F0F0EC; color: #979790; font-weight: 800; }
.bfr-named-competitors article > b { color: #CB5024; font-size: 1.15rem; }
.bfr-named-competitors article div:last-child { display: flex; flex-direction: column; }
.bfr-named-competitors article span { color: #6F6F69; font-size: .83rem; }
.bfr-more-competitors, .bfr-muted { margin: .7rem 0 0; color: #6F6F69; font-size: .85rem; }
.bfr-three-way { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #F7F7F4; }
.bfr-three-way article { padding: 1rem; border-right: 1px solid #DEDED8; }
.bfr-three-way article:last-child { border: 0; }
.bfr-three-way span { color: #6F6F69; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bfr-three-way strong { display: block; margin: .35rem 0; color: #14161A; font-size: 1.25rem; }
.bfr-three-way p { margin: 0; color: #5E5E59; font-size: .83rem; }
.bfr-insight { margin: 0; padding-left: 1rem; border-left: 3px solid #CB5024; color: #282A2E; font-weight: 700; line-height: 1.45; }
.bfr-decision-tree { display: flex; flex-direction: column; align-items: stretch; }
.bfr-tree-step { align-self: center; min-width: 310px; padding: .8rem 1.2rem; border: 1px solid #DCDCD6; text-align: center; }
.bfr-tree-step span { color: #5E5E59; }
.bfr-tree-step strong { display: block; color: #14161A; }
.bfr-tree-step.is-dark { background: #14161A; border-color: #14161A; }
.bfr-tree-step.is-dark span { color: #FFF; font-weight: 800; }
.bfr-tree-arrow { align-self: center; color: #B7B7B0; line-height: 1.35; }
.bfr-tree-split { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.bfr-tree-split::before { content: ""; position: absolute; left: 25%; right: 25%; top: -.65rem; height: 1px; background: #CBCBC5; }
.bfr-tree-split > section > h3 { margin: 0 0 .55rem; color: #14161A; text-align: center; }
.bfr-branch-card { padding: .9rem; background: #F7F7F4; border-left: 4px solid #A7A7A0; }
.bfr-branch-card.is-green { border-color: #1F9D55; }
.bfr-branch-card.is-orange { border-color: #CB5024; }
.bfr-branch-card > span { display: block; color: #6F6F69; font-size: .75rem; }
.bfr-branch-card strong { display: block; margin: .2rem 0; color: #14161A; }
.bfr-branch-card p { margin: 0; color: #5E5E59; font-size: .76rem; line-height: 1.35; }
.bfr-resolved-path, .bfr-risk-path { margin-top: .5rem; padding: .65rem; font-size: .8rem; line-height: 1.4; text-align: center; }
.bfr-resolved-path { background: #EAF6EF; color: #166A3D; }
.bfr-risk-path { background: #FFF2EA; color: #9F3D1C; font-weight: 800; }
.bfr-mini-split { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.bfr-mini-split div { padding: .65rem; border: 1px solid #E3E3DD; }
.bfr-mini-split b, .bfr-mini-split span { display: block; font-size: .72rem; }
.bfr-mini-split span { margin-top: .25rem; color: #6F6F69; }
.bfr-web-checks { width: 100%; margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid #E3E3DD; }
.bfr-web-checks > div { display: flex; justify-content: space-between; padding: .35rem 0; }
.bfr-web-checks > div span { color: #282A2E; }
.bfr-web-checks > div.is-green strong { color: #1F9D55; }
.bfr-web-checks > div.is-orange strong { color: #CB5024; }
.bfr-web-checks > div.is-gray strong { color: #777770; }
.bfr-primary-friction { margin-top: 1rem; padding: 1rem; border-left: 5px solid #CB5024; background: #FFF4EE; }
.bfr-primary-friction span, .bfr-ideal-path span { display: block; color: #8A8A84; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bfr-primary-friction strong { display: block; margin-top: .3rem; color: #14161A; }
.bfr-ideal-path { margin-top: .7rem; padding: 1rem; background: #14161A; text-align: center; }
.bfr-ideal-path strong, .bfr-ideal-path small { display: block; color: #FFF; }
.bfr-ideal-path small { margin-top: .25rem; color: #C9C9C4; }
.bfr-channel-statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #E1E1DB; }
.bfr-channel-statuses div { display: flex; justify-content: space-between; gap: .6rem; padding: .58rem .8rem; background: #FFF; font-size: .78rem; }
.bfr-channel-statuses .is-green strong { color: #1F9D55; }
.bfr-channel-statuses .is-orange strong { color: #CB5024; }
.bfr-channel-statuses .is-gray strong { color: #777770; }
.bfr-reputation-hero { text-align: center; padding: 1.8rem; background: #F7F7F4; }
.bfr-reputation-hero strong { color: #14161A; font-size: 4rem; line-height: 1; }
.bfr-reputation-hero b { color: #5E5E59; font-size: 1.6rem; }
.bfr-reputation-hero p { margin: .5rem 0 0; color: #5E5E59; }
.bfr-reputation-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.bfr-reputation-evidence.has-single-panel { grid-template-columns: 1fr; }
.bfr-reputation-evidence section { padding: 1rem; border: 1px solid #DEDED8; border-top: 4px solid #1F9D55; border-radius: 10px; background: #F7F7F4; }
.bfr-reputation-evidence section.is-warning { border-top-color: #CB5024; }
.bfr-reputation-evidence section.is-neutral { border-top-color: #8A8A84; }
.bfr-reputation-evidence h3 { margin: 0 0 .55rem; color: #14161A; font-size: 1rem; }
.bfr-reputation-evidence p { margin: .35rem 0; color: #4E4E49; font-size: .83rem; }
.bfr-sample-note { margin: -.7rem 0 0; color: #777770; font-size: .78rem; }
.bfr-review-loop { padding: 1rem; border: 1px solid #DEDED8; text-align: center; }
.bfr-review-loop strong { color: #14161A; }
.bfr-review-loop span { margin: 0 .35rem; color: #CB5024; }
.bfr-review-loop p { margin: .6rem 0 0; color: #5E5E59; font-size: .82rem; }
.bfr-action-lead { margin: 0; color: #14161A; font-size: 1.35rem; }
.bfr-actions-list article { display: grid; grid-template-columns: 45px 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid #DEDED8; }
.bfr-actions-list article > b { color: #CB5024; font-size: 1.8rem; }
.bfr-actions-list h3 { margin: 0 0 .7rem; color: #14161A; font-size: 1.15rem; }
.bfr-actions-list article div > span { display: block; color: #777770; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bfr-actions-list article div > span.is-bookfly { color: #CB5024; }
.bfr-actions-list article p { margin: .12rem 0 .55rem; color: #393935; font-size: .86rem; line-height: 1.4; }
.bfr-today-vs { border-block: 2px solid #14161A; }
.bfr-today-vs header, .bfr-today-vs > div { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1rem; padding: .62rem .8rem; }
.bfr-today-vs header { background: #14161A; color: #FFF; }
.bfr-today-vs header::before { content: "Canal"; }
.bfr-today-vs > div { border-bottom: 1px solid #E5E5DF; font-size: .83rem; }
.bfr-today-vs > div > strong { color: #14161A; }
.bfr-today-vs > div > span { color: #6F6F69; }
.bfr-today-vs > div > b { color: #CB5024; }
.bfr-final-cta { padding: 2rem; background: #FFF4EE; text-align: center; }
.bfr-final-cta h3 { margin: 0; color: #14161A; font-size: 1.45rem; }
.bfr-final-cta p { max-width: 620px; margin: .6rem auto 1.2rem; color: #5E5E59; }

@media print {
  @page { size: A4; margin: 11mm 12mm; }
  html, body { font-size: 9pt !important; }
  .site-header, .d-report-kicker { display: none !important; }
  .d-report-wrap { max-width: none !important; }
  .d-chapter {
    display: block !important;
    break-before: page !important;
    page-break-before: always !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    padding: 0 !important;
    height: auto !important;
  }
  .d-chapter:first-child { break-before: auto !important; page-break-before: auto !important; }
  .d-chapter-header { padding: 0 0 4mm !important; }
  .d-chapter-content { padding: 4mm 0 0 !important; gap: 4mm !important; }
  .d-chapter-title { font-size: 17pt !important; }
  .bfr-opportunity-hero { padding: 7mm; }
  .bfr-reservation-range { font-size: 42pt; }
  .bfr-cover-indicators article { padding: 4mm; }
  .bfr-cover-reasons > div { padding: 2.5mm 0; }
  .bfr-demand-story { padding: 5mm; }
  .bfr-demand-story > strong { font-size: 32pt; }
  .bfr-position-story > strong { font-size: 28pt; }
  .bfr-named-competitors article { padding: 2mm 0; }
  .bfr-named-competitors img, .bfr-comp-fallback { width: 10mm; height: 10mm; }
  .bfr-tree-split { margin-top: 3mm; gap: 4mm; }
  .bfr-tree-split::before { top: -2mm; }
  .bfr-branch-card, .bfr-primary-friction, .bfr-ideal-path { padding: 3mm; }
  .bfr-tree-step { padding: 2mm 4mm; }
  .bfr-tree-arrow { line-height: 1; }
  .bfr-web-checks { margin-top: 3mm; padding-top: 2mm; }
  .bfr-channel-statuses div { padding: 1.5mm 2mm; }
  .bfr-reputation-hero { padding: 6mm; }
  .bfr-reputation-hero strong { font-size: 36pt; }
  .bfr-actions-list { gap: 0 !important; }
  .bfr-actions-list article { padding: 4mm 0; }
  .bfr-today-vs header, .bfr-today-vs > div { padding: 2mm 3mm; }
  .bfr-final-cta { padding: 6mm; }
  .bfr-final-cta .d-btn-primary { padding: 3mm 5mm; }
  .bfr-demand-story, .bfr-three-way, .bfr-tree-split, .bfr-primary-friction,
  .bfr-ideal-path, .bfr-reputation-evidence, .bfr-review-loop, .bfr-actions-list article,
  .bfr-today-vs, .bfr-final-cta { break-inside: avoid; page-break-inside: avoid; }
}

@media (max-width: 768px) {
  .d-report { padding-inline: 1rem; }
  .d-chapter-header { padding: 1.35rem 1.5rem !important; }
  .d-chapter-content { padding: 1.4rem !important; }
  .bfr-cover-indicators, .bfr-three-way, .bfr-tree-split, .bfr-reputation-evidence { grid-template-columns: 1fr; }
  .bfr-cover-indicators article, .bfr-three-way article { border-right: 0; border-bottom: 1px solid #E3E3DD; }
  .bfr-opportunity-hero { padding: 1.6rem 1rem; }
  .bfr-no-estimate { font-size: 1.55rem; line-height: 1.15; }
  .bfr-demand-story aside { position: static; margin-top: 1rem; text-align: left; }
  .bfr-reservation-range { font-size: 3.2rem; }
  .bfr-economic-range { font-size: 1.75rem; }
  .bfr-tree-step { min-width: 0; width: 100%; }
  .bfr-channel-statuses { grid-template-columns: 1fr; }
  .bfr-today-vs header, .bfr-today-vs > div { grid-template-columns: 1fr; gap: .25rem; }
  .bfr-today-vs header::before { display: none; }
}

/* CONTACT MODAL ADDITIONS */
#d-contact-overlay .d-modal {
  border-color: #14161A;
}
#d-contact-overlay .d-modal-title {
  color: #14161A;
}
#d-contact-overlay .d-modal-desc {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.d-success {
  background: #DBF3E5;
  color: #1F9D55;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  border: 1px solid #1F9D55;
  text-align: center;
}
