/* ==========================================================================
   Futura Software — hoja de estilos única
   Sin build: CSS plano, variables nativas, sin dependencias.
   ========================================================================== */

:root {
  /* Color */
  --navy-900: #0a0a3a;
  --navy-800: #131360;
  --navy-700: #1e1e7d;
  --blue-600: #004fff;
  --blue-500: #2f6bff;
  --cyan-400: #00c1f8;
  --ink: #101828;
  --body: #46556b;
  --muted: #6b7a90;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e4e9f2;

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(10, 10, 58, .18);
  --header-h: 72px;
}

/* --------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

/* ------------------------------------------------------------- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: .7rem;
}
.lead { font-size: 1.12rem; color: var(--body); }
.text-muted { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------ Botones ---- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-bd: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border); }
.btn--ghost:hover { --btn-bd: var(--blue-500); --btn-fg: var(--blue-600); }
.btn--onDark { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.btn--onDark:hover { --btn-bg: rgba(255,255,255,.16); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- Header ---- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 38px; width: auto; }
.footer .brand__logo { height: 42px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: .96rem; font-weight: 500;
  color: var(--body); text-decoration: none;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--blue-600); background: rgba(0, 79, 255, .08); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- Hero ---- */
.hero {
  position: relative; overflow: hidden; color: #e8eefc;
  background:
    radial-gradient(1000px 500px at 82% -10%, rgba(0, 193, 248, .20), transparent 60%),
    radial-gradient(760px 420px at 8% 8%, rgba(47, 107, 255, .28), transparent 62%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero--home { padding: 104px 0 96px; }
.hero--page { padding: 74px 0 66px; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p { color: #b9c7e4; }
.hero .eyebrow { color: var(--cyan-400); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.16rem; max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.hero__meta strong { display: block; color: #fff; font-size: 1.5rem; line-height: 1.2; }
.hero__meta span { font-size: .88rem; color: #94a6c9; }
.hero-title-accent {
  background: linear-gradient(92deg, var(--cyan-400), #8ab4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Panel decorativo del hero */
.hero-panel {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-panel__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.hero-panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07); margin-bottom: 10px;
}
.hero-panel__row:last-child { margin-bottom: 0; }
.hero-panel__row b { color: #fff; font-weight: 600; font-size: .95rem; }
.hero-panel__row em { font-style: normal; color: #93a5c8; font-size: .82rem; }
.pill {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 193, 248, .14);
  color: var(--cyan-400); border: 1px solid rgba(0, 193, 248, .28); white-space: nowrap;
}
.pill--blue { background: rgba(47, 107, 255, .16); color: #9dc0ff; border-color: rgba(47, 107, 255, .3); }

/* -------------------------------------------------------------- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdaf0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 79, 255, .12), rgba(0, 193, 248, .16));
  color: var(--blue-600); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__more { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.card__more::after { content: "\2192"; transition: transform .15s ease; }
.card--link:hover .card__more::after { transform: translateX(3px); }

/* ------------------------------------------------------------ Producto --- */
.product { padding: 76px 0; border-top: 1px solid var(--border); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.product__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600);
  background: rgba(0, 79, 255, .08); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: .7rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px;
  border-radius: 50%; background-color: rgba(0, 79, 255, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* Chips de módulos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  margin: 0; font-size: .88rem; font-weight: 500; color: #2c3a52;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
}

/* ------------------------------------------------------------- Bloques --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong { display: block; font-size: 2rem; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--muted); }

.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-wall div {
  display: grid; place-items: center; text-align: center; min-height: 92px; padding: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; color: #33425c; font-size: .95rem; line-height: 1.3;
}

.steps { counter-reset: step; display: grid; gap: 26px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #00c1f8);
}
.step h3 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; }

.cta {
  color: #fff; border-radius: 22px; padding: 54px; text-align: center;
  background:
    radial-gradient(700px 340px at 80% 0%, rgba(0, 193, 248, .22), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #b9c7e4; max-width: 60ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ----------------------------------------------------------- Contacto ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14);
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .94rem; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #e9f8ef; color: #1a6b3c; border: 1px solid #bfe6cf; }
.form-status--err { background: #fdecec; color: #98211f; border: 1px solid #f5c6c4; }

.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); margin-top: 3px; }
.contact-item b { display: block; color: var(--ink); }

/* -------------------------------------------------------------- Footer --- */
.footer { background: var(--navy-900); color: #93a5c8; padding: 62px 0 28px; font-size: .95rem; }
.footer a { color: #c3d0e8; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem;
}

/* ------------------------------------------------------------ Utilidad --- */
/* La animación de entrada solo se aplica si hay JS: sin JS el contenido se ve igual. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(47, 107, 255, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------- Responsive --- */
@media (max-width: 980px) {
  .hero__grid, .split, .product__grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-4, .stat-grid, .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { order: -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px 22px 22px; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__logo { height: 32px; }
  .section { padding: 60px 0; }
  .product { padding: 54px 0; }
  .hero--home { padding: 72px 0 66px; }
  .grid-2, .grid-3, .grid-4, .stat-grid, .logo-wall, .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
