/* public/css/capturas-articles.css
   Estilos editoriales para el show de artículos de Capturas Panamá.
   Objetivo:
   - Mover estilos del Blade a un solo archivo.
   - Mantener intactos los artículos normales.
   - Activar diseños especiales solo cuando el contenido use .cp-article-pro.
*/

/* =========================
   Base del contenido del artículo
========================= */

.prose-custom {
  color: #0f172a;
}

.prose-custom p {
  margin: 1rem 0;
  line-height: 1.85;
  font-size: 1.02rem;
  color: #334155;
}

.prose-custom h2 {
  margin-top: 2.2rem;
  margin-bottom: .8rem;
  font-weight: 900;
  font-size: 1.6rem;
  color: #0f172a;
  letter-spacing: -.02em;
}

.prose-custom h3 {
  margin-top: 1.6rem;
  margin-bottom: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
}

.prose-custom ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.prose-custom ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.prose-custom li {
  margin: .35rem 0;
  color: #334155;
}

.prose-custom a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.prose-custom a:hover {
  text-decoration: underline;
}

.prose-custom blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
  border-radius: 12px;
  color: #14532d;
}

.prose-custom img {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

/* =========================
   Tablas editoriales
========================= */

.prose-custom table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.prose-custom thead {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.prose-custom th {
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 900;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: top;
}

.prose-custom th:last-child {
  border-right: 0;
}

.prose-custom td {
  padding: 0.95rem 1rem;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.prose-custom td:last-child {
  border-right: 0;
}

.prose-custom tbody tr:nth-child(even) {
  background: #f8fafc;
}

.prose-custom tbody tr:hover {
  background: #eef6ff;
}

.prose-custom table strong {
  color: inherit;
}

@media (max-width: 768px) {
  .prose-custom table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 1rem;
  }

  .prose-custom th,
  .prose-custom td {
    min-width: 160px;
  }
}

/* =========================
   Utilidades visuales usadas por show.blade.php
========================= */

.leaflet-container {
  z-index: 1 !important;
}

[x-cloak] {
  display: none !important;
}

.img-shine::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
  transform: translateX(-60%) rotate(10deg);
  transition: transform 900ms ease;
  pointer-events: none;
}

.group:hover .img-shine::after {
  transform: translateX(60%) rotate(10deg);
}

.hero-glow {
  background:
    radial-gradient(900px 350px at 10% 10%, rgba(34, 197, 94, .18), transparent 55%),
    radial-gradient(900px 350px at 90% 0%, rgba(59, 130, 246, .16), transparent 55%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
}

/* =========================
   Sistema editorial premium para artículos nuevos
   Uso dentro del editor:
   <div class="cp-article-pro">...</div>
========================= */

.prose-custom .cp-article-pro {
  display: block;
  margin: 0;
  color: #334155;
}

.prose-custom .cp-article-pro * {
  box-sizing: border-box;
}

.prose-custom .cp-article-pro .cp-lead {
  margin: 0 0 1.35rem 0;
  font-size: clamp(1.06rem, 1.8vw, 1.18rem);
  line-height: 1.9;
  color: #334155;
}

.prose-custom .cp-article-pro .cp-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .85rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: .75rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.prose-custom .cp-article-pro .cp-section-title {
  margin: 2rem 0 .75rem 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.035em;
}

.prose-custom .cp-article-pro .cp-subtitle {
  margin: .25rem 0 1.2rem 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.75;
}

/* Callouts */

.prose-custom .cp-article-pro .cp-callout {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
}

.prose-custom .cp-article-pro .cp-callout p {
  margin: .35rem 0 0 0;
  color: inherit;
}

.prose-custom .cp-article-pro .cp-callout strong {
  color: inherit;
}

.prose-custom .cp-article-pro .cp-callout-info {
  border-left-color: #06b6d4;
  background: #ecfeff;
  color: #164e63;
}

.prose-custom .cp-article-pro .cp-callout-success {
  border-left-color: #22c55e;
  background: #f0fdf4;
  color: #14532d;
}

.prose-custom .cp-article-pro .cp-callout-danger {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}

/* Grids y tarjetas */

.prose-custom .cp-article-pro .cp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
}

@media (min-width: 768px) {
  .prose-custom .cp-article-pro .cp-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose-custom .cp-article-pro .cp-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prose-custom .cp-article-pro .cp-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.prose-custom .cp-article-pro .cp-card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.prose-custom .cp-article-pro .cp-card-soft {
  background: #f8fafc;
}

.prose-custom .cp-article-pro .cp-card-dark {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e2e8f0;
}

.prose-custom .cp-article-pro .cp-card-dark h2,
.prose-custom .cp-article-pro .cp-card-dark h3,
.prose-custom .cp-article-pro .cp-card-dark strong {
  color: #ffffff;
}

.prose-custom .cp-article-pro .cp-card-dark p,
.prose-custom .cp-article-pro .cp-card-dark li {
  color: #cbd5e1;
}

.prose-custom .cp-article-pro .cp-card h2,
.prose-custom .cp-article-pro .cp-card h3 {
  margin-top: 0;
}

.prose-custom .cp-article-pro .cp-card p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: .75rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: .75rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.prose-custom .cp-article-pro .cp-badge-green {
  background: #dcfce7;
  color: #047857;
}

.prose-custom .cp-article-pro .cp-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.prose-custom .cp-article-pro .cp-badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.prose-custom .cp-article-pro .cp-badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

/* Bloques de métricas / comparativas visuales */

.prose-custom .cp-article-pro .cp-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .prose-custom .cp-article-pro .cp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .prose-custom .cp-article-pro .cp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.prose-custom .cp-article-pro .cp-stat {
  padding: 1.15rem;
  border-radius: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.prose-custom .cp-article-pro .cp-stat-label {
  margin: 0;
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.prose-custom .cp-article-pro .cp-stat-value {
  margin: .35rem 0 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 950;
}

.prose-custom .cp-article-pro .cp-bars {
  margin: 1.25rem 0 0 0;
}

.prose-custom .cp-article-pro .cp-bar {
  margin: 0 0 1rem 0;
}

.prose-custom .cp-article-pro .cp-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .4rem;
  color: #e2e8f0;
  font-size: .9rem;
  font-weight: 700;
}

.prose-custom .cp-article-pro .cp-bar-track {
  height: .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.prose-custom .cp-article-pro .cp-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #22d3ee;
}

.prose-custom .cp-article-pro .cp-bar-fill-amber {
  background: #f59e0b;
}

.prose-custom .cp-article-pro .cp-bar-fill-red {
  background: #f87171;
}

/* FAQ */

.prose-custom .cp-article-pro details {
  margin: .85rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  background: #ffffff;
}

.prose-custom .cp-article-pro summary {
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
}

.prose-custom .cp-article-pro details p {
  margin-bottom: 0;
}

/* Ajustes para listas dentro de cards */

.prose-custom .cp-article-pro .cp-card ul,
.prose-custom .cp-article-pro .cp-card ol {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-muted {
  color: #64748b;
  font-size: .92rem;
}

.prose-custom .cp-article-pro .cp-divider {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.prose-custom .cp-article-pro .cp-note {
  margin: 1.25rem 0 0 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid #0f766e;
  border-radius: 0 1rem 1rem 0;
  background: #ecfeff;
  color: #164e63;
}

.prose-custom .cp-article-pro .cp-note p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-highlight {
  margin: 1rem 0 0 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid #bae6fd;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eefbff 100%);
}

.prose-custom .cp-article-pro .cp-highlight p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-checklist {
  margin: 1rem 0 0 0;
  padding-left: 1.35rem;
}

.prose-custom .cp-article-pro .cp-checklist li {
  margin-bottom: .6rem;
}

.prose-custom .cp-article-pro .cp-faq {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.prose-custom .cp-article-pro .cp-faq-item {
  padding: 1rem 1.1rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
}

.prose-custom .cp-article-pro .cp-faq-item h3 {
  margin-bottom: .45rem;
}

.prose-custom .cp-article-pro .cp-faq-item p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* =========================
   Mejoras editoriales para artículos tipo guía
   Mantener dentro de public/css/capturas-articles.css
========================= */

.prose-custom .cp-article-pro .cp-editor-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.75rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(34, 197, 94, .18), transparent 55%),
    radial-gradient(700px 280px at 100% 0%, rgba(14, 165, 233, .16), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #020617 100%);
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

@media (min-width: 900px) {
  .prose-custom .cp-article-pro .cp-editor-hero {
    grid-template-columns: 1.5fr .9fr;
    align-items: stretch;
  }
}

.prose-custom .cp-article-pro .cp-editor-hero h2 {
  margin: 0 0 .75rem 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -.04em;
}

.prose-custom .cp-article-pro .cp-editor-hero p {
  margin: 0;
  color: #cbd5e1;
}

.prose-custom .cp-article-pro .cp-hero-note {
  padding: 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
}

.prose-custom .cp-article-pro .cp-hero-note strong {
  display: block;
  margin-bottom: .45rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.prose-custom .cp-article-pro .cp-scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.35rem 0 1.8rem 0;
}

@media (min-width: 780px) {
  .prose-custom .cp-article-pro .cp-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prose-custom .cp-article-pro .cp-scenario-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 1.45rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.prose-custom .cp-article-pro .cp-scenario-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0ea5e9, #22c55e);
}

.prose-custom .cp-article-pro .cp-scenario-card span {
  display: inline-flex;
  margin-bottom: .65rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.prose-custom .cp-article-pro .cp-scenario-card h3 {
  margin-top: 0;
  margin-bottom: .45rem;
}

.prose-custom .cp-article-pro .cp-scenario-card p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-clean-list {
  padding-left: 0;
  list-style: none;
}

.prose-custom .cp-article-pro .cp-clean-list li {
  position: relative;
  margin: .55rem 0;
  padding-left: 1.35rem;
}

.prose-custom .cp-article-pro .cp-clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #0ea5e9;
  transform: translateY(-50%);
}

.prose-custom .cp-article-pro .cp-table-featured table {
  margin-top: 1.15rem;
}

.prose-custom .cp-article-pro .cp-visual-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.35rem 0 1.8rem 0;
}

@media (min-width: 900px) {
  .prose-custom .cp-article-pro .cp-visual-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prose-custom .cp-article-pro .cp-priority-block {
  padding: 1.2rem;
  border-radius: 1.45rem;
  background: linear-gradient(135deg, #0f172a, #020617);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.prose-custom .cp-article-pro .cp-priority-block h3 {
  margin-top: 0;
  color: #ffffff;
}

.prose-custom .cp-article-pro .cp-priority-block .cp-bar:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-fill-35 { width: 35%; }
.prose-custom .cp-article-pro .cp-fill-50 { width: 50%; }
.prose-custom .cp-article-pro .cp-fill-70 { width: 70%; }
.prose-custom .cp-article-pro .cp-fill-80 { width: 80%; }
.prose-custom .cp-article-pro .cp-fill-90 { width: 90%; }
.prose-custom .cp-article-pro .cp-fill-95 { width: 95%; }

.prose-custom .cp-article-pro .cp-decision-list {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 1.8rem 0;
}

.prose-custom .cp-article-pro .cp-decision-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.prose-custom .cp-article-pro .cp-decision-item > span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 950;
}

.prose-custom .cp-article-pro .cp-decision-item h3 {
  margin-top: 0;
  margin-bottom: .25rem;
}

.prose-custom .cp-article-pro .cp-decision-item p:last-child {
  margin-bottom: 0;
}

.prose-custom .cp-article-pro .cp-card-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.prose-custom .cp-article-pro .cp-checklist-card {
  padding: 1.2rem 1.25rem 1.2rem 2.35rem;
  border-radius: 1.35rem;
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.prose-custom .cp-article-pro .cp-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem 0 1.75rem 0;
}

.prose-custom .cp-article-pro .cp-source-row span {
  display: inline-flex;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .86rem;
  font-weight: 850;
}

.prose-custom .cp-article-pro .cp-final-box {
  border-color: #86efac;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(34, 197, 94, .16), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.prose-custom .cp-article-pro .cp-final-box p {
  font-size: 1.08rem;
  color: #14532d;
}

@media (max-width: 768px) {
  .prose-custom .cp-article-pro .cp-decision-item {
    grid-template-columns: 1fr;
  }

  .prose-custom .cp-article-pro .cp-decision-item > span {
    width: 2rem;
    height: 2rem;
  }
}


/* =========================
   Artículos editoriales normales
   Uso:
   <article class="cp-article">...</article>
========================= */

.prose-custom .cp-article {
  display: block;
  color: #334155;
}

.prose-custom .cp-article__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.prose-custom .cp-article__lead {
  margin: 0 0 1.35rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(59, 130, 246, .10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-size: clamp(1.08rem, 1.9vw, 1.22rem);
  line-height: 1.85;
  font-weight: 500;
}

.prose-custom .cp-article__lead strong {
  color: #0f172a;
  font-weight: 950;
}

.prose-custom .cp-article__lead em {
  color: #334155;
  font-style: normal;
}

.prose-custom .cp-article__section {
  margin-top: 2.4rem;
}

.prose-custom .cp-article__section:first-of-type {
  margin-top: 1.5rem;
}

.prose-custom .cp-article__section h2 {
  position: relative;
  margin-top: 0;
  padding-top: .25rem;
}

.prose-custom .cp-article__section h2::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.prose-custom .cp-article__section h2 strong,
.prose-custom .cp-article__section h3 strong {
  color: inherit;
}

.prose-custom .cp-article__section h3 {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.prose-custom .cp-article__footer {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #bbf7d0;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(34, 197, 94, .13), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.prose-custom .cp-article__footer p {
  margin: 0;
  color: #14532d;
  font-size: 1.05rem;
  line-height: 1.85;
}

.prose-custom .cp-article__footer strong {
  color: #14532d;
}

/* Evita que comentarios editoriales HTML de apoyo afecten espacios raros */
.prose-custom .cp-article comment {
  display: none;
}

@media (max-width: 640px) {
  .prose-custom .cp-article__lead {
    padding: 1.1rem;
    border-radius: 1.1rem;
  }

  .prose-custom .cp-article__section h3 {
    padding: .9rem 1rem;
  }

  .prose-custom .cp-article__footer {
    padding: 1.1rem;
    border-radius: 1.15rem;
  }
}