/* ==========================================================================
   Checklist Interactivo de Debida Diligencia para Comprar Lote
   Tu Casa con Cata (@tucasaconcata) & ArkiBuilders
   ========================================================================== */

:root {
  --teal-900: #0a2528;
  --teal-800: #0f373c;
  --teal-700: #164e54;
  --teal-600: #1d646c;
  --teal-500: #2a8793;
  --teal-400: #3db2c1;
  --teal-300: #7ed0db;
  --teal-100: #e2f4f6;
  --teal-50:  #f2fafb;

  --accent-gold: #c9933b;
  --accent-gold-light: #fdf5e8;

  --status-ok: #10b981;
  --status-ok-bg: #ecfdf5;
  --status-warn: #f59e0b;
  --status-warn-bg: #fffbeb;
  --status-danger: #ef4444;
  --status-danger-bg: #fef2f2;
  --status-neutral: #6b7280;
  --status-neutral-bg: #f3f4f6;

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --paper: #ffffff;
  --surface-alt: #f8fafc;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;

  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(10, 37, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 37, 40, 0.08), 0 2px 4px -2px rgba(10, 37, 40, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 40, 0.1), 0 4px 6px -4px rgba(10, 37, 40, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 40, 0.12), 0 8px 10px -6px rgba(10, 37, 40, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--teal-50);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.checklist-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* --------------------------------------------------------------------------
   Header y Branding
   -------------------------------------------------------------------------- */
.header-hero {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.header-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(61, 178, 193, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.header-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.header-hero p {
  font-size: 1.05rem;
  color: var(--teal-100);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.hero-meta-pill {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   Selector de Lotes & Barra de Herramientas
   -------------------------------------------------------------------------- */
.toolbar-section {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
}

.lots-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.lots-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lot-tab-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  color: var(--ink-700);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lot-tab-btn:hover {
  background: var(--teal-100);
  color: var(--teal-900);
  border-color: var(--teal-400);
}

.lot-tab-btn.active {
  background: var(--teal-800);
  color: var(--paper);
  border-color: var(--teal-800);
}

.lot-tab-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ink-400);
}

.lot-tab-btn.active .lot-tab-indicator {
  background-color: var(--accent-gold);
}

.lot-actions-right {
  display: flex;
  gap: 0.5rem;
}

.btn-secondary-tool {
  background: var(--teal-50);
  border: 1px solid var(--teal-300);
  color: var(--teal-800);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary-tool:hover {
  background: var(--teal-100);
}

/* Metadata del Lote Activo (Inputs Rápidos) */
.active-lot-meta-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
}

.lot-input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: var(--surface-alt);
  transition: var(--transition);
}

.lot-input:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--paper);
  box-shadow: 0 0 0 2px rgba(42, 135, 147, 0.15);
}

/* --------------------------------------------------------------------------
   Panel de Resumen y Semáforo de Viabilidad
   -------------------------------------------------------------------------- */
.scorecard-panel {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 1.5rem;
  align-items: center;
}

.scorecard-verdict {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--border-light);
  padding-right: 1.5rem;
}

.verdict-badge-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.verdict-badge-box.status-favorable { background: var(--status-ok); }
.verdict-badge-box.status-revision { background: var(--status-warn); }
.verdict-badge-box.status-riesgoso { background: var(--status-danger); }

.verdict-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.verdict-info p {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.scorecard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat-pill {
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-pill.stat-ok { background: var(--status-ok-bg); border: 1px solid rgba(16, 185, 129, 0.3); }
.stat-pill.stat-warn { background: var(--status-warn-bg); border: 1px solid rgba(245, 158, 11, 0.3); }
.stat-pill.stat-danger { background: var(--status-danger-bg); border: 1px solid rgba(239, 68, 68, 0.3); }
.stat-pill.stat-neutral { background: var(--status-neutral-bg); border: 1px solid rgba(107, 114, 128, 0.2); }

.stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-ok .stat-number { color: var(--status-ok); }
.stat-warn .stat-number { color: var(--status-warn); }
.stat-danger .stat-number { color: var(--status-danger); }
.stat-neutral .stat-number { color: var(--status-neutral); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* --------------------------------------------------------------------------
   Conmutador de Vista (Guiado vs. Lista)
   -------------------------------------------------------------------------- */
.view-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.view-mode-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.25rem;
}

.view-mode-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: var(--transition);
}

.view-mode-btn.active {
  background: var(--teal-700);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.filters-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--paper);
  border: 1px solid var(--border-light);
  color: var(--ink-600);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover { background: var(--surface-alt); }
.filter-btn.active {
  background: var(--teal-100);
  color: var(--teal-900);
  border-color: var(--teal-500);
}

/* --------------------------------------------------------------------------
   Modo Guiado (Paso a Paso)
   -------------------------------------------------------------------------- */
.guided-container {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.guided-stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.stepper-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-600);
  letter-spacing: 0.5px;
}

.stepper-category-tag {
  background: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid var(--teal-300);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.guided-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guided-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.3;
}

.risk-level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.risk-deal-breaker {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.risk-alto {
  background: var(--status-warn-bg);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.risk-medio {
  background: var(--status-neutral-bg);
  color: var(--ink-700);
  border: 1px solid var(--border-light);
}

.guided-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-block {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.info-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-block p {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.55;
}

.documents-list {
  list-style: none;
  margin-top: 0.5rem;
}

.documents-list li {
  font-size: 0.9rem;
  color: var(--ink-700);
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
}

.documents-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: 800;
}

.seller-script-box {
  background: #f0fdf4;
  border-left: 4px solid var(--status-ok);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.seller-script-box h4 {
  color: #166534;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.seller-script-box p {
  font-style: italic;
  font-size: 0.92rem;
  color: #14532d;
}

.source-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.source-link-row a {
  color: var(--teal-600);
  font-weight: 600;
  text-decoration: underline;
}

/* Selector de Estado del Punto */
.point-decision-section {
  background: var(--teal-50);
  border: 1px solid var(--teal-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.point-decision-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.status-radios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-radio-card {
  position: relative;
}

.status-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.status-radio-card input:checked + .status-radio-label.label-ok {
  background: var(--status-ok-bg);
  border-color: var(--status-ok);
  color: #065f46;
}

.status-radio-card input:checked + .status-radio-label.label-warn {
  background: var(--status-warn-bg);
  border-color: var(--status-warn);
  color: #92400e;
}

.status-radio-card input:checked + .status-radio-label.label-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger);
  color: #991b1b;
}

.status-radio-card input:checked + .status-radio-label.label-na {
  background: var(--status-neutral-bg);
  border-color: var(--status-neutral);
  color: var(--ink-800);
}

.user-point-notes {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--paper);
  resize: vertical;
  min-height: 60px;
}

/* Navegación del Modo Guiado */
.guided-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.btn-nav {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-prev {
  background: var(--surface-alt);
  border: 1px solid var(--border-dark);
  color: var(--ink-700);
}

.btn-nav-prev:hover { background: var(--border-light); }

.btn-nav-next {
  background: var(--teal-700);
  border: 1px solid var(--teal-700);
  color: var(--paper);
}

.btn-nav-next:hover { background: var(--teal-800); }

/* --------------------------------------------------------------------------
   Modo Lista Rápida
   -------------------------------------------------------------------------- */
.quicklist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.list-item-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.list-item-card:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.list-item-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.list-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-900);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}

.list-item-quick-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-status-quick {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-status-quick.active-ok { background: var(--status-ok); color: var(--paper); border-color: var(--status-ok); }
.btn-status-quick.active-warn { background: var(--status-warn); color: var(--paper); border-color: var(--status-warn); }
.btn-status-quick.active-danger { background: var(--status-danger); color: var(--paper); border-color: var(--status-danger); }
.btn-status-quick.active-na { background: var(--status-neutral); color: var(--paper); border-color: var(--status-neutral); }

/* --------------------------------------------------------------------------
   Panel de Preguntas Pendientes para el Vendedor (Dynamic Guion)
   -------------------------------------------------------------------------- */
.questions-generator-panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.questions-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal-900);
}

.questions-textarea-box {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-800);
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-line;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Sección de Acciones CTA (Agendar, Compartir, Imprimir)
   -------------------------------------------------------------------------- */
.action-cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8822e 100%);
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(201, 147, 59, 0.35);
  transition: var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 147, 59, 0.45);
}

.secondary-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 2px solid var(--teal-600);
  color: var(--teal-800);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-action-secondary:hover {
  background: var(--teal-50);
  border-color: var(--teal-700);
}

/* --------------------------------------------------------------------------
   Modal Comparador de 3 Lotes
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 40, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--teal-900);
  color: var(--paper);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
}

.comparator-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparator-table th, .comparator-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.comparator-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--teal-900);
}

/* Footer y Disclaimer Legal */
.legal-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--ink-500);
}

.legal-footer p {
  margin-bottom: 0.75rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Estilos de Impresión (@media print)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .checklist-app {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .header-hero {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc;
    box-shadow: none !important;
    padding: 1rem !important;
  }
  .header-hero h1 { color: #000000 !important; }
  .header-hero p { color: #333333 !important; }
  .toolbar-section, .view-mode-bar, .action-cta-section, .guided-nav-footer, .btn-secondary-tool, .questions-header button {
    display: none !important;
  }
  .scorecard-panel {
    border: 1px solid #cccccc;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .list-item-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   Responsividad Móvil
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-hero h1 { font-size: 1.6rem; }
  .active-lot-meta-form {
    grid-template-columns: 1fr;
  }
  .scorecard-panel {
    grid-template-columns: 1fr;
  }
  .scorecard-verdict {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 1rem;
  }
  .scorecard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .status-radios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .secondary-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(10, 37, 40, 0.95);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media print {
  .floating-whatsapp-btn {
    display: none !important;
  }
}
