/* ============================================================
 * SynckPro · Vista Details Blog
 * Cargada automáticamente por index.php como details-blog.css
 * (además de fonts, base, header y footer).
 * ============================================================ */

#synck-content { padding-top: 0; }

/* ---------- Hero artículo (foto + overlay) ---------- */
.db-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(6, 7, 13, .82) 0%, rgba(6, 7, 13, .68) 45%, rgba(10, 20, 64, .88) 100%),
    var(--db-hero-bg, url("../img/db-cover.jpg")) center 30% / cover no-repeat,
    #06070d;
  color: #fff;
  overflow: hidden;
  margin-top: calc(var(--synck-header-h) * -1);
  padding-top: calc(var(--synck-header-h) + 72px);
  padding-bottom: 88px;
}

.db-hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.db-hero__orbs i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: dbOrb 12s ease-in-out infinite;
}
.db-hero__orbs i:first-child {
  width: 420px; height: 420px; top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(1, 87, 254, .5), transparent 70%);
}
.db-hero__orbs i:last-child {
  width: 280px; height: 280px; bottom: -80px; left: 8%;
  background: radial-gradient(circle, rgba(77, 134, 255, .4), transparent 70%);
  animation-delay: -6s;
}
@keyframes dbOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.06); }
}

.db-hero__inner {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 860px;
}

.db-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d6ff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.db-hero__back:hover { text-decoration: underline; }
.db-hero__back > i { font-size: 18px; }

.db-hero__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--synck-mono);
  font-size: 13.5px;
  color: #9aa0ae;
}
.db-hero__cat {
  color: #fff;
  background: var(--synck-core);
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

.db-hero__title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.db-hero__sub {
  margin: 0;
  color: #9aa0ae;
  font-size: 18px;
}

.db-hero__author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.db-hero__author {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--synck-core);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(1, 87, 254, .4);
}

.db-hero__who { display: grid; gap: 2px; }
.db-hero__who strong {
  color: #fff;
  font-size: 16px;
}
.db-hero__who small {
  color: #9aa0ae;
  font-size: 13.5px;
}

.db-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-hero__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(10, 11, 18, .72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.db-hero__action > i { font-size: 20px; line-height: 1; }
.db-hero__action:hover {
  background: var(--synck-core);
  border-color: var(--synck-core);
  transform: translateY(-2px);
}
.db-hero__action.is-saved {
  background: var(--synck-core);
  border-color: var(--synck-core);
  color: #fff;
}
.db-hero__action > span {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #0a0b12;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 5;
}
.db-hero__action:hover > span,
.db-hero__action:focus-visible > span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.db-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.db-tags li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--synck-core);
  background: rgba(1, 87, 254, .08);
  padding: 6px 14px;
  border-radius: 999px;
}

.db-card__cover { position: relative; overflow: hidden; }
.db-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Cuerpo ---------- */
.db-body {
  background: #fff;
  padding: 64px 0 96px;
}

.db-body__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 860px);
  gap: 40px;
  justify-content: center;
  align-items: start;
}

.db-content {
  display: grid;
  gap: 40px;
  min-width: 0;
}

/* Barra vertical sticky para compartir */
.db-share {
  position: sticky;
  top: calc(var(--synck-header-h) + 24px);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.db-share__label {
  font-family: var(--synck-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--synck-gray-500);
  writing-mode: vertical-rl;
  margin-bottom: 4px;
}
.db-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.db-share__btn > i { font-size: 20px; line-height: 1; }
.db-share__btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(6, 7, 13, .3);
}
.db-share__btn--fb { background: #1877f2; }
.db-share__btn--x { background: #000; }
.db-share__btn--in { background: #0a66c2; }
.db-share__btn--wa { background: #25d366; }



.db-prose {
  display: grid;
  gap: 20px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--synck-gray-900);
}
.db-prose p { margin: 0; }
.db-lead {
  font-size: 20px;
  color: var(--synck-gray-600);
}
.db-prose h2 {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.3px;
}
.db-prose ul, .db-prose ol {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: var(--synck-gray-900);
}
.db-prose blockquote {
  margin: 8px 0;
  padding: 28px 32px 28px 88px;
  position: relative;
  background: rgba(1, 87, 254, .06);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 500;
}
.db-prose blockquote::before {
  content: "\201C";
  position: absolute;
  left: 24px;
  top: 0;
  font-size: 72px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--synck-core-400);
}
.db-prose blockquote p { margin: 0; }
.db-prose img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  border: 1px solid var(--synck-gray-300);
  box-shadow: 0 16px 40px rgba(6, 7, 13, .12);
  margin: 8px 0;
}

/* ---------- Autor ---------- */
.db-author {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  background: var(--synck-gray-100);
  padding: 28px;
}
.db-author__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--synck-core);
  color: #fff;
}
.db-author__avatar > i { font-size: 28px; }
.db-author strong { font-size: 17px; }
.db-author p {
  margin: 6px 0 0;
  color: var(--synck-gray-600);
  font-size: 15px;
}
.db-author__btn {
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.db-author__btn:hover { background: var(--synck-core-700); }

/* ---------- Relacionados ---------- */
.db-related {
  background: var(--synck-gray-100);
  padding: 96px 0 120px;
}

.db-related__inner {
  display: grid;
  gap: 40px;
}

.db-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.db-related__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.db-related__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--synck-core);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.db-related__link:hover { text-decoration: underline; }
.db-related__link > i { font-size: 20px; }

.db-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.db-card {
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: box-shadow .2s ease, transform .2s ease;
}
.db-card:hover {
  box-shadow: 0 12px 32px rgba(1, 87, 254, .12);
  transform: translateY(-3px);
}
.db-card__cover {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(120, 165, 255, .5), transparent 55%),
    linear-gradient(135deg, #0a0b12 10%, #16275e 60%, #013fb8 100%);
  color: #fff;
}
.db-card__cover i { font-size: 52px; opacity: .92; }
.db-card__body {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.db-card__cat {
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--synck-core);
}
.db-card__body h3 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.3;
}
.db-card__meta {
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 12.5px;
  color: var(--synck-gray-500);
}
.db-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--synck-core);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.db-card__link:hover { text-decoration: underline; }
.db-card__link > i { font-size: 18px; }

.db-files {
  border: 1px solid var(--synck-gray-300);
  border-radius: 14px;
  background: var(--synck-gray-100);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.db-files__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.db-files__title i { color: var(--synck-core); font-size: 19px; }
.db-files__list {
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 172px;
  overflow-y: auto;
}
.db-files__list a {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--synck-gray-300);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--synck-gray-900);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.db-files__list a:hover {
  border-color: var(--synck-core-400);
  box-shadow: 0 6px 14px rgba(1, 87, 254, .12);
}
.db-files__list a i { color: var(--synck-core); font-size: 18px; flex-shrink: 0; }
.db-files__list a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .db-files__list { grid-template-columns: 1fr; }
}

/* ---------- Impresión: solo título, descripción y contenido ---------- */
@media print {
  #synck-header,
  .synck-footer,
  .db-hero__orbs,
  .db-hero__back,
  .db-hero__meta,
  .db-hero__author-row,
  .db-share,
  .db-tags,
  .db-files,
  .db-author,
  .db-related {
    display: none !important;
  }

  .db-hero {
    background: none;
    color: #000;
    margin-top: 0;
    padding: 0 0 16px;
  }

  .db-hero__inner { max-width: 100%; }
  .db-hero__title { color: #000; }
  .db-hero__sub { color: #333; }

  .db-body { padding: 0; }
  .db-body__inner { display: block; max-width: 100%; }

  .db-prose { font-size: 12pt; line-height: 1.6; color: #000; }
  .db-prose img { box-shadow: none; break-inside: avoid; }
  .db-prose blockquote { background: none; border-left: 3px solid #999; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .db-body { padding: 64px 0 80px; }
  .db-body__inner { grid-template-columns: 1fr; }
  .db-share {
    position: static;
    grid-auto-flow: column;
    grid-template-columns: auto;
    justify-content: start;
    align-items: center;
  }
  .db-share__label { writing-mode: horizontal-tb; margin-bottom: 0; margin-right: 4px; }
  .db-author { grid-template-columns: auto 1fr; }
  .db-author__btn { grid-column: 1 / -1; justify-self: start; }
  .db-related__grid { grid-template-columns: 1fr 1fr; }
  .db-related { padding: 64px 0 80px; }
}

@media (max-width: 640px) {
  .db-related__grid { grid-template-columns: 1fr; }
  .db-related__head { flex-direction: column; align-items: start; }
}
