@charset "UTF-8";

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --bs-bg:      #f5f5f5;
  --bs-white:   #ffffff;
  --bs-black:   #0d0d0d;
  --bs-dark:    #1a1a1a;
  --bs-mid:     #4a4a4a;
  --bs-muted:   #8a8a8a;
  --bs-accent:  #0d0d0d;
  --bs-border:  #e4e4e4;
  --bs-font:    'Montserrat', 'Segoe UI', sans-serif;
  --bs-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --bs-trans:   0.3s ease;
  --bs-max:     1020px;
}

/* ─── Cinturón anti-overflow ────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
.bs-wrap, .bs-article, .bs-related, .bs-quote, .bs-figure { max-width: 100%; }
.bs-wrap *, .bs-related * { box-sizing: border-box; }

/* ─── Contenedor principal (mobile-first) ───────────────────────── */
.bs-wrap {
  width: 100%;
  max-width: var(--bs-max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ─── Breadcrumb ────────────────────────────────────────────────── */
.bs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--bs-border);
  font-family: var(--bs-font);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-breadcrumb a {
  color: var(--bs-black);
  text-decoration: none;
  transition: color var(--bs-trans);
}
.bs-breadcrumb a:hover { color: var(--bs-mid); }

.bs-breadcrumb__sep    { color: var(--bs-border); }
.bs-breadcrumb__cat    { color: var(--bs-mid); font-weight: 600; }
.bs-breadcrumb__current {
  color: var(--bs-mid);
  display: none;
}

/* ─── Artículo ──────────────────────────────────────────────────── */
.bs-article {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Un título seguido inmediatamente por su contenido va más pegado */
.bs-section__title + .bs-section__body {
  margin-top: -1.4rem;
}

/* ─── Secciones (título + contenido) ────────────────────────────── */
.bs-section__title {
  font-family: var(--bs-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bs-black);
  text-align: center;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.bs-section__body {
  font-family: var(--bs-font);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--bs-mid);
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
}

/* ─── Cita destacada (marco plateado tipo cristal) ──────────────── */
.bs-quote {
  position: relative;
  background:
    radial-gradient(ellipse at top left,     rgba(180, 180, 180, 0.28) 0%, rgba(180, 180, 180, 0) 55%),
    radial-gradient(ellipse at bottom right, rgba(180, 180, 180, 0.28) 0%, rgba(180, 180, 180, 0) 55%),
    radial-gradient(ellipse at top right,    rgba(200, 200, 200, 0.18) 0%, rgba(200, 200, 200, 0) 60%),
    radial-gradient(ellipse at bottom left,  rgba(200, 200, 200, 0.18) 0%, rgba(200, 200, 200, 0) 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
          backdrop-filter: blur(8px) saturate(140%);
  color: var(--bs-black);
  text-align: center;
  padding: 2rem 1.4rem 1.6rem;
  margin: 0.5rem 0.25rem;
  quotes: "\201C" "\201D";

  /* Marco plateado: doble borde con degradado metálico */
  border: 1px solid transparent;
  border-radius: 6px;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.bs-quote::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #b8b8b8 18%,
    #6e6e6e 38%,
    #d8d8d8 55%,
    #8c8c8c 72%,
    #ececec 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.bs-quote > * { position: relative; z-index: 2; }

.bs-quote__text {
  font-family: var(--bs-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--bs-black);
  margin: 0 0 1.4rem;
  padding: 0;
}

.bs-quote__text::before { content: open-quote; }
.bs-quote__text::after  { content: close-quote; }

.bs-quote__author {
  display: block;
  font-family: var(--bs-font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bs-black);
  padding-top: 1.1rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(70, 70, 70, 0.35) 30%,
    rgba(40, 40, 40, 0.55) 50%,
    rgba(70, 70, 70, 0.35) 70%,
    transparent 100%
  ) 1;
}

.bs-quote__author::before {
  content: "— ";
}

/* ─── Imagen secundaria ─────────────────────────────────────────── */
.bs-figure {
  margin: 0;
}

.bs-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.bs-figure__caption {
  font-family: var(--bs-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bs-muted);
  margin-top: 0.55rem;
  line-height: 1.4;
}

/* ─── Fuentes ───────────────────────────────────────────────────── */
.bs-sources {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bs-border);
}

.bs-sources__title {
  font-family: var(--bs-font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bs-muted);
  margin: 0 0 0.85rem;
}

.bs-sources__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bs-sources__list li { font-family: var(--bs-font); font-size: 0.82rem; }
.bs-sources__list a {
  color: var(--bs-black);
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border);
  padding-bottom: 1px;
  transition: border-color var(--bs-trans), color var(--bs-trans);
}
.bs-sources__list a:hover {
  color: var(--bs-mid);
  border-color: var(--bs-black);
}

/* ─── Posts relacionados ───────────────────────────────────────── */
.bs-related {
  background: var(--bs-white);
  padding: 0 1.25rem 3rem;
}

.bs-related__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bs-related__head {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--bs-black);
}

.bs-related__title {
  font-family: var(--bs-font);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.005em;
  margin: 0;
}

.bs-related__line {
  width: 44px;
  height: 2px;
  background: var(--bs-black);
  margin: 1rem auto 0;
}

.bs-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-content: center;
}

/* ─── Tablet ────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .bs-wrap { padding: 0 1.5rem 4rem; }

  .bs-breadcrumb__current {
    display: inline;
    max-width: 36ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bs-article { gap: 2.5rem; padding-top: 2.25rem; }

  .bs-section__title { font-size: 0.85rem; }
  .bs-section__body  { font-size: 0.95rem; line-height: 1.95; }

  .bs-quote         { padding: 2.6rem 2.2rem 2.2rem; }
  .bs-quote__text   { font-size: 1.35rem; }
  .bs-quote__author { font-size: 0.7rem; }

  .bs-related__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .bs-related__title { font-size: 2rem; }
}

/* ─── Desktop ───────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .bs-article {
    gap: 3rem;
    max-width: 760px;
    margin: 0 auto;
  }

  .bs-section__title { font-size: 0.9rem; letter-spacing: 0.36em; }
  .bs-section__body  { font-size: 1rem; line-height: 2; }

  .bs-quote         { padding: 3rem 2.8rem 2.4rem; }
  .bs-quote__text   { font-size: 1.5rem; }

  .bs-related__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
  .bs-related__title { font-size: 2.4rem; }
  .bs-related { padding: 0 3rem 5rem; }
}

/* ── Contenido enriquecido (Trix) renderizado en el artículo ───────── */
.bs-richtext > *:first-child { margin-top: 0; }
.bs-richtext > *:last-child  { margin-bottom: 0; }

.bs-richtext p {
    margin: 0 0 1.1em;
}

.bs-richtext strong,
.bs-richtext b {
    font-weight: 700;
}

.bs-richtext em,
.bs-richtext i {
    font-style: italic;
}

.bs-richtext a {
    color: #1e6b3a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bs-richtext a:hover {
    opacity: .8;
}

.bs-richtext h1,
.bs-richtext h2,
.bs-richtext h3,
.bs-richtext h4 {
    line-height: 1.3;
    margin: 1.6em 0 .6em;
    font-weight: 600;
}

.bs-richtext h1 { font-size: 1.6rem; }
.bs-richtext h2 { font-size: 1.4rem; }
.bs-richtext h3 { font-size: 1.2rem; }

.bs-richtext ul,
.bs-richtext ol {
    margin: 0 0 1.1em;
    padding-left: 1.6em;
}

.bs-richtext ul { list-style: disc; }
.bs-richtext ol { list-style: decimal; }

.bs-richtext li {
    margin: .3em 0;
}

.bs-richtext blockquote {
    margin: 1.4em 0;
    padding: .4em 0 .4em 1.1em;
    border-left: 3px solid #1e6b3a;
    color: #475569;
    font-style: italic;
}

.bs-richtext pre {
    background: #f1f5f9;
    padding: 1em;
    border-radius: .4rem;
    overflow-x: auto;
    font-size: .9rem;
}

.bs-richtext code {
    background: #f1f5f9;
    padding: .1em .35em;
    border-radius: .25rem;
    font-size: .9em;
}

/* ─── Propiedad destacada en el post ───────────────────────────────── */
.bp-section {
  padding: 3rem 1rem;
}

.bp-section__inner {
  max-width: var(--bs-max, 1020px);
  margin: 0 auto;
}
