@charset "utf-8";

:root {
  --brand: #e07b62;
  --bg: #0c1118;
  --ink: rgba(226, 232, 240, 0.92);
  --muted: rgba(226, 232, 240, 0.68);
  --border: rgba(148, 163, 184, 0.22);

  /* Variantes por blog: se sobreescriben dentro de cada HTML */
  --page-radial-1: rgba(224, 123, 98, 0.12);
  --page-radial-2: rgba(34, 197, 94, 0.06);
  --page-radial-3: rgba(30, 41, 59, 0.28);
  --hero-radial-1: rgba(224, 123, 98, 0.18);
  --hero-radial-2: rgba(148, 163, 184, 0.14);
  --progress: rgba(224, 123, 98, 0.96);
  --progress-shadow: rgba(224, 123, 98, 0.35);
  --chip-bg: rgba(224, 123, 98, 0.14);
  --chip-border: rgba(224, 123, 98, 0.22);
  --btn-brand-bg: rgba(224, 123, 98, 0.96);
  --btn-brand-border: rgba(224, 123, 98, 0.55);
  --btn-brand-hover: rgba(224, 123, 98, 1);
  --callout-bg: rgba(224, 123, 98, 0.10);
  --callout-border: rgba(224, 123, 98, 0.22);
  --link: rgba(224, 123, 98, 0.95);
  --toc-hover: rgba(224, 123, 98, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(1100px 720px at 16% 12%, var(--page-radial-1), transparent 56%),
    radial-gradient(980px 660px at 88% 22%, var(--page-radial-2), transparent 60%),
    radial-gradient(1100px 780px at 55% 88%, var(--page-radial-3), transparent 58%),
    var(--bg);
  color: var(--ink);
  padding-top: 84px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

.navbar-nav,
.breadcrumb,
.toc {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.navbar-nav > li,
.breadcrumb > li {
  list-style: none !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: 0.5rem;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--progress);
  z-index: 1200;
  box-shadow: 0 0 22px var(--progress-shadow);
}

.navbar {
  background: rgba(12, 17, 24, 0.72);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar .nav-link {
  color: rgba(226, 232, 240, 0.92) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.32);
}

.navbar-toggler-icon {
  filter: invert(1) opacity(0.85);
}

.hero-glass {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  overflow: hidden;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(780px 210px at 18% 0%, var(--hero-radial-1), transparent 62%),
    radial-gradient(620px 240px at 85% 12%, var(--hero-radial-2), transparent 60%);
  pointer-events: none;
}

.post-title {
  position: relative;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 650;
}

.post-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.5);
}

.post-meta span:first-child::before {
  display: none;
}

.meta-brand {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.post-main-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 992px) {
  .post-main-wrapper {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.post-main,
.post-aside {
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.post-main h2,
.post-main h3 {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.post-main h2 {
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.post-main p,
.post-main li {
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.75;
  font-weight: 400;
}

.post-main p {
  text-align: justify;
  hyphens: auto;
}

.post-main ul,
.post-main ol {
  padding-left: 18px;
  margin-top: 10px;
}

.post-main a {
  color: var(--link);
}

.post-main a:hover,
.post-main a:focus {
  color: rgba(255, 255, 255, 0.98);
}

.post-aside {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.aside-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.84);
}

.toc a:hover,
.toc a:focus {
  background: var(--toc-hover);
  color: rgba(255, 255, 255, 0.98);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.btn-brand {
  background: var(--btn-brand-bg);
  border: 1px solid var(--btn-brand-border);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--btn-brand-hover);
  color: #ffffff !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff !important;
}

.callout {
  border-radius: 14px;
  padding: 14px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
}

.table.table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.03);
  --bs-table-border-color: rgba(148, 163, 184, 0.18);
  --bs-table-color: rgba(226, 232, 240, 0.9);
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.78);
}

footer a {
  color: rgba(226, 232, 240, 0.84);
}

footer a:hover,
footer a:focus {
  color: rgba(255, 255, 255, 0.98);
}

.blog-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  margin-bottom: 1.25rem;
}

.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .post-aside {
    position: static;
  }
}
