/* =====================================================================
   bixio · Landing Page
   Hoja de estilos principal — Mobile First
   ---------------------------------------------------------------------
   👉 PERSONALIZACIÓN RÁPIDA: modificá las variables en :root de abajo
      (colores, fuentes, radios, ancho máximo) y toda la web se adapta.
   ===================================================================== */

/* ------------------------- 1. VARIABLES / THEME ------------------------- */
:root {
  /* Colores de marca (gradiente principal) */
  --brand-1: #6D5AE6;      /* Violeta / indigo */
  --brand-2: #22D3EE;      /* Cyan */
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));

  /* Fondos */
  --ink: #0B1020;          /* Navy oscuro (hero, footer) */
  --ink-soft: #121a36;     /* Superficie oscura */
  --bg: #ffffff;           /* Fondo claro base */
  --bg-soft: #f5f7fc;      /* Fondo claro alternativo */
  --surface: #ffffff;      /* Tarjetas */

  /* Texto */
  --text: #1a1f36;         /* Texto principal (fondos claros) */
  --text-muted: #5b6478;   /* Texto secundario */
  --text-on-dark: #eef1fb; /* Texto sobre fondo oscuro */
  --text-on-dark-muted: #a6b0d0;

  /* Utilitarios */
  --border: #e6e9f2;
  --success: #22c55e;
  --danger: #ef4444;

  /* Tipografía */
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font-body);
  --font-logo: 'Montserrat', var(--font-head);   /* cuerpo del wordmark (ixio) */

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(16, 24, 64, 0.06);
  --shadow-md: 0 18px 40px rgba(16, 24, 64, 0.10);
  --shadow-brand: 0 14px 34px rgba(109, 90, 230, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------- 2. RESET / BASE ------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.section { padding-block: 72px; }

/* Texto con gradiente */
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow (etiqueta pequeña sobre títulos) */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--brand-1); }

/* ------------------------- 3. BOTONES ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, opacity 0.2s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(109, 90, 230, 0.45); }
.btn--ghost { background: rgba(255,255,255,0.06); color: var(--text-on-dark); border: 1px solid rgba(255,255,255,0.22); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--brand-1); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ------------------------- 4. HEADER / NAV ------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 14px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  padding-block: 10px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { height: 56px; width: auto; max-width: none; flex-shrink: 0; }
.logo__wordmark-img { height: 34px; width: auto; max-width: none; flex-shrink: 0; }
.logo--footer .logo__mark { height: 46px; }
.logo--footer .logo__wordmark-img { height: 28px; }
.logo__lockup { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo__text {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;                 /* "bix" en blanco */
}
.logo__accent { color: var(--brand-2); }
.logo__b { font-family: 'Comfortaa', var(--font-logo); }   /* la "b" redonda, estilo "9 al revés" */
.logo__tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cdd6f4;              /* claro y legible sobre fondo oscuro */
  white-space: nowrap;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav__cta { margin-left: 8px; }

/* Botón hamburguesa */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- 5. HERO ------------------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, #1c2550 0%, var(--ink) 55%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;      /* centra el contenido verticalmente */
  padding-top: 120px;
  padding-bottom: 70px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(109,90,230,0.45), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__trust li { font-size: 0.9rem; color: var(--text-on-dark-muted); }
.hero__trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }

/* Visual del hero (glass card con código) */
.hero__visual { position: relative; display: flex; justify-content: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.8; }
.orb--1 { width: 90px; height: 90px; background: var(--brand-2); top: -20px; left: 10%; opacity: 0.5; }
.orb--2 { width: 140px; height: 140px; background: var(--brand-1); bottom: -30px; right: 6%; opacity: 0.45; }
.glass-card {
  position: relative;
  width: min(440px, 100%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  padding: 18px;
}
.glass-card__bar { display: flex; gap: 7px; margin-bottom: 14px; }
.glass-card__bar span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.glass-card__bar span:nth-child(1) { background: #ff5f57; }
.glass-card__bar span:nth-child(2) { background: #febc2e; }
.glass-card__bar span:nth-child(3) { background: #28c840; }
.code { font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; line-height: 1.7; color: #cdd6ff; overflow-x: auto; }
.c-key { color: #c792ea; } .c-var { color: #82aaff; } .c-str { color: #c3e88d; }
.c-bool { color: #f78c6c; } .c-fn { color: #ffcb6b; }

/* ------------------------- 6. VALUE BAR ------------------------- */
.valuebar { background: var(--ink-soft); color: var(--text-on-dark-muted); }
.valuebar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding-block: 20px; text-align: center; }
.valuebar__item { font-weight: 600; font-size: 0.92rem; }

/* ------------------------- 7. SECTION HEAD ------------------------- */
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.section__lead { color: var(--text-muted); font-size: 1.08rem; }

/* ------------------------- 8. SERVICIOS (CARDS) ------------------------- */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,90,230,0.14), rgba(34,211,238,0.14));
  color: var(--brand-1);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__text { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 18px; }
.card__link { font-weight: 700; color: var(--brand-1); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s; }
.card__link:hover { gap: 12px; }

/* Card CTA (última) */
.card--cta {
  background: var(--brand-grad);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}
.card--cta::before { display: none; }
.card--cta .card__text { color: rgba(255,255,255,0.9); }
.card--cta .btn--primary { background: #fff; color: var(--brand-1); box-shadow: none; margin-top: 8px; }

/* ------------------------- 9. NOSOTROS ------------------------- */
.about__inner { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.about__text { color: var(--text-muted); margin-bottom: 16px; font-size: 1.04rem; }
.about__values { display: grid; gap: 16px; margin-top: 26px; }
.about__values li { display: flex; gap: 12px; align-items: flex-start; }
.about__values .dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--brand-grad); flex-shrink: 0; }
.about__values strong { color: var(--text); }

.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.4rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--text-muted); font-size: 0.9rem; }

/* ------------------------- 10. PROCESO ------------------------- */
.process { background: var(--ink); color: var(--text-on-dark); }
.process .section__lead { color: var(--text-on-dark-muted); }
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.step:hover { transform: translateY(-5px); background: rgba(255,255,255,0.07); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__title { font-size: 1.2rem; margin: 8px 0; }
.step__text { color: var(--text-on-dark-muted); font-size: 0.96rem; }

/* ------------------------- 11. CTA BAND ------------------------- */
.cta-band { padding-block: 70px; background: var(--brand-grad); color: #fff; text-align: center; }
.cta-band__inner { max-width: 680px; margin-inline: auto; }
.cta-band__title { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 12px; }
.cta-band__text { font-size: 1.1rem; opacity: 0.95; margin-bottom: 28px; }

/* ------------------------- 12. CONTACTO ------------------------- */
.contact { background: var(--bg-soft); }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact__lead { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 28px; }
.contact__list { display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact__list svg { width: 22px; height: 22px; color: var(--brand-1); flex-shrink: 0; }
.contact__list a:hover { color: var(--brand-1); }

/* Formulario */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(109,90,230,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__error { display: block; color: var(--danger); font-size: 0.82rem; margin-top: 5px; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }

.form__note { text-align: center; color: var(--text-muted); font-size: 0.86rem; margin-top: 14px; }
.form__success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #15803d;
  font-weight: 600;
  text-align: center;
}

/* ------------------------- 13. FOOTER ------------------------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
.footer__tagline { margin-top: 14px; max-width: 280px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.footer__nav h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer__nav a { display: block; padding: 4px 0; transition: color 0.2s; font-size: 0.94rem; }
.footer__nav a:hover { color: var(--brand-2); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ------------------------- 14. WHATSAPP FLOTANTE ------------------------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,211,102,0.5);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ------------------------- 15. ANIMACIÓN REVEAL ------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =====================================================================
   16. RESPONSIVE — Breakpoints (Mobile First → escala hacia arriba)
   ===================================================================== */

/* Móvil: menú desplegable */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    inset: 100% 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(11,16,32,0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 12px 14px; }
  .nav__cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* Tablet */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .about__stats { gap: 20px; }
}

/* Desktop */
@media (min-width: 960px) {
  .section { padding-block: 96px; }
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about__inner { grid-template-columns: 1.1fr 0.9fr; }
  .contact__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__inner { grid-template-columns: 1.2fr 2fr; }
}
