/* Colombia Cívica — custom utilities (complements Tailwind CDN) */

/* Base font scale — all rem units in Tailwind scale with this */
html { font-size: 17px; }


/* Hide Alpine elements before hydration */
[x-cloak] { display: none !important; }

/* Sticky sidebar on large screens */
@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: 4.5rem;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
}

/* Step number badge for route instructions */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #F59E0B;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* AdSense placeholder slots */
.ad-placeholder {
  background: #F8FAFC;
  border: 1.5px dashed #E2E8F0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Print: hide interactive and decorative elements */
@media print {
  header, footer, [data-noprint] { display: none !important; }
  body { background: white !important; }
}

/* ─── Blog — artículos generados como HTML ───────────────────── */
.prose-blog h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #F59E0B;
}
.prose-blog h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.prose-blog p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prose-blog ul, .prose-blog ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.8;
}
.prose-blog ul { list-style-type: disc; }
.prose-blog ol { list-style-type: decimal; }
.prose-blog li + li { margin-top: 0.35rem; }
.prose-blog a { color: #d97706; text-decoration: underline; }
.prose-blog a:hover { color: #b45309; }
.prose-blog blockquote {
  border-left: 3px solid #e2e8f0;
  padding: 0.5rem 1rem;
  margin: 1.25rem 0;
  color: #64748b;
  font-style: italic;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
}
.prose-blog strong { color: #1e293b; font-weight: 700; }
.prose-blog .norma-cite {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.375rem;
  padding: 0.1rem 0.5rem;
}
.prose-blog .alerta-legal {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #713f12;
}

/* ─── Legal pages (terminos, privacidad, cookies, aviso-legal) ── */
.prose-legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #F59E0B;
  scroll-margin-top: 5rem;
}
.prose-legal h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.prose-legal p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.prose-legal ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.prose-legal ul li + li { margin-top: 0.25rem; }
.prose-legal a { color: #d97706; }
.prose-legal a:hover { text-decoration: underline; }
.prose-legal section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.prose-legal section:last-child { border-bottom: none; }

/* Cookie / data tables */
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th,
.legal-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  vertical-align: top;
  color: #475569;
}
.legal-table thead tr { background: #f1f5f9; }
.legal-table thead th { font-weight: 600; color: #334155; text-align: left; }
.legal-table tbody tr:nth-child(even) { background: #f8fafc; }
