/* styles/fonts.css */
/* ==========================================================================
   Galano Grotesque autoalojada (medium, semibold, bold). Roboto y Caveat vienen de Google Fonts.
   ========================================================================== */

@font-face {
  font-family: 'Galano Grotesque';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/galano-grotesque-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Galano Grotesque';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/galano-grotesque-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Galano Grotesque';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/galano-grotesque-bold.woff2') format('woff2');
}

/* styles/tokens.css */
/* ==========================================================================
   Design tokens
   - Brand colors are constants: they never change with the theme.
   - Theme colors (--bg, --ink, ...) switch between light and dark.
   - Dark mode follows the system preference; data-theme on <html> forces one.
   ========================================================================== */

:root {
  /* Brand (constant) */
  --brand-navy: #24284d;
  --brand-coral: #ff3e46;
  --brand-blue: #3d4ee4;
  --brand-purple: #a084f1;
  --brand-lime: #e8fb8c;
  --brand-violet: #5430ef; /* logo gradient start */
  --brand-red: #ea474e; /* logo gradient end */

  /* Theme: light */
  --bg: #f4f4f6;
  --surface: #fff;
  --sunk: #eaeaf0;
  --ink: #24284d;
  --ink-2: #4e5276;
  --ink-3: #6e7294;
  --line: #dcdde7;
  --line-2: #c7c9d8;
  --coral: #ff3e46;
  --blue: #3d4ee4;
  --mint: #1fbf86;
  --panel: #24284d;
  --panel-2: #2d3260;
  --panel-ink: #f4f4f6;
  --panel-muted: #b9bcd8;
  --panel-line: #3b4072;
  --logo-ink: #24284d;
  --logo-filter: brightness(0) saturate(100%);
  --logo-op: 0.62;
  --sel: rgba(61, 78, 228, 0.18);
  --shadow: 0 1px 2px rgba(36, 40, 77, 0.06), 0 12px 32px -12px rgba(36, 40, 77, 0.18);

  /* Hero loop (isotipo with depth) */
  --loop-surface-start: #f8f8fb;
  --loop-surface-end: #e7e8f0;
  --loop-edge: #d2d4e1;
  --loop-shadow: #24284d;

  /* Typography */
  --f-display: 'Galano Grotesque', 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --r-card: 16px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

/* Boomit v2 es siempre clara: se quito el modo oscuro de la entrega. */

/* styles/base.css */
/* ==========================================================================
   Base: reset mínimo, elementos HTML y utilidades (sr-only, flush-top, only-light/only-dark).
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection {
  background: var(--sel);
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
section {
  padding-block: clamp(72px, 10vw, 136px);
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  font-size: 0.9375rem;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Utilities */
.flush-top {
  padding-top: 0;
}
.only-dark {
  display: none;
}

/* Boomit v2: menos aire entre secciones en movil (eran 72px por lado). */
@media (max-width: 640px) {
  section {
    padding-block: 56px;
  }
}

/* styles/components.css */
/* ==========================================================================
   Componentes compartidos: tipografía de títulos, botones, links, chips, tarjetas, íconos y animaciones de entrada.
   ========================================================================== */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.i {
  width: 1em;
  height: 1em;
  flex: none;
  display: block;
}
.num {
  font-variant-numeric: tabular-nums;
}
.note {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.h1 {
  font-size: clamp(2rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 58ch;
  margin-top: 20px;
  text-wrap: pretty;
}
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--h);
  padding: 0 6px 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  font: 600 1rem/1 var(--f-display);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    box-shadow 200ms ease;
}
.btn .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 220ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 1rem/1 var(--f-display);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 200ms ease;
}
.link .i {
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    box-shadow: 0 8px 24px -10px rgba(36, 40, 77, 0.55);
  }
  .btn:hover .dot {
    transform: translateX(3px);
  }
  .link:hover {
    text-decoration-color: var(--coral);
  }
  .link:hover .i {
    transform: translate(2px, -2px);
  }
}
.brand {
  display: block;
  width: 132px;
  flex: none;
}
.brand svg {
  width: 100%;
  height: auto;
  display: block;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.off {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(6px);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  color: var(--ink-2);
}
.ribbon {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.chip.hot {
  border-color: var(--brand-red);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(234, 71, 78, 0.14);
}
.si {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
}
.t-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 22px;
}
.tB {
  background: var(--brand-blue);
  color: #ffffff;
}
.tD {
  background: var(--brand-red);
  color: #ffffff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chip {
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  line-height: 1.3;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-red) 50%, var(--line-2));
    color: var(--ink);
    box-shadow: 0 8px 18px -12px rgba(36, 40, 77, 0.5);
  }
}
.chip:active {
  transform: translateY(0) scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .chip:hover {
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
  }
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  60%,
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}
@keyframes bump {
  35% {
    transform: translateY(-3px) scale(1.3);
  }
}
@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(var(--len, 280px));
    opacity: 0;
  }
}
@keyframes smdrop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(150px);
    opacity: 0;
  }
}
@keyframes rv {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes focus {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* Boomit v2: barra de progreso de lectura con el degrade de la marca. Usa
   scroll-driven animations; donde no existen, no aparece. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::after {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      z-index: 60;
      pointer-events: none;
      background: linear-gradient(90deg, var(--brand-coral), var(--brand-violet));
      transform-origin: 0 50%;
      transform: scaleX(0);
      animation: bv2-progreso linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes bv2-progreso {
  to {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Boomit v2: movimiento comun. Todo cuelga de .bv2-anim, que core.js agrega
   solo si no hay prefers-reduced-motion. Sin JS nada se oculta.
   Tiempos (transitions.dev): entrada 500-600ms con cubic-bezier(0.22, 1,
   0.36, 1), 40ms entre palabras, 60ms entre tarjetas.
   ========================================================================== */

/* Titulos palabra por palabra: suben 12px y se enfocan (texts reveal). */
.bv2-anim .bv2-palabras .bv2-p {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  filter: blur(3px);
  transition:
    opacity 500ms ease-in-out,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease-in-out;
  transition-delay: calc(var(--i, 0) * var(--paso, 40ms));
}
.bv2-anim .bv2-palabras.is-in .bv2-p {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Grupos de tarjetas que entran escalonados. */
.bv2-anim .bv2-sube {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 500ms ease-out,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.bv2-anim .is-in > .bv2-sube {
  opacity: 1;
  transform: none;
}

/* Respaldo de .rv donde no hay scroll-driven animations (Firefox). */
@supports not (animation-timeline: view()) {
  .bv2-anim .rv {
    transition:
      opacity 600ms ease-out,
      transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .bv2-anim .rv.bv2-espera {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

/* Cifras con digitos de ancho fijo: los contadores no saltan. */
.num,
[data-kpi] {
  font-variant-numeric: tabular-nums;
}

/* Contador tipo odometro (cifras de clientes). */
.odo-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: top;
}
.odo-t {
  display: block;
  transition: transform 1800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.odo-t span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* Foco visible en los campos del formulario. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Link para saltar al contenido con teclado. */
.bv2-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.bv2-skip:focus {
  left: 16px;
}

/* Grano muy sutil sobre todo el fondo: rompe lo plano del gris. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .odo-t {
    transition: none;
  }
}

/* Imagen propia en lugar de una ilustracion (bloques de WordPress, data-vis). */
.bng-con-imagen {
  padding: 0;
  overflow: hidden;
}
.bng-vis {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Opciones de sección elegidas en WordPress (boomit-nueva-generacion). */
.bng-fondo-blanco {
  background: #fff !important;
}
.bng-fondo-gris {
  background: var(--sunk) !important;
}
.bng-fondo-lavanda {
  background: #f3f0ff !important;
}
section.bng-espacio-compacto {
  padding-block: clamp(40px, 6vw, 80px);
}
section.bng-espacio-amplio {
  padding-block: clamp(96px, 13vw, 176px);
}
@media (max-width: 640px) {
  section.bng-espacio-compacto {
    padding-block: 36px;
  }
  section.bng-espacio-amplio {
    padding-block: 80px;
  }
  .bng-solo-escritorio {
    display: none !important;
  }
}
@media (min-width: 641px) {
  .bng-solo-movil {
    display: none !important;
  }
}
