/* Artículo / nota individual – hero, layout, relacionadas */

.fi-page-article {
  --art-navy: #0d2140;
  --art-orange: #f27a21;
  --art-muted: #5a6b84;
  background:
    radial-gradient(ellipse at 92% 8%, rgba(242, 122, 33, 0.05), transparent 40%),
    linear-gradient(180deg, #f7fafc 0%, #fff 35%, #f5f8fc 100%);
}

.fi-page-article .fi-page-header {
  display: none;
}

/* ---------- Hero ---------- */
.fi-art-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(242, 122, 33, 0.14), transparent 45%),
    linear-gradient(125deg, #0b1c36 0%, #12315a 48%, #0d2748 100%);
  color: #fff;
}

.fi-art-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
  padding: calc(var(--fi-header-height, 5.5rem) + 0.75rem) 0 0;
  min-height: clamp(420px, 58vh, 560px);
}

.fi-art-hero__copy {
  padding: 1.5rem 0 2.5rem;
  position: relative;
  z-index: 2;
}

.fi-art-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.fi-art-hero__crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.fi-art-hero__crumbs a:hover {
  color: var(--art-orange);
}

.fi-art-hero__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--art-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(242, 122, 33, 0.35);
}

.fi-art-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.fi-art-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin: 0 0 1.1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.fi-art-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fi-art-hero__meta i {
  color: var(--art-orange);
}

.fi-art-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.fi-art-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.fi-art-hero__photo {
  position: absolute;
  inset: 0 0 0 -12%;
  margin: 0;
  overflow: hidden;
  clip-path: ellipse(88% 120% at 72% 50%);
  border-radius: 0;
}

.fi-art-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.fi-art-hero__share {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(13, 33, 64, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.fi-art-hero__share:hover {
  background: var(--art-orange);
  transform: translateY(-2px);
}

/* ---------- Body ---------- */
.fi-art-body,
.fi-article-body {
  padding: 0;
}

.fi-page-article .fi-article-layout {
  padding-top: 2.5rem;
}

.fi-page-article .fi-article-hero {
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(13, 33, 64, 0.1);
}

.fi-page-article .fi-article-content blockquote {
  margin: 1.75rem 0;
  padding: 1.5rem 1.5rem 1.35rem 1.35rem;
  background: #f7efe4;
  border: 0;
  border-radius: 1rem;
  position: relative;
  box-shadow: 0 10px 28px rgba(13, 33, 64, 0.06);
}

.fi-page-article .fi-article-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.55rem;
  left: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--art-orange);
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.9;
}

.fi-page-article .fi-article-content blockquote p {
  margin: 0;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--art-navy);
}

.fi-page-article .fi-article-content blockquote cite {
  display: block;
  margin-top: 0.85rem;
  padding-left: 1.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: var(--art-orange);
}

.fi-page-article .fi-article-share-copy {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--fi-border);
  background: var(--fi-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fi-secondary);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.fi-page-article .fi-article-share-copy:hover,
.fi-page-article .fi-article-share-copy.is-copied {
  background: var(--fi-secondary);
  border-color: var(--fi-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.fi-page-article .fi-article-tags .fi-article-tag {
  margin-bottom: 0;
}

/* Sidebar story CTA */
.fi-page-article .fi-sidebar-card--story {
  text-align: left;
  background: linear-gradient(160deg, #f4f7fb 0%, #eef2f7 100%);
  border: 1px solid rgba(13, 33, 64, 0.08);
}

.fi-page-article .fi-sidebar-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 122, 33, 0.12);
  color: var(--art-orange);
  font-size: 1.15rem;
}

.fi-page-article .fi-sidebar-card--story h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--art-navy);
}

.fi-page-article .fi-sidebar-card--story p {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--art-muted);
}

.fi-page-article .fi-sidebar-card--story .fi-btn {
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
}

.fi-page-article .fi-sidebar-card--story .fi-i {
  width: 16px;
  height: 16px;
}

.fi-page-article .fi-sidebar-recent-item {
  grid-template-columns: 72px 1fr;
  align-items: center;
}

.fi-page-article .fi-sidebar-recent-item img {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  object-fit: cover;
  display: block;
}

.fi-page-article .fi-sidebar-recent-item > a:first-child {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
}

.fi-page-article .fi-sidebar-recent-item a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Related ---------- */
.fi-art-related {
  padding: 1rem 0 3rem;
}

.fi-art-related__head {
  margin-bottom: 1.5rem;
}

.fi-art-related__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--art-navy);
  letter-spacing: -0.02em;
}

.fi-art-related__icon {
  display: inline-flex;
  color: var(--art-orange);
}

.fi-art-related__icon svg {
  width: 1.1em;
  height: 1.1em;
}

.fi-art-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.fi-art-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13, 33, 64, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(13, 33, 64, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fi-art-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(13, 33, 64, 0.12);
}

.fi-art-related-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3f9;
}

.fi-art-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.fi-art-related-card:hover .fi-art-related-card__media img {
  transform: scale(1.05);
}

.fi-art-related-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  background: var(--art-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fi-art-related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.15rem;
}

.fi-art-related-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--art-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fi-art-related-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--art-muted);
}

.fi-art-related-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fi-art-related-card__meta i {
  color: var(--art-orange);
}

.fi-art-related__more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.fi-art-related__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid rgba(13, 33, 64, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--art-navy);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fi-art-related__btn .fi-i {
  width: 16px;
  height: 16px;
}

.fi-art-related__btn:hover {
  border-color: var(--art-orange);
  color: var(--art-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 33, 64, 0.08);
}

/* Newsletter on article */
.fi-page-article .fi-art-newsletter {
  padding: 0 0 2.5rem;
}

.fi-page-article .fi-nt-newsletter__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.35rem, 3vw, 2.5rem);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(125deg, #0b1c36 0%, #12315a 55%, #0d2748 100%);
}

.fi-page-article .fi-nt-newsletter__dots {
  position: absolute;
  inset: 0 auto 0 72%;
  width: 28%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.35;
  pointer-events: none;
}

.fi-page-article .fi-art-newsletter .fi-news-newsletter-icon {
  width: 72px;
  height: 72px;
  font-size: 1.45rem;
  border: 0;
  box-shadow: 0 12px 28px rgba(242, 122, 33, 0.35);
}

.fi-page-article .fi-art-newsletter .fi-news-newsletter-form-row {
  flex-direction: row;
  align-items: stretch;
}

/* Reveals */
.fi-page-article [data-fi-art-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fi-page-article [data-fi-art-reveal="right"] {
  transform: translateX(28px);
}

.fi-page-article [data-fi-art-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .fi-art-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fi-art-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 0;
  }

  .fi-art-hero__copy {
    padding-bottom: 1.5rem;
  }

  .fi-art-hero__visual {
    min-height: 280px;
    order: -1;
  }

  .fi-art-hero__photo {
    inset: 0;
    clip-path: none;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .fi-page-article .fi-nt-newsletter__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fi-art-related__grid {
    grid-template-columns: 1fr;
  }

  .fi-page-article .fi-art-newsletter .fi-news-newsletter-form-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fi-page-article [data-fi-art-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
