/* Monopoly CC — Estilo Tec de Monterrey + Doblin */
:root {
  /* Paleta Tec de Monterrey */
  --tec-blue: #0033A0;       /* Azul Tec — primary */
  --tec-blue-dark: #002270;  /* hover */
  --tec-blue-light: #E6ECF6; /* fondos suaves */
  --tec-gold: #FFC72C;       /* Acento dorado/amarillo Tec */
  --tec-gold-dark: #D9A100;

  /* Familias Doblin — mismos colores que el deck impreso:
     Configuración = azul · Oferta = verde · Experiencia = rojo.
     (Se conservan los nombres de variable por compatibilidad.) */
  --teal: #1976C2;   /* Configuración — azul */
  --orange: #43A35C; /* Oferta — verde */
  --red: #E0443B;    /* Experiencia — rojo */

  /* Tipografía y superficies */
  --ink: #111827;
  --ink-soft: #4b5563;
  --bg: #fafbfd;
  --paper: #ffffff;
  --border: #e3e7ee;

  /* Aliases que el resto del código usa */
  --gold: var(--tec-gold);
}

* { box-sizing: border-box; }

/* Foco visible para accesibilidad por teclado */
:focus-visible {
  outline: 3px solid var(--tec-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.card:focus-visible { outline-offset: 4px; }
.mm-node-leaf:focus { outline: none; }
.mm-node-leaf:focus-visible .mm-leaf-hit {
  stroke: var(--tec-gold) !important;
  stroke-width: 3 !important;
  stroke-dasharray: 5 3;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,51,160,.06) 1px, transparent 0);
  background-size: 24px 24px;
  background-attachment: fixed;
}

.font-display { font-family: 'Fraunces', Georgia, serif; font-weight: 800; letter-spacing: -.02em; }

/* ===== Eyebrow tags (Scalient-inspired) ===== */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--tec-blue);
  margin-bottom: 16px;
  padding: 4px 0;
  position: relative;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--tec-blue);
  vertical-align: middle;
  margin-right: 10px;
  opacity: .6;
}
.eyebrow-center {
  display: block;
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: .22em;
}
.eyebrow-center::before { display: none; }

/* Títulos de paso (Paso 1, Paso 2…) — más grandes y visibles */
.eyebrow-step {
  font-size: 18px;
  letter-spacing: .12em;
  margin-bottom: 20px;
  padding: 6px 0;
}
.eyebrow-step::before {
  width: 32px;
  height: 2px;
  margin-right: 12px;
}
@media (max-width: 720px) {
  .eyebrow-step { font-size: 15px; }
}

/* Subtítulo "Añadir más información" en el Paso 2 */
.empresa-form-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 4px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e6e6e6);
}

/* Textarea Sector / Giro que crece con el contenido */
textarea.autogrow {
  resize: vertical;
  min-height: 46px;
  overflow: hidden;
}

/* Botón "Generar más retos" debajo de los retos sugeridos */
.challenges-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Texto "Ir al siguiente paso" sobre el botón Generar iniciativas */
.next-step-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.next-step-hint {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tec-blue);
}

/* ===== Botón con flecha animada ===== */
.btn-arrow {
  display: inline-block;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  margin-left: 4px;
}
.btn:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.btn-text-link:hover { color: var(--tec-blue); border-bottom-color: var(--tec-blue); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Pantalla / vistas ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== Tarjeta Doblin ===== */
.deck-grid { perspective: 1200px; }

/* Cabecera del Paso 4 — mismo look & feel que el Paso 3: empresa a la izquierda, reto a la derecha */
.deck-reto-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.deck-reto-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.deck-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reto-text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--tec-blue);
  background: var(--tec-blue-light);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .deck-reto-head { flex-direction: column; align-items: flex-start; }
  .deck-header-actions { width: 100%; justify-content: space-between; }
}

.card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .15s ease;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card.is-tilting {
  transition: box-shadow .25s ease, border-color .15s ease;
  box-shadow: 8px 12px 0 var(--ink), 0 24px 40px rgba(0,0,0,.12);
}
/* Hover fallback (sin JS o teclado) */
.card:hover:not(.is-tilting) {
  transform: translateY(-6px) rotate(-0.8deg);
  box-shadow: 8px 12px 0 var(--ink), 0 16px 32px rgba(0,0,0,.08);
}
/* Brillo que sigue al cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}
.card.is-tilting::after { opacity: 1; }
@media (hover: none) {
  .card.is-tilting { transform: none !important; }
  .card.is-tilting::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-tilting { transform: none !important; transition: none; }
}
.card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold), 0 8px 20px rgba(212,160,23,.25);
}
.card .header {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 10px 14px 0 14px;
  border-radius: 3px;
}
.card[data-family="configuration"] .header { background: var(--teal); }
.card[data-family="offering"] .header { background: var(--orange); }
.card[data-family="experience"] .header { background: var(--red); }
.card .body {
  padding: 16px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card .title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 4px 0 14px 0;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.2;
}
.card .description {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  text-align: center;
  flex-grow: 1;
}
.card .examples {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #e6e6e6);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  color: var(--tec-blue);
}
.card .examples .examples-label {
  font-style: italic;
  font-weight: 600;
}
.card .footer {
  display: flex;
  justify-content: space-around;
  padding: 10px 18px 14px 18px;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: capitalize;
}
.card .footer .box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card .footer .box::after {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

/* ===== Marco general ===== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 18px;
  color: var(--tec-blue);
}
.brand .accent { color: var(--tec-gold-dark); }

.topbar {
  border-bottom-color: transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 20px 12px 20px;
  margin: 0 -20px 20px -20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(250, 251, 253, 0);
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease, border-color .25s ease, padding .2s ease;
}
.topbar.is-scrolled {
  background: rgba(250, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 12px 20px;
}
.topbar.is-scrolled .topbar-logo { height: 48px; }
.topbar.is-scrolled::before { height: 3px; }
.topbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tec-blue) 0%, var(--tec-blue) 70%, var(--tec-gold) 70%, var(--tec-gold) 100%);
}

/* Layout izquierda: logo + nav */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Navegación del header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .15s ease;
  position: relative;
}
.header-nav a:hover {
  background: var(--tec-blue-light);
  color: var(--tec-blue);
}
.header-nav a.active {
  color: var(--tec-blue);
}
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--tec-gold);
  border-radius: 2px;
}

.header-credit {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}
.header-credit strong {
  color: var(--tec-blue);
  font-weight: 700;
}

.header-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tec-gold-dark);
  background: var(--tec-blue-light);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .12s ease, transform .08s ease;
}
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary { background: var(--tec-blue); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--tec-blue-dark); }
.btn-secondary { background: white; border-color: var(--border); color: var(--tec-blue); }
.btn-secondary:hover:not(:disabled) { background: var(--tec-blue-light); border-color: var(--tec-blue); }
.btn-accent { background: var(--tec-gold); color: var(--ink); }
.btn-accent:hover:not(:disabled) { background: var(--tec-gold-dark); color: white; }

/* Enlace "escribir empresa manualmente" (Paso 1) */
.link-manual-empresa {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Barra inferior del Paso 4: copia del botón Continuar al final de las tarjetas */
.deck-continue-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ===== Home (landing) ===== */
/* Separador a todo el ancho bajo el hero (título + logo), con acento dorado.
   Debajo van los botones Empezar / ¿Cómo funciona? */
.home-divider {
  position: relative;
  border: 0;
  height: 1px;
  background: var(--line, #e6e6e6);
  max-width: 1080px;
  margin: 8px auto 30px auto;
}
.home-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--tec-gold, #FFC72C);
  border-radius: 2px;
}
/* Botones del hero, reubicados debajo del separador */
.hero-cta-row-below {
  justify-content: center;
  margin: 0 auto 46px auto;
}
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
  padding: 60px 20px 56px 20px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
}
.hero-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 420px;
}
.hero-aside .home-lead { margin: 0; }
.home-hero .home-logo {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: -40px -120px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: meshFloat 18s ease-in-out infinite alternate;
}
.home-hero::before {
  background: radial-gradient(circle at 30% 30%, var(--tec-blue) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, var(--tec-gold) 0%, transparent 40%);
  opacity: .25;
}
.home-hero::after {
  background: radial-gradient(circle at 80% 20%, #1565C0 0%, transparent 35%),
              radial-gradient(circle at 20% 80%, var(--tec-gold) 0%, transparent 35%);
  opacity: .2;
  animation-delay: -9s;
  animation-duration: 22s;
}
@keyframes meshFloat {
  0%   { transform: translate3d(-30px, -10px, 0) scale(1); }
  50%  { transform: translate3d(20px, 30px, 0) scale(1.05); }
  100% { transform: translate3d(40px, -20px, 0) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero::before, .home-hero::after { animation: none; }
}
.home-hero .eyebrow { margin-bottom: 22px; display: inline-block; }
.home-hero .eyebrow::before { background: var(--tec-blue); }
.home-hero .eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--tec-blue);
  vertical-align: middle;
  margin-left: 10px;
  opacity: .6;
}
.home-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.tec-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
}
.tec-mark-block {
  background: var(--tec-blue);
  color: white;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-radius: 4px;
  line-height: 1;
}
.tec-mark-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.tec-mark-text .line1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tec-blue);
  letter-spacing: 0.18em;
  line-height: 1.1;
}
.tec-mark-text .line2 {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.home-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 88px;
  font-weight: 900;
  margin: 0 0 22px 0;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.home-title .accent {
  color: var(--tec-blue);
  font-style: italic;
  position: relative;
  font-weight: 800;
}
.home-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 14px;
  background: var(--tec-gold);
  opacity: .32;
  z-index: -1;
  border-radius: 4px;
}
.home-lead {
  max-width: 580px;
}
.hero-cta-row { justify-content: center; margin-top: 32px; }

@media (max-width: 900px) { .home-title { font-size: 64px; } }
@media (max-width: 720px) { .home-title { font-size: 44px; } }
@media (max-width: 480px) { .home-title { font-size: 36px; } }
.home-lead {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 32px auto;
}
.home-lead strong { color: var(--ink); font-weight: 700; }
.btn-hero {
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,51,160,.25);
}
.btn-hero:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,51,160,.32);
}

/* Pulso al activarse desde el mind map */
@keyframes pulse-attention {
  0% { box-shadow: 0 6px 20px rgba(0,51,160,.25), 0 0 0 0 rgba(255,199,44,.7); }
  50% { box-shadow: 0 6px 20px rgba(0,51,160,.25), 0 0 0 14px rgba(255,199,44,0); }
  100% { box-shadow: 0 6px 20px rgba(0,51,160,.25), 0 0 0 0 rgba(255,199,44,0); }
}
.btn.pulse:not(:disabled) {
  animation: pulse-attention 1s ease-out 2;
}

.home-steps {
  max-width: 880px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
}
.home-steps-title {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 40px 0;
  text-transform: none;
}
.home-steps-title::before,
.home-steps-title::after { display: none; }

.steps-editorial {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.step-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: padding .2s ease;
  position: relative;
}
.step-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--tec-blue);
  transition: width .25s ease;
}
.step-row:hover::before { width: 3px; }
.step-row:hover { padding-left: 12px; }
.step-num-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--tec-blue);
  letter-spacing: -.04em;
  font-style: italic;
}
.step-row-accent .step-num-big { color: var(--tec-gold-dark); }
.step-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.step-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}
@media (max-width: 720px) {
  .step-row { grid-template-columns: 80px 1fr; gap: 18px; padding: 22px 0; }
  .step-num-big { font-size: 44px; }
  .step-content h3 { font-size: 20px; }
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: white;
  border: 3px solid var(--tec-blue);
  color: var(--tec-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 var(--tec-blue);
  position: relative;
  transition: transform .15s ease;
}
.step-num::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--tec-blue);
  border-radius: 3px;
  pointer-events: none;
}
.step:hover .step-num { transform: rotate(-3deg); }
.step:nth-child(4) .step-num {
  border-color: var(--tec-gold-dark);
  color: var(--tec-gold-dark);
  box-shadow: 2px 2px 0 var(--tec-gold-dark);
}
.step:nth-child(4) .step-num::before { border-color: var(--tec-gold-dark); }
.step-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.step-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .home-title { font-size: 34px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .home-title { font-size: 28px; }
  .home-lead { font-size: 15px; }
  .tec-mark-block { font-size: 24px; padding: 10px 12px; }
  .tec-mark-text .line1 { font-size: 12px; }
}

/* ===== Welcome ===== */
.welcome-panel {
  max-width: 560px;
  margin: 60px auto 0 auto;
  background: white;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.welcome-panel h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -.02em;
}
.welcome-panel p.lead {
  color: var(--ink-soft);
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field select, .field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: 2px solid var(--tec-blue);
  outline-offset: 1px;
  border-color: var(--tec-blue);
}
/* Permitir que el nombre de la empresa salte a 2da línea en vez de recortarse */
#empresa-select {
  white-space: normal;
  word-break: break-word;
  height: auto;
  min-height: 42px;
}
#empresa-select option { white-space: normal; }

/* ===== Pantalla de reto ===== */
.challenge-panel {
  max-width: 1280px;
  margin: 20px auto 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Top row: empresa | título+input+botón */
.challenge-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.challenge-empresa-side {
  border-right: 1px solid var(--border);
  padding-right: 24px;
  align-self: stretch;
}
/* Paso 3 (view-challenge): apilado — empresa + descripción + links arriba,
   diagnóstico y reto abajo. No aplica al deck ni al header del Paso 5 (.deck-top). */
.challenge-top:not(.deck-top) {
  grid-template-columns: 1fr;
  gap: 22px;
}
.challenge-top:not(.deck-top) .challenge-empresa-side {
  border-right: none;
  padding-right: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
/* La descripción y los links se reparten en fila para un encabezado compacto */
/* Fila de contexto de empresa (Paso 3): Sector | descripción | links | editar */
.challenge-context-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
/* El grupo desc/links/doc se vuelve transparente: sus bloques fluyen como
   elementos directos del renglón, junto a "Sector Industrial". */
.challenge-context-row #challenge-context { display: contents; }
.challenge-context-row #challenge-context[hidden] { display: none; }
.challenge-context-row .challenge-context-block { flex: 1 1 auto; min-width: 130px; }
.challenge-context-row .challenge-context-edit { flex: 0 0 auto; margin-left: auto; align-self: center; }

/* Paso 3: rejilla 2×2.
   Fila 1: Diagnóstico (izq) + Ejemplo de referencia (der, abarca 2 filas).
   Flecha de flujo bajo el diagnóstico.
   Fila inferior: Reto a resolver a todo el ancho (recuadro amarillo). */
.challenge-exercise {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
/* Cabecera del Paso 3 (eyebrow "Paso 3" + texto de intro + botón "Generar
   iniciativas"): se queda fija (sticky) debajo del topbar al hacer scroll,
   para que el título y el botón sigan visibles mientras el usuario trabaja
   en el diagnóstico/reto. */
.step3-sticky {
  position: sticky;
  top: 73px;
  z-index: 30;
  background: #fff;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--border);
}
.step3-sticky .eyebrow-step { margin-bottom: 16px; }
.step3-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 6px 0 4px;
}
.step3-intro {
  color: #3a4a6b;
  font-size: 15px;
  line-height: 1.5;
}
.step3-intro p { margin: 0 0 6px; }
.step3-intro ul {
  margin: 0;
  padding-left: 20px;
}
.step3-intro li { margin-bottom: 4px; }
.step3-intro strong { color: #0033a0; }
.step3-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
/* Recuadro azul claro (3.1): Diagnóstico (izq) + Ejemplo de referencia (der) */
.diag-box {
  background: rgba(0, 51, 160, .05);
  border: 1px solid #9db2de;
  border-radius: 12px;
  padding: 18px 20px;
}
.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.diag-main, .diag-aside { min-width: 0; }
.exercise-title {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 4px;
}
.exercise-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }
/* Botón Analizar Diagnóstico: a la derecha de su caja */
/* Enlace de descarga de la guía del diagnóstico */
.diag-guia-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tec-blue);
  text-decoration: none;
}
.diag-guia-link:hover { text-decoration: underline; }
#btn-analizar-diag {
  margin-top: 12px;
  margin-left: auto;
  display: block;
  width: fit-content;
}
/* Flecha de flujo (diagnóstico → reto): centrada y subida hacia el cuadro de texto */
.exercise-flow-arrow {
  align-self: center;
  margin: -2px 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--tec-gold-dark, #D9A100);
  animation: bounce-down 1.6s ease-in-out infinite;
}
/* Recuadro amarillo claro, a todo el ancho, para el bloque "Reto a resolver" */
.reto-box {
  background: rgba(255, 199, 44, .12);
  border: 1px solid var(--tec-gold, #FFC72C);
  border-radius: 12px;
  padding: 18px 20px;
}
/* Fila 3.2 dividida en 3 columnas: textarea (1-2), hint+flecha (3) */
.reto-grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
.reto-text-col { grid-column: 1 / 3; min-width: 0; }
.reto-aside { grid-column: 3; min-width: 0; text-align: center; }
.reto-aside .suggest-hint { justify-content: center; text-align: center; }
.reto-aside .suggest-arrow-down { display: flex; margin: 10px auto 0; }
/* Cajas de texto más altas en el ejercicio del Paso 3 */
.challenge-exercise .challenge-input { min-height: 190px; }
/* Diagnóstico (3.1) y Ejemplo de referencia: misma altura de caja */
/* Diagnóstico (3.1): cuadro blanco con línea amarilla a la izquierda */
.diag-box .diagnostico-input {
  min-height: 250px;
  background: #fff;
  border-left: 4px solid var(--tec-gold, #FFC72C);
}
.diag-aside .diag-reference { height: 250px; overflow-y: auto; }
/* Ejemplo de referencia: fondo gris, sin línea de color */
.diag-reference {
  margin-top: 12px;
  padding: 14px 16px;
  background: #eceff3;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft, #555);
}
.diag-ref-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.diag-reference p { margin: 0 0 12px; }
.diag-reference p:last-child { margin-bottom: 0; }
.diag-reference em { font-style: italic; color: var(--tec-blue, #0033A0); font-weight: 600; }
@media (max-width: 760px) {
  .step3-header { flex-direction: column; align-items: flex-start; }
  .step3-cta { align-items: flex-start; }
  .diag-grid,
  .reto-grid-4 { grid-template-columns: 1fr; }
  .reto-text-col,
  .reto-aside { grid-column: auto; }
  .reto-aside { text-align: left; }
  .reto-aside .suggest-hint { justify-content: flex-start; text-align: left; }
  .reto-aside .suggest-arrow-down { margin-left: 0; }
}
.challenge-context {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.challenge-context[hidden] { display: none; }
.challenge-context-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.challenge-context-block[hidden] { display: none; }
.challenge-context-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.challenge-context-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
}
.challenge-context-urls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.challenge-context-urls a {
  display: inline-block;
  font-size: 12px;
  color: var(--tec-blue);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px dotted rgba(0,51,160,.4);
  padding-bottom: 1px;
}
.challenge-context-urls a:hover {
  border-bottom-style: solid;
}
.challenge-context-doc {
  font-size: 13px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.challenge-context-doc::before {
  content: "📄";
  font-size: 14px;
}
.challenge-context-edit {
  align-self: flex-start;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tec-blue);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  margin-top: 4px;
}
.challenge-context-edit:hover {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
}

.empresa-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.empresa-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--tec-blue);
  line-height: 1.15;
  margin-bottom: 6px;
}
.empresa-giro {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.challenge-input-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.challenge-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.challenge-input-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
/* Pista visual hacia los retos sugeridos (matchea estilo del h2) */
.suggest-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 22px;
  line-height: 1.2;
}
/* El CTA "Generar iniciativas" ahora vive a la derecha de esta pista */
.suggest-hint #btn-go-deck {
  margin-left: auto;
  flex-shrink: 0;
}
.suggest-hint .arrow-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tec-blue-light);
  color: var(--tec-blue);
  font-size: 20px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  animation: bounce-down 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
/* Flecha hacia los retos sugeridos: debajo de la frase, no junto al botón */
.suggest-arrow-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--tec-blue-light);
  color: var(--tec-blue);
  font-size: 20px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  animation: bounce-down 1.6s ease-in-out infinite;
}

@media (max-width: 760px) {
  .challenge-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }
  .challenge-empresa-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .challenge-input-header {
    flex-direction: column;
    align-items: stretch;
  }
  .suggest-hint #btn-go-deck { margin-left: 0; width: 100%; justify-content: center; }
}

.suggestions-block, .mindmap-block, .challenges-block { margin-bottom: 22px; }
.suggestions-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.suggestions-title {
  text-transform: none;
  letter-spacing: -.01em;
}

/* ===== Vista de reto ===== */
#view-challenge.active {
  display: block;
}

/* ===== Lista de retos (reemplaza el mindmap) ===== */
.mindmap-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--tec-blue);
  font-weight: 600;
  font-size: 14px;
  min-height: 200px;
}
.challenges-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
  padding: 4px;
}
.cluster-section {
  --cluster-color: var(--tec-blue);
  border-left: 4px solid var(--cluster-color);
  padding-left: 16px;
}
.cluster-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cluster-color);
  margin: 0 0 12px 0;
  line-height: 1.1;
}
.subtheme-block {
  margin-bottom: 14px;
}
.subtheme-block:last-child { margin-bottom: 0; }
.subtheme-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.challenge-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  line-height: 1.4;
}
.challenge-item:hover {
  border-color: var(--cluster-color);
  background: color-mix(in srgb, var(--cluster-color) 8%, white);
  transform: translateX(2px);
}
.challenge-item.selected {
  background: var(--cluster-color);
  color: white;
  border-color: var(--cluster-color);
  font-weight: 600;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--cluster-color) 40%, transparent);
}
.challenge-item.selected::before {
  content: "✓ ";
  font-weight: 800;
}

@media (max-width: 900px) {
  .challenges-list { grid-template-columns: 1fr; gap: 18px; }
}


/* Logos */
.hero-logo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.topbar-logo {
  display: block;
  height: 60px;
  width: auto;
}
.logo-missing .topbar-logo,
.logo-missing .hero-logo { display: none; }
.brand-fallback { display: none; }
.logo-missing .brand-fallback { display: inline-flex; }

/* Responsivo */
@media (max-width: 900px) {
  .header-credit { display: none; }
  .header-nav { gap: 0; }
  .header-nav a { padding: 6px 8px; font-size: 12px; }
  .topbar-left { gap: 14px; }
  .home-hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
  }
  .home-hero .home-logo { margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .topbar-logo { height: 44px; }
  .hero-logo { max-width: 260px; }
  .topbar-right .btn { font-size: 12px; padding: 8px 12px; }
  .familias-grid { gap: 8px; }
}
@media (max-width: 520px) {
  .header-nav { display: none; }
  .topbar { padding-top: 14px; }
  .topbar-logo { height: 40px; }
}

/* Colores por cluster (4 ramas) — variaciones del azul Tec + dorado */
.mm-cluster-0 .mm-rect-cluster, .mm-cluster-0.mm-link { fill: var(--tec-blue); stroke: var(--tec-blue); }
.mm-cluster-1 .mm-rect-cluster, .mm-cluster-1.mm-link { fill: #1565C0; stroke: #1565C0; }
.mm-cluster-2 .mm-rect-cluster, .mm-cluster-2.mm-link { fill: #5B7BB0; stroke: #5B7BB0; }
.mm-cluster-3 .mm-rect-cluster, .mm-cluster-3.mm-link { fill: #D9A100; stroke: #D9A100; }

.mm-link {
  fill: none;
  opacity: .35;
  transition: opacity .2s ease, stroke-width .2s ease;
}

/* Nodo central (empresa) */
.mm-rect-center {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 2;
}
.mm-text-center {
  fill: white;
  font-weight: 800;
  letter-spacing: .02em;
}

/* Nodos de cluster */
.mm-rect-cluster {
  stroke-width: 2;
}
.mm-text-cluster {
  fill: white;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Nodos de subtema */
.mm-rect-subtheme {
  fill: white;
  stroke: var(--tec-blue);
  stroke-width: 1.5;
}
.mm-cluster-1 .mm-rect-subtheme { stroke: #1565C0; }
.mm-cluster-2 .mm-rect-subtheme { stroke: #5B7BB0; }
.mm-cluster-3 .mm-rect-subtheme { stroke: #D9A100; }
.mm-text-subtheme {
  fill: var(--ink);
  font-weight: 600;
}

/* Nodos hoja (HMW) */
.mm-rect-leaf {
  fill: var(--paper);
  stroke: var(--border);
  stroke-width: 1.5;
  transition: fill .15s ease, stroke .15s ease, stroke-width .15s ease;
}
.mm-text-leaf {
  fill: var(--ink-soft);
  font-weight: 500;
  transition: fill .15s ease;
}
.mm-node-leaf.hover .mm-rect-leaf {
  fill: var(--tec-blue-light);
  stroke: var(--tec-blue);
  stroke-width: 2;
}
.mm-node-leaf.hover .mm-text-leaf { fill: var(--tec-blue); font-weight: 600; }
.mm-node-leaf.selected .mm-rect-leaf {
  fill: var(--tec-blue);
  stroke: var(--tec-blue);
  stroke-width: 2.5;
}
.mm-node-leaf.selected .mm-text-leaf {
  fill: white;
  font-weight: 600;
}

.btn-link {
  background: none;
  border: none;
  color: var(--tec-blue);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.btn-link:hover { background: var(--tec-blue-light); }
.btn-link:disabled { opacity: .4; cursor: not-allowed; }

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.suggestion {
  text-align: left;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.45;
  font-family: inherit;
  width: 100%;
}
.suggestion:hover:not(.skeleton) {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
}
.suggestion.selected {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,51,160,.12);
}
.suggestion.selected::before {
  content: "✓ ";
  color: var(--tec-blue);
  font-weight: 800;
}
.suggestion.skeleton {
  background: linear-gradient(90deg, #f0f2f7 0%, #e6e9f0 50%, #f0f2f7 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  height: 50px;
  border: none;
  pointer-events: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Skeleton system reutilizable ===== */
.skel {
  background: linear-gradient(90deg, #eef0f5 0%, #e2e6ee 50%, #eef0f5 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
  display: block;
}
.skel-line { height: 12px; margin-bottom: 8px; }
.skel-line.w-100 { width: 100%; }
.skel-line.w-90 { width: 90%; }
.skel-line.w-75 { width: 75%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; }
.skel-block { height: 80px; border-radius: 8px; margin-bottom: 12px; }

/* Skeleton: lista de retos (4 cluster sections en 2x2) */
.skel-challenges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
  padding: 4px;
}
.skel-cluster {
  border-left: 4px solid #e2e6ee;
  padding-left: 16px;
}
.skel-cluster .skel-heading {
  height: 18px;
  width: 50%;
  border-radius: 4px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #d6dae3 0%, #c3c8d2 50%, #d6dae3 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skel-item { height: 38px; margin-bottom: 8px; }

/* Skeleton: deck de cartas */
.skel-deck {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 18px;
}
.skel-card {
  height: 360px;
  border-radius: 8px;
  border: 2px solid #e2e6ee;
  background: white;
  position: relative;
  overflow: hidden;
}
.skel-card::before {
  content: "";
  display: block;
  height: 38px;
  margin: 12px 14px 0 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d6dae3 0%, #c3c8d2 50%, #d6dae3 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skel-card::after {
  content: "";
  position: absolute;
  inset: 60px 18px auto 18px;
  height: 140px;
  border-radius: 4px;
  background: linear-gradient(180deg, #eef0f5 0%, #f5f6fa 100%);
  animation: shimmer 1.4s linear infinite;
}

/* Skeleton: reporte ejecutivo */
.skel-report { display: grid; gap: 24px; }
.skel-report-section { padding: 20px 24px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.skel-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.custom-block { margin-bottom: 22px; }
.custom-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.challenge-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: white;
  line-height: 1.5;
}
.challenge-input:focus {
  outline: 2px solid var(--tec-blue);
  outline-offset: 1px;
  border-color: var(--tec-blue);
}

#view-challenge .btn-hero { width: 100%; justify-content: center; }
.loader-hint {
  text-align: center;
  margin: 14px 0 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--tec-blue-light);
  border-top-color: var(--tec-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reto-tag {
  margin-top: 8px;
  font-size: 13px;
  color: var(--tec-blue);
  background: var(--tec-blue-light);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.reto-tag::before { content: "🎯  "; }

/* Acciones bajo el deck */
.deck-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.deck-actions .count-pill {
  display: inline-flex;
  align-items: center;
  background: var(--tec-blue-light);
  color: var(--tec-blue);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: .04em;
}
.deck-actions .btn:disabled .count-pill { background: #e5e7eb; color: var(--ink-soft); }

/* ===== Mesa de cartas ===== */
.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.deck-header .empresa {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}
.deck-header .giro {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.counter {
  font-weight: 700;
  font-size: 16px;
  background: var(--tec-blue);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
}
.counter.full { background: var(--tec-gold); color: var(--ink); }

.deck-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .deck-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .deck-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .deck-grid { grid-template-columns: 1fr; } }

/* ===== Resumen ===== */
.summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  grid-auto-rows: 1fr;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .summary-grid { grid-template-columns: 1fr; } }
.summary-grid .card { cursor: default; }
.summary-grid .card:hover { transform: none; }

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  margin: 24px 0 12px 0;
  letter-spacing: -.02em;
}
.section-sub {
  color: var(--ink-soft);
  margin: -6px 0 18px 0;
  font-size: 14px;
}
/* Cabecera del Paso 4 (eyebrow + texto intro + botón "Continuar al siguiente
   paso"): se queda fija (sticky) debajo del topbar al hacer scroll, para que
   el botón siga visible mientras el usuario elige sus tarjetas. */
.deck-step4-sticky {
  position: sticky;
  top: 73px;
  z-index: 30;
  background: var(--bg);
  padding: 10px 0 24px;
}
.deck-step4-sticky .eyebrow-step { margin-bottom: 16px; }
/* Paso 4: texto intro (izq) + botón "Continuar al siguiente paso" (der) */
.deck-intro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.deck-intro-header .section-sub { flex: 1; margin-bottom: 0; }
.deck-intro-header .deck-header-actions { flex-shrink: 0; }
@media (max-width: 760px) {
  .deck-intro-header { flex-direction: column; align-items: flex-start; }
}

textarea.iniciativa {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  background: white;
}

.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.action-bar-split {
  justify-content: space-between;
  align-items: center;
}
.action-bar-left, .action-bar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Summary: 2-col layout (usuario | IA) ===== */
.summary-textboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 8px;
}
.summary-box {
  display: flex;
  flex-direction: column;
}
.box-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.box-label-ai {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--tec-blue);
}
.box-label-ai .btn-link {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--tec-blue);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .15s ease;
}
.box-label-ai .btn-link:hover:not(:disabled) { background: var(--tec-blue-dark); }
.box-label-ai .btn-link:disabled { opacity: .5; cursor: not-allowed; }

/* Variante secundaria para "Editar propuesta" */
.box-label-ai .btn-link-secondary {
  background: white;
  color: var(--tec-blue);
  border: 1.5px solid var(--tec-blue);
  padding: 5px 12px;
}
.box-label-ai .btn-link-secondary:hover:not(:disabled) {
  background: var(--tec-blue-light);
  color: var(--tec-blue);
}
.box-label-ai .btn-link-secondary:disabled {
  opacity: .35;
  border-color: var(--border);
  color: var(--ink-soft);
}
.box-label-ai .btn-link-secondary[data-mode="edit"] {
  background: var(--tec-gold);
  color: var(--ink);
  border-color: var(--tec-gold);
}
.box-label-ai .btn-link-secondary[data-mode="edit"]:hover {
  background: var(--tec-gold-dark);
  color: white;
  border-color: var(--tec-gold-dark);
}

.ai-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Textarea de edición de la propuesta IA */
.ai-summary-edit {
  width: 100%;
  min-height: 168px;
  padding: 12px 14px;
  border: 1.5px solid var(--tec-blue);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  background: white;
  color: var(--ink);
}
.ai-summary-edit:focus {
  outline: 2px solid var(--tec-gold);
  outline-offset: 1px;
}

.summary-box .iniciativa { min-height: 200px; }
/* Panel derecho del Paso 5: botón Siguiente (sustituye al cuadro de IA) */
.summary-next-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.summary-next-panel #btn-next-report { width: auto; justify-content: center; }
/* Propuesta inicial (manual): encerrada en un cuadro, como la de IA */
.summary-box-manual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.summary-box-ai {
  background: var(--tec-blue-light);
  border: 1px dashed var(--tec-blue);
  border-radius: 12px;
  padding: 14px 16px;
}
.ai-summary-output {
  background: white;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 168px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  border: 1px solid var(--border);
}
.ai-placeholder {
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  font-size: 13.5px;
}
.ai-summary-text {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .summary-textboxes { grid-template-columns: 1fr; gap: 16px; }
  .action-bar-split { flex-direction: column; align-items: stretch; }
  .action-bar-left, .action-bar-right { justify-content: stretch; }
}

/* ===== Reporte ejecutivo (vista 5) ===== */
.report-loader {
  display: block;
}
.report-loader-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--tec-blue-light) 0%, white 100%);
  border-radius: 12px;
  border: 1px dashed var(--tec-blue);
  color: var(--tec-blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.report-content { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.report-header {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.report-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 24px;
}
.report-meta-block {}
.report-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.report-meta-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 760px) {
  .report-meta { grid-template-columns: 1fr; gap: 14px; }
}

.report-section {
  margin-bottom: 32px;
}
.report-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px 0;
  color: var(--ink);
}
.report-summary-text {
  background: white;
  border-left: 4px solid var(--tec-blue);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
}
.report-cards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== Grid 3 filas: cards (full) | resumen|innovación | quick wins (full) ===== */
.report-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.report-summary-col {
  display: flex;
  flex-direction: column;
}
.report-summary-col-full {
  grid-column: 1 / -1;
}
.report-col-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tec-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}
.report-rationale-text {
  background: white;
  border-left: 4px solid var(--tec-gold);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Quick wins — línea de tiempo gráfica */
.report-col-eyebrow-gold { color: var(--tec-gold-dark); }
/* Texto a 2 columnas dentro de una fila completa (resumen / innovación) */
.report-text-2col { column-count: 2; column-gap: 28px; }
.report-text-2col > * { break-inside: avoid; }
/* Instrucciones de calificación (Paso 5) — en recuadro amarillo claro */
.scoring-instructions {
  margin-bottom: 18px;
  background: rgba(255, 199, 44, .12);
  border: 1px solid var(--tec-gold, #FFC72C);
  border-radius: 12px;
  padding: 16px 18px;
}
.scoring-instructions-title { text-transform: uppercase; letter-spacing: .04em; color: var(--tec-gold-dark, #D9A100); margin: 0 0 6px; }
.scoring-instructions p { margin: 0 0 4px; }
.scoring-instructions ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
}
.scoring-instructions ul:last-child { margin-bottom: 0; }
.scoring-instructions li { margin: 2px 0; line-height: 1.4; }

/* Recuadro amarillo de Quick Wins, al final del reporte */
.report-quickwins-box {
  background: rgba(255, 199, 44, .12);
  border: 1.5px solid var(--tec-gold);
  border-radius: 12px;
  padding: 18px 22px 6px;
}
.report-quickwins-box .report-section-title { color: var(--tec-gold-dark); }
.quick-wins-timeline {
  list-style: none;
  margin: 0;
  padding: 28px 16px 12px 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: qw;
}
/* Línea horizontal continua de fondo */
.quick-wins-timeline::before {
  content: "";
  position: absolute;
  top: 24.5px;
  left: calc(16px + 14%);
  right: calc(16px + 14%);
  height: 3px;
  background: linear-gradient(90deg, var(--tec-gold) 0%, var(--tec-gold-dark) 100%);
  border-radius: 2px;
  z-index: 0;
}
.quick-wins-timeline li {
  counter-increment: qw;
  position: relative;
  text-align: center;
  padding-top: 78px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  z-index: 1;
}
.quick-wins-timeline li::before {
  content: counter(qw);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tec-gold-dark);
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--tec-gold-dark), 0 4px 10px rgba(217,161,0,.25);
}
.quick-wins-timeline li::after {
  content: attr(data-phase);
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tec-gold-dark);
  white-space: nowrap;
}
.quick-wins-timeline li .qw-text {
  display: block;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .quick-wins-timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px 16px 60px;
  }
  .quick-wins-timeline::before {
    top: 24px;
    bottom: 24px;
    left: 36px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--tec-gold) 0%, var(--tec-gold-dark) 100%);
  }
  .quick-wins-timeline li {
    text-align: left;
    padding-top: 0;
    padding-left: 8px;
    min-height: 44px;
  }
  .quick-wins-timeline li::before {
    top: 0;
    left: -36px;
    transform: none;
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-width: 3px;
  }
  .quick-wins-timeline li::after {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 4px;
  }
  .quick-wins-timeline li .qw-text { padding: 0; }
}
.report-mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

/* Mini card (versión token visual de la carta seleccionada) */
.card-mini {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  flex-direction: column;
}
.card-mini .card-mini-header {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 4px 6px 0 6px;
  border-radius: 2px;
}
.card-mini[data-family="configuration"] .card-mini-header { background: var(--teal); }
.card-mini[data-family="offering"] .card-mini-header { background: var(--orange); }
.card-mini[data-family="experience"] .card-mini-header { background: var(--red); }
.card-mini .card-mini-title {
  padding: 8px 10px 10px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .report-summary-grid { grid-template-columns: 1fr; gap: 16px; }
  .report-text-2col { column-count: 1; }
  .report-mini-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.report-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--tec-blue);
}
.report-card-cost::before { background: #43A35C; }  /* Inversión estimada — verde */
.report-card-time::before { background: #8A94A6; }  /* Tiempo — gris */
.report-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.report-card-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--tec-blue);
  line-height: 1.1;
  margin-bottom: 8px;
}
.report-card-cost .report-card-value { color: #2E8B52; }
.report-card-time .report-card-value { color: #6B7280; }
.report-card-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-card-value { font-size: 24px; }
}

/* Roadmap timeline */
/* Roadmap por fases en caja blanca, como las demás secciones */
.report-roadmap-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.roadmap-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #7C3AED;
}
.roadmap-phase {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding-bottom: 24px;
  position: relative;
}
.roadmap-phase:last-child { padding-bottom: 0; }
.roadmap-phase-header {
  display: contents;
}
.roadmap-phase-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7C3AED;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(124,58,237,.28);
}
.roadmap-phase-meta {
  padding-top: 4px;
}
.roadmap-phase-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.roadmap-phase-duration {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #6D28D9;
  background: #EDE9FE;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 4px;
}
.roadmap-milestones {
  grid-column: 2;
  margin: 8px 0 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.roadmap-milestones li { margin-bottom: 4px; }
@media (max-width: 720px) {
  .roadmap-phase { grid-template-columns: 56px 1fr; gap: 12px; }
  .roadmap-phase-num { width: 44px; height: 44px; font-size: 14px; }
}

/* Impact pillars */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.impact-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid #E0443B;
  border-radius: 10px;
  padding: 16px 18px;
}
.impact-card:nth-child(2),
.impact-card:nth-child(3),
.impact-card:nth-child(4) { border-left-color: #E0443B; }
.impact-pillar {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.impact-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 720px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* ===== Confirmación ===== */
.confirm-panel {
  max-width: 580px;
  margin: 80px auto 0 auto;
  background: white;
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,.06);
  position: relative;
}
.confirm-panel .check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--tec-blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800;
  margin: 8px auto 20px auto;
  box-shadow: 0 8px 24px rgba(0,51,160,.30), inset 0 -3px 0 rgba(0,0,0,.1);
}
.confirm-panel h2 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0 0 12px 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
}
.confirm-lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto 28px auto;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.active { display: flex; }
.modal {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 460px;
  margin: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-wide { max-width: 640px; }
.modal h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px 0;
  letter-spacing: -.02em;
}
.modal p { color: var(--ink-soft); margin: 0 0 16px 0; line-height: 1.5; font-size: 14px; }
.modal h4 { color: var(--ink); }

.instrucciones-list {
  margin: 0 0 12px 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.instrucciones-list li {
  margin-bottom: 6px;
}
.instrucciones-list strong { color: var(--tec-blue); }

.familias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.familia {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: white;
}
.familia-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.familia-config .familia-tag { background: var(--teal); }
.familia-offer .familia-tag { background: var(--orange); }
.familia-exp .familia-tag { background: var(--red); }
.familia-config { border-color: var(--teal); }
.familia-offer { border-color: var(--orange); }
.familia-exp { border-color: var(--red); }
.familia-items {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.familia p {
  font-size: 13px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--tec-blue);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all .25s ease;
  z-index: 200;
  box-shadow: 0 6px 24px rgba(0,51,160,.25);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--red); }

/* ===== Admin dashboard ===== */
.admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
@media (max-width: 800px) {
  .admin-grid { grid-template-columns: 1fr; }
}
.admin-list, .admin-detail {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.empresa-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background .12s ease;
}
.empresa-row:hover { background: #f3f4f6; }
.empresa-row.active { background: var(--tec-blue-light); font-weight: 600; color: var(--tec-blue); }
.empresa-row .badge {
  background: var(--tec-blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.metric .label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.metric .value { font-size: 28px; font-weight: 800; margin-top: 4px; }

.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.bar { height: 14px; background: var(--teal); border-radius: 4px; min-width: 2px; }
.bar.offering { background: var(--orange); }
.bar.experience { background: var(--red); }

.sede-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 12px 12px 6px 12px;
}

.submission-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.submission-item .who {
  font-weight: 700;
  margin-bottom: 4px;
}
.submission-item .when {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
}
.chip.offering { background: var(--orange); }
.chip.experience { background: var(--red); }

.iniciativa-text {
  background: #f9fafb;
  border-left: 3px solid var(--tec-blue);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

/* ===== Admin: bloques de submission ===== */
.submission-block {
  margin-top: 10px;
}
.submission-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.submission-label-ai {
  color: var(--tec-blue);
}
.submission-ai-summary .ai-text {
  background: var(--tec-blue-light);
  border-left: 3px solid var(--tec-blue);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Reporte ejecutivo expandible */
.submission-report {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.submission-report > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tec-blue-light) 0%, white 100%);
  list-style: none;
}
.submission-report > summary::-webkit-details-marker { display: none; }
.submission-report > summary::after {
  content: "▼";
  font-size: 10px;
  color: var(--tec-blue);
  transition: transform .2s ease;
}
.submission-report[open] > summary::after { transform: rotate(180deg); }
.submission-label-report { color: var(--tec-blue); }
.report-toggle-hint {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}
.submission-report-inner {
  padding: 14px;
  border-top: 1px solid var(--border);
}

/* Mini cards de coste/tiempo en admin */
.adm-cost-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.adm-metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--tec-blue);
}
.adm-metric-time { border-left-color: var(--tec-gold-dark); }
.adm-metric-eb {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.adm-metric-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--tec-blue);
  margin-top: 2px;
  line-height: 1.2;
}
.adm-metric-time .adm-metric-val { color: var(--tec-gold-dark); }
.adm-metric-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.4;
}

/* Mini section titles */
.adm-section { margin-top: 12px; }
.adm-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* Mini roadmap */
.adm-roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
}
.adm-roadmap > li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.adm-roadmap > li:last-child { border-bottom: none; }
.adm-roadmap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.adm-roadmap-num {
  background: var(--tec-blue);
  color: white;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.adm-roadmap-name { font-weight: 700; flex: 1; }
.adm-roadmap-dur {
  font-size: 11px;
  font-weight: 600;
  color: var(--tec-blue);
  background: var(--tec-blue-light);
  padding: 2px 8px;
  border-radius: 999px;
}
.adm-roadmap > li > ul {
  margin: 4px 0 0 26px;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* Mini impacto */
.adm-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.adm-impact-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--tec-blue);
  border-radius: 6px;
  padding: 8px 12px;
}
.adm-impact-card:nth-child(2) { border-left-color: #1565C0; }
.adm-impact-card:nth-child(3) { border-left-color: var(--tec-gold-dark); }
.adm-impact-card:nth-child(4) { border-left-color: #5B7BB0; }
.adm-impact-pillar {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.adm-impact-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}
@media (max-width: 600px) {
  .adm-cost-time, .adm-impact-grid { grid-template-columns: 1fr; }
}

/* ===== Print ===== */
@media print {
  body { background: white; }
  .topbar, .action-bar, .modal-backdrop { display: none !important; }
  .summary-grid { page-break-inside: avoid; }
  .card { box-shadow: none; break-inside: avoid; }
  .report-framing, .report-section, .scored-card,
  .assumptions-list li, .roadmap-phase { break-inside: avoid; page-break-inside: avoid; }
  .coverage { break-inside: avoid; }
}

/* ===== Diagnóstico (Paso 3) ===== */
.diagnostico-field { margin-bottom: 18px; }
.diagnostico-field label {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  color: var(--ink);
}
.diagnostico-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background: #fbfcfe;
}
.diagnostico-input:focus { outline: none; border-color: var(--tec-blue); background: #fff; }

/* ===== Cobertura Doblin ===== */
.coverage {
  margin: 0 0 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
}
.coverage-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.coverage-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.coverage-count { font-size: 13px; font-weight: 700; color: var(--tec-blue); }
.coverage-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coverage-seg {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef1f6;
  border: 1.5px solid transparent;
  opacity: .55;
  transition: all .2s ease;
}
.coverage-seg.is-on { opacity: 1; }
.coverage-seg[data-family="configuration"].is-on { background: rgba(25,118,194,.12); border-color: var(--teal); }
.coverage-seg[data-family="offering"].is-on { background: rgba(67,163,92,.14); border-color: var(--orange); }
.coverage-seg[data-family="experience"].is-on { background: rgba(224,68,59,.12); border-color: var(--red); }
.coverage-seg-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.coverage-seg-n { font-size: 18px; font-weight: 800; font-family: 'Fraunces', Georgia, serif; line-height: 1; }
.coverage-hint { margin: 8px 0 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }

/* ===== Calificación de cartas (Viabilidad / Impacto) ===== */
.scored-card { display: flex; flex-direction: column; height: 100%; }
.scored-card .card { flex: 1 1 auto; }
.scored-card .card .footer { display: none; }
.score-panel {
  margin-top: -6px;
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.score-axis-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); min-width: 72px; }
.score-btns { display: flex; gap: 4px; }
.score-btn {
  width: 28px; height: 28px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.score-btn:hover { border-color: var(--tec-blue); color: var(--tec-blue); }
.score-btn.active { background: var(--tec-blue); border-color: var(--tec-blue); color: #fff; }
.score-result {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  text-align: center;
  background: #f1f3f8;
  color: var(--ink-soft);
}
.score-result .score-total { font-weight: 800; font-size: 14px; }
.score-result .score-verdict { font-weight: 700; }
.score-result.is-low { background: #f1f3f8; color: var(--ink-soft); }
.score-result.is-cand { background: rgba(31,168,168,.14); color: #0f6b6b; }
.score-result.is-must { background: rgba(217,160,23,.18); color: #8a6500; }

/* ===== Hipótesis + gate hint (Paso 5) ===== */
.summary-box-hipotesis {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.summary-box-hipotesis .box-help { margin: 2px 0 10px 0; font-size: 13px; color: var(--ink-soft); }
.hipotesis { min-height: 64px; }
.gate-hint {
  margin: 14px 0 0 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #8a6500;
  background: rgba(217,160,23,.12);
  border-radius: 8px;
}

/* ===== Reporte: framing (diagnóstico / hipótesis) y supuestos ===== */
.report-framing {
  margin: 16px 0 8px;
  padding: 14px 18px;
  border-left: 4px solid var(--ink-soft);
  background: #f7f8fb;
  border-radius: 0 10px 10px 0;
}
.report-framing-hipotesis { border-left-color: var(--tec-gold-dark, #b8860b); background: rgba(217,160,23,.08); }
.report-framing-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); margin-bottom: 6px;
}
.report-framing-text { font-size: 15px; line-height: 1.55; color: var(--ink); }
/* Títulos del reporte al mismo tamaño que "Resumen del nuevo modelo" */
.report-title-lg {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.report-framing-hipotesis .report-framing-text { font-weight: 600; }
.assumptions-list { margin: 6px 0 0; padding-left: 0; list-style: none; }
.assumptions-list li {
  position: relative;
  padding: 8px 8px 8px 30px;
  margin-bottom: 6px;
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.assumptions-list li::before {
  content: "!";
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; line-height: 16px; text-align: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: var(--tec-gold-dark, #b8860b); border-radius: 50%;
}

/* ===== Mini-card score (reporte) ===== */
.card-mini-score {
  display: flex; flex-direction: column; gap: 1px;
  padding: 5px 8px;
  font-size: 11px;
  border-top: 1px solid var(--border);
}
.card-mini-score .mini-score-nums { color: var(--ink-soft); font-weight: 600; }
.card-mini-score .mini-score-total { font-weight: 800; font-size: 11.5px; }
.card-mini-score.is-low .mini-score-total { color: var(--ink-soft); }
.card-mini-score.is-cand .mini-score-total { color: #0f6b6b; }
.card-mini-score.is-must .mini-score-total { color: #8a6500; }

/* ===== Confetti CSS-only para celebraciones ===== */
.confetti-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiPop 1.6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes confettiPop {
  0%   { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(var(--rot, 720deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-piece { display: none; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 64px;
  padding: 32px 12px 28px 12px;
  text-align: center;
  border-top: 1px dashed var(--border);
}
.footer-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--tec-blue);
  margin-bottom: 10px;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.footer-disclaimer {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink-soft);
  letter-spacing: 0;
  max-width: 540px;
}
.footer-credit {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.footer-credit strong {
  color: var(--tec-blue);
  font-weight: 700;
  letter-spacing: 0;
}
.dice-mini {
  font-size: 18px;
  color: var(--tec-blue);
  opacity: .6;
  line-height: 1;
}
body:has(#view-challenge.active) .site-footer { display: none; }

/* ===== Paso 2 — Verificar / editar empresa ===== */
.empresa-panel {
  max-width: 760px;
  margin: 36px auto 0 auto;
  background: white;
  border-radius: 14px;
  padding: 36px 36px 28px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.empresa-panel h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.empresa-panel p.lead {
  color: var(--ink-soft);
  margin: 0 0 26px 0;
  line-height: 1.5;
  font-size: 15px;
}
.empresa-form { margin-bottom: 24px; }
.empresa-form-row { display: flex; gap: 16px; align-items: stretch; }
.empresa-form-row-2col > .field { flex: 1; display: flex; flex-direction: column; }
/* El input del nombre se estira para igualar la altura del cuadro del sector.
   El textarea del sector NO lleva flex para que su autogrow controle la altura
   y muestre frases largas completas. */
.empresa-form-row-2col > .field > input { flex: 1; }
.field-hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: 4px;
}
.btn-autofill {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-autofill:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.autofill-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(255,199,44,.6));
}

/* Múltiples URLs */
.empresa-urls-field { margin-bottom: 16px; }
.empresa-urls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}
.url-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.url-row input:focus {
  outline: 2px solid var(--tec-blue);
  outline-offset: 1px;
  border-color: var(--tec-blue);
}
.url-row.from-excel input {
  background: var(--tec-blue-light);
  border-color: rgba(0,51,160,.25);
}
.url-row .url-source-tag {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tec-blue);
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(0,51,160,.2);
}
.btn-remove-url {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-remove-url:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}
.empresa-desc-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.empresa-urls-actions {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.btn-add-url {
  background: none;
  border: 1px dashed var(--border);
  color: var(--tec-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.btn-add-url:hover {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
}
.btn-add-url span[aria-hidden] {
  font-weight: 700;
  margin-right: 2px;
}

/* Dropzone para documento */
.doc-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  background: #fafbfd;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.doc-dropzone:hover,
.doc-dropzone:focus-visible {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
}
.doc-dropzone.is-dragover {
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
  border-style: solid;
}
.doc-dropzone-empty,
.doc-dropzone-loading,
.doc-dropzone-loaded {
  display: flex;
  align-items: center;
  gap: 14px;
}
.doc-dropzone-empty[hidden],
.doc-dropzone-loading[hidden],
.doc-dropzone-loaded[hidden] {
  display: none;
}
.doc-dropzone-empty { justify-content: flex-start; }
.doc-dropzone-loading { justify-content: center; color: var(--ink-soft); font-size: 14px; }
.doc-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.doc-cta { display: flex; flex-direction: column; gap: 2px; }
.doc-cta strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.doc-formats { font-size: 12px; color: var(--ink-soft); }
.doc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.doc-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-meta { font-size: 12px; color: var(--ink-soft); }
#btn-clear-doc { font-size: 12px; }

.doc-dropzone.has-doc {
  border-style: solid;
  border-color: var(--tec-blue);
  background: var(--tec-blue-light);
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .deck-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card { min-height: 240px; }
  .card .title { font-size: 14px; }
  .card .description { font-size: 12px; }
  .welcome-panel { margin-top: 20px; padding: 24px 20px; }
  .empresa-panel { margin-top: 20px; padding: 24px 20px; }
  .empresa-panel h1 { font-size: 26px; }
  .empresa-form-row { flex-direction: column; gap: 0; }
  .empresa-urls-actions { flex-direction: column; align-items: stretch; }
  .btn-autofill { width: 100%; justify-content: center; }
  .btn-add-url { width: 100%; }
}

/* ===== Vista Takeaway (infografía embebida) ===== */
.takeaway-wrap { padding: 28px 0 10px; }
.takeaway-frame {
  margin: 8px auto 0;
  max-width: 1040px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(14,17,22,.10);
  background: #fff;
}
.takeaway-frame iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 600px;
  border: 0;
}

.takeaway-actions {
  display: flex;
  justify-content: flex-end;
  max-width: 1040px;
  margin: 0 auto 12px;
}
