:root {
  /* Paleta de marca Lu Galeano */
  --blue: #B8D4E8;
  --beige: #F3E4DF;
  --taupe: #C3B7A9;
  --dark: #323232;
  --white: #FFFFFF;

  --bg: #FFFFFF;
  --bg-warm: #F3E4DF;       /* beige - fondos secundarios */
  --bg-elev: #FFFFFF;
  --fg: #323232;
  --muted: #C3B7A9;         /* taupe - texto secundario */
  --soft: #ecddd8;          /* beige más suave - bordes */
  --accent: #B8D4E8;        /* azul de marca */
  --accent-fg: #323232;     /* texto sobre botón azul (claro → texto oscuro) */
  --accent-soft: #e4f0f7;   /* azul muy claro - hover / selected */
  --accent-dark: #8ab6cd;   /* azul más oscuro - hover de botón */
  --warn: #b87333;
  --danger: #b3261e;
  --shadow: 0 10px 30px -12px rgba(50, 50, 50, 0.14);
  --radius: 12px;
  --transition: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Tipografías
     Titular: Lora (serif) → reemplazar por Tex Gyre Schola si se sube como @font-face
     Cuerpo/UI: Overpass (sans-serif) */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Overpass', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header con barra de progreso */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--soft);
  background: var(--bg-warm);
}

.brand {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.progress {
  flex: 1;
  max-width: 280px;
  height: 6px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width var(--transition);
}

/* Host de pantallas */
.screen-host {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.screen {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: screen-in var(--transition) both;
}

.screen.leaving {
  animation: screen-out var(--transition) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes screen-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}

/* Footer (controles inferiores) */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 24px;
  border-top: 1px solid var(--soft);
  background: var(--bg-warm);
}

.footer-hint {
  font-size: 12px;
  color: var(--muted);
}

.footer-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--soft);
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.footer-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Tipografía base */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-body);
}

.step-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 18px;
  margin: 0;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.help {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

kbd {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: var(--fg);
}

/* Botones */
.btn-primary {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  align-self: flex-start;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Inputs */
.input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--soft);
  background: transparent;
  font-size: 28px;
  font-family: inherit;
  padding: 8px 0;
  color: var(--fg);
  outline: none;
  transition: border-color var(--transition);
}

.input:focus { border-bottom-color: var(--accent); }
.input::placeholder { color: #c8c8c8; }

.error {
  color: var(--danger);
  font-size: 14px;
  min-height: 18px;
  margin: 0;
}

/* Opciones (preguntas) */
.options {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.01);
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  flex-shrink: 0;
}

.option:hover .option-key,
.option.selected .option-key {
  color: var(--accent);
  border-color: var(--accent);
}

/* Welcome: autora */
.welcome-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

.author-role {
  font-size: 12px;
  color: var(--muted);
}

/* Brand link en header */
.brand-link {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  text-transform: none;
  letter-spacing: -0.005em;
  transition: opacity var(--transition);
}

.brand-link:hover { opacity: 0.7; }

/* Mensaje de Luciana en results */
.message-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.message-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-name {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.message-card .closing {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
}

/* Pantalla de envío (spinner) */
.screen-submitting { align-items: center; text-align: center; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  align-self: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Resultados */
.score-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.score-total-label {
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
}

.score-total-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--font-heading);
}

.bars {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.bar-label { font-weight: 600; }

.bar-score { color: var(--muted); }

.bar-track {
  height: 10px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bar.is-friction .bar-fill { background: var(--warn); }
.bar.is-friction .bar-label { color: var(--warn); }

.friction {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--beige);
  border-left: 4px solid var(--taupe);
  border-radius: 8px;
}

.friction h3 { color: var(--fg); margin-bottom: 8px; }

.friction ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg);
}

.closing {
  margin-top: 8px;
  font-size: 15px;
  color: var(--fg);
}

/* Mobile */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .input { font-size: 22px; }
  .app-header { padding: 12px 16px; }
  .screen-host { padding: 24px 16px; }
  .app-footer { padding: 10px 16px; }
  .progress { max-width: 160px; }
}

/* =========================================================
   Panel privado (admin)
   ========================================================= */

body.admin { background: var(--bg); }

.admin-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--soft);
  background: var(--bg-warm);
}

.admin-header .brand {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 600;
}

.admin-header-right { display: flex; align-items: center; gap: 12px; }

.logout-btn {
  background: transparent;
  border: 1px solid var(--soft);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.logout-btn:hover { border-color: var(--accent); color: var(--accent); }

.header-btn {
  background: transparent;
  border: 1px solid var(--soft);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.header-btn:hover { border-color: var(--accent); color: var(--accent); }

.change-password { max-width: 480px; margin: 32px auto; }
.change-password .lede { color: var(--muted); margin-bottom: 24px; }
.change-password .success {
  color: #2d7a4f;
  background: #e8f5ed;
  border: 1px solid #c4e3cf;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 12px;
  font-size: 14px;
}

.admin-main {
  flex: 1;
  padding: 32px 28px 64px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.muted { color: var(--muted); font-weight: 400; }

/* Login */
.login {
  max-width: 360px;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login h1 { font-size: 28px; margin: 0; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.login-form input {
  border: 1px solid var(--soft);
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.login-form input:focus { border-color: var(--accent); }

.login-form .btn-primary { align-self: stretch; text-align: center; }

/* Listado */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.list-toolbar h2 { font-size: 22px; margin: 0; }

.search {
  border: 1px solid var(--soft);
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 260px;
  transition: border-color var(--transition);
}

.search:focus { border-color: var(--accent); }

.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  text-align: left;
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 12px;
  border-bottom: 1px solid var(--soft);
}

.table th.num, .table td.num { text-align: right; }

.table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}

.table tbody tr:hover { background: var(--accent-soft); }

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--soft);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.cell-name { font-weight: 600; color: var(--fg); }

.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.score-pill .max { color: var(--muted); font-weight: 400; }

.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.badge-contact { background: var(--accent-soft); color: var(--fg); }

/* Detalle */
.detail { display: flex; flex-direction: column; gap: 24px; }

.back-link {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.back-link:hover { color: var(--accent-dark); }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-head h2 { font-size: 28px; margin: 0; }

.detail-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-meta .dot { color: var(--soft); }

.detail-badges { display: flex; gap: 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-grid .card-meta { grid-column: span 2; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 { font-size: 16px; }

.answers {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.answer-area-head {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 6px;
}

.answer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
}

.answer-row .answer-text { flex: 1; }

.answer-row .answer-value {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
}

.answer-row.value-2 { border-left: 3px solid var(--accent); }
.answer-row.value-1 { border-left: 3px solid var(--warn); }
.answer-row.value-0 { border-left: 3px solid var(--danger); }

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  font-size: 13px;
  margin: 0;
}

.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 0;
}

.error-screen {
  background: var(--bg-elev);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 480px;
  margin: 40px auto;
}

@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .card-meta { grid-column: span 1; }
  .admin-main { padding: 20px 16px 48px; }
  .admin-header { padding: 14px 16px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--soft);
  }
  .table td {
    padding: 4px 0;
    border: none;
  }
  .table td::before {
    content: attr(data-label);
    display: inline-block;
    width: 80px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .search { min-width: 0; width: 100%; }
}

/* =========================================================
   Landing page (/)
   ========================================================= */

body.landing {
  background: var(--bg);
  color: var(--fg);
}

/* Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--soft);
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav-links a:hover { color: var(--accent-dark); }

.site-nav-links .nav-cta {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav-links .nav-cta:hover {
  background: var(--accent-dark);
  color: var(--accent-fg);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 40px 96px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.hero-content .lede {
  font-size: 19px;
  max-width: 520px;
  color: var(--fg);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-cta-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-image {
  margin: 0;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Bio */
.bio {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 96px 40px;
  background: var(--bg-warm);
  scroll-margin-top: 80px;
}

.bio > * { max-width: 1240px; }

.bio-image {
  margin: 0 0 0 auto;
  width: 100%;
  max-width: 480px;
}

.bio-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bio-content {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bio-content h2 {
  font-size: 40px;
  line-height: 1.15;
}

.bio-content p {
  font-size: 16px;
  margin: 0;
}

.link-arrow {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.link-arrow:hover { color: var(--fg); }

/* Features */
.features {
  padding: 96px 40px;
  max-width: 1240px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.features-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 48px;
}

.features-head h2 {
  font-size: 40px;
  line-height: 1.15;
}

.features-head .lede {
  font-size: 17px;
  color: var(--fg);
}

.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feature-num {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.feature h3 {
  font-size: 20px;
  margin: 0;
}

.feature p {
  font-size: 15px;
  color: var(--fg);
  margin: 0;
}

/* Audience */
.audience {
  background: var(--accent-soft);
  padding: 96px 40px;
}

.audience-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audience-content h2 {
  font-size: 40px;
  line-height: 1.15;
}

.audience-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-list li {
  position: relative;
  padding-left: 36px;
  font-size: 17px;
  line-height: 1.5;
}

.audience-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Final CTA */
.final-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 96px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.final-cta-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}

.final-cta-content h2 {
  font-size: 44px;
  line-height: 1.1;
}

.final-cta-image {
  margin: 0;
  position: relative;
}

.final-cta-image::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  z-index: 0;
}

.final-cta-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: var(--dark);
  color: var(--white);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 16px;
}

.footer-brand .brand-mark-italic {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-links a:hover { opacity: 1; }

/* Mobile landing */
@media (max-width: 960px) {
  .hero,
  .bio,
  .final-cta {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px;
  }
  .bio-image { margin: 0 auto; }
  .hero-content h1 { font-size: 40px; }
  .bio-content h2,
  .audience-content h2,
  .features-head h2,
  .final-cta-content h2 { font-size: 30px; }
  .hero-image img,
  .final-cta-image img { height: 400px; }
  .bio-image img { height: 460px; }
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 64px 24px; }
  .audience { padding: 64px 24px; }
  .site-nav { padding: 14px 20px; }
  .site-nav-links { gap: 14px; }
  .site-nav-links a:not(.nav-cta) { display: none; }
  .site-footer { padding: 24px 20px; }
}

@media (max-width: 540px) {
  .hero-content h1 { font-size: 32px; }
  .hero-image img,
  .final-cta-image img { height: 320px; }
  .bio-image img { height: 380px; }
  .feature-num { font-size: 40px; }
}

/* ─── Pantalla de agradecimiento (formulario) ─── */
.screen-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px 24px;
}
.thankyou-icon {
  font-size: 56px;
  line-height: 1;
}
.screen-thankyou h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 0;
}
.screen-thankyou .lede {
  max-width: 480px;
  color: var(--muted);
}
.thankyou-hint {
  font-size: 15px;
  color: var(--fg);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 20px;
  margin: 0;
}

/* ─── Templates de respuesta (admin) ─── */
.response-template {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--bg-warm);
}
.response-template:last-child { margin-bottom: 0; }
.response-template-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 10px;
}
.response-template-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 12px;
  color: var(--fg);
}
.btn-copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--fg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-copy:hover { background: var(--accent); }
.card-responses { grid-column: 1 / -1; }

/* ========== Semáforo & nivel general (admin detail) ========== */

.nivel-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--soft);
  background: var(--bg-warm);
}
.nivel-banner-label {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}
.nivel-banner-lede {
  color: var(--muted);
  font-size: 14px;
}
.nivel-banner--desordenado     { border-color: #d99a8a; background: #fbe9e3; }
.nivel-banner--estable_trabado { border-color: #d9c08a; background: #fbf3df; }
.nivel-banner--listo_escalar   { border-color: #93c79a; background: #e3f4e6; }

.semaforo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.semaforo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--soft);
  background: var(--white);
}
.semaforo-row--verde    { border-left: 4px solid #2f9e44; }
.semaforo-row--amarillo { border-left: 4px solid #d9a23a; }
.semaforo-row--rojo     { border-left: 4px solid #b3261e; }
.semaforo-dot { font-size: 22px; line-height: 1; }
.semaforo-body { display: flex; flex-direction: column; }
.semaforo-label { font-weight: 600; color: var(--fg); }
.semaforo-meta  { font-size: 13px; color: var(--muted); }

/* Chip de nivel en la lista */
.nivel-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nivel-chip--desordenado     { background: #fbe9e3; color: #8a3a26; border-color: #e8c2b2; }
.nivel-chip--estable_trabado { background: #fbf3df; color: #7a5a14; border-color: #e8d6a4; }
.nivel-chip--listo_escalar   { background: #e3f4e6; color: #1d6b2c; border-color: #b8dec0; }

/* ========== Devolución entregada (toggle + barra) ========== */

.detail-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--bg-warm);
  border: 1px solid var(--soft);
}
.feedback-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
}
.feedback-toggle.compact { font-size: 13px; font-weight: 500; }
.feedback-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2f9e44;
  cursor: pointer;
}
.feedback-meta { color: var(--muted); font-size: 13px; }
.row-feedback-sent { background: #f5fbf6; }
.cell-feedback { white-space: nowrap; min-width: 130px; }

/* Links de contacto en la tabla */
.contact-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-dark);
}
.contact-link:hover { color: var(--fg); }

/* ========== Nivel pill (paciente, pantalla final) ========== */

.nivel-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--soft);
  background: var(--bg-warm);
  margin: 6px 0 12px;
}
.nivel-pill--desordenado     { background: #fbe9e3; border-color: #e8c2b2; color: #8a3a26; }
.nivel-pill--estable_trabado { background: #fbf3df; border-color: #e8d6a4; color: #7a5a14; }
.nivel-pill--listo_escalar   { background: #e3f4e6; border-color: #b8dec0; color: #1d6b2c; }

/* ── Tabs (Activos / Eliminados) ── */
.list-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--soft);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
}

.tab-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-btn:not(.tab-btn--active):hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Danger button ── */
.btn-danger {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-danger:hover { background: #96281b; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ── Cell actions ── */
.cell-actions {
  white-space: nowrap;
  text-align: right;
}

