/* ═══════════════════════════════════════════════════════
   Blog / Contenido — estilos para listing y artículo
═══════════════════════════════════════════════════════ */

/* ── Hero listing ────────────────────────────────────── */
.ct-hero {
  position: relative;
  background: linear-gradient(135deg,#07121d 0%,#0f2d3d 55%,#163245 100%);
  padding: 140px 7% 80px;
  text-align: center;
  overflow: hidden;
}
.ct-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,96,34,.08), transparent);
  pointer-events: none;
}
.ct-hero > * { position: relative; }

/* ── Filter tabs ─────────────────────────────────────── */
.ct-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 7% 0;
  background: #f2f4f6;
}
.ct-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  font-size: 13px;
  font-family: var(--fb);
  cursor: pointer;
  color: #555;
  text-decoration: none;
  transition: all .2s;
}
.ct-tab:hover, .ct-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Post grid ───────────────────────────────────────── */
.ct-section {
  background: #f2f4f6;
  padding: 40px 7% 96px;
}
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.ct-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 64px 0;
  color: #999;
  font-size: 15px;
}

/* ── Post card ───────────────────────────────────────── */
.ct-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.ct-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ct-cover-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#0f2d3d 0%,#163245 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.ct-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ct-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  align-self: flex-start;
}
.ct-badge--articulo      { background:rgba(255,96,34,.1);   color:var(--orange); border:1px solid rgba(255,96,34,.2); }
.ct-badge--videotutorial { background:rgba(126,184,247,.1); color:#4a9de0;       border:1px solid rgba(126,184,247,.25); }
.ct-badge--novedad       { background:rgba(52,211,153,.1);  color:#059669;       border:1px solid rgba(52,211,153,.25); }

.ct-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #0f1f2e;
}
.ct-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.ct-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 12px;
  margin-top: auto;
}
.ct-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin-top: 12px;
}
.ct-link:hover { text-decoration: underline; }

/* ── Article hero ────────────────────────────────────── */
.art-hero {
  position: relative;
  background: linear-gradient(135deg,#07121d 0%,#0f2d3d 55%,#163245 100%);
  background-size: cover;
  background-position: center;
  padding: 140px 7% 64px;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(7,18,29,.88) 0%,rgba(15,45,61,.80) 100%);
}
.art-hero > * { position: relative; }

.art-crumb {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.art-crumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.art-crumb a:hover { color: rgba(255,255,255,.85); }

.art-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.art-badge--articulo      { background:rgba(255,96,34,.2);   color:#ff9060; border:1px solid rgba(255,96,34,.3); }
.art-badge--videotutorial { background:rgba(126,184,247,.15);color:#7eb8f7; border:1px solid rgba(126,184,247,.3); }
.art-badge--novedad       { background:rgba(52,211,153,.15); color:#34d399; border:1px solid rgba(52,211,153,.3); }

.art-hero h1 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
}
.art-meta-bar {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Article body ────────────────────────────────────── */
.art-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 96px;
}
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 40px;
}
.art-back:hover { text-decoration: underline; }

.art-body { line-height: 1.85; color: #2d3748; font-size: 16px; }
.art-body h2 { font-size: clamp(20px,2.5vw,26px); font-weight: 700; margin:2em 0 .5em; color:#0f1f2e; }
.art-body h3 { font-size: clamp(17px,2vw,20px);   font-weight: 700; margin:1.5em 0 .4em; color:#0f1f2e; }
.art-body h4 { font-size: 17px; font-weight: 600; margin:1.2em 0 .3em; color:#1a2e3e; }
.art-body p  { margin: 0 0 1.2em; }
.art-body ul, .art-body ol { margin: 0 0 1.2em 1.5em; }
.art-body li { margin-bottom: .4em; }
.art-body strong { color: #0f1f2e; }
.art-body a  { color: var(--orange); }
.art-body a:hover { text-decoration: underline; }
.art-body blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.5em 0;
  padding: .8em 1.4em;
  background: rgba(255,96,34,.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.art-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  display: block;
}
.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.art-body th, .art-body td {
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.1);
  text-align: left;
}
.art-body th { background: rgba(0,0,0,.04); font-weight: 700; }

/* Responsive iframe (YouTube embeds de HugeRTE) */
.art-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  display: block;
  border: none;
}

@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
  .art-wrap { padding: 48px 0 64px; }
}
