/* Historias (child stories) archive */

body.category-historias {
  overflow-x: clip;
}

.flc-stories-accent {
  color: #ff8fb8;
  font-size: 1.12em;
}

.flc-stories-archive-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 46vh, 440px);
  overflow: hidden;
  color: #fff;
  background: var(--flc-navy);
  display: flex;
  align-items: flex-end;
}

.flc-stories-archive-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flc-stories-archive-hero-bg {
  position: absolute;
  inset: -6%;
  will-change: transform;
}

.flc-stories-archive-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  max-width: none;
}

.flc-stories-archive-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 22, 48, 0.88) 0%, rgba(8, 22, 48, 0.55) 55%, rgba(8, 22, 48, 0.4) 100%),
    linear-gradient(180deg, rgba(8, 22, 48, 0.12) 0%, rgba(8, 22, 48, 0.7) 100%);
}

.flc-stories-archive-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.25rem 1rem 2.5rem;
  max-width: 40rem;
}

.flc-stories-archive-kicker {
  margin: 0 0 0.5rem;
  color: #ff8fb8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flc-stories-archive-hero-inner h1 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.flc-stories-archive-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.65;
}

.flc-stories-archive {
  background: var(--flc-surface-muted, #f7f4f8);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.flc-stories-grid .flc-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(26, 50, 96, 0.08);
  box-shadow: 0 14px 34px rgba(26, 50, 96, 0.08);
}

.flc-stories-archive-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- Single nota / historia ---------- */
body.single-post:not(.category-misiones):not(.category-eventos) {
  overflow-x: clip;
}

.flc-nota-single {
  background: #fff;
}

.flc-nota-single-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 52vh, 520px);
  overflow: hidden;
  color: #fff;
  background: var(--flc-navy);
  display: flex;
  align-items: flex-end;
}

.flc-nota-single-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flc-nota-single-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  max-width: none;
}

.flc-nota-single-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 22, 48, 0.9) 0%, rgba(8, 22, 48, 0.55) 50%, rgba(8, 22, 48, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 22, 48, 0.1) 0%, rgba(8, 22, 48, 0.78) 100%);
}

.flc-nota-single-hero-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 1rem 2.75rem;
  max-width: 44rem;
}

.flc-nota-single-kicker {
  margin: 0 0 0.65rem;
}

.flc-nota-single-kicker a {
  color: #ff8fb8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.flc-nota-single-kicker a:hover {
  text-decoration: underline;
}

.flc-nota-single-hero-inner h1 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.flc-nota-single-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.flc-nota-single-meta svg {
  width: 1rem;
  height: 1rem;
  color: #ff8fb8;
}

.flc-nota-single-layout {
  display: grid;
  gap: 2.25rem;
  padding: 2.75rem 1rem 4rem;
}

@media (min-width: 980px) {
  .flc-nota-single-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
    gap: 2.75rem;
    align-items: start;
  }
}

.flc-nota-single-feature {
  margin: 0 0 1.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(26, 50, 96, 0.14);
}

.flc-nota-single-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.flc-nota-single-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--flc-text-soft);
}

.flc-nota-single-prose p {
  margin: 0 0 1.15rem;
}

.flc-nota-single-cta-box {
  margin-top: 2.25rem;
  padding: 1.5rem 1.4rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #fff5f9 0%, #f3f7ff 100%);
  border: 1px solid rgba(224, 51, 122, 0.15);
}

.flc-nota-single-cta-box h2 {
  margin: 0 0 0.45rem;
  color: var(--flc-navy);
  font-size: 1.25rem;
  font-weight: 800;
}

.flc-nota-single-cta-box p {
  margin: 0 0 1.1rem;
  color: var(--flc-text-soft);
  line-height: 1.55;
}

.flc-nota-single-aside {
  position: sticky;
  top: calc(var(--flc-header-height) + 1rem);
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 1.25rem;
  background: var(--flc-surface-muted, #f7f4f8);
  border: 1px solid rgba(26, 50, 96, 0.08);
}

.flc-nota-single-aside h2 {
  margin: 0 0 1rem;
  color: var(--flc-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.flc-nota-related {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.flc-nota-related-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(26, 50, 96, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flc-nota-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 50, 96, 0.12);
  text-decoration: none;
}

.flc-nota-related-card img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.65rem;
}

.flc-nota-related-card em {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--flc-pink);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flc-nota-related-card strong {
  display: block;
  color: var(--flc-navy);
  font-size: 0.9rem;
  line-height: 1.3;
}

.flc-nota-related-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--flc-pink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.flc-nota-related-all:hover {
  gap: 0.55rem;
  color: var(--flc-pink-dark);
  text-decoration: none;
}
