/* ==========================================================================
   Facturales · sistema de diseño de la landing (facturales.es)
   --------------------------------------------------------------------------
   Se carga DESPUÉS de main.css en todas las páginas. Todo lo nuevo cuelga de
   body.fx para no interferir con las páginas heredadas de la plantilla.
   Referencia visual: interfaz Verdigris de la app (paleta naranja por defecto).
   Índice:
     1. Tokens            6. Tarjetas y módulos     11. Precios
     2. Base              7. Insignias y chips      12. Formularios
     3. Utilidades        8. Secciones y hero       13. Artículos (prosa)
     4. Botones           9. Maquetas de producto   14. Cabecera y navegación
     5. Iconos           10. Acordeón (FAQ)         15. Pie
                                                    16. Movimiento reducido
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Fondo y resplandor (paleta naranja de Verdigris) */
  --fx-ground: #020100;
  --fx-glow: #c66121;
  --fx-glow-hi: #a04c1a;
  --fx-glow-mid: #673011;
  --fx-glow-lo: #341709;
  --fx-glow-deep: #110802;

  /* Superficies de vidrio sutil */
  --fx-surface: rgba(255, 255, 255, .07);
  --fx-surface-2: rgba(255, 255, 255, .10);
  --fx-surface-3: rgba(255, 255, 255, .14);
  --fx-surface-solid: #1b1613;
  --fx-line: rgba(255, 255, 255, .14);
  --fx-line-soft: rgba(255, 255, 255, .08);

  /* Tinta */
  --fx-ink: #ffffff;
  --fx-ink-2: rgba(255, 255, 255, .76);
  --fx-ink-3: rgba(255, 255, 255, .60);

  /* Marca */
  --fx-acento: #EC8228;          /* naranja corporativo exacto */
  --fx-acento-hover: #d47524;
  --fx-acento-texto: #EC8228;    /* texto naranja sobre fondo oscuro */
  --fx-acento-claro: #c2410c;    /* texto naranja sobre fondo claro (AA) */
  --fx-sobre-acento: #1a0d02;    /* texto sobre relleno naranja (≈7:1) */
  --fx-acento-suave: rgba(236, 130, 40, .14);

  /* Semánticos (el verde solo significa «bien / cobrado / ingreso») */
  --fx-pos: #4ade80;
  --fx-pos-suave: rgba(74, 222, 128, .14);
  --fx-neg: #fb7185;
  --fx-neg-suave: rgba(251, 113, 133, .14);
  --fx-aviso: #fbbf24;
  --fx-aviso-suave: rgba(251, 191, 36, .14);

  /* Forma */
  --fx-r-xs: 6px;
  --fx-r-sm: 8px;
  --fx-r: 12px;
  --fx-r-lg: 22px;
  --fx-r-full: 999px;

  /* Tipografía */
  --fx-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Movimiento */
  --fx-ease: cubic-bezier(.2, .9, .25, 1);
  --fx-dur: 160ms;

  /* Maquetación */
  --fx-max: 1200px;
  --fx-gutter: 16px;
  --fx-header-h: 68px;
}
@media (min-width: 768px) { :root { --fx-gutter: 24px; } }
@media (min-width: 1024px) { :root { --fx-header-h: 72px; } }

/* Sección clara (solo para lectura larga: artículos). Mismo sistema, tinta oscura. */
.fx-claro {
  --fx-ground: #f7f3f0;
  --fx-surface: #ffffff;
  --fx-surface-2: rgba(23, 18, 15, .05);
  --fx-surface-3: rgba(23, 18, 15, .08);
  --fx-surface-solid: #ffffff;
  --fx-line: rgba(23, 18, 15, .14);
  --fx-line-soft: rgba(23, 18, 15, .08);
  --fx-ink: #17120f;
  --fx-ink-2: rgba(23, 18, 15, .80);
  --fx-ink-3: rgba(23, 18, 15, .64);
  --fx-acento-texto: #c2410c;
  --fx-acento-suave: rgba(236, 130, 40, .16);
  --fx-pos: #15803d;
  --fx-neg: #be123c;
  background: var(--fx-ground);
  color: var(--fx-ink-2);
}

/* 2. Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--fx-header-h) + 16px); }
body.fx {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--fx-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fx-ink-2);
  background:
    radial-gradient(ellipse 120% 720px at 82% 0, var(--fx-glow) 0, var(--fx-glow-hi) 10%, var(--fx-glow-mid) 24%, var(--fx-glow-lo) 38%, var(--fx-glow-deep) 52%, rgba(2, 1, 0, 0) 70%) 0 0 / 100% 900px no-repeat,
    var(--fx-ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: visible;
}
@media (max-width: 767px) {
  body.fx {
    font-size: 16px;
    background:
      radial-gradient(ellipse 190% 520px at 85% 0, var(--fx-glow) 0, var(--fx-glow-hi) 10%, var(--fx-glow-mid) 24%, var(--fx-glow-lo) 38%, var(--fx-glow-deep) 52%, rgba(2, 1, 0, 0) 70%) 0 0 / 100% 700px no-repeat,
      var(--fx-ground);
  }
}
body.fx *, body.fx *::before, body.fx *::after { box-sizing: border-box; }
:where(body.fx) h1, :where(body.fx) h2, :where(body.fx) h3, :where(body.fx) h4, :where(body.fx) h5, :where(body.fx) h6 {
  font-family: var(--fx-font);
  color: var(--fx-ink);
  margin: 0;
  text-transform: none;
  transition: none;
  letter-spacing: -.02em;
  text-wrap: balance;
}
:where(body.fx) h1 { font-size: clamp(2.125rem, 1.35rem + 3.6vw, 4rem); font-weight: 700; line-height: 1.06 !important; letter-spacing: -.035em; }
:where(body.fx) h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
:where(body.fx) h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); font-weight: 600; line-height: 1.3; }
:where(body.fx) h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
:where(body.fx) p { margin: 0; transition: none; }
:where(body.fx) a { color: inherit; text-decoration: none; transition: color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease), border-color var(--fx-dur) var(--fx-ease); }
:where(body.fx) img, :where(body.fx) svg { max-width: 100%; }
:where(body.fx) img { height: auto; display: block; }
:where(body.fx) ul, :where(body.fx) ol { margin: 0; padding: 0; }
:where(body.fx) input, :where(body.fx) textarea, :where(body.fx) select { color: var(--fx-ink); font: inherit; }
:where(body.fx) strong { color: var(--fx-ink); font-weight: 600; }
body.fx ::selection { background: rgba(236, 130, 40, .35); color: #fff; }
body.fx :focus { outline: none; }
body.fx :focus-visible {
  outline: 2px solid var(--fx-acento) !important;
  outline-offset: 3px;
}
body.fx .fx-claro :focus-visible { outline-color: var(--fx-acento-claro) !important; }
:where(body.fx) main { position: relative; display: block; }

.fx-skip {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 18px; border-radius: var(--fx-r-full);
  background: var(--fx-acento); color: var(--fx-sobre-acento) !important; font-weight: 600;
}
.fx-skip:focus { top: 12px; }
.fx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Utilidades ------------------------------------------------------------ */
.fx-wrap { width: 100%; max-width: calc(var(--fx-max) + 2 * var(--fx-gutter)); margin-inline: auto; padding-inline: var(--fx-gutter); }
.fx-wrap--estrecho { max-width: calc(820px + 2 * var(--fx-gutter)); }
.fx-wrap--lectura { max-width: calc(720px + 2 * var(--fx-gutter)); }
.fx-centro { text-align: center; }
.fx-centro .fx-lead { margin-inline: auto; }
.fx-stack > * + * { margin-top: 16px; }
.fx-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .fx-grid--2, .fx-grid--3, .fx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .fx-grid { gap: 20px; }
  .fx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .fx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; }
  .fx-split--inverso > :first-child { order: 2; }
  .fx-split--texto-ancho { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.fx-mt-0 { margin-top: 0 !important; }
.fx-num { font-variant-numeric: tabular-nums; }
.fx-pos { color: var(--fx-pos); }
.fx-neg { color: var(--fx-neg); }
.fx-acento-t { color: var(--fx-acento-texto); }

/* Texto de sección */
.fx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fx-acento-texto);
}
.fx-eyebrow .fx-ic { width: 16px; height: 16px; }
.fx-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--fx-ink-2); max-width: 62ch; margin-top: 16px; }
.fx-nota { font-size: 14px; line-height: 1.5; color: var(--fx-ink-3); }
.fx-cabecera-seccion { max-width: 760px; margin-bottom: 40px; }
.fx-cabecera-seccion.fx-centro { margin-inline: auto; }
@media (min-width: 1024px) { .fx-cabecera-seccion { margin-bottom: 56px; } }

/* Listas con marca */
.fx-lista { list-style: none; display: grid; gap: 12px; }
.fx-lista li { position: relative; padding-left: 30px; }
.fx-lista li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--fx-acento-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EC8228' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fx-claro .fx-lista li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.fx-lista strong { color: var(--fx-ink); }

/* 4. Botones (píldora) ----------------------------------------------------- */
.fx-btn {
  --_bg: var(--fx-surface-2);
  --_fg: var(--fx-ink);
  --_bd: var(--fx-line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--_bd); border-radius: var(--fx-r-full);
  background: var(--_bg); color: var(--_fg) !important;
  font: 600 16px/1.2 var(--fx-font); letter-spacing: -.005em; text-align: center; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--fx-dur) var(--fx-ease), border-color var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease), box-shadow var(--fx-dur) var(--fx-ease);
}
.fx-btn:hover { --_bg: var(--fx-surface-3); }
.fx-btn:active { transform: translateY(1px); }
.fx-btn .fx-ic { width: 18px; height: 18px; flex: none; }
.fx-btn--primario {
  --_bg: var(--fx-acento); --_fg: var(--fx-sobre-acento); --_bd: transparent;
  box-shadow: 0 10px 28px -14px rgba(236, 130, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fx-btn--primario:hover { --_bg: var(--fx-acento-hover); }
.fx-btn--fantasma { --_bg: transparent; --_bd: transparent; }
.fx-btn--fantasma:hover { --_bg: var(--fx-surface); }
.fx-btn--claro { --_bg: #fff; --_fg: #17120f; --_bd: transparent; }
.fx-btn--claro:hover { --_bg: #f1ece8; }
.fx-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.fx-btn--bloque { width: 100%; }
.fx-acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.fx-centro .fx-acciones { justify-content: center; }
@media (max-width: 479px) { .fx-acciones .fx-btn { width: 100%; } }

.fx-enlace {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--fx-acento-texto) !important;
}
.fx-enlace .fx-ic { width: 16px; height: 16px; transition: transform var(--fx-dur) var(--fx-ease); }
.fx-enlace:hover .fx-ic { transform: translateX(3px); }
.fx-enlace:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 5. Iconos (trazo 2 px, una sola familia) -------------------------------- */
.fx-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.fx-icono {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--fx-r);
  background: var(--fx-acento-suave); color: var(--fx-acento-texto);
  box-shadow: inset 0 0 0 1px rgba(236, 130, 40, .22);
}
.fx-icono .fx-ic { width: 22px; height: 22px; }
.fx-icono--neutro { background: var(--fx-surface); color: var(--fx-ink); box-shadow: inset 0 0 0 1px var(--fx-line); }

/* 6. Tarjetas y módulos ---------------------------------------------------- */
.fx-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.fx-claro .fx-card { background: var(--fx-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.fx-card h3 { margin-top: 16px; }
.fx-card p { margin-top: 8px; color: var(--fx-ink-2); font-size: 16px; line-height: 1.55; }
@media (min-width: 1024px) { .fx-card { padding: 28px; } }
.fx-card--enlace { display: flex; flex-direction: column; color: inherit; transition: border-color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease); }
.fx-card--enlace:hover { border-color: rgba(236, 130, 40, .5); transform: translateY(-2px); }
.fx-card--enlace .fx-enlace { margin-top: auto; padding-top: 12px; }
.fx-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Tira de datos verificables */
.fx-hechos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg); background: var(--fx-line); }
.fx-hecho { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: #0b0705; }
.fx-hecho .fx-ic { color: var(--fx-acento-texto); margin-top: 2px; }
.fx-hecho strong { display: block; font-size: 15px; line-height: 1.3; }
.fx-hecho span { display: block; font-size: 14px; line-height: 1.45; color: var(--fx-ink-3); margin-top: 2px; }
@media (min-width: 1024px) { .fx-hechos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fx-hecho { padding: 22px; } }
@media (max-width: 479px) { .fx-hechos { grid-template-columns: 1fr; } }

/* Pasos */
.fx-pasos { counter-reset: paso; display: grid; gap: 16px; }
@media (min-width: 768px) { .fx-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.fx-paso { counter-increment: paso; }
.fx-paso::before {
  content: counter(paso, decimal-leading-zero);
  display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--fx-acento-texto);
}
.fx-paso h3 { margin-top: 10px; }

/* Tabla de roles / comparativas simples */
.fx-tabla-wrap { overflow-x: auto; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg); background: var(--fx-surface); -webkit-overflow-scrolling: touch; }
.fx-tabla { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.fx-tabla th, .fx-tabla td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fx-line-soft); }
.fx-tabla thead th { color: var(--fx-ink); font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .03); }
.fx-tabla tbody th { color: var(--fx-ink); font-weight: 600; }
.fx-tabla tr:last-child > * { border-bottom: 0; }
.fx-tabla td { color: var(--fx-ink-2); }
.fx-tabla .fx-ic { width: 18px; height: 18px; }
.fx-tabla .fx-si { color: var(--fx-acento-texto); }
.fx-tabla .fx-no { color: var(--fx-ink-3); }
.fx-tabla--centrada td, .fx-tabla--centrada thead th:not(:first-child) { text-align: center; }
.fx-tabla__grupo th { padding-top: 20px; color: var(--fx-acento-texto) !important; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; background: transparent !important; }

/* 7. Insignias y chips ----------------------------------------------------- */
.fx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--fx-r-full);
  border: 1px solid var(--fx-line); background: var(--fx-surface);
  font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--fx-ink);
  white-space: nowrap; max-width: 100%;
}
@media (max-width: 400px) { .fx-badge { white-space: normal; } }
.fx-badge .fx-ic { width: 14px; height: 14px; flex: none; }
.fx-badge--acento { border-color: rgba(236, 130, 40, .45); background: rgba(26, 13, 2, .72); color: #F5A35C; }
.fx-badge--nuevo { border-color: rgba(236, 130, 40, .45); background: rgba(26, 13, 2, .72); color: #F5A35C; font-weight: 600; font-size: 12px; padding: 3px 10px; }
.fx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--fx-r-full); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.fx-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-chip--ok { background: var(--fx-pos-suave); color: var(--fx-pos); }
.fx-chip--pend { background: var(--fx-aviso-suave); color: var(--fx-aviso); }
.fx-chip--neg { background: var(--fx-neg-suave); color: var(--fx-neg); }
.fx-chip--neutro { background: var(--fx-surface-2); color: var(--fx-ink-2); }
.fx-chip--acento { background: var(--fx-acento-suave); color: var(--fx-acento-texto); }

/* 8. Secciones y hero ------------------------------------------------------ */
.fx-seccion { position: relative; padding-block: 72px; }
@media (min-width: 1024px) { .fx-seccion { padding-block: 112px; } }
.fx-seccion--compacta { padding-block: 48px; }
@media (min-width: 1024px) { .fx-seccion--compacta { padding-block: 72px; } }
.fx-seccion--borde { border-top: 1px solid var(--fx-line-soft); }
.fx-seccion--tinte { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)); border-top: 1px solid var(--fx-line-soft); }

.fx-hero { position: relative; padding-top: calc(var(--fx-header-h) + 48px); padding-bottom: 64px; }
@media (min-width: 1024px) { .fx-hero { padding-top: calc(var(--fx-header-h) + 88px); padding-bottom: 96px; } }
.fx-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1100px) { .fx-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.fx-hero__texto h1 { max-width: 15ch; }
.fx-hero__texto .fx-lead { max-width: 56ch; }
.fx-hero__micro { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; list-style: none; font-size: 14px; color: var(--fx-ink-3); }
.fx-hero__micro li { display: inline-flex; align-items: center; gap: 8px; }
.fx-hero__micro .fx-ic { width: 16px; height: 16px; color: var(--fx-acento-texto); }

/* Hero de páginas interiores */
.fx-pagehero { padding-top: calc(var(--fx-header-h) + 48px); padding-bottom: 48px; }
@media (min-width: 1024px) { .fx-pagehero { padding-top: calc(var(--fx-header-h) + 80px); padding-bottom: 72px; } }
.fx-pagehero h1 { max-width: 20ch; }
.fx-pagehero.fx-centro h1 { margin-inline: auto; }
.fx-migas { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 20px; font-size: 14px; color: var(--fx-ink-3); }
.fx-migas li + li::before { content: "/"; margin-right: 6px; color: var(--fx-ink-3); }
.fx-migas a { position: relative; color: var(--fx-ink-2); text-decoration: underline; text-decoration-color: var(--fx-line); text-underline-offset: 3px; }
.fx-migas a:hover { color: var(--fx-ink); }
.fx-migas a::after { content: ""; position: absolute; inset: -13px -6px; }
.fx-centro .fx-migas { justify-content: center; }

/* CTA final */
.fx-cta {
  position: relative; overflow: hidden;
  padding: 48px 24px; border-radius: var(--fx-r-lg); border: 1px solid rgba(236, 130, 40, .35);
  background:
    radial-gradient(ellipse 90% 140% at 100% 0, rgba(198, 97, 33, .55), rgba(103, 48, 17, .25) 40%, rgba(2, 1, 0, 0) 75%),
    #0b0604;
  text-align: center;
}
.fx-cta h2 { max-width: 22ch; margin-inline: auto; }
.fx-cta .fx-lead { margin-inline: auto; }
.fx-cta .fx-acciones { justify-content: center; }
@media (min-width: 1024px) { .fx-cta { padding: 80px 48px; } }

/* 9. Maquetas de producto (HTML/CSS, datos de ejemplo) -------------------- */
.fx-mock {
  position: relative;
  border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg);
  background: linear-gradient(180deg, rgba(36, 30, 27, .92), rgba(16, 12, 10, .94));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  font-size: 13px; line-height: 1.4; color: var(--fx-ink-2);
}
.fx-mock__barra { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--fx-line-soft); }
.fx-mock__barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.fx-mock__barra span { margin-left: 10px; font-size: 12px; color: var(--fx-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-mock__cuerpo { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
.fx-mock__rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-right: 1px solid var(--fx-line-soft); }
.fx-mock__rail img { width: 26px; height: 26px; margin-bottom: 8px; }
.fx-mock__rail b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--fx-ink-3); }
.fx-mock__rail b.on { background: var(--fx-surface-2); color: var(--fx-ink); }
.fx-mock__rail .fx-ic { width: 17px; height: 17px; }
.fx-mock__main { padding: 18px; min-width: 0; }
.fx-mock__tit { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.fx-mock__tit strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.fx-mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-kpi { padding: 12px; border-radius: var(--fx-r); background: var(--fx-surface); border: 1px solid var(--fx-line-soft); min-width: 0; }
.fx-kpi small { display: block; font-size: 11.5px; color: var(--fx-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-kpi b { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--fx-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.fx-kpi em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; }
.fx-mock__grafica { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 12px; padding: 12px; border-radius: var(--fx-r); background: var(--fx-surface); border: 1px solid var(--fx-line-soft); }
.fx-mock__grafica span { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; }
.fx-mock__grafica span i { display: block; border-radius: 3px 3px 1px 1px; }
.fx-mock__grafica span i:first-child { background: var(--fx-acento); }
.fx-mock__grafica span i + i { background: rgba(255, 255, 255, .22); }
.fx-mock__filas { margin-top: 12px; border-radius: var(--fx-r); border: 1px solid var(--fx-line-soft); background: var(--fx-surface); overflow: hidden; }
.fx-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--fx-line-soft); }
.fx-fila:first-child { border-top: 0; }
.fx-fila > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-ink); }
.fx-fila small { display: block; color: var(--fx-ink-3); font-size: 11.5px; }
.fx-fila b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fx-ink); white-space: nowrap; }
.fx-mock__pie { margin-top: 10px; font-size: 11.5px; color: var(--fx-ink-3); text-align: right; }
.fx-mock-cap { margin-top: 12px; font-size: 13px; color: var(--fx-ink-3); text-align: center; }
@media (max-width: 559px) {
  .fx-mock__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .fx-mock__rail { display: none; }
  .fx-mock__main { padding: 14px; }
  .fx-mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-mock__kpis .fx-kpi:nth-child(3) { display: none; }
  .fx-fila > :nth-child(2) { display: none; }
  .fx-fila { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Panel de función (maqueta compacta a la derecha de una sección) */
.fx-panel { padding: 18px; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg); background: linear-gradient(180deg, rgba(36, 30, 27, .85), rgba(14, 10, 8, .9)); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); font-size: 14px; }
@media (min-width: 768px) { .fx-panel { padding: 24px; } }
.fx-panel__tit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--fx-ink); font-weight: 600; font-size: 15px; }
.fx-panel__tit span { font-weight: 400; font-size: 13px; color: var(--fx-ink-3); }
.fx-concilia { display: grid; gap: 8px; }
.fx-concilia__par { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; align-items: center; }
.fx-concilia__lado { padding: 10px 12px; border-radius: var(--fx-r); border: 1px solid var(--fx-line-soft); background: var(--fx-surface); min-width: 0; }
.fx-concilia__lado small { display: block; color: var(--fx-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-concilia__lado b { display: block; color: var(--fx-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-concilia__enlace { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fx-pos-suave); color: var(--fx-pos); }
.fx-concilia__enlace.pend { background: var(--fx-aviso-suave); color: var(--fx-aviso); }
.fx-concilia__enlace .fx-ic { width: 15px; height: 15px; }
.fx-barras { display: grid; gap: 12px; }
.fx-barra { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.fx-barra > span:first-child { color: var(--fx-ink-2); }
.fx-barra i { display: block; height: 10px; border-radius: var(--fx-r-full); background: var(--fx-surface-2); overflow: hidden; }
.fx-barra i::before { content: ""; display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: var(--c, var(--fx-acento)); }
.fx-barra b { color: var(--fx-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-matriz { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.fx-matriz th { color: var(--fx-ink-3); font-weight: 500; text-align: left; white-space: nowrap; padding: 2px 4px; }
.fx-matriz td { text-align: right; padding: 7px 8px; border-radius: 6px; background: var(--fx-surface); color: var(--fx-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-matriz td.alto { background: rgba(236, 130, 40, .22); }
.fx-matriz td.medio { background: rgba(236, 130, 40, .12); }
.fx-modelo { display: grid; gap: 8px; }
.fx-modelo__fila { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--fx-r); background: var(--fx-surface); border: 1px solid var(--fx-line-soft); }
.fx-modelo__fila span { color: var(--fx-ink-2); }
.fx-modelo__fila b { color: var(--fx-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-modelo__fila--total { background: var(--fx-acento-suave); border-color: rgba(236, 130, 40, .35); }
.fx-modelo__fila--total span, .fx-modelo__fila--total b { color: var(--fx-ink); font-weight: 600; }

/* Móvil (app) */
.fx-movil { width: 236px; max-width: 100%; margin-inline: auto; padding: 10px; border-radius: 38px; background: #0d0907; border: 1px solid var(--fx-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.fx-movil__pantalla { position: relative; overflow: hidden; border-radius: 30px; padding: 34px 14px 72px; min-height: 430px; background: radial-gradient(ellipse 180% 180px at 85% 0, #c66121 0, #673011 30%, #110802 60%, #020100 80%) #020100; }
.fx-movil__pantalla::before { content: ""; position: absolute; top: 10px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #000; }
.fx-movil__pantalla > strong { display: block; font-size: 20px; color: #fff; letter-spacing: -.02em; }
.fx-movil__pantalla > small { display: block; color: var(--fx-ink-3); font-size: 12px; margin-top: 2px; }
.fx-movil .fx-kpi { margin-top: 10px; }
.fx-movil__dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 10px; border-radius: 20px; background: rgba(42, 36, 33, .9); border: 1px solid var(--fx-line-soft); color: var(--fx-ink-3); }
.fx-movil__dock .on { color: var(--fx-acento); }
.fx-movil__dock .fx-ic { width: 18px; height: 18px; }

/* 10. Acordeón (FAQ) con <details> --------------------------------------- */
.fx-faq { display: grid; gap: 10px; }
.fx-faq details { border: 1px solid var(--fx-line); border-radius: var(--fx-r); background: var(--fx-surface); transition: border-color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease); }
.fx-faq details[open] { border-color: rgba(236, 130, 40, .4); background: rgba(255, 255, 255, .09); }
.fx-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none;
  color: var(--fx-ink); font-weight: 600; font-size: 16.5px; line-height: 1.4;
  border-radius: var(--fx-r);
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fx-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--fx-dur) var(--fx-ease);
}
.fx-faq details[open] summary::after { transform: rotate(180deg); }
.fx-faq summary:hover { color: #fff; }
.fx-faq__resp { padding: 0 18px 18px; color: var(--fx-ink-2); font-size: 16px; line-height: 1.65; }
.fx-faq__resp p + p { margin-top: 10px; }
.fx-faq__resp a { color: var(--fx-acento-texto); text-decoration: underline; text-underline-offset: 3px; }
.fx-faq-grupo + .fx-faq-grupo { margin-top: 48px; }
.fx-faq-grupo > h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: 16px; }

/* 11. Precios -------------------------------------------------------------- */
.fx-conmutador { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 4px; gap: 4px; border-radius: var(--fx-r-full); border: 1px solid var(--fx-line); background: var(--fx-surface); }
.fx-conmutador button {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--fx-r-full);
  background: transparent; color: var(--fx-ink-2); font: 600 15px/1.2 var(--fx-font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color var(--fx-dur) var(--fx-ease), color var(--fx-dur) var(--fx-ease);
}
.fx-conmutador button[aria-pressed="true"] { background: #fff; color: #17120f; }
.fx-conmutador button[aria-pressed="true"] .fx-ahorro { background: var(--fx-acento); color: var(--fx-sobre-acento); }
.fx-ahorro { padding: 2px 8px; border-radius: var(--fx-r-full); background: var(--fx-acento-suave); color: var(--fx-acento-texto); font-size: 12px; font-weight: 600; }
.fx-planes { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .fx-planes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; } }
.fx-plan { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); }
.fx-plan--destacado { border-color: rgba(236, 130, 40, .6); background: radial-gradient(ellipse 120% 60% at 100% 0, rgba(198, 97, 33, .32), rgba(2, 1, 0, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); box-shadow: 0 30px 70px -40px rgba(236, 130, 40, .55); }
.fx-plan__cab { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx-plan__cab h2, .fx-plan__cab h3 { font-size: 22px; letter-spacing: -.02em; }
.fx-plan__desc { margin-top: 6px; font-size: 15px; color: var(--fx-ink-3); }
.fx-plan__precio { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; color: var(--fx-ink); }
.fx-plan__precio b { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: proportional-nums lining-nums; }
.fx-plan__precio span { font-size: 15px; color: var(--fx-ink-3); }
.fx-plan__nota { min-height: 22px; margin-top: 8px; font-size: 14px; color: var(--fx-ink-3); }
.fx-plan .fx-btn { margin-top: 22px; }
/* align-content: la lista es una rejilla dentro de la fila del subgrid que mide la lista MÁS LARGA; sin esto, las
   tarjetas con menos viñetas reparten el sobrante entre ellas y sus huecos salen más anchos que los de las demás. */
.fx-plan .fx-lista { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--fx-line-soft); font-size: 15px; align-content: start; }
.fx-plan .fx-lista li::before { top: .15em; }

/* 12. Formularios ---------------------------------------------------------- */
.fx-form { display: grid; gap: 18px; }
.fx-form__fila { display: grid; gap: 18px; }
@media (min-width: 640px) { .fx-form__fila { grid-template-columns: 1fr 1fr; } }
.fx-campo { display: grid; gap: 8px; }
.fx-campo label { color: var(--fx-ink); font-weight: 500; font-size: 15px; }
.fx-campo input, .fx-campo textarea, .fx-campo select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--fx-line); border-radius: var(--fx-r);
  background: rgba(255, 255, 255, .05); color: var(--fx-ink);
  font: 400 16px/1.4 var(--fx-font);
  transition: border-color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease);
}
.fx-campo textarea { min-height: 140px; resize: vertical; }
.fx-campo input::placeholder, .fx-campo textarea::placeholder { color: var(--fx-ink-3); }
.fx-campo input:hover, .fx-campo textarea:hover, .fx-campo select:hover { border-color: rgba(255, 255, 255, .26); }
.fx-campo input:focus-visible, .fx-campo textarea:focus-visible, .fx-campo select:focus-visible { border-color: var(--fx-acento); background: rgba(255, 255, 255, .08); outline-offset: 1px; }
.fx-campo select option { background: var(--fx-surface-solid); color: #fff; }
.fx-campo__ayuda { font-size: 13.5px; color: var(--fx-ink-3); }
.fx-campo [aria-invalid="true"] { border-color: var(--fx-neg); }
.fx-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fx-ink-2); }
.fx-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--fx-acento); }
.fx-check a { color: var(--fx-acento-texto); text-decoration: underline; text-underline-offset: 3px; }
.fx-form__estado { min-height: 1.5em; font-size: 15px; color: var(--fx-ink-2); }

/* 13. Artículos (prosa) ---------------------------------------------------- */
.fx-articulo-cab { padding-top: calc(var(--fx-header-h) + 48px); padding-bottom: 48px; }
@media (min-width: 1024px) { .fx-articulo-cab { padding-top: calc(var(--fx-header-h) + 80px); padding-bottom: 64px; } }
.fx-articulo-cab h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); max-width: 24ch; }
.fx-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; list-style: none; font-size: 14px; color: var(--fx-ink-3); }
.fx-meta li { display: inline-flex; align-items: center; gap: 6px; }
.fx-meta .fx-ic { width: 16px; height: 16px; }
.fx-prosa { padding-block: 56px 80px; font-size: 18px; line-height: 1.75; color: var(--fx-ink-2); }
@media (max-width: 767px) { .fx-prosa { font-size: 17px; padding-block: 40px 64px; } }
.fx-prosa > * + * { margin-top: 1.1em; }
.fx-prosa h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; }
.fx-prosa h3 { margin-top: 1.8em; font-size: 1.2rem; }
.fx-prosa h2 + *, .fx-prosa h3 + * { margin-top: .7em; }
.fx-prosa ul, .fx-prosa ol { padding-left: 1.3em; }
.fx-prosa ul { list-style: disc; }
.fx-prosa ol { list-style: decimal; }
.fx-prosa li + li { margin-top: .45em; }
.fx-prosa li::marker { color: var(--fx-acento-claro); }
.fx-prosa a { color: var(--fx-acento-claro); text-decoration: underline; text-underline-offset: 3px; }
.fx-prosa strong { color: var(--fx-ink); }
.fx-prosa blockquote, .fx-prosa .fx-destacado { margin-inline: 0; padding: 18px 22px; border-left: 3px solid var(--fx-acento); border-radius: 0 var(--fx-r) var(--fx-r) 0; background: var(--fx-surface-2); color: var(--fx-ink); }
.fx-prosa table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.fx-prosa .fx-tabla-wrap { background: var(--fx-surface); }
.fx-prosa th, .fx-prosa td { padding: 12px 14px; border-bottom: 1px solid var(--fx-line-soft); text-align: left; vertical-align: top; }
.fx-prosa th { color: var(--fx-ink); font-weight: 600; background: var(--fx-surface-2); }
.fx-prosa__cta { margin-top: 3em !important; padding: 28px; border-radius: var(--fx-r-lg); background: #17120f; color: rgba(255, 255, 255, .8); }
.fx-prosa__cta h2 { margin-top: 0 !important; color: #fff; font-size: 1.375rem; }
.fx-prosa__cta p { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.fx-prosa__cta .fx-acciones { margin-top: 20px; }
.fx-prosa__cta a.fx-btn { text-decoration: none; }
.fx-prosa__cta :focus-visible { outline-color: var(--fx-acento) !important; }

/* Tarjetas de blog */
.fx-post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.fx-post__portada {
  position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 20px;
  background: radial-gradient(ellipse 120% 120% at 100% 0, #c66121 0, #673011 35%, #110802 70%, #020100 100%);
  border-bottom: 1px solid var(--fx-line-soft);
}
.fx-post__portada span { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; max-width: 14ch; }
.fx-post__portada img { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; }
.fx-post__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 18px; }
.fx-post__cuerpo h2, .fx-post__cuerpo h3 { font-size: 1.1875rem; line-height: 1.35; margin-top: 10px; }
.fx-post__cuerpo p { margin-top: 10px; font-size: 15.5px; }
.fx-post__cuerpo .fx-enlace { margin-top: auto; padding-top: 10px; }
.fx-post__meta { font-size: 13.5px; color: var(--fx-ink-3); }

/* 14. Cabecera y navegación ------------------------------------------------ */
.fx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--fx-header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--fx-dur) var(--fx-ease), border-color var(--fx-dur) var(--fx-ease), -webkit-backdrop-filter var(--fx-dur) var(--fx-ease), backdrop-filter var(--fx-dur) var(--fx-ease);
}
.fx-header.is-scrolled, .fx-header.is-open {
  background: rgba(8, 5, 3, .78);
  border-bottom-color: var(--fx-line-soft);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}
.fx-header__in { display: flex; align-items: center; gap: 16px; height: 100%; }
/* Logo oficial (rombo + «FACTURALES»), el mismo archivo que la web anterior: logo-white.webp sobre fondo oscuro. */
.fx-marca { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.fx-marca img { display: block; width: 158px; height: auto; position: relative; top: 2px; }
.fx-nav { display: none; }
.fx-header__acciones { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fx-header__acciones .fx-solo-escritorio { display: none; }
@media (max-width: 359px) { .fx-header__acciones .fx-btn--primario { display: none; } }
@media (min-width: 1080px) {
  .fx-nav { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
  .fx-header__acciones .fx-solo-escritorio { display: inline-flex; }
  .fx-hamburguesa { display: none !important; }
}
@media (max-width: 379px) {
  .fx-header__acciones .fx-btn--primario { padding-inline: 14px; font-size: 14.5px; }
  .fx-marca img { width: 134px; }
}
.fx-nav__item { position: relative; }
.fx-nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: var(--fx-r-full); background: transparent;
  color: var(--fx-ink-2) !important; font: 500 15.5px/1.2 var(--fx-font); cursor: pointer;
}
.fx-nav__link:hover, .fx-nav__link[aria-expanded="true"] { color: #fff !important; background: var(--fx-surface); }
.fx-nav__link[aria-current="page"] { color: #fff !important; }
.fx-nav__link .fx-ic { width: 16px; height: 16px; transition: transform var(--fx-dur) var(--fx-ease); }
.fx-nav__link[aria-expanded="true"] .fx-ic { transform: rotate(180deg); }
.fx-mega {
  position: absolute; top: calc(100% + 10px); left: -12px; width: min(760px, calc(100vw - 48px));
  padding: 12px; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg);
  background: rgba(22, 17, 14, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease), visibility 0s linear var(--fx-dur);
}
.fx-mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fx-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; list-style: none; }
.fx-mega__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--fx-r); color: inherit; }
.fx-mega__item:hover, .fx-mega__item:focus-visible { background: var(--fx-surface); }
.fx-mega__item .fx-icono { width: 38px; height: 38px; border-radius: 10px; }
.fx-mega__item .fx-icono .fx-ic { width: 19px; height: 19px; }
.fx-mega__item strong { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }
.fx-mega__item > span:last-child > span { display: block; margin-top: 2px; color: var(--fx-ink-3); font-size: 13.5px; line-height: 1.4; }
.fx-mega__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--fx-line-soft); font-size: 14px; color: var(--fx-ink-3); }

.fx-hamburguesa { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--fx-line); border-radius: var(--fx-r-full); background: var(--fx-surface); color: #fff; cursor: pointer; }
.fx-hamburguesa .fx-ic { width: 20px; height: 20px; }
.fx-hamburguesa .fx-ic--cerrar { display: none; }
.fx-hamburguesa[aria-expanded="true"] .fx-ic--abrir { display: none; }
.fx-hamburguesa[aria-expanded="true"] .fx-ic--cerrar { display: block; }

.fx-movilnav {
  position: fixed; inset: var(--fx-header-h) 0 0 0; z-index: 899;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--fx-gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 5, 3, .97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.fx-movilnav[hidden] { display: none; }
.fx-movilnav__grupo { padding-bottom: 12px; border-bottom: 1px solid var(--fx-line-soft); }
.fx-movilnav__titulo { margin: 8px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-ink-3); }
.fx-movilnav ul { list-style: none; }
.fx-movilnav a.fx-movilnav__link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 4px; color: #fff; font-size: 17px; font-weight: 500; }
.fx-movilnav a.fx-movilnav__link .fx-ic { color: var(--fx-acento-texto); }
.fx-movilnav a[aria-current="page"] { color: var(--fx-acento-texto); }
.fx-movilnav__acciones { display: grid; gap: 10px; margin-top: 20px; }
body.fx.fx-bloqueo { overflow: hidden; }

/* 15. Pie ------------------------------------------------------------------ */
.fx-footer { position: relative; margin-top: 0; padding: 64px 0 32px; border-top: 1px solid var(--fx-line-soft); background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)); font-size: 15px; }
.fx-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .fx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-footer__marca { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .fx-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .fx-footer__marca { grid-column: auto; } }
.fx-footer__marca p { margin-top: 14px; max-width: 34ch; color: var(--fx-ink-3); }
.fx-footer__marca .fx-btn { margin-top: 20px; }
.fx-footer h2 { font-size: 13px !important; font-weight: 600; letter-spacing: .06em !important; text-transform: uppercase; color: var(--fx-ink-3) !important; margin-bottom: 12px !important; }
.fx-footer ul { list-style: none; display: grid; gap: 0; }
.fx-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fx-ink-2); }
.fx-footer ul a:hover { color: #fff; }
.fx-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--fx-line-soft); color: var(--fx-ink-3); font-size: 14px; }
.fx-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fx-footer__legal ul a { min-height: 44px; color: var(--fx-ink-3); }
.fx-footer__legal ul a:hover { color: #fff; }

/* 404 */
.fx-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--fx-header-h) + 48px); padding-bottom: 64px; }
.fx-404__num { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(236, 130, 40, .7); }

/* 16. Movimiento reducido -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.fx *, body.fx *::before, body.fx *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .fx-card--enlace:hover { transform: none; }
  .fx-hero__rombo .cubes, .fx-hero__rombo .cube-wrap { animation: none !important; }
  .fx-hero__rombo .cubes { transform: rotateX(56deg) rotateZ(-36deg); }
}

/* Ajustes */
.fx-badge { font-style: normal; }
body.fx figure.fx-mock, body.fx figure.fx-panel, body.fx figure.fx-movil { margin: 0; }
.fx-tabla-wrap, .fx-tabla th, .fx-tabla td { position: relative; }
@media (max-width: 479px) { .fx-tabla { font-size: 14px; } .fx-tabla th, .fx-tabla td { padding: 12px 10px; } }
.fx-barra { grid-template-columns: 92px minmax(0, 1fr) 64px; }
.fx-barra b { text-align: right; }

/* Manifiesto de la home: tipografía grande con las claves en naranja. */
.fx-manifiesto { padding: clamp(80px, 13vw, 180px) 0; }
.fx-manifiesto__in { max-width: 1080px; }
.fx-manifiesto [data-fx-manifiesto] {
  margin: 0;
  font: 700 clamp(32px, 5.4vw, 72px)/1.08 "Onest", system-ui, sans-serif;
  letter-spacing: -.035em; color: #fff; text-wrap: balance;
}
.fx-manifiesto .fx-clave { color: var(--fx-acento); }
.fx-manifiesto .fx-eyebrow { margin-bottom: 28px; }

/* 17. Capturas reales de la app ------------------------------------------- */
/* Capturas de pantalla reales de app.facturales.es (datos de ejemplo) en un marco de navegador o de teléfono.
   Sustituyen a las maquetas HTML del apartado 9 en las páginas rediseñadas. */
.fx-captura { position: relative; margin: 0; }
.fx-captura__marco {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  background: #0c0806;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .04) inset, 0 60px 120px -50px rgba(0, 0, 0, .95), 0 40px 140px -70px rgba(236, 130, 40, .5);
}
.fx-captura__barra { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fx-captura__barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.fx-captura__barra span { margin-inline: auto; transform: translateX(-24px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 16px; border-radius: var(--fx-r-full); background: rgba(255, 255, 255, .06); font-size: 12px; line-height: 1.4; color: var(--fx-ink-3); }
.fx-captura img { display: block; width: 100%; height: auto; background: #0c0806; }
.fx-captura figcaption, .fx-pie-captura { margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--fx-ink-3); text-align: center; }
@media (max-width: 559px) { .fx-captura__marco { border-radius: 12px; } .fx-captura__barra { height: 26px; padding: 0 10px; } .fx-captura__barra i { width: 7px; height: 7px; } .fx-captura__barra span { display: none; } }

/* Teléfono con captura móvil */
.fx-telefono { position: relative; margin: 0; width: 264px; max-width: 100%; padding: 8px; border-radius: 46px; background: linear-gradient(150deg, #2b2320, #0d0907 60%); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 50px 100px -40px rgba(0, 0, 0, .95), 0 30px 100px -60px rgba(236, 130, 40, .55), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fx-telefono__pantalla { position: relative; overflow: hidden; border-radius: 38px; background: #020100; aspect-ratio: 390 / 844; }
.fx-telefono__pantalla img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fx-telefono figcaption { position: absolute; top: 100%; left: -20px; right: -20px; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--fx-ink-3); text-align: center; }
.fx-telefono:has(figcaption) { margin-bottom: 40px; }

/* Escritorio o teléfono según el ancho (dirección de arte: en móvil, la captura móvil) */
.fx-adaptable > .fx-solo-estrecho { display: none; margin-inline: auto; }
@media (max-width: 699px) {
  .fx-adaptable > .fx-solo-ancho { display: none; }
  .fx-adaptable > .fx-solo-estrecho { display: block; }
}

/* Escaparate del hero: captura grande del panel con el teléfono superpuesto */
.fx-hero--escaparate { padding-bottom: 32px; }
.fx-hero--escaparate .fx-hero__texto { max-width: 920px; margin-inline: auto; text-align: center; }
.fx-hero--escaparate .fx-hero__texto h1 { max-width: 18ch; margin-inline: auto; }
.fx-hero--escaparate .fx-hero__texto .fx-lead { margin-inline: auto; max-width: 64ch; }
.fx-hero--escaparate .fx-acciones, .fx-hero--escaparate .fx-hero__micro { justify-content: center; }
/* Hero con el rombo: el cubo 3D animado de la web anterior (marcado idéntico; sus estilos y animaciones siguen en
   main.css: .cubes-wrapper, .cubes, .cube…). Texto a la izquierda y rombo a la derecha; en móvil, el rombo bajo el texto. */
.fx-hero--rombo .fx-hero__grid { gap: 0; }
.fx-hero--rombo .fx-hero__texto { max-width: none; margin-inline: 0; text-align: left; }
.fx-hero--rombo .fx-hero__texto h1 { max-width: 15ch; margin-inline: 0; }
.fx-hero--rombo .fx-hero__texto .fx-lead { max-width: 56ch; margin-inline: 0; }
.fx-hero--rombo .fx-acciones, .fx-hero--rombo .fx-hero__micro { justify-content: flex-start; }
@media (min-width: 1024px) { .fx-hero--rombo .fx-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; } }
.fx-hero__rombo { position: relative; display: flex; justify-content: center; pointer-events: none; }
.fx-hero__rombo::before {
  content: ""; position: absolute; inset: 12% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 130, 40, .32), rgba(198, 97, 33, .1) 60%, rgba(2, 1, 0, 0));
  filter: blur(24px);
}
.fx-hero__rombo .cubes-wrapper { height: clamp(250px, 46vmin, 480px); }
.fx-escaparate { position: relative; margin-top: 56px; }
@media (min-width: 1024px) { .fx-escaparate { margin-top: 72px; } }
.fx-escaparate::before {
  content: ""; position: absolute; inset: 6% 8% auto; height: 70%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 130, 40, .42), rgba(198, 97, 33, .16) 55%, rgba(2, 1, 0, 0));
  filter: blur(30px);
}
.fx-escaparate__movil { position: absolute; right: 2%; bottom: -7%; width: clamp(150px, 17vw, 236px); transform: rotate(4deg); }
.fx-escaparate__movil .fx-telefono { width: 100%; padding: 6px; border-radius: 36px; }
.fx-escaparate__movil .fx-telefono__pantalla { border-radius: 30px; }
@media (max-width: 699px) { .fx-escaparate__movil { display: none; } .fx-escaparate { margin-top: 40px; } .fx-escaparate .fx-telefono { width: 272px; } }

/* Mosaico de novedades */
.fx-bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .fx-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .fx-bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .fx-bento > :nth-child(2), .fx-bento > :nth-child(3) { grid-column: span 2; }
  .fx-bento > :nth-child(4) { grid-column: span 3; }
  .fx-bento > :nth-child(5) { grid-column: span 3; }
}
.fx-bento__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  padding: 26px 26px 0; border: 1px solid var(--fx-line); border-radius: var(--fx-r-lg);
  background: radial-gradient(ellipse 90% 60% at 100% 0, rgba(198, 97, 33, .2), rgba(2, 1, 0, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  color: inherit;
  transition: border-color var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease);
}
a.fx-bento__card:hover { border-color: rgba(236, 130, 40, .55); transform: translateY(-2px); }
@media (min-width: 1024px) { .fx-bento__card { padding: 32px 32px 0; } }
.fx-bento__card h3 { margin-top: 14px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); letter-spacing: -.025em; }
.fx-bento__card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--fx-ink-2); max-width: 52ch; }
.fx-bento__card .fx-enlace { margin-top: 6px; }
.fx-bento__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.fx-bento__chips li { padding: 5px 12px; border-radius: var(--fx-r-full); border: 1px solid var(--fx-line); background: var(--fx-surface); font-size: 13.5px; color: var(--fx-ink-2); }
/* La captura ocupa todo el alto libre de la tarjeta (sin huecos cuando la fila es más alta que el texto). */
.fx-bento__img { position: relative; display: flex; flex-direction: column; flex: 1 0 auto; padding-top: 24px; }
.fx-bento__img > div {
  position: relative; flex: 1 0 auto; overflow: hidden; min-height: var(--alto, 240px); border: 1px solid rgba(255, 255, 255, .13); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 -20px 60px -30px rgba(236, 130, 40, .45), 0 30px 60px -30px rgba(0, 0, 0, .9);
  background: #0c0806;
}
.fx-bento__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, left top); }
.fx-bento > :nth-child(1) .fx-bento__img > div { --alto: clamp(260px, 32vw, 470px); }
.fx-bento__card--pronto { padding-bottom: 26px; border-style: dashed; border-color: rgba(255, 255, 255, .22); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); }
@media (min-width: 1024px) { .fx-bento__card--pronto { padding-bottom: 32px; } }

/* Recorrido por la suite (pestañas accesibles) */
.fx-tour__lista { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-inline: auto; padding: 4px; overflow-x: auto; border: 1px solid var(--fx-line); border-radius: var(--fx-r-full); background: var(--fx-surface); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fx-tour__lista::-webkit-scrollbar { display: none; }
.fx-tour__tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--fx-r-full);
  background: transparent; color: var(--fx-ink-2); font: 600 15px/1.2 var(--fx-font); white-space: nowrap; cursor: pointer;
  transition: background-color var(--fx-dur) var(--fx-ease), color var(--fx-dur) var(--fx-ease);
}
.fx-tour__tab .fx-ic { width: 17px; height: 17px; }
.fx-tour__tab:hover { color: #fff; background: var(--fx-surface-2); }
.fx-tour__tab[aria-selected="true"] { background: #fff; color: #17120f; }
.fx-tour__tab[aria-selected="true"] .fx-ic { color: #c2410c; }
.fx-tour__panel { display: grid; gap: 32px; margin-top: 40px; align-items: center; }
.fx-tour__panel[hidden] { display: none; }
@media (min-width: 1024px) { .fx-tour__panel { grid-template-columns: minmax(0, .78fr) minmax(0, 1.62fr); gap: 56px; margin-top: 56px; } }
.fx-tour__panel h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); letter-spacing: -.025em; }
.fx-tour__panel .fx-lista { margin-top: 22px; font-size: 16px; }
.fx-tour__panel .fx-enlace { margin-top: 14px; }
.fx-tour__panel.is-entrando .fx-adaptable { animation: fx-aparece .55s var(--fx-ease) both; }
@keyframes fx-aparece { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Galería de capturas en las páginas de módulo */
.fx-galeria { display: grid; gap: 28px; }
@media (min-width: 900px) { .fx-galeria--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.fx-galeria h3 { margin-bottom: 14px; font-size: 1.125rem; }
.fx-galeria h3 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--fx-ink-3); letter-spacing: 0; }

/* Fila de teléfonos (apps) */
.fx-telefonos { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.fx-telefonos .fx-telefono { width: 236px; flex: none; }
.fx-telefonos .fx-telefono:nth-child(2) { transform: translateY(-28px); width: 252px; }
@media (max-width: 899px) { .fx-telefonos .fx-telefono:not(:first-child) { display: none; } }

/* Insignia como enlace (novedades del hero) */
a.fx-badge { transition: border-color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease); min-height: 32px; }
a.fx-badge:hover { border-color: rgba(236, 130, 40, .7); background: rgba(236, 130, 40, .22); }
a.fx-badge .fx-ic:last-child { transition: transform var(--fx-dur) var(--fx-ease); }
a.fx-badge:hover .fx-ic:last-child { transform: translateX(2px); }

/* Aparición suave al bajar (solo con JS y sin «reducir movimiento») */
.fx-anim [data-fx-revela] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--fx-ease), transform .8s var(--fx-ease); transition-delay: var(--retraso, 0ms); }
.fx-anim [data-fx-revela].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-anim [data-fx-revela] { opacity: 1; transform: none; }
  .fx-tour__panel.is-entrando .fx-adaptable { animation: none; }
}

/* Hero de páginas de módulo con captura real debajo del texto */
.fx-pagehero--captura { padding-bottom: 24px; }
.fx-pagehero__texto { max-width: 860px; }
.fx-pagehero__texto .fx-lead { max-width: 64ch; }
.fx-pagehero__captura { position: relative; margin-top: 48px; }
@media (min-width: 1024px) { .fx-pagehero__captura { margin-top: 64px; } }
.fx-pagehero__captura::before {
  content: ""; position: absolute; inset: 4% 10% auto; height: 70%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 130, 40, .34), rgba(198, 97, 33, .12) 55%, rgba(2, 1, 0, 0));
  filter: blur(30px);
}

/* Tarjetas de módulo con miniatura de la app (funciones.html) */
.fx-card--captura { padding-top: 12px; }
.fx-card__mini { margin: 0 -12px 18px; overflow: hidden; aspect-ratio: 2 / 1; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #0c0806; }
@media (min-width: 1024px) { .fx-card--captura { padding-top: 14px; } .fx-card__mini { margin-inline: -14px; } }
.fx-card__mini img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s var(--fx-ease); }
a.fx-card--captura:hover .fx-card__mini img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { a.fx-card--captura:hover .fx-card__mini img { transform: none; } }
.fx-card--enlace > h2 { margin-top: 16px; font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }

/* Ajustes de la revisión de diseño */
.fx-split .fx-lead + .fx-lista { margin-top: 24px; }
a.fx-badge { position: relative; }
a.fx-badge::after { content: ""; position: absolute; inset: -7px -2px; }
@media (min-width: 900px) { .fx-bento > :nth-child(5) { align-self: start; } }
.fx-bento__img--ajustada > div { flex: none; min-height: 0; aspect-ratio: var(--proporcion, 16 / 10); }
@media (max-width: 1023px) {
  .fx-tour__lista { scroll-snap-type: x proximity; }
  .fx-tour__lista.is-desborda:not(.is-final) { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .fx-tour__tab { scroll-snap-align: start; }
}

/* ═════════════════════════════════════════════════════════════════════════════════════════════
   Ajustes responsive y de experiencia (revisión 20/10/2026), por grupo de páginas.
   Cada bloque es independiente; lo compartido por todas las páginas va en «Global y cabecera».
   ═════════════════════════════════════════════════════════════════════════════════════════════ */
/* ── [A] Global, cabecera, pie y portada ── */
/* Insignias largas (p. ej. la de novedades del hero): en móvil pueden partir línea en lugar de desbordar la página
   (a 414 px la del hero ensanchaba el documento 72 px y el navegador alejaba toda la página). */
@media (max-width: 639px) { .fx-badge { white-space: normal; } }

/* Bloqueo del scroll con el menú móvil abierto también en iOS (que ignora overflow solo en body). */
html:has(body.fx-bloqueo) { overflow: hidden; }

/* Menú móvil: enlaces alineados con los títulos de grupo y, en tabletas, en columnas en vez de una lista larguísima. */
.fx-movilnav a.fx-movilnav__link { padding-inline: 0; }
.fx-movilnav__grupo + .fx-movilnav__grupo { margin-top: 8px; }
@media (min-width: 560px) {
  .fx-movilnav__grupo ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .fx-movilnav__acciones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
}
@media (min-width: 900px) { .fx-movilnav__grupo ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Teléfono en horizontal: menos alto útil, filas algo más compactas (siguen ≥ 44 px). */
@media (max-height: 520px) and (orientation: landscape) {
  .fx-movilnav { padding-top: 8px; }
  .fx-movilnav a.fx-movilnav__link { min-height: 44px; padding-block: 6px; font-size: 16px; }
}

/* Pie: en móvil, los grupos de enlaces a dos columnas (antes, una sola columna de ~1.500 px de alto);
   en tableta, los cuatro grupos en una fila bajo la marca (antes el cuarto quedaba solo en otra fila). */
.fx-footer ul a { overflow-wrap: anywhere; min-width: 44px; }
@media (min-width: 375px) and (max-width: 767px) {
  .fx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .fx-footer__marca { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .fx-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 767px) {
  .fx-footer { padding-top: 48px; }
  .fx-footer__legal { margin-top: 32px; }
}

/* Portada · novedades: en tableta (640–899 px) el mosaico pasa a dos columnas en lugar de cinco tarjetas apiladas. */
@media (min-width: 640px) and (max-width: 899px) {
  .fx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-bento > :nth-child(1), .fx-bento > :nth-child(4), .fx-bento > :nth-child(5) { grid-column: 1 / -1; }
}

/* Portada · rombo: el cubo se dimensiona en vmin (main.css); en pantallas muy grandes crecía más que su caja y lo
   tapaba la captura del escaparate. Se reduce por escalones sin tocar el marcado ni la animación. */
@media (min-width: 1200px) and (min-height: 1200px) { .fx-hero__rombo .cubes-wrapper { scale: .8; } }
@media (min-width: 1600px) and (min-height: 1600px) { .fx-hero__rombo .cubes-wrapper { scale: .62; } }

/* Teléfono en horizontal: hero más compacto para que el titular y la llamada a la acción quepan cerca del pliegue. */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023px) {
  .fx-hero { padding-top: calc(var(--fx-header-h) + 24px); }
  .fx-hero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 2.625rem); }
  .fx-hero__rombo .cubes-wrapper { height: 240px; }
  /* En horizontal hay ancho de sobra: el titular en dos líneas en lugar de cuatro, y la llamada a la acción sube al pliegue. */
  .fx-hero--rombo .fx-hero__texto h1, .fx-hero__texto h1 { max-width: 24ch; }
  .fx-hero__texto .fx-lead { margin-top: 12px; max-width: 70ch; }
  .fx-hero .fx-acciones { margin-top: 20px; }
}

/* Portada · manifiesto: a 72 px superaba al h1 de la portada (64 px) e invertía la jerarquía en escritorio. */
.fx-manifiesto [data-fx-manifiesto] { font-size: clamp(32px, 5.4vw, 56px); max-width: 1080px; }
/* ...y el bloque, centrado en una caja de 1080 px, arrancaba ~84 px a la derecha del resto de secciones en 1440 px:
   se alinea con la rejilla de la página (el texto sigue limitado a 1080 px). */
.fx-manifiesto__in { max-width: calc(var(--fx-max) + 2 * var(--fx-gutter)); }

/* Tarjetas de «icono + título + texto» (portada · Seguridad, Funciones · Además, Precios · Incluido en todos los
   planes). En móvil, icono y título en una fila y el texto debajo (cuatro o nueve tarjetas de ~210 px apiladas eran
   media pantalla de scroll de más); ver el mismo patrón en las páginas de módulo [C]. */
@media (max-width: 639px) {
  #seguridad .fx-grid > .fx-card, .fx-ademas > .fx-card, .fx-seccion[aria-labelledby="incluido-t"] .fx-grid > .fx-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px 18px 20px;
  }
  #seguridad .fx-grid > .fx-card > .fx-icono, .fx-ademas > .fx-card > .fx-icono, .fx-seccion[aria-labelledby="incluido-t"] .fx-grid > .fx-card > .fx-icono { grid-column: 1; grid-row: 1; }
  #seguridad .fx-grid > .fx-card > h3, .fx-ademas > .fx-card > h3, .fx-seccion[aria-labelledby="incluido-t"] .fx-grid > .fx-card > h3 { grid-column: 2; grid-row: 1; margin-top: 0; }
  #seguridad .fx-grid > .fx-card > p, .fx-ademas > .fx-card > p, .fx-seccion[aria-labelledby="incluido-t"] .fx-grid > .fx-card > p { grid-column: 1 / -1; margin-top: 12px; }
  #seguridad .fx-grid, .fx-ademas, .fx-seccion[aria-labelledby="incluido-t"] .fx-grid { gap: 12px; }
}
/* Escritorio (4 columnas): los títulos de dos líneas («Verificación en dos pasos») desalineaban el texto de sus vecinas;
   cada tarjeta comparte las tres filas (icono, título, texto) de la rejilla. */
@media (min-width: 1200px) {
  @supports (grid-template-rows: subgrid) {
    #seguridad .fx-grid--4, .fx-ademas { grid-template-rows: auto auto 1fr; row-gap: 0; }
    #seguridad .fx-grid--4 > .fx-card, .fx-ademas > .fx-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    #seguridad .fx-grid--4 > .fx-card > .fx-icono, .fx-ademas > .fx-card > .fx-icono { align-self: start; justify-self: start; }
  }
}
/* fin [A] */

/* ── [B] Precios, funciones, FAQ, contacto, sobre nosotros y 404 ── */
/* Precios · tarjetas de plan. Con tres columnas, precio, nota, botón y lista quedan a la misma altura en las tres
   tarjetas aunque una descripción ocupe dos líneas (subgrid: cada tarjeta comparte las 6 filas de la rejilla). */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .fx-planes--alineados .fx-plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .fx-planes--alineados .fx-plan__desc { align-self: start; }
  }
}
/* En tableta (una tarjeta por fila) la tarjeta se aprovecha a lo ancho: precio y botón a la izquierda, lista a la derecha. */
@media (min-width: 640px) and (max-width: 899px) {
  .fx-planes--alineados .fx-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: 32px; }
  .fx-planes--alineados .fx-plan > * { grid-column: 1; }
  .fx-planes--alineados .fx-plan > .fx-lista { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; padding: 4px 0 4px 32px; border-top: 0; border-left: 1px solid var(--fx-line-soft); }
  .fx-planes--alineados .fx-plan .fx-btn { align-self: start; }
}

/* Precios · «Incluido en todos los planes»: nueve tarjetas; en dos columnas (tableta) la última quedaba sola en la fila. */
@media (min-width: 640px) and (max-width: 1023px) {
  .fx-seccion[aria-labelledby="incluido-t"] .fx-grid--3 > .fx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Precios · comparativa. En escritorio, columnas de plan del mismo ancho. */
.fx-tabla--planes { table-layout: fixed; }
.fx-tabla--planes thead th:first-child { width: 40%; }
/* En móvil la tabla de 4 columnas no cabe (a 320 px se cortaba «Ilimitado»): cada función ocupa su propia línea y
   debajo van los tres valores, alineados con la cabecera de planes, que se queda fija bajo el menú al desplazarse. */
@media (max-width: 559px) {
  .fx-tabla-wrap--planes { overflow: visible; }
  .fx-tabla--planes, .fx-tabla--planes thead, .fx-tabla--planes tbody { display: block; }
  .fx-tabla--planes tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--fx-line-soft); }
  .fx-tabla--planes tbody tr:last-child { border-bottom: 0; }
  .fx-tabla--planes th, .fx-tabla--planes td { border-bottom: 0; }
  .fx-tabla--planes thead { position: sticky; top: var(--fx-header-h); z-index: 2; border-radius: var(--fx-r-lg) var(--fx-r-lg) 0 0; background: var(--fx-surface-solid); }
  .fx-tabla--planes thead tr { border-bottom-color: var(--fx-line); }
  .fx-tabla--planes thead th { padding: 14px 6px; background: transparent; text-align: center; }
  .fx-tabla--planes thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fx-tabla--planes tbody th[scope="row"], .fx-tabla--planes .fx-tabla__grupo th { grid-column: 1 / -1; text-align: left; }
  .fx-tabla--planes tbody th[scope="row"] { padding: 14px 16px 2px; }
  .fx-tabla--planes .fx-tabla__grupo th { padding: 18px 16px 8px; }
  .fx-tabla--planes td { padding: 6px 6px 14px; font-size: 14px; }
}

/* Funciones · rejilla de módulos: el décimo módulo quedaba solo en la última fila; con 3 columnas ocupa la fila
   entera en horizontal (captura a la izquierda, texto a la derecha). */
@media (min-width: 1024px) {
  .fx-modulos > .fx-card--captura:last-child:nth-child(3n+1) {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto auto auto 1fr; column-gap: 40px; align-items: start; padding: 14px 28px 14px 14px;
  }
  .fx-modulos > .fx-card--captura:last-child:nth-child(3n+1) > * { grid-column: 2; }
  .fx-modulos > .fx-card--captura:last-child:nth-child(3n+1) > .fx-card__mini { grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .fx-modulos > .fx-card--captura:last-child:nth-child(3n+1) > .fx-card__top { padding-top: 14px; }
}

/* Funciones · «Además»: entre 1024 y 1199 px, cuatro columnas dejaban textos de 3–4 palabras por línea; 2 × 2. */
@media (min-width: 1024px) and (max-width: 1199px) { .fx-ademas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ · índice de temas bajo la entradilla (saltos a cada grupo). */
.fx-faq-temas { margin-top: 28px; }
.fx-faq-temas ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fx-faq-temas a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--fx-line); border-radius: var(--fx-r-full); background: var(--fx-surface);
  color: var(--fx-ink-2); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: border-color var(--fx-dur) var(--fx-ease), color var(--fx-dur) var(--fx-ease), background-color var(--fx-dur) var(--fx-ease);
}
.fx-faq-temas a:hover { color: #fff; border-color: rgba(236, 130, 40, .5); background: var(--fx-surface-2); }
/* En móvil, una sola fila desplazable de borde a borde (en vez de 5 filas de botones); el difuminado de la derecha y
   el tema cortado indican que hay más. */
@media (max-width: 639px) {
  .fx-faq-temas { margin-inline: calc(-1 * var(--fx-gutter)); }
  .fx-faq-temas ul {
    flex-wrap: nowrap; overflow-x: auto; padding: 4px var(--fx-gutter); scroll-padding-inline: var(--fx-gutter);
    scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .fx-faq-temas ul::-webkit-scrollbar { display: none; }
  .fx-faq-temas li { flex: none; }
  .fx-faq-temas a { padding-inline: 14px; font-size: 14.5px; white-space: nowrap; }
}

/* Contacto · formulario. Los campos van en dos columnas solo si el propio formulario es ancho (en escritorio la
   tarjeta es estrecha y «Motivo» se cortaba); select con flecha propia; casilla y envío con objetivo táctil amplio. */
.fx-form--contacto { container-type: inline-size; }
.fx-form--contacto .fx-form__fila { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) { .fx-form--contacto .fx-form__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-form--contacto select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.fx-form--contacto .fx-check { align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
/* Casilla: se ve de 24 px pero su objetivo táctil es de 44 × 44 px (los márgenes negativos conservan la maquetación). */
.fx-form--contacto .fx-check input {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin: -10px -4px -10px -10px; border-radius: 12px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='6' fill='%23ffffff' fill-opacity='.06' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1.5'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.fx-form--contacto .fx-check input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6' fill='%23EC8228'/%3E%3Cpath d='M18 7.5 10 15.5l-4-4' fill='none' stroke='%231a0d02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fx-form--contacto .fx-check input[aria-invalid="true"], .fx-form--contacto .fx-check input:focus-visible { outline: 2px solid var(--fx-acento); outline-offset: -8px; }
.fx-form--contacto .fx-check a { position: relative; display: inline-block; padding-block: 12px; margin-block: -12px; }
.fx-form--contacto .fx-check a::after { content: ""; position: absolute; inset: -12px -4px; }
@media (forced-colors: active) {
  .fx-form--contacto .fx-check input { -webkit-appearance: auto; appearance: auto; width: 24px; height: 24px; margin: 0; }
}
@media (max-width: 479px) { .fx-form--contacto .fx-form__enviar .fx-btn { width: 100%; } }

/* Sobre nosotros · titular largo: algo más contenido en móvil y con líneas equilibradas. */
.fx-pagehero--sobre h1 { max-width: 22ch; text-wrap: balance; }
@media (max-width: 479px) { .fx-pagehero--sobre h1 { font-size: clamp(1.875rem, 1.2rem + 3.4vw, 2.25rem); } }

/* Teléfono en horizontal: cabeceras de página y 404 más compactas (en Precios el conmutador mensual/anual quedaba
   bajo el pliegue y en la 404 los botones también). */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023px) {
  .fx-pagehero { padding-top: calc(var(--fx-header-h) + 24px); padding-bottom: 32px; }
  .fx-pagehero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 2.625rem); }
  .fx-pagehero .fx-lead { margin-top: 12px; }
  .fx-404 { min-height: 0; padding-top: calc(var(--fx-header-h) + 20px); padding-bottom: 40px; }
  .fx-404__num { font-size: 4.5rem; }
}
/* Funciones en el móvil (≤ 559 px): las 10 tarjetas de módulo pasan a filas compactas, miniatura cuadrada a la
   izquierda (recorte de la captura) y título, texto y «Ver más» a la derecha; el icono sobra junto a la miniatura.
   Antes eran ~415 px por tarjeta (unos 4.000 px de scroll); ahora ~130 px. */
@media (max-width: 559px) {
  .fx-modulos { gap: 10px; }
  .fx-modulos > .fx-card--captura { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 12px; }
  .fx-modulos > .fx-card--captura > * { grid-column: 2; }
  .fx-modulos > .fx-card--captura > .fx-card__mini { grid-column: 1; grid-row: 1 / span 4; margin: 0; aspect-ratio: 1 / 1; align-self: stretch; max-height: 132px; }
  .fx-modulos > .fx-card--captura > .fx-card__top { display: none; }
  .fx-modulos > .fx-card--captura h2 { margin: 2px 0 4px; font-size: 1.0625rem; line-height: 1.3; }
  .fx-modulos > .fx-card--captura p { margin: 0 0 6px; font-size: .9375rem; line-height: 1.45; }
  .fx-modulos > .fx-card--captura .fx-enlace { min-height: 32px; }
}
/* fin [B] */

/* ── [C] Páginas de módulos ── */
/* body.fx-pagina-modulo: las 10 páginas de módulo (facturas, presupuestos, bancos, cobros, gastos, impuestos, panel,
   clientes, inventario y diseño de factura). Todo va acotado a esa clase para no tocar la portada ni otras páginas. */

/* Hero adaptable: cada captura va en un <picture> que solo descarga la imagen en su rango de anchos; sin caja propia. */
.fx-pagina-modulo .fx-adaptable picture { display: contents; }

/* Barra del navegador: la ruta cabe entera también en columnas estrechas (a 1024 px se cortaba con «…»). */
.fx-pagina-modulo .fx-captura__barra span { max-width: calc(100% - 96px); }

/* Rejillas de tarjetas en tableta: si la última tarjeta queda sola en su fila de dos columnas, ocupa la fila entera;
   «Funciona mejor junto a» (3 enlaces) pasa a tres columnas desde 768 px para no dejar una huérfana. */
@media (min-width: 640px) and (max-width: 1023px) {
  .fx-pagina-modulo .fx-grid--3 > .fx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fx-pagina-modulo .fx-grid--3:has(> .fx-card--enlace) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-pagina-modulo .fx-grid--3:has(> .fx-card--enlace) > .fx-card:last-child { grid-column: auto; }
}

@media (max-width: 639px) {
  /* Tarjetas de funciones y relacionadas en móvil: icono y título en una fila y el texto debajo, en vez de tarjetas
     altísimas apiladas (en Facturación eran 11 pantallas de scroll). */
  .fx-pagina-modulo .fx-grid--3 > .fx-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 18px 18px 20px;
  }
  .fx-pagina-modulo .fx-grid--3 > .fx-card > .fx-card__top { display: contents; }
  .fx-pagina-modulo .fx-grid--3 > .fx-card .fx-icono { grid-column: 1; grid-row: 1; }
  .fx-pagina-modulo .fx-grid--3 > .fx-card .fx-badge { grid-column: 3; grid-row: 1; }
  .fx-pagina-modulo .fx-grid--3 > .fx-card > h3 { grid-column: 2; grid-row: 1; margin-top: 0; }
  .fx-pagina-modulo .fx-grid--3 > .fx-card > p,
  .fx-pagina-modulo .fx-grid--3 > .fx-card > .fx-enlace { grid-column: 1 / -1; }
  .fx-pagina-modulo .fx-grid--3 > .fx-card > p { margin-top: 12px; }
  .fx-pagina-modulo .fx-grid { gap: 12px; }
}

/* «Cómo funciona»: hasta 899 px, en una columna con número y título en la misma línea (entre 768 y 899 px las tres
   columnas dejaban unos 130 px de texto por tarjeta). */
@media (max-width: 899px) {
  .fx-pagina-modulo .fx-pasos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fx-pagina-modulo .fx-paso { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 20px; }
  .fx-pagina-modulo .fx-paso h3 { margin-top: 0; }
  .fx-pagina-modulo .fx-paso p { grid-column: 1 / -1; }
}

@media (max-width: 559px) {
  /* Capturas de escritorio sin versión móvil: a 343 px la pantalla entera quedaba a un 27 % y era ilegible. En móvil se
     muestra un detalle ampliado (zona principal, sin el menú lateral de la app); --fx-foco ajusta el encuadre. */
  .fx-pagina-modulo .fx-captura img { aspect-ratio: 1 / 1; object-fit: cover; object-position: var(--fx-foco, 16% 0); }
}
/* fin [C] */

/* ── [D] Blog y artículos ── */
/* Cabecera del artículo: titular proporcionado en 320 px y en móvil horizontal */
.fx-articulo-cab h1 { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem); line-height: 1.1 !important; max-width: none; overflow-wrap: break-word; }
@media (max-width: 359px) { .fx-articulo-cab h1 { font-size: 1.625rem; } }
@media (orientation: landscape) and (max-height: 520px) {
  .fx-articulo-cab { padding-top: calc(var(--fx-header-h) + 24px); padding-bottom: 32px; }
  .fx-articulo-cab h1 { font-size: 1.875rem; max-width: 32ch; }
  .fx-articulo-cab .fx-meta { margin-top: 14px; }
}
.fx-articulo-cab .fx-meta li { white-space: nowrap; }

/* Medida de lectura ≈ 70 caracteres por línea (cabecera alineada con el texto) */
.fx-articulo-cab > .fx-wrap--lectura,
.fx-claro > .fx-prosa { max-width: calc(640px + 2 * var(--fx-gutter)); }
.fx-prosa { overflow-wrap: break-word; }
.fx-prosa :is(p, li) { text-wrap: pretty; }
.fx-prosa :is(h2, h3) { scroll-margin-top: calc(var(--fx-header-h) + 16px); }
@media (max-width: 767px) {
  .fx-prosa { line-height: 1.7; }
  .fx-prosa h2 { margin-top: 1.9em; font-size: 1.375rem; }
}
.fx-prosa :is(img, svg, video, iframe) { max-width: 100%; height: auto; }
.fx-prosa figure { margin-inline: 0; }
.fx-prosa figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--fx-ink-3); }
.fx-prosa code { padding: .1em .35em; border-radius: 6px; background: var(--fx-surface-2); font-size: .9em; overflow-wrap: anywhere; }
.fx-prosa pre { overflow-x: auto; max-width: 100%; }
.fx-prosa .fx-tabla-wrap { overflow-x: auto; max-width: 100%; }
.fx-prosa .fx-tabla-wrap table { min-width: 520px; }
.fx-prosa a:hover { text-decoration-thickness: 2px; }

/* Destacados y listas dentro de ellos */
.fx-prosa :is(blockquote, .fx-destacado) > * + * { margin-top: .6em; }
.fx-prosa :is(blockquote, .fx-destacado) :is(ul, ol) { padding-left: 1.2em; }
@media (max-width: 479px) { .fx-prosa :is(blockquote, .fx-destacado) { padding: 16px 18px; } }

/* Número de paso como antetítulo («Paso 3») */
.fx-prosa__paso { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-acento-claro); }

/* Llamada final del artículo */
.fx-prosa__cta h2 { text-wrap: balance; }
@media (max-width: 479px) { .fx-prosa__cta { padding: 24px 20px; } }

/* Tarjetas de blog: toda la tarjeta es clicable, fecha sin partir, títulos sin viudas */
.fx-post__portada span { text-wrap: balance; }
.fx-post__meta time { white-space: nowrap; }
.fx-post__cuerpo :is(h2, h3) { text-wrap: pretty; }
.fx-post__cuerpo :is(h2, h3) a { color: inherit; text-decoration: none; }
.fx-post__cuerpo :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fx-post { transition: border-color var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease); }
.fx-post:hover { border-color: rgba(236, 130, 40, .5); }
.fx-post:hover :is(h2, h3) a { text-decoration: underline; text-decoration-color: rgba(236, 130, 40, .7); text-underline-offset: 4px; }
.fx-post:hover .fx-enlace .fx-ic { transform: translateX(3px); }
@supports selector(:has(*)) {
  .fx-post:has(:is(h2, h3) a:focus-visible) { outline: 2px solid var(--fx-acento); outline-offset: 3px; }
  body.fx .fx-post__cuerpo :is(h2, h3) a:focus-visible { outline: none !important; box-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) { .fx-post:hover { transform: translateY(-2px); } }

/* Índice del blog en tableta: el artículo más reciente ocupa toda la fila (sin huérfana) */
@media (min-width: 640px) and (max-width: 1023px) {
  .fx-grid--3 > .fx-post:first-child:nth-last-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .fx-grid--3 > .fx-post:first-child:nth-last-child(odd) .fx-post__portada { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--fx-line-soft); }
  .fx-grid--3 > .fx-post:first-child:nth-last-child(odd) .fx-post__cuerpo { justify-content: center; padding: 28px; }
}
/* «Sigue leyendo» en escritorio: portadas menos altas */
@media (min-width: 1024px) { .fx-grid--2 > .fx-post .fx-post__portada { aspect-ratio: 5 / 2; } }
/* fin [D] */
