/* Marca Finnix (etapa 1, 15/11/2026). Lo que comparten TODAS las páginas: colores, letras,
   el menú, la ventana de "Probar gratis" y la barra fija del celular. Se carga último, después
   del estilo propio de cada página. Clases con prefijo fxm- / fxp- / fxb- para no chocar.
   El menú se escribe en _marca/marca.mjs; acá solo se ve. */
:root {
  --fx-navy: #0f2d52;
  --fx-azul: #0b63e5;
  --fx-azul-h: #0a56c7;
  --fx-celeste: #00b4c8;
  --fx-amarillo: #ffd23f;
  --fx-fondo: #f5f6fa;
  --fx-gris: #5b6b82;
  --fx-linea: #dfe5ef;
  --fx-noche: #061634;
  --fx-lima: #a3e635;
  --fx-titulo: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fx-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* 03/12/2026, Aleja: las etiquetas chicas parecían de máquina de escribir; ahora van en la letra del texto. */
  --fx-mono: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Un solo azul de acción: las páginas por rubro usaban otro. */
  --azul: #0b63e5;
  --azul2: #2f7bf0;
}

/* El menú queda fijo arriba: las secciones no se esconden debajo al llegar con un link. */
section[id], article[id], span[id] { scroll-margin-top: 84px; }

/* ── Botón principal ── */
.fxbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 0; background: var(--fx-azul); color: #fff !important; text-decoration: none !important;
  font: 700 15px/1 var(--fx-titulo); white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s;
}
.fxbtn:hover { background: var(--fx-azul-h); transform: translateY(-1px); }

/* ── Menú ── */
.fxm {
  --m-fondo: #fff; --m-texto: var(--fx-navy); --m-suave: var(--fx-gris); --m-linea: var(--fx-linea); --m-ix: var(--fx-celeste);
  --m-panel: #fff; --m-panel-texto: var(--fx-navy); --m-hover: #f1f5fb;
  position: sticky; top: 0; z-index: 70; background: var(--m-fondo); color: var(--m-texto);
  border-bottom: 1px solid var(--m-linea); font-family: var(--fx-titulo);
}
.fxm--noche, .fxm--urban { --m-fondo: var(--fx-noche); --m-texto: #fff; --m-suave: #a9b8d0; --m-linea: rgba(255, 255, 255, .12); --m-hover: rgba(255, 255, 255, .08); }
.fxm--urban { --m-fondo: #070b16; --m-ix: var(--fx-lima); }
.fxm, .fxp, .fxb { font-optical-sizing: auto; }
.fxm * { box-sizing: border-box; }
.fxm-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; gap: 18px; position: relative; }
@media (min-width: 640px) { .fxm-in { padding: 0 24px; } }
.fxm-logo { font: 800 28px/1 var(--fx-titulo); letter-spacing: -.045em; color: var(--m-texto) !important; text-decoration: none !important; }
.fxm-logo span { color: var(--m-ix); }
.fxm-sub { font: 700 12px/1 var(--fx-mono); letter-spacing: .12em; color: var(--m-suave); padding-left: 12px; border-left: 1px solid var(--m-linea); }
.fxm-sub b { color: var(--fx-lima); }
.fxm-ham { margin-left: auto; background: none; border: 0; color: var(--m-texto); padding: 8px; margin-right: -8px; cursor: pointer; display: none; border-radius: 10px; }
.fxm-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.fxm-der { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fxm-g { position: relative; }
.fxm-g > summary, .fxm-l {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px;
  font: 600 15px/1 var(--fx-titulo); color: var(--m-texto) !important; text-decoration: none !important; white-space: nowrap; user-select: none;
}
.fxm-g > summary::-webkit-details-marker { display: none; }
.fxm-g > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--m-suave); border-bottom: 2px solid var(--m-suave); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.fxm-g[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.fxm-g > summary:hover, .fxm-l:hover, .fxm-g[open] > summary { background: var(--m-hover); }
.fxm-ing > summary { border: 1.5px solid var(--m-linea); border-radius: 999px; padding: 11px 16px; }
.fxm-p {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 5; width: 320px; padding: 8px; display: grid; gap: 2px;
  background: var(--m-panel); border: 1px solid var(--fx-linea); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(15, 45, 82, .35);
}
.fxm-g--2 .fxm-p { width: 480px; grid-template-columns: 1fr 1fr; }
.fxm-ing .fxm-p { left: auto; right: 0; width: 250px; }
.fxm-p a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; text-decoration: none !important; color: var(--m-panel-texto) !important; }
.fxm-p a:hover { background: #f1f5fb; }
.fxm-p b { font: 700 15px/1.25 var(--fx-titulo); }
.fxm-p span { font: 400 13px/1.35 var(--fx-texto); color: var(--fx-gris); }
.fxm :focus-visible, .fxp :focus-visible, .fxb :focus-visible { outline: 3px solid var(--fx-azul); outline-offset: 2px; border-radius: 10px; }
.fxm--urban .fxm-cta { background: var(--fx-lima); color: #0b1020 !important; }
.fxm--urban .fxm-cta:hover { background: #b6f04a; }

@media (max-width: 1079px) {
  .fxm-ham { display: inline-flex; }
  .fxm-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--m-fondo); border-bottom: 1px solid var(--m-linea); box-shadow: 0 24px 40px -24px rgba(15, 45, 82, .45);
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
  }
  .fxjs .fxm-nav { display: none; }
  .fxjs .fxm.abierto .fxm-nav { display: flex; }
  .fxm-g > summary, .fxm-l { display: flex; justify-content: space-between; padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--m-linea); font-size: 17px; }
  .fxm-g > summary:hover, .fxm-l:hover, .fxm-g[open] > summary { background: none; }
  .fxm-p, .fxm-g--2 .fxm-p, .fxm-ing .fxm-p { position: static; width: auto; grid-template-columns: 1fr; border: 0; box-shadow: none; background: none; padding: 4px 0 10px; }
  .fxm-p a { color: var(--m-texto) !important; padding: 10px 12px; }
  .fxm-p a:hover { background: var(--m-hover); }
  .fxm-p span { color: var(--m-suave); }
  .fxm-der { margin: 0; flex-direction: column; align-items: stretch; gap: 0; }
  .fxm-ing > summary { border: 0; border-bottom: 1px solid var(--m-linea); border-radius: 0; padding: 15px 4px; }
  .fxm-cta { margin-top: 16px; min-height: 50px; font-size: 16px; }
}

/* ── Ventana "¿Qué querés probar?" ── */
.fxp {
  border: 0; border-radius: 22px; padding: 26px 22px 20px; width: min(460px, calc(100vw - 32px)); background: #fff; color: var(--fx-navy);
  font-family: var(--fx-texto); box-shadow: 0 40px 80px -30px rgba(6, 22, 52, .6);
}
.fxp::backdrop { background: rgba(6, 22, 52, .6); }
.fxp-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f5fb; color: var(--fx-navy); font-size: 15px; cursor: pointer; }
.fxp-t { display: block; font: 800 24px/1.15 var(--fx-titulo); letter-spacing: -.02em; padding-right: 40px; }
.fxp-b { margin: 6px 0 16px; color: var(--fx-gris); font-size: 15px; }
.fxp-op { display: grid; gap: 3px; padding: 14px 16px; margin-top: 8px; border: 1.5px solid var(--fx-linea); border-radius: 14px; text-decoration: none !important; color: var(--fx-navy) !important; transition: border-color .15s, background .15s; }
.fxp-op:hover { border-color: var(--fx-azul); background: #f5f9ff; }
.fxp-op b { font: 700 17px/1.2 var(--fx-titulo); }
.fxp-op span { font-size: 14px; color: var(--fx-gris); }
.fxp-op i { font-style: normal; font-weight: 700; font-size: 14px; color: var(--fx-azul); margin-top: 2px; }
.fxp-op--urban { background: #070b16; border-color: #070b16; color: #fff !important; }
.fxp-op--urban:hover { background: #0d1424; border-color: var(--fx-lima); }
.fxp-op--urban span { color: #a9b4c8; }
.fxp-op--urban i { color: var(--fx-lima); }
.fxp-pie { margin: 16px 0 0; font-size: 14px; color: var(--fx-gris); text-align: center; }
.fxp-pie a { color: var(--fx-azul) !important; font-weight: 600; }

/* ── Barra fija del celular ── */
.fxb, .fxb-hueco { display: none; }
@media (max-width: 899px) {
  .fxb {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--fx-linea); box-shadow: 0 -10px 30px -18px rgba(15, 45, 82, .5);
  }
  .fxb a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font: 700 16px/1 var(--fx-titulo); text-decoration: none !important; }
  .fxb-a { background: var(--fx-azul); color: #fff !important; }
  .fxb-w { background: #25d366; color: #fff !important; }
  .fxb-hueco { display: block; height: 68px; background: #0b1524; }
  /* La burbuja de WhatsApp deja su lugar a la barra. */
  .fab { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { .fxbtn, .fxm-g > summary::after, .fxp-op { transition: none; } }
