/* =============================================================================
   Formula Motor — COMPONENTES
   Fidelidad 1:1 con html-plano/. Depende de tokens.css.
   Etapa 3: Header (desktop + mobile), Overlay full-screen, Footer.
   ============================================================================= */

/* Bloqueo de scroll cuando el overlay está abierto. */
html.fm-noscroll { overflow: hidden; }

/* =============================================================================
   HEADER
   ============================================================================= */
.fm-header {
  position: relative;
  background: var(--fm-carbon);
  overflow: hidden;
  border-bottom: 1px solid var(--fm-border-dark);
}

/* Panel diagonal decorativo arriba-derecha (§ header ref). */
.fm-header__beam {
  position: absolute;
  top: 0;
  right: 120px;
  width: 380px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 46%,
    rgba(255,255,255,0.05) 46%,
    rgba(255,255,255,0.05) 49%,
    transparent 49%,
    transparent 62%,
    rgba(255,255,255,0.04) 62%,
    rgba(255,255,255,0.04) 66%,
    transparent 66%);
}

.fm-header__logo { display: flex; align-items: center; }
/* Altura explícita: Elementor/Hello resetean img{height:auto} y pisan el atributo height. */
.fm-header__bar .fm-header__logo img { height: 54px; width: auto; display: block; }
.fm-header__bar--mobile .fm-header__logo img,
.fm-overlay__top .fm-header__logo img { height: 38px; width: auto; display: block; }

/* --- Barra desktop --- */
.fm-header__bar {
  position: relative;
  max-width: var(--fm-w-content);
  margin: 0 auto;
  height: var(--fm-header-h);
  padding: 0 var(--fm-pad-x);
  display: flex;
  align-items: center;
  gap: var(--fm-s-7); /* 44 */
}

.fm-nav {
  display: flex;
  height: var(--fm-header-h);
  gap: 4px;
  align-items: stretch;
  font-family: var(--fm-font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fm-nav__item {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--fm-nav-idle);
  border-top: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.fm-nav__item:hover { color: #fff; }
.fm-nav__item.is-current { color: #fff; border-top-color: var(--fm-accent); }

/* --- Barra mobile (oculta en desktop) --- */
.fm-header__bar--mobile {
  position: relative;
  height: var(--fm-header-h-mobile);
  padding: 0 var(--fm-pad-x-mobile);
  display: none;
  align-items: center;
  justify-content: space-between;
}

/* Hamburguesa 48×48, 3 barras 26×2, la última del acento. */
.fm-burger {
  width: var(--fm-hit-min);
  height: var(--fm-hit-min);
  margin-right: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.fm-burger__bar { width: 26px; height: 2px; background: #fff; }
.fm-burger__bar--accent { background: var(--fm-accent); }

/* =============================================================================
   OVERLAY full-screen (mobile)
   ============================================================================= */
.fm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--fm-carbon);
  overflow-y: auto;
  display: none;
}
.fm-overlay.is-open { display: block; }

.fm-overlay__stripe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg,
    transparent 0 46px,
    rgba(234,51,42,0.06) 46px,
    rgba(234,51,42,0.06) 60px,
    transparent 60px 106px);
}

.fm-overlay__top {
  position: relative;
  height: var(--fm-header-h-mobile);
  padding: 0 var(--fm-pad-x-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fm-border-dark);
}
.fm-overlay__close {
  width: var(--fm-hit-min);
  height: var(--fm-hit-min);
  margin-right: -12px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
}
.fm-overlay__close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 2px;
  background: var(--fm-red);
}
.fm-overlay__close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.fm-overlay__close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

.fm-overlay__nav {
  position: relative;
  padding: 12px var(--fm-pad-x-mobile) 0;
  display: flex;
  flex-direction: column;
}
.fm-overlay__item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  border-bottom: 1px solid #1a1d22;
  font-family: var(--fm-font-head);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.fm-overlay__tick {
  width: 5px;
  height: 26px;
  transform: skewX(-20deg);
  flex: none;
}

.fm-overlay__foot { position: relative; padding: 26px var(--fm-pad-x-mobile) 34px; }
.fm-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  background: var(--fm-whatsapp);
  color: var(--fm-carbon);
  border-radius: var(--fm-radius-pill);
  font-family: var(--fm-font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fm-btn-whatsapp:hover { color: var(--fm-carbon); }
.fm-overlay__social { margin-top: 22px; display: flex; gap: 10px; }
.fm-overlay__social a {
  flex: 1;
  height: var(--fm-hit-min);
  border: 1px solid var(--fm-control-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-nav-idle);
}
.fm-overlay__social a:hover { color: #fff; }
.fm-overlay__search-label {
  margin-top: 26px;
  font-family: var(--fm-font-mono);
  font-size: 10px;
  color: var(--fm-copyright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fm-overlay__search { margin-top: 8px; }
.fm-overlay__search input {
  width: 100%;
  height: var(--fm-hit-min);
  border: 1px solid var(--fm-control-dark);
  background: transparent;
  padding: 0 14px;
  font-family: var(--fm-font-body);
  font-size: 14px;
  color: #fff;
}
.fm-overlay__search input::placeholder { color: var(--fm-copyright); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.fm-footer {
  position: relative;
  background: var(--fm-carbon);
  overflow: hidden;
}
.fm-footer__inner {
  position: relative;
  max-width: var(--fm-w-content);
  margin: 0 auto;
  padding: 44px var(--fm-pad-x);
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.fm-footer__brand { flex: 1; }
.fm-footer__brand img { display: block; height: 50px; width: auto; margin-bottom: 16px; }
.fm-footer__brand p {
  margin: 0;
  max-width: 360px;
  font-family: var(--fm-font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fm-footer-text);
}
.fm-footer__cols { display: flex; gap: 56px; }
.fm-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--fm-font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-nav-idle);
}
.fm-footer__col a { color: var(--fm-nav-idle); }
.fm-footer__col a:hover { color: #fff; }
.fm-footer__head {
  color: var(--fm-gray);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.fm-footer__copy { position: relative; border-top: 1px solid var(--fm-border-dark); }
.fm-footer__copy-inner {
  max-width: var(--fm-w-content);
  margin: 0 auto;
  padding: 16px var(--fm-pad-x);
  font-family: var(--fm-font-mono);
  font-size: 11px;
  color: var(--fm-copyright);
  letter-spacing: 0.05em;
}

/* =============================================================================
   RESPONSIVE — Header/Footer (breakpoint 767 para el switch a hamburguesa)
   ============================================================================= */
@media (max-width: 767px) {
  .fm-header__bar { display: none; }
  .fm-header__bar--mobile { display: flex; }
  /* Rayado del header a tramos mobile (34/46/80). */
  .fm-header .fm-stripe-overlay {
    background: repeating-linear-gradient(115deg,
      transparent 0 34px,
      rgba(255,255,255,0.035) 34px,
      rgba(255,255,255,0.035) 46px,
      transparent 46px 80px);
  }
  .fm-header__beam { display: none; }

  .fm-footer__inner { flex-direction: column; gap: 26px; padding: 34px var(--fm-pad-x-mobile); }
  .fm-footer__cols { gap: 44px; }
  .fm-footer__copy-inner { padding: 16px var(--fm-pad-x-mobile); }
}

/* El overlay solo es alcanzable en mobile; en desktop nunca se muestra. */
@media (min-width: 768px) {
  .fm-overlay { display: none !important; }
}

/* Contenedor de contenido reutilizable (ancho 1320 / padding lateral). */
.fm-container { max-width: var(--fm-w-content); margin: 0 auto; padding: 40px var(--fm-pad-x); }
@media (max-width: 767px) { .fm-container { padding: 24px var(--fm-pad-x-mobile); } }

/* =============================================================================
   PLACEHOLDER de imagen (§7) — rayado 45° con la medida impresa
   ============================================================================= */
.fm-ph {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  background: repeating-linear-gradient(45deg, #ececeb 0 11px, #f5f5f4 11px 22px);
}
.fm-ph__size {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--fm-font-mono);
  font-size: 10px;
  color: #a7a7a5;
  letter-spacing: 0.03em;
}

/* =============================================================================
   PILL de categoría
   ============================================================================= */
.fm-pill {
  display: inline-block;
  font-family: var(--fm-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--fm-radius-pill);
  line-height: 1;
}

/* =============================================================================
   CARD de nota (Loop Item)
   ============================================================================= */
a.fm-card,
a.fm-card:hover {
  display: block;
  border: 1px solid var(--fm-border);
  background: #fff;
  text-decoration: none; /* gana sobre .entry-content a { underline } de Hello */
  transition: border-color .15s ease;
}
a.fm-card:hover { border-color: var(--fm-carbon); }
.fm-card__media { position: relative; height: 190px; overflow: hidden; }
.fm-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-card__pill { position: absolute; top: 12px; left: 12px; }
.fm-card__body { padding: 18px 18px 20px; }
.fm-card__title {
  margin: 0;
  font-family: var(--fm-font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.02;
  color: var(--fm-carbon);
  text-transform: uppercase;
  text-wrap: balance;
}
.fm-card__excerpt {
  margin: 10px 0 0;
  font-family: var(--fm-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fm-text-excerpt);
}
.fm-card__date {
  margin-top: 14px;
  font-family: var(--fm-font-mono);
  font-size: 11px;
  color: var(--fm-text-meta);
  letter-spacing: 0.05em;
}

/* Grilla de cards reutilizable (3 col desktop / 2 col 1024 / lista 767). */
.fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fm-grid-gap); }
@media (max-width: 1024px) { .fm-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Fila de lista mobile (§5, §10): thumb 116px 4:3 + título 20px + fecha --- */
@media (max-width: 767px) {
  .fm-grid { grid-template-columns: 1fr; gap: 0; }
  a.fm-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 0;
    border-bottom: 1px solid var(--fm-border-list);
    padding: 14px 0;
  }
  a.fm-card:hover { border-color: transparent; border-bottom-color: var(--fm-border-list); }
  .fm-card__media { width: 116px; height: auto; aspect-ratio: 4 / 3; flex: none; }
  .fm-card__body { flex: 1; padding: 0; }
  .fm-card__title { font-size: 20px; }
  .fm-card__excerpt { display: none; }
  .fm-card__date { margin-top: 8px; }
  .fm-card__pill { top: 6px; left: 6px; }
  .fm-card__pill .fm-pill { font-size: 10px; padding: 4px 9px; }
}

/* =============================================================================
   BOTONES de marca (reusados en CTA, hero, etc.)
   ============================================================================= */
a.fm-btn, .fm-btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  font-family: var(--fm-font-head);
  text-transform: uppercase;
  border-radius: var(--fm-radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
a.fm-btn--green { padding: 0 26px; background: var(--fm-green); color: var(--fm-carbon); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; }
a.fm-btn--green:hover { background: #22ff77; color: var(--fm-carbon); }
a.fm-btn--ghost { padding: 0 22px; border: 1px solid #3a3e44; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
a.fm-btn--ghost:hover { border-color: var(--fm-green); color: var(--fm-green); }

/* =============================================================================
   COUNTDOWN (Home, §6.1)
   ============================================================================= */
.fm-countdown { position: relative; background: var(--fm-carbon); overflow: hidden; border-bottom: 4px solid var(--fm-red); }
.fm-stripe-overlay--soft { background: repeating-linear-gradient(115deg, transparent 0 58px, rgba(255,255,255,0.018) 58px 60px); }
.fm-countdown__inner { position: relative; max-width: var(--fm-w-content); margin: 0 auto; padding: 26px var(--fm-pad-x); display: flex; align-items: center; gap: 40px; }
.fm-countdown__info { flex: 1; min-width: 0; }
.fm-countdown__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fm-countdown__eyebrow > span:first-child { font-family: var(--fm-font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--fm-red); text-transform: uppercase; }
.fm-countdown__rule { height: 1px; flex: 1; background: linear-gradient(90deg, var(--fm-red), transparent); }
.fm-countdown__event { font-family: var(--fm-font-head); font-weight: 800; font-size: 40px; line-height: 0.95; color: #fff; text-transform: uppercase; letter-spacing: 0.01em; }
.fm-countdown__meta { margin-top: 8px; display: flex; gap: 22px; font-family: var(--fm-font-mono); font-size: 13px; color: #9a9da2; letter-spacing: 0.04em; }
.fm-countdown__boxes { display: flex; align-items: flex-start; gap: 10px; }
.fm-cd-box { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.fm-cd-box__n { font-family: var(--fm-font-mono); font-weight: 700; font-size: 58px; line-height: 1; color: #fff; background: linear-gradient(180deg, #1a1d22, #101216); border: 1px solid var(--fm-control-dark); padding: 12px 4px; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.fm-cd-box__l { margin-top: 8px; font-family: var(--fm-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--fm-gray); text-transform: uppercase; }
.fm-countdown__live { display: none; align-self: center; font-family: var(--fm-font-head); font-weight: 800; font-size: 44px; color: var(--fm-red); text-transform: uppercase; letter-spacing: 0.04em; }
.fm-countdown__boxes.is-over .fm-cd-box { display: none; }
.fm-countdown__boxes.is-over .fm-countdown__live { display: block; }

@media (max-width: 1024px) { .fm-cd-box { min-width: 74px; } .fm-cd-box__n { font-size: 46px; } }
@media (max-width: 767px) {
  .fm-countdown__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .fm-countdown__event { font-size: 28px; }
  .fm-countdown__meta { flex-direction: column; gap: 4px; }
  .fm-countdown__boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .fm-cd-box { min-width: 0; }
  .fm-cd-box__n { font-size: 30px; padding: 8px 2px; }
}

/* =============================================================================
   CTA DE MARCA (Negocios, §6.3)
   ============================================================================= */
.fm-cta { position: relative; background: var(--fm-carbon); overflow: hidden; }
.fm-cta__stripe { background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(0,224,90,0.07) 46px, rgba(0,224,90,0.07) 60px, transparent 60px 106px); }
.fm-cta__inner { position: relative; padding: 34px 36px 36px; border-top: 4px solid var(--fm-green); }
.fm-cta__eyebrow { font-family: var(--fm-font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fm-green); }
.fm-cta__title { margin: 12px 0 0; font-family: var(--fm-font-head); font-weight: 800; font-size: 38px; line-height: 1.0; color: #fff; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.fm-cta__body { margin: 14px 0 0; max-width: 520px; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.6; color: var(--fm-nav-idle); }
.fm-cta__actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 767px) { .fm-cta__title { font-size: 28px; } .fm-cta__inner { padding: 26px 22px 28px; } }

/* =============================================================================
   MASTHEAD de sección (archives, §5)
   ============================================================================= */
.fm-masthead { position: relative; background: var(--fm-carbon); overflow: hidden; border-bottom: 4px solid var(--fm-accent); }
.fm-masthead__inner { position: relative; max-width: var(--fm-w-content); margin: 0 auto; padding: 40px var(--fm-pad-x) 34px; }
.fm-masthead__eyebrow { font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--fm-accent-soft); margin-bottom: 10px; text-transform: uppercase; }
.fm-masthead__headrow { display: flex; align-items: flex-end; gap: 18px; }
.fm-masthead__title { margin: 0; font-family: var(--fm-font-head); font-weight: 900; font-size: 72px; line-height: 0.9; color: #fff; text-transform: uppercase; letter-spacing: 0.005em; }
.fm-masthead__tick { width: 60px; height: 8px; background: var(--fm-accent); transform: skewX(-20deg); margin-bottom: 14px; flex: none; }
.fm-masthead__blurb,
.fm-masthead__blurb p { margin: 16px 0 0; max-width: 640px; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.55; color: #e6e7ea; }
.fm-masthead__blurb p { margin: 0; }
@media (max-width: 767px) {
  .fm-masthead__inner { padding: 28px var(--fm-pad-x-mobile) 24px; }
  .fm-masthead__title { font-size: 44px; }
  .fm-masthead__tick { width: 44px; height: 6px; margin-bottom: 9px; }
}

/* Masthead neutro (tag / search): sin color de sección. */
.fm-masthead--neutral { border-bottom-color: #ffffff; }
.fm-masthead--neutral .fm-masthead__eyebrow { color: #9a9da2; }
.fm-masthead--neutral .fm-stripe-overlay { background: var(--fm-stripe); }

/* Placeholder oscuro (foto destacada / líder). */
.fm-ph--dark { background: repeating-linear-gradient(45deg, #1c1f24 0 12px, #23272d 12px 24px); }
.fm-ph--dark .fm-ph__size { color: #6a6e74; }

/* =============================================================================
   SINGLE (Nota / Negocios) — artículo 1080, cuerpo 680
   ============================================================================= */
.fm-single.fm-container { max-width: 1080px; }
.fm-breadcrumb { font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fm-text-meta); display: flex; gap: 8px; }
.fm-breadcrumb a { color: var(--fm-text-meta); }
.fm-breadcrumb a:hover { color: var(--fm-accent); }
.fm-breadcrumb__cat { color: var(--fm-accent); }

.fm-article__head { padding: 22px 0 30px; }
.fm-article__pill .fm-pill { font-size: 13px; letter-spacing: 0.12em; padding: 6px 16px; }
.fm-article__title { margin: 18px 0 0; font-family: var(--fm-font-head); font-weight: 800; font-size: 60px; line-height: 0.98; color: var(--fm-carbon); text-transform: uppercase; letter-spacing: 0.004em; text-wrap: balance; }
.fm-article__lead { margin: 20px 0 0; font-family: var(--fm-font-body); font-size: 22px; line-height: 1.45; color: var(--fm-text-lead); max-width: 900px; text-wrap: pretty; }

.fm-byline { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--fm-border); display: flex; align-items: center; gap: 16px; }
.fm-byline__avatar { width: 46px; height: 46px; border-radius: 50%; background: repeating-linear-gradient(45deg, #ececeb 0 6px, #f5f5f4 6px 12px); flex: none; }
.fm-byline__author { font-family: var(--fm-font-head); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fm-carbon); }
.fm-byline__date { font-family: var(--fm-font-mono); font-size: 12px; color: var(--fm-text-meta); letter-spacing: 0.04em; margin-top: 2px; }

/* !important para ganarle al reset de Elementor (.elementor ... figure { margin:0 }). */
.fm-article .fm-article__figure { margin: 8px 0 52px !important; }
.fm-article__body figure { margin: 34px 0 !important; }
/* Foto al medio del cuerpo (Single Negocios, §4). */
.fm-article__body figure.fm-article__midfig { margin: 46px 0 !important; }
.fm-article__midfig .fm-ph { aspect-ratio: 16 / 9; height: auto; }
.fm-article__midfig img { width: 100%; height: auto; display: block; }
.fm-article__midfig figcaption { margin-top: 10px; border-left: 3px solid var(--fm-accent); padding-left: 12px; font-family: var(--fm-font-body); font-size: 13px; font-style: italic; color: #777; }
.fm-article__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.fm-article__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-article__caption { margin-top: 10px; font-family: var(--fm-font-body); font-size: 13px; font-style: italic; color: #777; border-left: 3px solid var(--fm-accent); padding-left: 12px; }

/* Cuerpo de lectura 680, alineado a izquierda. */
.fm-article__body { max-width: 680px; margin: 0; font-family: var(--fm-font-body); font-size: 20px; line-height: 1.72; color: var(--fm-text-body); }
.fm-article__body p { margin: 0 0 26px; text-wrap: pretty; }
.fm-article__body > p:first-of-type::first-letter { float: left; font-family: var(--fm-font-head); font-weight: 900; font-size: 78px; line-height: 0.72; padding: 6px 10px 0 0; color: var(--fm-accent-text); }
.fm-article__body h2 { margin: 8px 0 16px; font-family: var(--fm-font-head); font-weight: 800; font-size: 32px; line-height: 1.02; color: var(--fm-carbon); text-transform: uppercase; letter-spacing: 0.01em; }
.fm-article__body img { max-width: 100%; height: auto; display: block; }
.fm-article__body figure { margin: 34px 0; }
.fm-article__body blockquote { margin: 34px 0; padding: 0 0 0 24px; border-left: 4px solid var(--fm-accent); }
.fm-article__body blockquote p { margin: 0; font-family: var(--fm-font-head); font-weight: 700; font-size: 30px; line-height: 1.08; color: var(--fm-carbon); text-transform: uppercase; letter-spacing: 0.005em; }
.fm-article__body cite { display: block; margin-top: 12px; font-family: var(--fm-font-mono); font-size: 12px; font-style: normal; color: var(--fm-text-meta); letter-spacing: 0.04em; }

/* Encabezado de Negocios con regla negra (§4). */
.fm-single--negocios .fm-article__head { border-bottom: 2px solid #111; padding-bottom: 30px; }
.fm-single--negocios .fm-article__body { margin-top: 36px; }
/* Aire entre la nota destacada del archive y la grilla de "Todas las notas". */
.fm-archive__grid { margin-top: 44px; }
/* Aire antes del CTA de marca en el archive de Negocios. */
.fm-archive__cta { margin: 52px 0 8px; }

/* Compartir. */
.fm-share { display: flex; align-items: center; gap: 8px; margin: 40px 0 0; flex-wrap: wrap; }
.fm-share__label { font-family: var(--fm-font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fm-gray); }
a.fm-share__wa { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; background: var(--fm-whatsapp); color: var(--fm-carbon); border-radius: var(--fm-radius-pill); font-family: var(--fm-font-head); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
a.fm-share__wa:hover { background: #1fc65c; color: var(--fm-carbon); }
.fm-share__pill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--fm-border-input); border-radius: var(--fm-radius-pill); font-family: var(--fm-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-carbon); background: none; cursor: pointer; text-decoration: none; }
.fm-share__pill:hover { border-color: var(--fm-carbon); color: var(--fm-carbon); }

/* =============================================================================
   Encabezado de sección / grilla (Todas las notas, Seguí leyendo)
   ============================================================================= */
.fm-sechead { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 28px; }
.fm-sechead__title { margin: 0; font-family: var(--fm-font-head); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--fm-carbon); }
.fm-sechead__tick { width: 42px; height: 4px; margin-bottom: 4px; }
.fm-sechead__count { margin-left: auto; font-family: var(--fm-font-mono); font-size: 12px; color: var(--fm-text-meta); letter-spacing: 0.05em; }
.fm-related { margin-top: 48px; }

/* =============================================================================
   Nota destacada de archive (líder)
   ============================================================================= */
a.fm-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: stretch; border: 1px solid var(--fm-border); background: #fff; text-decoration: none; margin-bottom: 8px; }
a.fm-lead:hover { border-color: var(--fm-carbon); }
.fm-lead__media { position: relative; min-height: 360px; overflow: hidden; }
.fm-lead__img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.fm-lead__pill { position: absolute; top: 16px; left: 16px; }
.fm-lead__pill .fm-pill { font-size: 13px; letter-spacing: 0.1em; padding: 6px 16px; }
.fm-lead__body { padding: 34px 34px 34px 0; display: flex; flex-direction: column; justify-content: center; }
.fm-lead__eyebrow { font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-accent-text); margin-bottom: 10px; }
.fm-lead__title { margin: 0; font-family: var(--fm-font-head); font-weight: 800; font-size: 34px; line-height: 1.02; color: var(--fm-carbon); text-transform: uppercase; text-wrap: balance; }
.fm-lead__excerpt { margin: 14px 0 0; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.55; color: var(--fm-text-excerpt); }
.fm-lead__date { margin-top: 16px; font-family: var(--fm-font-mono); font-size: 11px; color: var(--fm-text-meta); letter-spacing: 0.05em; }

/* =============================================================================
   Paginación
   ============================================================================= */
.fm-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 44px 0 8px; font-family: var(--fm-font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.fm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--fm-border-input); color: var(--fm-carbon); text-decoration: none; }
.fm-pagination a.page-numbers:hover { border-color: var(--fm-carbon); }
.fm-pagination .page-numbers.current { background: var(--fm-accent); color: #fff; border-color: var(--fm-accent); }
.fm-pagination .page-numbers.dots { border-color: transparent; }
.fm-pagination .prev, .fm-pagination .next { color: var(--fm-text-meta); }

/* =============================================================================
   Página de autor
   ============================================================================= */
.fm-authorhead { position: relative; background: var(--fm-carbon); overflow: hidden; border-bottom: 4px solid var(--fm-accent); }
.fm-authorhead__inner { position: relative; max-width: var(--fm-w-content); margin: 0 auto; padding: 40px var(--fm-pad-x) 36px; display: flex; align-items: center; gap: 30px; }
.fm-authorhead__avatar { width: 120px; height: 120px; border-radius: 50%; background: repeating-linear-gradient(45deg, #1c1f24 0 8px, #23272d 8px 16px); flex: none; }
.fm-authorhead__eyebrow { font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fm-accent-soft); }
.fm-authorhead__name { margin: 8px 0 0; font-family: var(--fm-font-head); font-weight: 900; font-size: 46px; line-height: 0.95; color: #fff; text-transform: uppercase; }
.fm-authorhead__bio { margin: 12px 0 0; max-width: 640px; font-family: var(--fm-font-body); font-size: 15px; line-height: 1.55; color: var(--fm-on-dark); }
.fm-authorhead__stats { margin-top: 12px; font-family: var(--fm-font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fm-nav-idle); }

/* =============================================================================
   Search (masthead con buscador) + estado vacío
   ============================================================================= */
.fm-searchhead__form, .fm-empty-state__form { display: flex; max-width: 440px; margin-top: 22px; }
.fm-searchhead__form input, .fm-empty-state__form input { flex: 1; height: 52px; padding: 0 16px; border: 1px solid var(--fm-border-input); background: #fff; font-family: var(--fm-font-body); font-size: 15px; color: var(--fm-carbon); outline: none; }
.fm-searchhead__form input:focus, .fm-empty-state__form input:focus { border-color: var(--fm-carbon); }
.fm-searchhead__form button, .fm-empty-state__form button { height: 52px; padding: 0 22px; border: 0; background: var(--fm-carbon); color: #fff; font-family: var(--fm-font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.fm-empty-state { text-align: center; padding: 60px 0; }
.fm-empty-state h2 { margin: 0; font-family: var(--fm-font-head); font-weight: 900; font-size: 46px; line-height: 0.96; color: var(--fm-carbon); text-transform: uppercase; text-wrap: balance; }
.fm-empty-state p { margin: 14px auto 0; max-width: 420px; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.6; color: var(--fm-text-excerpt); }
.fm-empty-state__form { margin: 26px auto 0; }

/* =============================================================================
   404
   ============================================================================= */
.fm-404 { position: relative; background: var(--fm-carbon); overflow: hidden; text-align: center; }
.fm-404__inner { position: relative; max-width: 680px; margin: 0 auto; padding: 72px var(--fm-pad-x); }
.fm-404__flag { width: 100%; height: 26px; background: repeating-linear-gradient(90deg, #16181c 0 26px, #0a0b0d 26px 52px), repeating-linear-gradient(#16181c 0 13px, #0a0b0d 13px 26px); background-blend-mode: difference; margin-bottom: 26px; opacity: 0.9; }
.fm-404__code { font-family: var(--fm-font-mono); font-weight: 700; font-size: 90px; line-height: 1; color: var(--fm-red); letter-spacing: 0.04em; }
.fm-404__title { margin: 10px 0 0; font-family: var(--fm-font-head); font-weight: 900; font-size: 44px; line-height: 0.98; color: #fff; text-transform: uppercase; text-wrap: balance; }
.fm-404__text { margin: 14px auto 0; max-width: 460px; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.6; color: var(--fm-on-dark); }
.fm-404__actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }
a.fm-btn--red { padding: 0 26px; background: var(--fm-red); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; }
a.fm-btn--red:hover { background: #ff453b; color: #fff; }

/* Responsive singles/archives. */
@media (max-width: 767px) {
  .fm-article__title { font-size: 36px; }
  .fm-article__lead { font-size: 17px; }
  .fm-article__body { font-size: 18px; line-height: 1.68; max-width: none; }
  .fm-article__body > p:first-of-type::first-letter { font-size: 60px; }
  a.fm-lead { grid-template-columns: 1fr; gap: 0; }
  .fm-lead__media { min-height: 220px; }
  .fm-lead__body { padding: 22px; }
}

/* =============================================================================
   HOME — Hero
   ============================================================================= */
.fm-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 8px; }
a.fm-hero__big, a.fm-hero__small { display: block; text-decoration: none; position: relative; overflow: hidden; }
.fm-hero__media { position: relative; height: 480px; overflow: hidden; }
.fm-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.fm-hero__pill { position: absolute; top: 18px; left: 18px; z-index: 2; }
.fm-hero__pill .fm-pill { font-size: 13px; letter-spacing: 0.1em; padding: 6px 16px; }
.fm-hero__pill--sm { top: 14px; left: 14px; }
.fm-hero__pill--sm .fm-pill { font-size: 12px; padding: 5px 14px; }
.fm-hero__grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.82) 100%); }
.fm-hero__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px; z-index: 2; }
.fm-hero__title { margin: 0; font-family: var(--fm-font-head); font-weight: 800; font-size: 46px; line-height: 0.98; color: #fff; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; }
.fm-hero__excerpt { margin: 12px 0 0; font-family: var(--fm-font-body); font-size: 16px; line-height: 1.5; color: #d4d6da; max-width: 620px; }
.fm-hero__meta { margin-top: 14px; font-family: var(--fm-font-mono); font-size: 12px; color: #9a9da2; letter-spacing: 0.06em; }
.fm-hero__col { display: flex; flex-direction: column; gap: 28px; }
.fm-hero__small { height: 226px; }
.fm-hero__small .fm-hero__content { padding: 20px; }
.fm-hero__title--sm { font-size: 25px; font-weight: 700; line-height: 1; }
.fm-hero__small .fm-hero__grad { background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%); }
.fm-latest { padding-top: 40px; }

@media (max-width: 1024px) {
  .fm-hero { grid-template-columns: 1fr; }
  .fm-hero__col { flex-direction: row; }
  .fm-hero__col a.fm-hero__small { flex: 1; }
}
@media (max-width: 767px) {
  .fm-hero__col { flex-direction: column; }
  .fm-hero__media { height: 320px; }
  .fm-hero__title { font-size: 32px; }
}

/* =============================================================================
   HOME — Aliados
   ============================================================================= */
.fm-aliados { padding-top: 52px; padding-bottom: 52px; }
.fm-aliados__inner { border-top: 1px solid var(--fm-border); border-bottom: 1px solid var(--fm-border); padding: 28px 0; }
.fm-aliados__label { text-align: center; font-family: var(--fm-font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fm-gray); margin-bottom: 24px; }
.fm-aliados__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.fm-aliados__cell { height: 64px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #efefee; filter: grayscale(1); opacity: 0.62; }
.fm-aliados__cell:first-child { border-left: 0; }
.fm-aliados__cell span { font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.08em; color: #9a9a98; }
@media (max-width: 1024px) { .fm-aliados__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .fm-aliados__grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================================
   HOME — Feeds IG / YT
   ============================================================================= */
.fm-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 8px; padding-bottom: 56px; }
.fm-feed__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.fm-feed__title { font-family: var(--fm-font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--fm-carbon); }
.fm-feed__handle { font-family: var(--fm-font-mono); font-size: 12px; color: var(--fm-text-meta); }
a.fm-feed__more { margin-left: auto; font-family: var(--fm-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-red); text-decoration: none; }
.fm-feed__icon--ig { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--fm-carbon); display: inline-flex; align-items: center; justify-content: center; }
.fm-feed__icon--ig span { width: 10px; height: 10px; border: 2px solid var(--fm-carbon); border-radius: 50%; }
.fm-feed__icon--yt { width: 34px; height: 24px; border-radius: 6px; background: var(--fm-red); display: inline-flex; align-items: center; justify-content: center; }
.fm-feed__icon--yt span { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.fm-ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
a.fm-ig__tile { position: relative; aspect-ratio: 1 / 1; display: block; }
.fm-ig__tile .fm-ph { background: repeating-linear-gradient(45deg, #ececeb 0 10px, #f5f5f4 10px 20px); }
.fm-ig__tile .fm-ph__size { bottom: 6px; left: 8px; right: auto; font-size: 9px; }
.fm-yt__list { display: flex; flex-direction: column; gap: 14px; }
a.fm-yt__item { display: flex; gap: 14px; align-items: stretch; text-decoration: none; }
.fm-yt__thumb { position: relative; width: 168px; flex: none; aspect-ratio: 16 / 9; }
.fm-yt__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 28px; border-radius: 6px; background: rgba(234,51,42,0.92); }
.fm-yt__play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.fm-yt__dur { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: #fff; font-family: var(--fm-font-mono); font-size: 10px; padding: 1px 5px; }
.fm-yt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fm-yt__title { font-family: var(--fm-font-head); font-weight: 700; font-size: 19px; line-height: 1.05; color: var(--fm-carbon); text-transform: uppercase; }
.fm-yt__meta { margin-top: 6px; font-family: var(--fm-font-mono); font-size: 11px; color: var(--fm-text-meta); }
@media (max-width: 1024px) { .fm-feeds { grid-template-columns: 1fr; gap: 34px; } }

/* =============================================================================
   CONTACTO (§6.4)
   ============================================================================= */
.fm-contacto.fm-container { max-width: 1080px; }
.fm-wa-block { position: relative; display: flex; align-items: center; gap: 30px; padding: 40px 44px; background: var(--fm-carbon); overflow: hidden; text-decoration: none; margin-top: 56px; transition: transform .15s ease; }
.fm-wa-block:hover { transform: translateY(-2px); }
.fm-wa-block__stripe { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 54px, rgba(37,211,102,0.06) 54px 56px); }
.fm-wa-block__circle { position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--fm-whatsapp); display: inline-flex; align-items: center; justify-content: center; }
.fm-wa-block__text { position: relative; flex: 1; min-width: 0; }
.fm-wa-block__eyebrow { display: block; font-family: var(--fm-font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--fm-whatsapp); margin-bottom: 6px; text-transform: uppercase; }
.fm-wa-block__title { display: block; font-family: var(--fm-font-head); font-weight: 800; font-size: 44px; line-height: 0.95; color: #fff; text-transform: uppercase; }
.fm-wa-block__sub { display: block; margin-top: 8px; font-family: var(--fm-font-body); font-size: 15px; color: var(--fm-on-dark); }
.fm-wa-block__btn { position: relative; flex: none; display: inline-flex; align-items: center; height: 60px; padding: 0 34px; background: var(--fm-whatsapp); color: var(--fm-carbon); border-radius: var(--fm-radius-pill); font-family: var(--fm-font-head); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }

.fm-form-wrap { margin-top: 56px; }
.fm-sechead--gray { border-bottom-color: var(--fm-border); }
.fm-form { display: flex; flex-direction: column; gap: 16px; }
.fm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fm-field { display: flex; flex-direction: column; gap: 7px; }
.fm-field > span { font-family: var(--fm-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-gray); }
.fm-field input, .fm-field textarea { border: 1px solid var(--fm-border-input); background: #fff; font-family: var(--fm-font-body); font-size: 15px; color: var(--fm-carbon); outline: none; }
.fm-field input { height: 48px; padding: 0 14px; }
.fm-field textarea { padding: 12px 14px; resize: vertical; }
.fm-field input:focus, .fm-field textarea:focus { border-color: var(--fm-carbon); }
.fm-form__submit { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; background: var(--fm-carbon); color: #fff; border: none; font-family: var(--fm-font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.fm-form__submit:hover { background: var(--fm-red); }
.fm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-form-msg { padding: 14px 16px; font-family: var(--fm-font-body); font-size: 15px; margin: 0 0 16px; }
.fm-form-msg--ok { background: #eafaf0; color: #06692f; border-left: 3px solid var(--fm-green-legible); }
.fm-form-msg--err { background: #fdeceb; color: #a5261f; border-left: 3px solid var(--fm-red); }
.fm-contacto__social { padding: 40px 0 8px; }
.fm-contacto__social-label { font-family: var(--fm-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fm-gray); margin-bottom: 16px; }
.fm-contacto__social-list { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) {
  .fm-wa-block { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 24px; }
  .fm-wa-block__title { font-size: 30px; }
  .fm-form__row { grid-template-columns: 1fr; }
}
