/* Finanzas en Sociedad — diseño 2026.
   Estructura de desing.jpg (barra flotante en píldora, héroe con degradado, tarjetas con foto) con la paleta
   original del sitio: azul petróleo #033d4f, azul cian #0b9db5 y teal #096670.
   Tipografía Montserrat (sistema de diseño Paxzu). Cuadrícula de 4 px. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #06222c;
  --deep: #033d4f;       /* azul petróleo original del sitio (encabezado, títulos, logo) */
  --deep-2: #096670;     /* teal original */
  --accent: #0b9db5;     /* azul cian original (etiquetas, acentos) */
  --accent-hover: #0a8da3;
  --accent-light: #6fd6e8; /* versión clara del acento para texto sobre fondos oscuros */
  --green: #06c253;      /* verde original: solo en la línea bajo los títulos */
  --paper: #ffffff;
  --mist: #f3f8fa;
  --line: #dde8ed;
  --muted: #4f6670;
  --link: #096670;
  --danger: #b3261e;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sh-1: 0 2px 4px #0000001a;
  --sh-2: 0 8px 20px #0000001a;
  --wrap: 1120px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.fs-wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.fs-skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--accent); color: var(--ink); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.fs-skip:focus { top: 16px; }
.fs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones y etiquetas ---------- */
.fs-btn {
    color:white !important;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--ink);
  font: 600 14px/1 var(--font); text-decoration: none;
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.fs-btn:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); }
.fs-btn__ic {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--ink); color: white !important; border-radius: 50%;
}
.fs-btn__ic svg { width: 16px; height: 16px; }
.fs-btn--sm { padding: 4px 4px 4px 16px; gap: 8px; }
.fs-btn--sm .fs-btn__ic { width: 28px; height: 28px; }
.fs-btn--dark { background: var(--ink); color: #fff; }
.fs-btn--dark:hover { background: var(--deep-2); color: #fff; }
.fs-btn--dark .fs-btn__ic { background: var(--accent); color: var(--ink); }

.fs-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--muted); background: var(--paper);
}
.fs-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #0b9db555; }
.fs-chip { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--link); }

/* ---------- Encabezado flotante ---------- */
.fs-header { position: fixed; inset: 16px 0 auto 0; z-index: 50; }
.fs-header.is-scrolled .fs-nav { background: rgba(3, 61, 79, .98); box-shadow: var(--sh-2); }
.fs-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(3, 61, 79, .94); border: 1px solid #ffffff22; border-radius: var(--r-pill);
  transition: background .25s ease, box-shadow .25s ease;
  padding: 8px 8px 8px 24px; position: relative;
}
.fs-logo { display: block; flex: none; }
.fs-logo img { width: 160px; height: 36px; }
.fs-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fs-links a {
  display: block; color: #e6f1f4; text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap;
  padding: 8px 16px; border-radius: var(--r-pill); transition: background .2s, color .2s;
}
.fs-links a:hover, .fs-links a[aria-current="page"] { background: #ffffff1a; color: #fff; }
.fs-actions { display: flex; align-items: center; gap: 8px; }
.fs-iconbtn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid #ffffff2e; color: #fff; cursor: pointer;
}
.fs-iconbtn:hover { background: #ffffff1a; }
.fs-iconbtn svg { width: 18px; height: 18px; }
.fs-menu-btn { display: none; }
.fs-search {
  position: absolute; left: 24px; right: 24px; top: calc(100% + 8px);
  display: none; gap: 8px; background: var(--paper); border-radius: var(--r-pill);
  padding: 8px; box-shadow: var(--sh-2);
}
.fs-search.is-open { display: flex; }
.fs-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--font); color: var(--ink); padding: 8px 16px;
}
.fs-search input:focus { outline: none; }

@media (max-width: 1000px) {
  .fs-header { inset: 8px 0 auto 0; }
  html { scroll-padding-top: 80px; }
  .fs-links {
    max-height: calc(100vh - 96px); overflow-y: auto;
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; background: var(--deep); border: 1px solid #ffffff22;
    border-radius: var(--r-md); padding: 8px;
  }
  .fs-links.is-open { display: flex; }
  .fs-links a { padding: 16px; }
  .fs-menu-btn { display: grid; }
  .fs-cta-top { display: none; }
  .fs-logo img { width: 136px; height: 30px; }
}

/* ---------- Cabecera de página y portada (blog de noticias) ---------- */
body { padding-top: 96px; } /* el encabezado es fijo */
.fs-pagehead { padding: 40px 0 8px; }
.fs-pagehead h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; color: var(--deep); margin: 12px 0 0; max-width: 24em; text-wrap: balance; }
.fs-pagehead h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--green), var(--accent)); }
.fs-pagehead .fs-lead { color: var(--muted); max-width: 40em; margin: 16px 0 0; }
.fs-pagehead + .fs-section { padding-top: 32px; }
.fs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.fs-crumbs a { color: var(--link); }
.fs-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.fs-meta { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Noticia destacada y lista lateral (portada) ---------- */
.fs-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.fs-over { position: relative; display: block; min-height: 420px; border-radius: var(--r-md); overflow: hidden; background: var(--deep); color: #fff; text-decoration: none; }
.fs-top .fs-over { min-height: 480px; }
.fs-over img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fs-over:hover img { transform: scale(1.03); }
.fs-over::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #021a2400 12%, #021a24b3 52%, #021a24f2 100%); }
.fs-over__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; }
.fs-over h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin: 8px 0; }
.fs-over p { font-size: 14px; color: #e4eff2; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-over .fs-chip { color: var(--accent-light); }
.fs-over:hover { color: #fff; }
.fs-side { border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 20px; background: var(--paper); box-shadow: var(--sh-1); }
.fs-side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 4px; }
.fs-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fs-side h2 + .fs-item { border-top: 0; }
.fs-item__img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--mist); }
.fs-item__img img { width: 100%; height: 100%; object-fit: cover; }
.fs-item h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 4px 0; }
.fs-item:hover h3 { color: var(--link); }
.fs-item time { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .fs-top { grid-template-columns: 1fr; }
  .fs-top .fs-over { min-height: 380px; }
}
@media (max-width: 1000px) { body { padding-top: 80px; } }

/* ---------- Secciones ---------- */
.fs-section { padding: 72px 0; }
.fs-section--mist { background: var(--mist); }
.fs-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.fs-head h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; max-width: 20em; }
.fs-head h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--green), var(--accent)); }
.fs-head--center h2::after { margin-inline: auto; }
.fs-head--center { align-items: center; text-align: center; }
.fs-head p { color: var(--muted); max-width: 40em; margin: 0; }

.fs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fs-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: box-shadow .2s ease, transform .2s ease; }
.fs-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.fs-card__img { display: block; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.fs-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.fs-card h3 { font-size: 18px; font-weight: 600; }
.fs-card h3 a, .fs-card .fs-h3 a { color: var(--ink); text-decoration: none; }
.fs-h3 { font-size: 18px; font-weight: 600; }
.fs-card h3 a::after, .fs-card .fs-h3 a::after { content: ""; position: absolute; inset: 0; }
.fs-card { position: relative; }
.fs-card p { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fs-card time, .fs-date { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .fs-grid { grid-template-columns: repeat(2, 1fr); } }
.fs-cols .fs-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .fs-cols .fs-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .fs-grid { grid-template-columns: 1fr; } .fs-section { padding: 56px 0; } }

/* Categorías */
.fs-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fs-cat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 160px;
  padding: 24px; border-radius: var(--r-md); background: var(--deep); color: #fff; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.fs-cat:hover { background: var(--deep-2); color: #fff; transform: translateY(-2px); }
.fs-cat strong { font-size: 20px; font-weight: 600; }
.fs-cat span { color: var(--accent-light); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .fs-cats { grid-template-columns: 1fr; } }

/* Dos columnas: contenido + lateral */
.fs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.fs-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
@media (max-width: 960px) { .fs-cols { grid-template-columns: 1fr; } .fs-aside { position: static; } }
.fs-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--paper); }
.fs-box h2, .fs-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.fs-list { list-style: none; margin: 0; padding: 0; }
.fs-list li + li { border-top: 1px solid var(--line); }
.fs-list a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.fs-list a:hover { color: var(--link); }

/* Suscripción */
.fs-subscribe { background: var(--accent); color: white; border-radius: var(--r-md); padding: 24px; }
.fs-subscribe h2, .fs-subscribe h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.fs-subscribe p { font-size: 14px; margin-bottom: 16px; }
.fs-subscribe form { display: flex; flex-direction: column; gap: 8px; }
.fs-subscribe input[type="email"] {
  width: 100%; border: 2px solid transparent; border-radius: var(--r-pill); padding: 12px 20px; font: 500 15px var(--font); color: var(--ink); background: #fff;
}
.fs-subscribe input[type="email"]:focus { outline: none; border-color: var(--ink); }
.fs-subscribe .fs-btn { justify-content: space-between; }
.fs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs-subscribe--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px; }
.fs-subscribe--wide h2 { font-size: clamp(24px, 3vw, 32px); }
@media (max-width: 760px) { .fs-subscribe--wide { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- Nota ---------- */
.fs-cover { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 40px; background: var(--mist); aspect-ratio: 16 / 9; }
.fs-cover img { width: 100%; height: 100%; object-fit: cover; }
.fs-prose { font-size: 18px; line-height: 1.75; max-width: 720px; }
.fs-prose h2 { font-size: 28px; margin: 40px 0 16px; }
.fs-prose h3 { font-size: 22px; margin: 32px 0 12px; }
.fs-prose p, .fs-prose ul, .fs-prose ol { margin-bottom: 20px; }
.fs-prose li { margin-bottom: 8px; }
.fs-prose img { border-radius: var(--r-md); margin: 24px auto; height: auto; }
.fs-prose iframe { max-width: 100%; border-radius: var(--r-md); }
.fs-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; display: block; overflow-x: auto; }
.fs-prose th, .fs-prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.fs-prose blockquote { margin: 24px 0; padding: 8px 24px; border-left: 4px solid var(--accent); background: var(--mist); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.fs-prose a { font-weight: 600; }
.fs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.fs-share a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.fs-share a:hover { background: var(--mist); }
.fs-cta-note { margin-top: 32px; }

/* ---------- Pie ---------- */
.fs-footer { background: var(--deep); color: #cfe0e6; padding: 56px 0 24px; }
.fs-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #ffffff1f; }
.fs-footer img { width: 180px; height: 40px; }
.fs-footer h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.fs-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fs-footer a { color: #cfe0e6; text-decoration: none; font-size: 14px; }
.fs-footer a:hover { color: var(--accent-light); }
.fs-footer__copy { padding-top: 24px; font-size: 13px; }

/* ---------- Varios ---------- */
.fs-empty { text-align: center; padding: 72px 0; color: var(--muted); }
.fs-404 { text-align: center; padding: 56px 0 24px; }
.fs-404 .fs-big { font-size: clamp(72px, 16vw, 160px); font-weight: 700; line-height: 1; color: var(--deep-2); }
.fs-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  padding: 16px 24px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; text-align: center; box-shadow: var(--sh-2);
  background: var(--ink); color: #fff; border: 2px solid var(--accent);
}
.fs-toast--error { border-color: #f1948a; }

/* Aparición suave al hacer scroll (solo si el navegador lo permite y no hay "reducir movimiento") */
@media (prefers-reduced-motion: no-preference) {
  .js .fs-rise { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .js .fs-rise.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
