/* ===================================================
   IBCO Diagnostic App — Styles
   AIxentic · Professional Industrial Theme
   =================================================== */

/* --- Self-hosted Typography (Soberanía EEE · 0 llamadas externas) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --bg: #0b0f1a;
  --bg-card: #131829;
  --bg-card-alt: #1a2035;
  --bg-input: #1e2540;
  --border: #2a3154;
  --border-hover: #3d4e80;
  --text: #e0e4ef;
  --text-dim: #8892b0;
  --text-muted: #5a6580;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, .18);
  --accent-hover: #6aa0ff;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --critical: #ef4444;

  /* Dimension colors */
  --dim-estructura: #4f8cff;
  --dim-flujo: #a78bfa;
  --dim-entorno: #34d399;
  --dim-resiliencia: #fbbf24;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background layers — real DOM elements for reliability */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-image {
  background-image: url("./background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 2;
}

.bg-overlay {
  background: radial-gradient(ellipse at top, rgba(10, 16, 26, 0.55), rgba(7, 10, 16, 0.85));
  z-index: 1;
}

/* --- Layout --- */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

#screen-extended .container {
  max-width: 960px;
}

/* --- Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.header-tag {
  font-size: .78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: .78rem;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Footer --- */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.2s var(--ease);
}

.footer-legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: var(--border);
}

/* --- Screens --- */
.screen {
  display: none;
  animation: fadeUp .5s var(--ease);
}

.screen.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Form Hero --- */
.form-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.form-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
}

/* --- Question Card --- */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.question-card:hover {
  border-color: var(--border-hover);
}

.question-card.answered {
  border-color: rgba(79, 140, 255, .35);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, .12);
}

.question-card.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, .15);
}

.question-card.next-focus {
  outline: 1px solid rgba(79, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
  transition: box-shadow .35s ease;
}

/* --- Progress Bar --- */
.progress-wrap {
  margin: 18px 0 22px;
}

.progress-label {
  font-size: 12px;
  color: #8ea0c2;
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f8cff, #6aa5ff);
  border-radius: 999px;
  transition: width .25s ease;
}

.question-card.next-focus {
  outline: 1px solid rgba(79, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
  transition: box-shadow .35s ease;
}

/* Print-only sections — hidden on web */
.print-only {
  display: none;
}

.question-dim {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.question-dim[data-dim="estructura_operativa"] {
  background: rgba(79, 140, 255, .14);
  color: var(--dim-estructura);
}

.question-dim[data-dim="flujo_ineficiencia"] {
  background: rgba(167, 139, 250, .14);
  color: var(--dim-flujo);
}

.question-dim[data-dim="entorno_competitivo"] {
  background: rgba(52, 211, 153, .14);
  color: var(--dim-entorno);
}

.question-dim[data-dim="resiliencia"] {
  background: rgba(251, 191, 36, .14);
  color: var(--dim-resiliencia);
}

.question-dim[data-dim="sector"] {
  background: rgba(255, 255, 255, .08);
  color: var(--text-dim);
}

.question-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.question-micro {
  font-size: .84rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-style: italic;
}

/* --- Radio Options --- */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-size: .92rem;
}

.option-label:hover {
  background: #232a48;
  border-color: var(--border-hover);
}

.option-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all .2s var(--ease);
  position: relative;
}

.option-label input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-input);
}

.option-label:has(input:checked) {
  background: rgba(79, 140, 255, .08);
  border-color: rgba(79, 140, 255, .3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6c5ce7);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 140, 255, .25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(79, 140, 255, .35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.form-footer {
  text-align: center;
  padding: 24px 0 60px;
}

.form-error {
  color: var(--danger);
  font-size: .88rem;
  margin-bottom: 14px;
}

/* --- Results Screen --- */
.results-header {
  text-align: center;
  padding: 48px 0 24px;
}

.results-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(79, 140, 255, .12);
  color: var(--accent);
  margin-bottom: 12px;
}

.results-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* --- IBCO Score Card --- */
.ibco-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.ibco-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.2s var(--ease), stroke .4s;
}

.ibco-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}

.ibco-value span {
  font-size: 2.2rem;
  font-weight: 800;
}

.ibco-value small {
  font-size: .9rem;
  color: var(--text-dim);
}

.ibco-meta {
  flex: 1;
}

.ibco-level {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.ibco-level.band-0 {
  background: rgba(52, 211, 153, .15);
  color: var(--success);
}

.ibco-level.band-1 {
  background: rgba(251, 191, 36, .15);
  color: var(--warning);
}

.ibco-level.band-2 {
  background: rgba(248, 113, 113, .15);
  color: var(--danger);
}

.ibco-level.band-3 {
  background: rgba(239, 68, 68, .18);
  color: var(--critical);
}

.ibco-explain {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.ibco-sub {
  font-size: 13px;
  color: #8ea0c2;
  margin-top: 6px;
  max-width: 620px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.card-economic .economic-range {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 6px;
}

.card-economic .economic-note {
  font-size: .84rem;
  color: var(--text-dim);
}

/* Drivers */
.drivers-list {
  padding-left: 0;
  list-style: none;
  counter-reset: driver;
}

.drivers-list li {
  counter-increment: driver;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
  line-height: 1.5;
}

.drivers-list li:last-child {
  border-bottom: none;
}

.drivers-list li::before {
  content: counter(driver);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(79, 140, 255, .12);
  color: var(--accent);
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}

.card-empathic {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
}

.card-empathic p {
  font-size: .93rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- CTA --- */
.cta-block {
  text-align: center;
  padding: 20px 0 60px;
}

.cta-sub {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--text-muted);
}

/* --- Extended Gate --- */
.extended-gate {
  padding: 48px 0 60px;
}

.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.gate-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gate-card>p {
  color: var(--text-dim);
  font-size: .92rem;
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-group label .req {
  color: var(--danger);
}

.field-group label .rec {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .82rem;
}

.field-group input[type="email"],
.field-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  transition: border-color .2s var(--ease);
}

.field-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.field-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.field-note {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* Radio row for R1/R2 */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-row .option-label {
  flex: 1;
  min-width: 110px;
  justify-content: center;
  text-align: center;
}

/* --- RGPD Consent Notice & Checkboxes --- */
.consent-notice {
  margin-top: 22px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.consent-info-text {
  margin-bottom: 12px;
}

.consent-info-text strong {
  color: var(--text);
  font-weight: 600;
}

.consent-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease);
}

.consent-link:hover {
  color: var(--accent-hover);
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Session Request Box (Lead Qualification at report end) --- */
.session-request-box {
  margin: 24px 0 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08) 0%, rgba(20, 25, 45, 0.6) 100%);
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.session-request-box:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.15);
}

.session-checkbox-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  align-items: center;
}

.session-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0;
  margin-right: 6px;
}

.session-feedback-msg {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  color: #e0e4ef;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeUp 0.3s var(--ease);
}

.feedback-success-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Extended Report --- */
.extended-report {
  padding-bottom: 60px;
  animation: fadeUp .5s var(--ease);
}

/* ── Executive cover ── */
.report-cover {
  padding: 28px 28px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cover-logo {
  height: 40px;
  width: auto;
  display: block;
}

.cover-meta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aa8c7;
}

.cover-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0 10px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-sub {
  text-align: center;
  font-size: 14px;
  color: #b8c3dd;
  margin-bottom: 6px;
}

.cover-conf {
  text-align: center;
  font-size: 12px;
  color: #8ea0c2;
  margin-bottom: 18px;
}

.cover-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0 16px;
}

.cover-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.kpi {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.kpi-label {
  font-size: 11px;
  color: #9aa8c7;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #e8eefc;
}

.cover-note {
  font-size: 12px;
  color: #9aa8c7;
  text-align: center;
  margin-top: 10px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.cover-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #9aa8c7;
  opacity: .95;
}

@media (max-width: 720px) {
  .cover-kpis {
    grid-template-columns: 1fr;
  }

  .cover-top {
    justify-content: center;
    flex-direction: column;
  }
}

/* Report sections */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  text-align: right;
}

/* Radar */
.radar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#radarCanvas {
  max-width: 100%;
  height: auto;
}

.dimension-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.dim-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
}

.dim-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Dimension blocks */
.dim-block {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
}

.dim-block:last-child {
  margin-bottom: 0;
}

.dim-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dim-block-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dim-block-title {
  font-weight: 700;
  font-size: .95rem;
}

.dim-block-score {
  margin-left: auto;
  font-weight: 700;
  font-size: .92rem;
}

.dim-block p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Optimization phases */
.opt-phases {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.opt-phase {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border-left: 3px solid var(--accent);
}

.opt-phase:nth-child(2) {
  border-left-color: #a78bfa;
}

.opt-phase:nth-child(3) {
  border-left-color: var(--success);
}

.opt-phase h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.opt-phase p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Report general text */
.report-text {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.report-text:last-child {
  margin-bottom: 0;
}

.report-final {
  text-align: center;
}

.report-final p {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.final-contact {
  margin-top: 16px;
  font-size: 1.1rem;
}

.final-contact strong {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .gate-card {
    padding: 22px 16px;
  }

  .form-hero h1 {
    font-size: 1.5rem;
  }

  .ibco-card {
    flex-direction: column;
    text-align: center;
  }

  .question-card {
    padding: 20px;
  }

  .radio-row .option-label {
    min-width: 80px;
    font-size: .82rem;
    padding: 10px 8px;
  }

  .cover-stats {
    flex-direction: column;
    align-items: center;
  }

  .header-tag {
    display: none;
  }
}

/* ===============================
   INTRO SCREEN IBCO
================================ */

.intro-hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.78);
}

.intro-content {
  position: relative;
  max-width: 860px;
  padding: 42px 26px;
  color: #ffffff;
}

.intro-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 255, .14);
  color: var(--accent);
  margin-bottom: 14px;
}

.intro-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.intro-lead {
  margin: 0 auto 18px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  opacity: .92;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 26px;
}

.intro-point {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
}

.intro-foot {
  margin-top: 14px;
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 640px) {
  .intro-content h1 {
    font-size: 30px;
  }
}

/* FIX: Intro por encima de bg-layers */
#screen-intro {
  position: relative;
  z-index: 10;
}

#screen-intro .intro-hero {
  position: relative;
  z-index: 11;
  background: url("./imagen_inicio.webp") center center / cover no-repeat;
}

#screen-intro .intro-content {
  position: relative;
  z-index: 12;
}

#screen-intro .intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 11;
  background: rgba(10, 15, 25, 0.70);
}

/* ======================================================
   ESTILOS DE INFORME EJECUTIVO (RADAR EN PORTADA + 4 PÁGINAS)
   ====================================================== */

/* Estilos de Radar Integrado en Portada (Pantalla) */
.cover-radar-block {
  margin: 14px 0 16px;
  text-align: center;
}

.cover-radar-block .radar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   SISTEMA EDITORIAL DE 7 PÁGINAS (INFORME EJECUTIVO AIXENTIC)
   ══════════════════════════════════════════════════════ */

/* Contenedor general de reporte */
#extended-report {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* Base de página en pantalla */
.report-page {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px;
  padding: 36px 42px 28px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Footer común de página editorial */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #5D6A7D;
  border-top: 1px solid #DCE3EC;
  padding-top: 12px;
  margin-top: 24px;
  font-weight: 500;
}
.page-footer .page-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1B2638;
}

/* ── PÁGINA 1: PORTADA EJECUTIVA (NAVY DARK) ── */
.report-page-1 {
  background: #0B1220;
  color: #ffffff;
  border: 1px solid #1D2B43;
  padding: 44px 46px 32px;
}
.p1-decorations {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  gap: 12px;
}
.decor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.decor-cyan { background: #12C7F4; box-shadow: 0 0 8px rgba(18, 199, 244, 0.6); }
.decor-magenta { background: #E83AA8; box-shadow: 0 0 8px rgba(232, 58, 168, 0.6); }

.p1-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1D2B43;
}
.p1-logo {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  display: block;
}
.p1-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #AAB7C8;
  letter-spacing: 0.12em;
}

.p1-hero {
  margin-bottom: 28px;
}
.p1-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 10px;
}
.accent-cyan {
  color: #12C7F4;
}
.p1-subtitle {
  font-size: 0.98rem;
  color: #B7C2D1;
  margin: 0;
  max-width: 620px;
  line-height: 1.45;
}

.p1-company-block {
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1D2B43;
}
.p1-company-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8F9EB1;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.p1-company-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.p1-company-meta {
  font-size: 0.84rem;
  color: #8F9EB1;
}

/* Tarjetas métricas (Común Dark / Light) */
.metric-card {
  position: relative;
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-sizing: border-box;
}
.metric-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.metric-cyan .metric-accent-bar { background: #12C7F4; }
.metric-magenta .metric-accent-bar { background: #E83AA8; }
.metric-green .metric-accent-bar { background: #17B890; }

.metric-dark {
  background: #162238;
  border: 1px solid #2B3950;
  color: #ffffff;
}
.metric-dark .metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #AAB7C8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.metric-dark .metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.metric-dark .metric-sub {
  font-size: 0.74rem;
  color: #AAB7C8;
}

.p1-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 16px;
  margin-bottom: 14px;
}

.p1-note-italic {
  font-size: 0.78rem;
  font-style: italic;
  color: #AAB7C8;
  margin: 0 0 22px;
  line-height: 1.4;
}

/* Caja de drivers página 1 */
.p1-drivers-box {
  background: #111B2E;
  border: 1px solid #2B3950;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.p1-drivers-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.p1-drivers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p1-driver-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}
.p1-driver-circle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p1-driver-text {
  flex: 1;
  color: #ffffff;
  font-weight: 600;
}
.p1-driver-area {
  font-size: 0.74rem;
  color: #8F9EB1;
  text-transform: capitalize;
  text-align: right;
}

.web-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 0;
}
.p1-footer {
  border-top-color: #2B3950;
  color: #AAB7C8;
}
.p1-footer .page-num {
  color: #ffffff;
}

/* ── CABECERA EDITORIAL (PÁGINAS 2 A 7) ── */
.report-page-editorial {
  background: #ffffff;
  border: 1px solid #DCE3EC;
  color: #1B2638;
}
.editorial-header {
  margin-bottom: 22px;
}
.editorial-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0B1220;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.12);
}
.editorial-logo {
  height: 24px;
  width: auto;
  display: block;
}
.editorial-header-divider {
  height: 1px;
  background: #DCE3EC;
  margin-bottom: 14px;
}
.editorial-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3D7EFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.editorial-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B2638;
  margin: 0;
}

/* Secciones editoriales */
.editorial-section {
  margin-bottom: 24px;
}
.editorial-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sec-bar {
  width: 3px;
  height: 13px;
  border-radius: 2px;
}
.sec-bar-cyan { background: #12C7F4; }
.sec-bar-magenta { background: #E83AA8; }
.sec-bar-green { background: #17B890; }
.sec-bar-amber { background: #F5B82E; }
.editorial-section-title h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1B2638;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  white-space: nowrap;
}
.sec-line {
  flex: 1;
  height: 1px;
  background: #DCE3EC;
  margin-left: 6px;
}

/* ── PÁGINA 2: DASHBOARD EJECUTIVO ── */
.metric-light {
  background: #ffffff;
  border: 1px solid #DCE3EC;
  color: #1B2638;
}
.metric-light .metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5D6A7D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.metric-light .metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1B2638;
  line-height: 1.1;
  margin-bottom: 4px;
}
.metric-light .metric-sub {
  font-size: 0.74rem;
  color: #5D6A7D;
}
.p2-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 14px;
}

.p2-dim-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p2-dim-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.p2-dim-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B2638;
}
.p2-dim-track {
  width: 100%;
  height: 7px;
  background: #DCE3EC;
  border-radius: 4px;
  overflow: hidden;
}
.p2-dim-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.p2-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.insight-card {
  background: #F5F8FC;
  border: 1px solid #DCE3EC;
  border-radius: 12px;
  padding: 14px 16px;
}
.insight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.insight-num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  color: #0B1220;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insight-cyan { background: #12C7F4; }
.insight-magenta { background: #E83AA8; }
.insight-green { background: #17B890; }
.insight-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1B2638;
  margin: 0;
}
.insight-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #5D6A7D;
  margin: 0;
}

/* ── PÁGINA 3: RADAR + INTERPRETACIÓN ── */
.p3-radar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px auto 8px;
  max-width: 420px;
}
.p3-radar-wrapper canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
}
.p3-radar-note {
  text-align: center;
  font-size: 0.76rem;
  color: #5D6A7D;
  margin: 0 0 16px;
}

.p3-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p3-dim-card {
  background: #ffffff;
  border: 1px solid #DCE3EC;
  border-top: 5px solid #3D7EFF;
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
}
.p3-dim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.p3-dim-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1B2638;
}
.p3-dim-val {
  font-size: 0.86rem;
  font-weight: 800;
}
.p3-dim-divider {
  height: 1px;
  background: #DCE3EC;
  margin-bottom: 8px;
}
.p3-dim-desc {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #1B2638;
  margin: 0;
}

.p3-synthesis-box {
  background: #F8FAFC;
  border: 1px solid #DCE3EC;
  border-left: 4px solid #12C7F4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
}
.p3-synthesis-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0B1220;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.p3-synthesis-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
  margin: 0;
}

/* ── PÁGINA 4: DRIVERS + CARGA COGNITIVA ── */
.p4-drivers-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.p4-driver-card {
  background: #F5F8FC;
  border: 1px solid #DCE3EC;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.p4-driver-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.p4-driver-content {
  flex: 1;
}
.p4-driver-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1B2638;
  margin-bottom: 2px;
}
.p4-driver-area {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.p4-driver-desc {
  font-size: 0.76rem;
  line-height: 1.38;
  color: #5D6A7D;
  margin: 0;
}

.p4-cognitive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.p4-box-cognitive {
  background: #ffffff;
  border: 1px solid #DCE3EC;
  border-radius: 12px;
  padding: 16px 18px;
}
.p4-box-debt {
  background: #0B1220;
  border: 1px solid #0B1220;
  border-radius: 12px;
  padding: 16px 18px;
}
.p4-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1B2638;
  margin-bottom: 4px;
}
.p4-title-white {
  color: #ffffff;
}
.p4-box-bar {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.p4-bar-cyan { background: #12C7F4; }
.p4-bar-magenta { background: #E83AA8; }
.p4-box-text {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #1B2638;
  margin: 0;
}
.p4-text-light {
  color: #E7EDF5;
}

.p4-prioritization-box {
  background: #EEF9FC;
  border: 1px solid #BFEAF5;
  border-radius: 12px;
  padding: 12px 16px;
}
.p4-prioritization-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0B1220;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.p4-prioritization-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B2638;
  line-height: 1.4;
  margin: 0;
}

/* ── PÁGINA 5: CONTEXTO COMPETITIVO ── */
.p5-text-block p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #1B2638;
  margin: 0 0 10px;
}

.p5-infographic-card {
  background: #0B1220;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.p5-infographic-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-align: center;
}
.p5-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p5-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
  color: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.step-cyan { background: #12C7F4; }
.step-magenta { background: #E83AA8; }
.step-amber { background: #F5B82E; }
.step-green { background: #17B890; }
.step-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.step-desc {
  font-size: 0.68rem;
  color: #AAB7C8;
  line-height: 1.25;
  max-width: 110px;
}
.step-connector {
  width: 24px;
  height: 2px;
  background: #40506A;
  margin-bottom: 22px;
}

.p5-strategic-box {
  background: #F5F8FC;
  border: 1px solid #DCE3EC;
  border-radius: 14px;
  padding: 16px 20px;
}
.strategic-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5D6A7D;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.strategic-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0B1220;
  margin: 0 0 6px;
}
.strategic-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5D6A7D;
  margin: 0;
}

/* ── PÁGINA 6: HOJA DE RUTA ── */
.p6-sub {
  font-size: 0.86rem;
  color: #5D6A7D;
  margin: 0 0 18px;
  line-height: 1.45;
}
.p6-phases-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.p6-phase-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #DCE3EC;
  border-radius: 14px;
  padding: 16px 20px 14px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
}
.p6-phase-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
}
.stripe-cyan { background: #12C7F4; }
.stripe-magenta { background: #E83AA8; }
.stripe-green { background: #17B890; }

.p6-phase-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  color: #0B1220;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.circle-cyan { background: #12C7F4; }
.circle-magenta { background: #E83AA8; }
.circle-green { background: #17B890; }

.p6-phase-body {
  flex: 1;
}
.p6-phase-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #1B2638;
  margin: 0 0 2px;
}
.p6-phase-lead {
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.lead-cyan { color: #12C7F4; }
.lead-magenta { color: #E83AA8; }
.lead-green { color: #17B890; }

.p6-phase-text {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #1B2638;
  margin: 0 0 6px;
}
.p6-phase-crit {
  font-size: 0.72rem;
  color: #5D6A7D;
  margin: 0;
}

.p6-rule-box {
  background: #EEF9FC;
  border: 1px solid #BFEAF5;
  border-radius: 12px;
  padding: 12px 16px;
}
.rule-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0B1220;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.rule-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #1B2638;
  margin: 0;
}

/* ── PÁGINA 7: ALCANCE + SIGUIENTE PASO ── */
.p7-scope-text p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #1B2638;
  margin: 0 0 8px;
}

.p7-next-step-card {
  background: #0B1220;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 16px 0;
  color: #ffffff;
}
.step-card-bar {
  width: 42px;
  height: 4px;
  background: #12C7F4;
  border-radius: 2px;
  margin-bottom: 12px;
}
.step-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
}
.step-card-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  color: #D8E2EE;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.step-card-body {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #E7EDF5;
  margin: 0 0 8px;
}
.step-card-sub {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #B7C2D1;
  margin: 0 0 16px;
}

.p7-contact-grid,
.p7-contact-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #162238;
  border: 1px solid #2B3950;
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
}
.contact-col .col-main {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.col-cyan { color: #12C7F4; }
.col-magenta { color: #12C7F4; } /* Ambas en azul corporativo según especificación */
.col-green { color: #12C7F4; }
.contact-col .col-sub {
  font-size: 0.70rem;
  color: #8F9EB1;
}

.p7-legal-note {
  font-size: 0.72rem;
  font-style: italic;
  color: #5D6A7D;
  margin: 10px 0 0;
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════════
   CAJETÍN INTERACTIVO WEB (DEBAJO DEL INFORME)
   ══════════════════════════════════════════════════════ */
.session-interactive-cajetin {
  background: #0D1527;
  border: 1.5px solid #1E293B;
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 860px;
  margin: 36px auto 50px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  position: relative;
}

.cajetin-bar {
  width: 46px;
  height: 4px;
  background: #00E5FF;
  border-radius: 2px;
  margin-bottom: 16px;
}

.cajetin-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.cajetin-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cajetin-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.cajetin-sub {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94A3B8;
  margin-bottom: 22px;
}

.cajetin-checkbox-box {
  background: #111B2E;
  border: 1.5px solid #2A3B53;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
  transition: border-color 0.2s ease;
}

.cajetin-checkbox-box:hover {
  border-color: #00E5FF;
}

.session-feedback-msg {
  margin-top: 14px;
}

.feedback-success-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10B981;
  border-radius: 8px;
  padding: 12px 16px;
  color: #E2E8F0;
  font-size: 0.85rem;
  line-height: 1.45;
  animation: fadeInFeedback 0.3s ease;
}

@keyframes fadeInFeedback {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cajetin-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #162238;
  border: 1px solid #2B3950;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  margin-bottom: 26px;
}

.cajetin-contact-grid .col-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: #12C7F4;
  margin-bottom: 2px;
}

.cajetin-contact-grid .col-sub {
  font-size: 0.74rem;
  color: #8F9EB1;
}

.cajetin-download-action {
  text-align: center;
  padding-top: 6px;
}

.btn-download-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(90deg, #00E5FF, #38BDF8);
  color: #0B1220 !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.5);
}

.cajetin-download-hint {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .session-interactive-cajetin {
    padding: 22px 16px;
    margin: 24px auto 36px;
    border-radius: 12px;
  }

  .cajetin-title {
    font-size: 1.22rem;
  }

  .cajetin-kicker {
    font-size: 0.72rem;
    margin-bottom: 12px;
  }

  .cajetin-body,
  .cajetin-sub {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .cajetin-checkbox-box {
    padding: 14px 14px;
    margin-bottom: 16px;
  }

  .cajetin-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: center;
  }

  .cajetin-contact-grid .col-main {
    font-size: 0.9rem;
    word-break: break-all;
  }

  .cajetin-download-action {
    padding-top: 4px;
  }

  .btn-download-lg {
    width: 100%;
    max-width: 320px;
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .cajetin-download-hint {
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

/* ══════════════════════════════════════════════════════
   REGLAS EXACTAS DE IMPRESIÓN Y GUARDADO COMO PDF (A4)
   ══════════════════════════════════════════════════════ */
@media print {
  @page {
    size: A4 portrait;
    margin: 0 !important;
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ocultar capas de fondo fijas y cualquier elemento web */
  .bg-layer,
  .bg-image,
  .bg-overlay,
  #screen-intro,
  #screen-form,
  #screen-results,
  #extended-gate,
  .session-interactive-cajetin,
  .web-only,
  .web-actions-bar,
  #btn-download-pdf,
  .site-header,
  .site-footer,
  .app-header,
  .app-footer,
  .session-request-box,
  button,
  #bottomBar,
  [id="bottomBar"],
  a[id="bottomBar"],
  img[src*="chrome-extension://"],
  img[src*="moz-extension://"],
  iframe[src*="chrome-extension://"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  html, body {
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    height: auto !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #1B2638 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    overflow: visible !important;
  }

  /* Reset radical de todos los contenedores padre para eliminar el desplazamiento lateral (padding 24px de .container) */
  .app-main,
  .screen,
  #screen-extended,
  .container,
  #extended-report,
  .extended-report {
    display: block !important;
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    position: static !important;
    transform: none !important;
    animation: none !important;
    box-sizing: border-box !important;
  }

  /* Configuración de cada página A4 milimétricamente centrada a sangre */
  .report-page {
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 13mm 16mm 11mm 16mm !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* La tarjeta de siguiente paso estática se muestra ÚNICAMENTE en el PDF descargado */
  .p7-next-step-card.print-only {
    display: block !important;
  }

  /* La última página (Página 7) NUNCA debe forzar salto para evitar la página 8 en blanco */
  .report-page:last-child,
  .report-page-7 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Recuadro oscuro para logo en impresión en páginas 2 a 7 */
  .editorial-logo-badge {
    background: #0B1220 !important;
    border: 1px solid #1E293B !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .editorial-logo {
    height: 20px !important;
    width: auto !important;
    display: block !important;
  }

  /* PÁGINA 1: PORTADA EN IMPRESIÓN (NAVY DARK EXACTO) */
  .report-page-1 {
    background: #0B1220 !important;
    color: #ffffff !important;
    border: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .report-page-1 .metric-dark {
    background: #162238 !important;
    border-color: #2B3950 !important;
    color: #ffffff !important;
  }
  .report-page-1 .p1-drivers-box {
    background: #111B2E !important;
    border-color: #2B3950 !important;
  }
  .report-page-1 .page-footer {
    border-top-color: #2B3950 !important;
    color: #AAB7C8 !important;
  }
  .report-page-1 .page-footer .page-num {
    color: #ffffff !important;
  }

  /* PÁGINAS 2 A 7: EDITORIAL BLANCO CON ACENTOS CORPORATIVOS */
  .report-page-editorial {
    background: #ffffff !important;
    color: #1B2638 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Preservar cajas oscuras de alto contraste */
  .p4-box-debt,
  .p5-infographic-card,
  .p7-next-step-card {
    background: #0B1220 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .p7-contact-grid,
  .p7-contact-2col {
    background: #162238 !important;
    border-color: #2B3950 !important;
  }
  .p7-contact-2col .col-main {
    color: #12C7F4 !important;
  }

  /* Manejo de Radar en impresión */
  #radarCanvas {
    display: none !important;
  }
  #radarPrintImg {
    display: block !important;
    max-height: 220px !important;
    width: auto !important;
    margin: 0 auto 3px !important;
  }

  /* PÁGINA 3: RADAR + LECTURA DIMENSIONAL EN IMPRESIÓN (AJUSTE EXACTO A4) */
  .report-page-3 {
    justify-content: flex-start !important;
  }
  .report-page-3 .editorial-header {
    margin-bottom: 8px !important;
  }
  .report-page-3 .editorial-logo-badge {
    margin-bottom: 4px !important;
    padding: 3px 10px !important;
  }
  .report-page-3 .editorial-header-divider {
    margin-bottom: 4px !important;
  }
  .report-page-3 .editorial-title {
    font-size: 1.35rem !important;
    margin-bottom: 2px !important;
  }
  .report-page-3 .editorial-section {
    margin-bottom: 6px !important;
  }
  .report-page-3 .editorial-section-title {
    margin-bottom: 4px !important;
  }
  .report-page-3 .p3-radar-wrapper {
    margin: 0 auto 2px !important;
  }
  .report-page-3 .p3-radar-note {
    font-size: 0.72rem !important;
    margin: 0 0 5px !important;
    line-height: 1.25 !important;
  }
  .report-page-3 .p3-dim-grid {
    gap: 8px !important;
  }
  .report-page-3 .p3-dim-card {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border-top-width: 4px !important;
    box-sizing: border-box !important;
  }
  .report-page-3 .p3-dim-head {
    margin-bottom: 3px !important;
  }
  .report-page-3 .p3-dim-title {
    font-size: 0.80rem !important;
  }
  .report-page-3 .p3-dim-val {
    font-size: 0.82rem !important;
  }
  .report-page-3 .p3-dim-divider {
    margin-bottom: 4px !important;
  }
  .report-page-3 .p3-dim-desc {
    font-size: 0.72rem !important;
    line-height: 1.38 !important;
  }
  .report-page-3 .p3-synthesis-box {
    margin-top: 8px !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    border-left: 3.5px solid #12C7F4 !important;
    background: #F8FAFC !important;
    border-top: 1px solid #DCE3EC !important;
    border-right: 1px solid #DCE3EC !important;
    border-bottom: 1px solid #DCE3EC !important;
    box-sizing: border-box !important;
  }
  .report-page-3 .p3-synthesis-label {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #0B1220 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 2px !important;
  }
  .report-page-3 .p3-synthesis-text {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    margin: 0 !important;
  }
  .report-page-3 .page-footer {
    margin-top: auto !important;
    padding-top: 6px !important;
  }
}

/* --- Modal In-Situ Política de Privacidad --- */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.privacy-modal[hidden] {
  display: none !important;
}
.privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
}
.privacy-modal-content {
  position: relative;
  z-index: 10;
  background: #101628;
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(79, 140, 255, 0.15);
}
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.privacy-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.btn-close-modal:hover {
  color: #fff;
}
.privacy-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.65;
}
.privacy-modal-body h4 {
  color: #4f8cff;
  font-size: 0.92rem;
  margin: 14px 0 6px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.privacy-modal-body p {
  margin: 0 0 8px 0;
}
.privacy-highlight-box {
  background: rgba(79, 140, 255, 0.08);
  border-left: 3px solid #4f8cff;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
}
.privacy-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: #0c1120;
  border-radius: 0 0 14px 14px;
}
