/* "MI SOCIO" · SISTEMA DE DISEÑO OFICIAL CODEAI-LAB / TASTE
   Basado en la Doctrina Visual Aprobada por Gabriela (Heild Carbón y Coral)
   Referencia Canónica: F:\01_PROYECTOS\HEILD_TABLERO\ESTILO_APROBADO_2026-10-02.md
   
   - Formas: Rectángulos redondeados en relieve. NADA DE CÍRCULOS como elemento principal.
   - Iconografía: CERO EMOJIS en la interfaz. Glifos y etiquetas técnicas sobrias.
   - Paleta: Carbón cálido (#24262b), luz de relieve (#30333a), sombra (#16171a), coral (#ff7f6a), menta (#8acfc1).
   - Tipografía: Archivo (títulos) / Epilogue (texto y lectura) / JetBrains Mono (datos y tags).
   - Ergonomía iPhone: Zonas tocables mínimo 44px, safe area insets nativos. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Epilogue:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-scale: 1.0;
  
  /* Paleta Canónica "Carbón y Coral" aprobada por Gabbs */
  --bg: #24262b;
  --surface: #282b31;
  --well: #202228;
  --ink: #efe9e1;
  --muted: #bbb6ad;
  --line: #3b3e45;
  --line-subtle: rgba(255, 255, 255, 0.05);
  
  --coral: #ff7f6a;
  --coral-hover: #ff977c;
  --coral-text: #2a1512;
  
  --mint: #8acfc1;
  --mint-dim: rgba(138, 207, 193, 0.14);
  --warning: #eacb88;
  
  /* Sistema de Relieve Físico (Neumorfismo Táctil Aprobado) */
  --relief-up: 6px 6px 14px #16171a, -6px -6px 14px #30333a;
  --relief-btn: 3px 3px 8px #16171a, -3px -3px 8px #30333a;
  --relief-btn-hover: 5px 5px 12px #16171a, -4px -4px 10px #343840;
  --relief-in: inset 4px 4px 9px #16171a, inset -4px -4px 9px #30333a;
  
  --radius-panel: 18px;
  --radius-card: 14px;
  --radius-btn: 12px;
  --radius-tag: 6px;
  
  --touch-min: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: calc(14px * var(--font-scale));
  line-height: 1.65;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 15% 0%, #2e3137 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Tipografía de Encabezados y Datos Técnicos */
h1, h2, h3, .heading-font {
  font-family: 'Archivo', -apple-system, sans-serif;
  letter-spacing: -0.5px;
}

.mono-font, .tag, .meta-badge, .status-indicator, .channel-num, .step-badge {
  font-family: 'JetBrains Mono', monospace;
}

/* --- HEADER SUPERIOR (ANTI-DESBORDE Y ERGONÓMICO IPHONE) --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(36, 38, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.header-inner {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-tag);
  background: var(--well);
  box-shadow: var(--relief-in);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--coral);
  border: 1px solid var(--line-subtle);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.4px;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--coral);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-header-relief {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-btn);
  color: var(--muted);
  border-radius: var(--radius-tag);
  padding: 6px 9px;
  min-height: 34px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-header-relief:hover {
  color: var(--ink);
  border-color: var(--line);
}

.btn-header-relief:active {
  box-shadow: var(--relief-in);
  transform: translateY(1px);
}

.btn-header-relief.active-btn, .btn-header-relief.has-pending {
  color: var(--coral);
  border-color: rgba(255, 127, 106, 0.4);
}

/* --- CONTENEDOR PRINCIPAL ESTABLE --- */
.main-content {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 14px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: fadeIn 0.25s ease-out;
}

.hidden {
  display: none !important;
}

/* --- PANTALLA 1: SELECTOR ANALÓGICO DE CANALES --- */
.hero-box {
  margin-bottom: 24px;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(138, 207, 193, 0.3);
  background: var(--mint-dim);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: calc(26px * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title span {
  color: var(--coral);
}

.hero-desc {
  font-size: calc(13px * var(--font-scale));
  color: var(--muted);
  line-height: 1.6;
}

/* Consola Selectora en Relieve */
.analog-console {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-panel);
  box-shadow: var(--relief-up);
  padding: 24px 20px;
  margin-bottom: 24px;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.console-head-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.status-led-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  background: var(--well);
  box-shadow: var(--relief-in);
  padding: 4px 10px;
  border-radius: 50px;
}

.led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.2s ease;
}

.status-led-pill.active .led-dot {
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

.status-led-pill.active {
  color: var(--coral);
}

/* Canales Rectangulares Esculpidos */
.channel-slots-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.channel-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--well);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-in);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  min-height: 68px;
}

.channel-slot-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-num-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-btn);
  transition: all 0.2s ease;
}

.channel-text-block strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: calc(14px * var(--font-scale));
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.channel-text-block small {
  font-size: calc(11px * var(--font-scale));
  color: var(--muted);
}

.channel-indicator-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Estado de Sorteo (animación de ciclo) */
.channel-slot.cycling {
  border-color: rgba(255, 127, 106, 0.4);
  background: #2a2c33;
}

.channel-slot.cycling .channel-num-badge {
  color: var(--coral);
}

/* Estado Ganador Enclavado */
.channel-slot.winner-active {
  border-color: var(--coral);
  background: linear-gradient(135deg, #2d2a2f, #24262b);
  box-shadow: inset 5px 5px 12px #16171a, inset -3px -3px 8px #353840;
}

.channel-slot.winner-active .channel-num-badge {
  background: var(--coral);
  color: var(--coral-text);
  box-shadow: none;
}

.channel-slot.winner-active .channel-indicator-box {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 0 8px rgba(255, 127, 106, 0.6);
}

/* Botón de Sorteo */
.console-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-relief-primary {
  width: 100%;
  min-height: 52px;
  background: var(--coral);
  color: var(--coral-text);
  border: 1px solid var(--coral);
  border-radius: var(--radius-btn);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: calc(14px * var(--font-scale));
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 12px #16171a, -4px -4px 12px #343840;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-relief-primary:hover:not(:disabled) {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 16px #16171a, -5px -5px 14px #383c44;
}

.btn-relief-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--relief-in);
}

.btn-relief-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-relief-secondary {
  width: 100%;
  min-height: 46px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-btn);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: calc(13px * var(--font-scale));
  cursor: pointer;
  box-shadow: var(--relief-btn);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-relief-secondary:hover {
  border-color: var(--line);
}

.btn-relief-secondary:active {
  box-shadow: var(--relief-in);
  transform: translateY(1px);
}

/* Banner de Resultado Enclavado */
.enclavado-banner {
  margin-top: 18px;
  background: var(--well);
  border: 1px solid rgba(255, 127, 106, 0.4);
  border-radius: var(--radius-card);
  box-shadow: var(--relief-in);
  padding: 18px;
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

.enclavado-banner-text {
  font-size: calc(14px * var(--font-scale));
  color: var(--ink);
  margin-bottom: 14px;
}

.enclavado-banner-text strong {
  color: var(--coral);
}

/* --- PANTALLA 2: LA JUNTA EN SESIÓN --- */
.boardroom-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.step-indicator-text {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.progress-tracks {
  display: flex;
  gap: 6px;
}

.progress-tab {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  background: var(--well);
  box-shadow: var(--relief-in);
  transition: all 0.25s ease;
}

.progress-tab.active {
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 127, 106, 0.6);
}

.progress-tab.completed {
  background: var(--mint);
}

/* Panel Directivo de la Junta */
.boardroom-card-panel {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-panel);
  box-shadow: var(--relief-up);
  padding: 24px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Cara Cerrada / Convocatoria */
.card-closed-state {
  padding: 40px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.monogram-seal {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--well);
  border: 1px solid var(--line);
  box-shadow: var(--relief-in);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--coral);
  letter-spacing: -1px;
}

.closed-title {
  font-size: calc(18px * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
}

.closed-desc {
  font-size: calc(13px * var(--font-scale));
  color: var(--muted);
  max-width: 360px;
  line-height: 1.6;
}

/* Cara Abierta / Contenido de la Junta */
.card-revealed-state {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--coral);
  border: 1px solid rgba(255, 127, 106, 0.3);
  background: rgba(255, 127, 106, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
}

.bible-version-tag {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

.scripture-reference {
  font-family: 'Archivo', sans-serif;
  font-size: calc(20px * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.scripture-quote-box {
  background: var(--well);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-in);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 16px 18px;
}

.scripture-quote-text {
  font-family: 'Epilogue', sans-serif;
  font-size: calc(15px * var(--font-scale));
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
}

/* Bloque: Instrucción del Socio */
.partner-guideline-block {
  background: var(--well);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-in);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.block-header-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 8px;
}

.partner-guideline-text {
  font-size: calc(13px * var(--font-scale));
  color: var(--ink);
  line-height: 1.65;
}

/* Bloque: Acuerdo del Día */
.action-agreement-block {
  background: var(--well);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-in);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 14px 18px;
}

.action-header-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 6px;
}

.action-agreement-text {
  font-size: calc(13px * var(--font-scale));
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
}

/* Bloque: Apuntes de Gabbs */
.user-notes-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notes-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.notes-textarea {
  width: 100%;
  background: var(--well);
  border: 1px solid var(--line);
  box-shadow: var(--relief-in);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-family: inherit;
  font-size: calc(13px * var(--font-scale));
  padding: 12px 14px;
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--coral);
}

/* Barra de Herramientas de la Directriz */
.tool-buttons-row {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.btn-tool {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-btn);
  color: var(--muted);
  border-radius: var(--radius-tag);
  padding: 8px 14px;
  min-height: 44px; /* Ergonomía iPhone */
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-tool:hover {
  color: var(--ink);
  border-color: var(--line);
}

.btn-tool:active {
  box-shadow: var(--relief-in);
  transform: translateY(1px);
}

.btn-tool.active-tool {
  color: var(--coral);
  box-shadow: var(--relief-in);
}

/* Navegación Inferior */
.boardroom-nav-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- PANTALLA 3: MINUTA FINAL --- */
.summary-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-header-box {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-panel);
  box-shadow: var(--relief-up);
  padding: 22px 20px;
}

.summary-header-box h2 {
  font-size: calc(22px * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.summary-header-box h2 span {
  color: var(--coral);
}

.summary-meta-line {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.summary-intro-note {
  font-size: calc(13px * var(--font-scale));
  color: var(--muted);
  line-height: 1.6;
}

.minute-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.minute-record-card {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--relief-up);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.minute-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minute-record-head strong {
  font-family: 'Archivo', sans-serif;
  font-size: calc(16px * var(--font-scale));
  color: var(--ink);
}

.minute-scripture {
  font-size: calc(14px * var(--font-scale));
  font-style: italic;
  color: var(--ink);
  padding-left: 10px;
  border-left: 2px solid var(--coral);
}

.minute-advice-box {
  background: var(--well);
  box-shadow: var(--relief-in);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: calc(12px * var(--font-scale));
  color: var(--ink);
  line-height: 1.55;
}

.minute-advice-box strong {
  color: var(--coral);
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.minute-action-box {
  background: var(--well);
  box-shadow: var(--relief-in);
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: calc(12px * var(--font-scale));
  color: var(--ink);
}

.minute-action-box strong {
  color: var(--mint);
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.minute-user-note-box {
  background: var(--well);
  box-shadow: var(--relief-in);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: calc(12px * var(--font-scale));
  color: var(--muted);
}

.minute-user-note-box strong {
  color: var(--ink);
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* --- MODAL DIALOGS CON ESTILO HEILD --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: calc(16px * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--well);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
  background: var(--surface);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-step-card {
  background: var(--well);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-in);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num-mono {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--coral);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-detail-block strong {
  display: block;
  font-size: calc(13px * var(--font-scale));
  color: var(--ink);
  margin-bottom: 2px;
}

.step-detail-block p {
  font-size: calc(12px * var(--font-scale));
  color: var(--muted);
  line-height: 1.5;
}

/* --- BASE DE DATOS DE PENDIENTES Y ACUERDOS --- */
.badge-count {
  background: var(--coral);
  color: var(--coral-text);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 50px;
  margin-left: 4px;
}

.btn-header-relief.has-pending {
  border-color: rgba(255, 127, 106, 0.4);
  color: var(--coral);
}

.db-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--well);
}

.filter-pill-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.filter-pill-btn.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
  background: var(--surface);
}

.add-task-form {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
}

.task-input-field {
  flex: 1;
  background: var(--well);
  border: 1px solid var(--line);
  box-shadow: var(--relief-in);
  border-radius: var(--radius-tag);
  color: var(--ink);
  padding: 10px 14px;
  font-family: inherit;
  font-size: calc(12px * var(--font-scale));
}

.task-input-field:focus {
  outline: none;
  border-color: var(--coral);
}

.task-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-db-card {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--relief-up);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.task-db-card.is-completed {
  opacity: 0.72;
  box-shadow: none;
  border-color: rgba(138, 207, 193, 0.25);
  background: var(--well);
}

.task-db-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.task-status-btn {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 28px;
}

.task-status-btn.btn-pending {
  background: var(--surface);
  border: 1px solid var(--coral);
  color: var(--coral);
  box-shadow: var(--relief-btn);
}

.task-status-btn.btn-pending:hover {
  background: var(--coral);
  color: var(--coral-text);
}

.task-status-btn.btn-done {
  background: var(--well);
  border: 1px solid var(--mint);
  color: var(--mint);
  box-shadow: var(--relief-in);
}

.task-main-text {
  font-size: calc(13px * var(--font-scale));
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}

.task-db-card.is-completed .task-main-text {
  text-decoration: line-through;
  color: var(--muted);
}

.task-gabbs-note {
  background: var(--well);
  box-shadow: var(--relief-in);
  border-left: 2px solid var(--coral);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: calc(12px * var(--font-scale));
  color: var(--muted);
}

.task-db-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
}

.task-actions-row {
  display: flex;
  gap: 6px;
}

.btn-tool-sm {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-btn);
  color: var(--muted);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool-sm:hover {
  color: var(--ink);
  border-color: var(--line);
}

.btn-tool-sm:active {
  box-shadow: var(--relief-in);
}

.modal-footer-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--well);
}

.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--muted);
  font-size: 11px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--well);
  color: var(--ink);
  border: 1px solid var(--coral);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  border-radius: var(--radius-card);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- BARRA Y BOTÓN DE VOZ EN ALTA --- */
.speech-control-bar {
  margin: 14px 0 16px;
  display: flex;
  justify-content: center;
}

.btn-speech-prominent {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 127, 106, 0.45);
  box-shadow: var(--relief-btn);
  color: var(--ink);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-speech-prominent:hover {
  border-color: var(--coral);
  box-shadow: var(--relief-btn-hover);
  color: var(--coral);
}

.btn-speech-prominent:active {
  box-shadow: var(--relief-in);
  transform: translateY(1px);
}

.btn-speech-prominent.is-speaking {
  background: var(--well);
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: var(--relief-in);
  animation: speechPulse 1.8s infinite ease-in-out;
}

.speaker-icon {
  font-size: 15px;
}

@keyframes speechPulse {
  0%, 100% {
    box-shadow: inset 4px 4px 9px #16171a, inset -4px -4px 9px #30333a, 0 0 10px rgba(255, 127, 106, 0.2);
  }
  50% {
    box-shadow: inset 4px 4px 9px #16171a, inset -4px -4px 9px #30333a, 0 0 18px rgba(255, 127, 106, 0.55);
  }
}

/* --- FORMULARIO DE PERFIL DE NEGOCIO (MULTI-TENANT / VENTA) --- */
.perfil-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bbb6ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-footer-action {
  margin-top: 10px;
}

/* --- MENÚ DE OPCIONES Y AJUSTES --- */
.options-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-action-item {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--relief-btn);
  border-radius: var(--radius-card);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.menu-action-item:not(.no-click):hover {
  border-color: var(--line);
  color: var(--coral);
}

.menu-action-item:not(.no-click):active {
  box-shadow: var(--relief-in);
  transform: translateY(1px);
}

.menu-action-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-action-info strong {
  font-size: 13px;
  letter-spacing: -0.2px;
}

.menu-action-info small {
  font-size: 11px;
  color: var(--muted);
}

.menu-arrow {
  color: var(--coral);
  font-size: 14px;
}

.font-stepper-box {
  display: flex;
  gap: 6px;
}

.subdomain-badge-card {
  background: var(--well);
  box-shadow: var(--relief-in);
  border-radius: var(--radius-tag);
  padding: 12px 14px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.subdomain-badge-card strong {
  color: var(--mint);
  font-size: 12px;
}
