/* ==========================================================================
   FX Sistemas — sistema de diseño v2
   Bootstrap 5.3.2 (CDN) + este archivo. Sin jQuery, sin Swiper, sin Font Awesome.
   Referencia estética: theme "Next Level Mentors" (Poppins, cards redondeadas,
   mucho aire, hero con stats) — con la paleta de marca de FX Sistemas.
   ========================================================================== */

:root {
  /* --- marca (no tocar sin decisión de marca) --- */
  --fx-accent: #f57c00;
  --fx-accent-600: #e06f00;
  --fx-accent-700: #c25f00;
  --fx-accent-soft: #fff4e6;
  --fx-dark: #121820;

  /* --- neutros --- */
  --fx-bg: #ffffff;
  --fx-bg-soft: #f7f8fa;
  --fx-text: #121820;
  --fx-muted: #5b6673;
  --fx-border: #e6e9ee;

  /* --- gradiente de marca (reemplaza los multicolor del theme) --- */
  --fx-grad: linear-gradient(135deg, #f57c00 0%, #ff9e2c 55%, #ffb74d 100%);
  --fx-grad-dark: linear-gradient(140deg, #121820 0%, #1c2634 60%, #243244 100%);

  /* --- forma --- */
  --fx-radius: 18px;
  --fx-radius-sm: 12px;
  --fx-radius-lg: 28px;
  --fx-shadow: 0 1px 2px rgba(18, 24, 32, .04), 0 8px 24px rgba(18, 24, 32, .06);
  --fx-shadow-lg: 0 2px 4px rgba(18, 24, 32, .04), 0 24px 48px rgba(18, 24, 32, .10);

  /* --- tipografía fluida --- */
  --fx-h1: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  --fx-h2: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  --fx-h3: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  --fx-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* el nav es sticky: sin scroll-padding, los anclas #Soluciones/#Proyectos/etc.
   quedarían tapados al llegar desde las landings */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fx-text);
  background: var(--fx-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;   /* tracking negativo: lo que separa un titular 2026 de uno de 2015 */
}

h1 { font-size: var(--fx-h1); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fx-h2); }
h3 { font-size: var(--fx-h3); }

.fx-lead { font-size: var(--fx-lead); color: var(--fx-muted); }
.fx-muted { color: var(--fx-muted); }
.fx-accent { color: var(--fx-accent); }
.fx-grad-text {
  background: var(--fx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* etiqueta de sección (el "eyebrow" del theme) */
.fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fx-accent-700);
  background: var(--fx-accent-soft);
  border-radius: 999px;
  padding: .4rem .9rem;
  margin-bottom: 1.25rem;
}

.fx-section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.fx-section-soft { background: var(--fx-bg-soft); }

/* --------------------------------------------------------- honeypot
   NO BORRAR. Oculta los campos trampa name/phone que inc/sm.php exige.
   Si esta regla desaparece, el formulario deja de enviarse.               */
.hdd { display: none; }

/* --------------------------------------------------------- navbar */
.fx-nav {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.fx-nav.is-stuck {
  border-bottom-color: var(--fx-border);
  box-shadow: 0 4px 20px rgba(18, 24, 32, .05);
}
.fx-nav .navbar-brand img { height: 30px; width: auto; }
.fx-nav .nav-link {
  font-weight: 500;
  color: var(--fx-text);
  padding: .5rem .9rem;
  border-radius: var(--fx-radius-sm);
}
.fx-nav .nav-link:hover,
.fx-nav .nav-link:focus-visible { color: var(--fx-accent-700); background: var(--fx-accent-soft); }

/* --------------------------------------------------------- botones */
.fx-btn {
  --_bg: var(--fx-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--_bg);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.fx-btn:hover {
  --_bg: var(--fx-accent-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 124, 0, .28);
}
.fx-btn-ghost {
  background: transparent;
  color: var(--fx-text);
  border-color: var(--fx-border);
}
.fx-btn-ghost:hover {
  background: #fff;
  color: var(--fx-accent-700);
  border-color: var(--fx-accent);
  box-shadow: var(--fx-shadow);
}
.fx-btn-lg { padding: .95rem 1.9rem; font-size: 1.0625rem; }

/* --------------------------------------------------------- hero */
.fx-hero {
  position: relative;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
.fx-hero::before {   /* halo de marca, sustituye los gradientes multicolor del theme */
  content: '';
  position: absolute;
  inset: -30% 45% auto -10%;
  height: 70vmax;
  background: radial-gradient(circle at 30% 40%, rgba(245, 124, 0, .13), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.fx-hero-media {
  position: relative;
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  box-shadow: var(--fx-shadow-lg);
  aspect-ratio: 4 / 5;
}
.fx-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* tarjeta flotante de datos sobre la imagen */
.fx-float-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-radius: var(--fx-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--fx-shadow);
}

/* stats del hero */
.fx-stats { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 2.75rem); }
.fx-stat-num {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--fx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-stat-label { font-size: .875rem; color: var(--fx-muted); margin-top: .25rem; }

/* --------------------------------------------------------- cards */
.fx-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1.75rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fx-card:hover {
  transform: translateY(-4px);
  border-color: #d9dee6;
  box-shadow: var(--fx-shadow-lg);
}
.fx-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--fx-accent-soft);
  color: var(--fx-accent-700);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* card de caso, con imagen */
.fx-case {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.fx-case:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); }
.fx-case-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fx-bg-soft); }
.fx-case-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.fx-case:hover .fx-case-media img { transform: scale(1.04); }
.fx-case-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.fx-tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fx-accent-700);
  background: var(--fx-accent-soft);
  border-radius: 999px;
  padding: .3rem .7rem;
}

/* lista con tilde */
.fx-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.fx-check li { display: flex; gap: .75rem; align-items: flex-start; }
.fx-check i { color: var(--fx-accent); font-size: 1.15rem; line-height: 1.4; flex: none; }

/* logos de clientes — SIN USO en la home actual: la sección se quitó porque no
   había confirmación de que los logos de img/partners/ fueran clientes reales.
   Se conserva la regla por si más adelante se suman logos verificados.        */
.fx-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.fx-logos img {
  height: 30px;
  width: auto;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.fx-logos img:hover { opacity: 1; filter: none; }

/* --------------------------------------------------------- contacto */
.fx-contact-panel {
  background: var(--fx-grad-dark);
  color: #fff;
  border-radius: var(--fx-radius-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
}
.fx-contact-panel a { color: #fff; }
.fx-form-card {
  background: #fff;
  border-radius: var(--fx-radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--fx-shadow-lg);
  border: 1px solid var(--fx-border);
  /* IMPRESCINDIBLE: dentro de .fx-lp-hero se hereda color:#fff y el texto de
     la tarjeta queda blanco sobre blanco (invisible). No quitar. */
  color: var(--fx-text);
}
.fx-form-card .form-label { font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.fx-form-card .form-control {
  border-radius: var(--fx-radius-sm);
  border-color: var(--fx-border);
  padding: .75rem 1rem;
}
.fx-form-card .form-control:focus {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 .22rem rgba(245, 124, 0, .16);
}
.fx-req { color: var(--fx-accent); font-weight: 600; font-size: .8125rem; }

/* --------------------------------------------------------- footer */
.fx-footer { background: var(--fx-dark); color: rgba(255, 255, 255, .72); }
.fx-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.fx-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.fx-footer a:hover { color: var(--fx-accent); }
.fx-footer img.fx-footer-logo { height: 34px; width: auto; }
.fx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
  padding: 1.5rem 0;
}
.fx-social {
  display: flex;
  gap: .6rem;
}
.fx-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: 1.1rem;
}
.fx-social a:hover { background: var(--fx-accent); color: #fff; }

/* --------------------------------------------------------- animación al scroll
   Con scroll-driven animations: sin JS, sin AOS, sin wow.js.
   Los navegadores que no la soportan simplemente ven el contenido visible.   */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fx-reveal {
      animation: fx-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes fx-fade-up {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* --------------------------------------------------------- alertas del form */
.fx-alert {
  border-radius: var(--fx-radius-sm);
  padding: .9rem 1.1rem;
  font-size: .9375rem;
  margin-top: 1rem;
}
.fx-alert-ok { background: #e8f6ec; color: #17603a; border: 1px solid #bfe4cc; }
.fx-alert-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }

/* ==========================================================================
   LANDINGS DE ATERRIZAJE
   Páginas de un solo objetivo: el formulario va arriba, a la vista, y el nav
   se reduce para no fugar el tráfico que se pagó o se ganó posicionando.
   ========================================================================== */

/* nav mínimo: logo + un solo contacto */
.fx-lp-nav {
  background: transparent;
  padding: 1.25rem 0;
}
.fx-lp-nav .navbar-brand img { height: 30px; width: auto; }

/* hero oscuro, con el gradiente de marca en lugar de foto */
.fx-lp-hero {
  position: relative;
  background: var(--fx-grad-dark);
  color: #fff;
  overflow: hidden;
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.fx-lp-hero::before {
  content: '';
  position: absolute;
  inset: -25% -10% auto 35%;
  height: 65vmax;
  background: radial-gradient(circle at 60% 40%, rgba(245, 124, 0, .22), transparent 62%);
  pointer-events: none;
}
.fx-lp-hero > * { position: relative; }
.fx-lp-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.1vw, 3.25rem);
  margin-bottom: 1.25rem;
}
.fx-lp-hero .fx-lead { color: rgba(255, 255, 255, .78); }
.fx-lp-hero .fx-eyebrow {
  background: rgba(255, 255, 255, .1);
  color: #ffb74d;
}

/* lista de bullets del hero, sobre fondo oscuro */
.fx-lp-hero .fx-check i { color: var(--fx-accent); }
.fx-lp-hero .fx-check li { color: rgba(255, 255, 255, .82); }
.fx-lp-hero .fx-check strong { color: #fff; }

/* barra de frase bajo el hero (equivalente al banner-panel del template viejo) */
.fx-lp-bar {
  background: var(--fx-dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.1rem 0;
  color: rgba(255, 255, 255, .8);
}
.fx-lp-bar h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  color: #fff;
}

/* --------------------------------------------------------- card compacta
   Para "Otras soluciones": presente pero deliberadamente menos protagónica
   que las cards de los rubros principales.                                  */
.fx-mini {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fx-mini:hover {
  color: inherit;
  border-color: #d9dee6;
  box-shadow: var(--fx-shadow);
}
.fx-mini > i {
  flex: none;
  font-size: 1.35rem;
  color: var(--fx-accent);
  line-height: 1.3;
}
.fx-mini h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin: 0 0 .2rem;
  letter-spacing: -.01em;
}
.fx-mini p {
  font-size: .875rem;
  color: var(--fx-muted);
  margin: 0;
}
.fx-mini-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--fx-accent-700);
  display: inline-block;
  margin-top: .35rem;
}

/* --------------------------------------------------------- cards de landing
   Card entera clickeable que lleva a una landing de sector. El cover puede ser
   una foto real (.fx-lp-cover img) o un gráfico de marca (.fx-cover-graph),
   para no meter foto de stock cuando no hay una que represente el tema.     */
.fx-lp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fx-lp-card:hover {
  transform: translateY(-4px);
  border-color: #d9dee6;
  box-shadow: var(--fx-shadow-lg);
  color: inherit;
}
.fx-lp-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--fx-bg-soft);
}

/* badge sobre la foto: agrega el dato clave que una foto no puede comunicar */
.fx-cover-badge {
  position: absolute;
  left: .9rem;
  top: .9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(18, 24, 32, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 124, 0, .55);
  color: #ffd9a8;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.fx-cover-badge i { font-size: .7rem; color: var(--fx-accent); }

/* degradado para que el badge se lea sobre cualquier foto */
.fx-lp-cover::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(18, 24, 32, .3), transparent);
  z-index: 1;
  pointer-events: none;
}
.fx-lp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.fx-lp-card:hover .fx-lp-cover img { transform: scale(1.04); }

/* figura ancha dentro de una sección: no es cover de card, no lleva hover ni
   recorte. El alto se deja libre para no deformar la foto. */
.fx-figure {
  margin: 0;
  border-radius: var(--fx-radius);
  overflow: hidden;
  box-shadow: var(--fx-shadow-lg);
  background: var(--fx-bg-soft);
}
.fx-figure img { display: block; width: 100%; height: auto; }
.fx-figure figcaption {
  padding: .8rem 1.1rem;
  background: #fff;
  border-top: 1px solid var(--fx-border);
  font-size: .8125rem;
  color: var(--fx-muted);
}

/* ------------------------------------------- carrusel de capturas
   Las pantallas del sistema en una sola pieza. Usa el carousel de
   Bootstrap, que ya está cargado: no suma ninguna librería.
   Alto fijo por aspect-ratio para que no salte al cambiar de slide. */
.fx-carousel {
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  overflow: hidden;
  box-shadow: var(--fx-shadow-lg);
  background: #fff;
}
.fx-carousel .carousel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 566;
  object-fit: contain;
  object-position: top center;
  background: var(--fx-bg-soft);
}
.fx-carousel-cap {
  padding: .9rem 3.4rem;
  min-height: 5.2rem;
  background: #fff;
  border-top: 1px solid var(--fx-border);
  font-size: .875rem;
  color: var(--fx-muted);
  text-align: center;
}
.fx-carousel-cap strong { color: var(--fx-text); }

/* las flechas de Bootstrap son blancas: sobre capturas claras no se ven */
.fx-carousel .carousel-control-prev,
.fx-carousel .carousel-control-next {
  width: 3.75rem;
  bottom: 5.2rem;          /* no invaden el pie ni los indicadores */
  opacity: 1;
}
.fx-carousel .carousel-control-prev-icon,
.fx-carousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(18, 24, 32, .55);
  background-size: 1.05rem;
  transition: background-color .2s ease;
}
.fx-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.fx-carousel .carousel-control-next:hover .carousel-control-next-icon,
.fx-carousel .carousel-control-prev:focus-visible .carousel-control-prev-icon,
.fx-carousel .carousel-control-next:focus-visible .carousel-control-next-icon {
  background-color: var(--fx-accent);
}

/* indicadores fuera de la imagen: encima tapan contenido de la captura */
.fx-carousel .carousel-indicators {
  position: static;
  margin: 0;
  padding: .8rem 0;
  background: #fff;
  border-top: 1px solid var(--fx-border);
}
.fx-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  margin: 0 .3rem;
  background-color: #c8cfd9;
  opacity: 1;
  transition: background-color .2s ease;
}
.fx-carousel .carousel-indicators .active { background-color: var(--fx-accent); }

@media (max-width: 575.98px) {
  .fx-carousel-cap { padding: .8rem 1rem; font-size: .8125rem; }
  .fx-carousel .carousel-control-prev,
  .fx-carousel .carousel-control-next { width: 2.75rem; }
  .fx-carousel .carousel-control-prev-icon,
  .fx-carousel .carousel-control-next-icon { width: 2rem; height: 2rem; background-size: .85rem; }
}

/* cover gráfico: alternativa a la foto, con el gradiente de marca */
.fx-cover-graph {
  height: 100%;
  background: var(--fx-grad-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.fx-cover-graph::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto 40%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 124, 0, .28), transparent 65%);
}
.fx-cover-graph > * { position: relative; }
.fx-cover-graph i { font-size: 2rem; color: var(--fx-accent); }
.fx-cover-graph .fx-cover-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245, 124, 0, .18);
  border: 1px solid rgba(245, 124, 0, .45);
  color: #ffd9a8;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.fx-cover-graph .fx-cover-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.fx-lp-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.fx-lp-card-link {
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 600;
  color: var(--fx-accent-700);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.fx-lp-card:hover .fx-lp-card-link i { transform: translateX(3px); }
.fx-lp-card-link i { transition: transform .2s ease; }

/* --------------------------------------------------------- selector de módulos
   El visitante marca qué necesita. Cumple dos funciones: comunica el alcance
   del sistema y califica el lead antes de la primera llamada.              */
/* dos columnas para que 9 opciones no estiren el formulario */
.fx-modulos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}
@media (max-width: 480px) {
  .fx-modulos { grid-template-columns: 1fr; }
}

.fx-modulo {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .5rem .6rem;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  cursor: pointer;
  color: var(--fx-text);
  transition: border-color .15s ease, background-color .15s ease;
}
.fx-modulo:hover { border-color: #cfd6e0; background: var(--fx-bg-soft); }

.fx-modulo input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: .15rem;
  accent-color: var(--fx-accent);
  cursor: pointer;
}
.fx-modulo strong {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fx-text);
}
.fx-modulo small {
  display: block;
  font-size: .6875rem;
  color: var(--fx-muted);
  line-height: 1.3;
  margin-top: .05rem;
}
/* el módulo marcado se destaca */
.fx-modulo:has(input:checked) {
  border-color: var(--fx-accent);
  background: var(--fx-accent-soft);
}

/* --------------------------------------------------------- bloque MVP */
.fx-mvp {
  background: var(--fx-grad-dark);
  color: #fff;
  border-radius: var(--fx-radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
}
.fx-mvp h2 { color: #fff; }
.fx-mvp p { color: rgba(255, 255, 255, .78); }
.fx-paso {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.fx-paso-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 124, 0, .18);
  border: 1px solid rgba(245, 124, 0, .45);
  color: #ffb74d;
  font-weight: 700;
  font-size: .9375rem;
}
.fx-paso h3 { font-size: 1rem; color: #fff; margin: 0 0 .25rem; }
.fx-paso p { font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------- bloque normativo
   Para explicar una obligación legal: tiene que leerse como información, no
   como publicidad. De ahí el tono sobrio y la nota al pie.                  */
.fx-norma {
  background: var(--fx-accent-soft);
  border: 1px solid #f6dcb8;
  border-radius: var(--fx-radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
}
.fx-norma-req {
  background: #fff;
  border-radius: var(--fx-radius);
  padding: 1.35rem 1.5rem;
  height: 100%;
  border: 1px solid #f2e3cd;
}
.fx-norma-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fx-accent);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: .9rem;
}
.fx-norma-req h3 { font-size: 1rem; margin-bottom: .5rem; }
.fx-norma-req p { color: var(--fx-muted); font-size: .9375rem; margin: 0; }
.fx-norma-nota {
  font-size: .8125rem;
  color: var(--fx-muted);
  border-top: 1px solid #f2e3cd;
  padding-top: 1rem;
  margin: 1.5rem 0 0;
}

/* aviso de vigencia */
.fx-vigencia {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(245, 124, 0, .16);
  border: 1px solid rgba(245, 124, 0, .4);
  color: #ffd9a8;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------- caso destacado
   Card ancha, sin foto: el contenido es el protagonista. Se usa para el caso
   más completo de la sección.                                              */
.fx-case-hero {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  box-shadow: var(--fx-shadow);
  position: relative;
  overflow: hidden;
}
.fx-case-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--fx-grad);
}
.fx-case-hero h3 { font-size: var(--fx-h3); margin-bottom: .75rem; }

/* lista de capacidades del caso destacado */
.fx-feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}
.fx-feat li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9375rem;
}
.fx-feat i {
  color: var(--fx-accent);
  font-size: 1rem;
  flex: none;
  line-height: 1.55;
}
.fx-feat strong { font-weight: 600; }

/* recuadro de contexto dentro del caso destacado */
.fx-context {
  background: var(--fx-bg-soft);
  border-radius: var(--fx-radius-sm);
  padding: 1.1rem 1.25rem;
  font-size: .9375rem;
  color: var(--fx-muted);
}
.fx-context strong { color: var(--fx-text); }

/* --------------------------------------------------------- dolores
   Cards de la sección "el problema": cita reconocible + explicación.        */
.fx-pain {
  height: 100%;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-left: 4px solid var(--fx-accent);
  border-radius: var(--fx-radius-sm) var(--fx-radius) var(--fx-radius) var(--fx-radius-sm);
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
}
.fx-pain-quote {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.fx-pain-quote i { color: var(--fx-accent); font-size: 1.1rem; flex: none; line-height: 1.5; }
.fx-pain p { color: var(--fx-muted); margin: 0; font-size: .9375rem; }

/* puente del problema a la solución */
.fx-bridge {
  background: var(--fx-grad-dark);
  color: #fff;
  border-radius: var(--fx-radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.fx-bridge p { margin: 0; font-size: var(--fx-lead); font-weight: 500; }

/* --------------------------------------------------------- antes / ahora
   Va dentro de .fx-case-body. Es el bloque que más convierte: muestra el
   cambio concreto, no una descripción del producto.                        */
.fx-ba {
  display: grid;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--fx-border);
  font-size: .875rem;
}
.fx-ba-row { display: flex; gap: .6rem; align-items: flex-start; }
.fx-ba-label {
  flex: none;
  width: 3.6rem;
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding-top: .18rem;
}
.fx-ba-before .fx-ba-label { color: #98a2b1; }
.fx-ba-before span:last-child { color: var(--fx-muted); text-decoration: line-through; text-decoration-color: #cbd2dc; }
.fx-ba-after .fx-ba-label { color: var(--fx-accent-700); }
.fx-ba-after span:last-child { color: var(--fx-text); font-weight: 500; }

/* --------------------------------------------------------- objeciones (accordion) */
.fx-qa .accordion-item {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.fx-qa .accordion-button {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  padding: 1.15rem 1.35rem;
  background: #fff;
  color: var(--fx-text);
  box-shadow: none;
}
.fx-qa .accordion-button:not(.collapsed) { background: var(--fx-accent-soft); color: var(--fx-accent-700); }
.fx-qa .accordion-button:focus { box-shadow: 0 0 0 .22rem rgba(245, 124, 0, .16); }
.fx-qa .accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f57c00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}
.fx-qa .accordion-body { padding: 0 1.35rem 1.35rem; color: var(--fx-muted); }

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   Verde de WhatsApp a propósito: es un código visual que se reconoce sin leer.
   z-index 1040 = por encima de todo el contenido, por debajo de los modales
   de Bootstrap (1055), para no taparlos si alguna vez se usan.
   ========================================================================== */
.fx-wa {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(18, 24, 32, .22), 0 2px 4px rgba(18, 24, 32, .12);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.fx-wa:hover,
.fx-wa:focus-visible {
  background: #1fba59;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .42);
}
.fx-wa i { pointer-events: none; }

/* anillo que late, para que se note sin ser molesto */
.fx-wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .fx-wa::after { animation: fx-wa-pulse 2.6s ease-out infinite; }
  @keyframes fx-wa-pulse {
    0%   { transform: scale(1);    opacity: .8; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
  }
}
.fx-wa:hover::after { animation: none; opacity: 0; }

/* en pantallas chicas, algo más discreto para no tapar contenido */
@media (max-width: 575px) {
  .fx-wa {
    right: .85rem;
    bottom: .85rem;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }
}

/* --------------------------------------------------------- accesibilidad */
:where(a, button, input, textarea, .fx-btn):focus-visible {
  outline: 3px solid rgba(245, 124, 0, .45);
  outline-offset: 2px;
}
.fx-skip {
  position: absolute;
  left: -9999px;
}
.fx-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2000;
  background: #fff;
  padding: .75rem 1rem;
  border-radius: var(--fx-radius-sm);
  box-shadow: var(--fx-shadow-lg);
}
