/* ==========================================================================
   Mentorix Labs — sistema de diseño
   Paleta derivada del logo: azul marino profundo, celeste luminoso, azul eléctrico.
   Para ajustar la identidad, editar solo los tokens de :root.
   ========================================================================== */

:root {
  /* Superficies */
  --bg:         #070d18;
  --bg-2:       #0b1220;
  --surface:    #101a2e;
  --surface-2:  #15223b;
  --line:       rgba(143, 190, 255, .16);
  --line-strong:rgba(143, 190, 255, .32);

  /* Texto */
  --text:       #e8f0fb;
  --text-soft:  #c3d3e8;
  --muted:      #98adc7;
  --brand-soft: #a9c8e8;   /* color del texto del logo */

  /* Acentos */
  --cyan:       #5ec8ff;
  --blue:       #4c7dff;
  --blue-deep:  #2f4fd8;
  --ok:         #4fe0a8;
  --danger:     #ff7a8a;

  --grad-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --grad-text:  linear-gradient(120deg, #bfeaff 0%, var(--cyan) 40%, var(--blue) 100%);

  /* Tipografía */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h3: 1.2rem;

  /* Espaciado y forma */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;

  --shadow-glow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(76, 125, 255, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-soft);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(76, 125, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(94, 200, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cyan); color: #04101f; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn-primary { background: var(--grad-brand); color: #04101f; box-shadow: 0 10px 30px -10px rgba(76, 125, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(94, 200, 255, .75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: .65rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 24, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(7, 13, 24, .82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none !important; }
.brand img { height: 44px; width: auto; border-radius: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; letter-spacing: .28em; font-size: .95rem; color: var(--brand-soft); }
.brand-sub  { font-weight: 500; letter-spacing: .18em; font-size: .62rem; color: var(--muted); text-transform: none; margin-top: .2rem; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--text-soft); font-weight: 500; font-size: .96rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; padding: .55rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem var(--gutter) 1.5rem;
    background: rgba(7, 13, 24, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav a:not(.btn) { display: block; padding: .8rem .25rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: linear-gradient(180deg, rgba(16, 26, 46, .55), rgba(11, 18, 32, .2)); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad-brand); }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--text-soft); max-width: 58ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--ok); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-visual::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(closest-side, rgba(94, 200, 255, .35), rgba(76, 125, 255, .15) 55%, transparent 75%);
  filter: blur(20px); z-index: -1;
  animation: pulse 7s ease-in-out infinite;
}
.hero-visual img { border-radius: 28px; box-shadow: var(--shadow-glow); width: 100%; height: auto; }

@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(100%, 460px); }
}

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem;
  border-radius: 14px; color: var(--cyan);
  background: radial-gradient(circle at 30% 20%, rgba(94, 200, 255, .22), rgba(76, 125, 255, .08));
  border: 1px solid var(--line);
}
.card-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.card-title { margin-bottom: .6rem; }
.card-text { color: var(--muted); font-size: .98rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: .5rem; }
.card-link .icon { transition: transform .25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }
.product-card { display: flex; flex-direction: column; }
.product-card .card-link { margin-top: auto; padding-top: .75rem; }
.product-card[hidden] { display: none; }

/* ---------- Recorrido ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.25rem 1.25rem; border-top: 1px solid var(--line-strong); counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; font-weight: 700; font-size: .85rem; letter-spacing: .12em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 999px; color: var(--text-soft);
  background: transparent; border: 1px solid var(--line-strong);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--cyan); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--grad-brand); color: #04101f; border-color: transparent; font-weight: 600; }

/* ---------- Ficha de producto ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span[aria-hidden] { margin-inline: .5rem; }
.product-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: start; }
.product-badge { display: inline-flex; align-items: center; gap: .6rem; color: var(--cyan); font-weight: 600; margin-bottom: 1rem; }
.product-side { position: sticky; top: 6rem; }
.panel { padding: 1.5rem; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.check-list { display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { color: var(--ok); flex: none; margin-top: .2rem; }
.feature-list { display: grid; gap: 1.1rem; }
.feature { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(16, 26, 46, .5); }
.feature h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) {
  .product-hero, .two-col { grid-template-columns: 1fr; }
  .product-side { position: static; }
}

/* ---------- CTA ---------- */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 28px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(76, 125, 255, .35), transparent 70%),
    radial-gradient(500px 300px at 10% 120%, rgba(94, 200, 255, .22), transparent 70%),
    var(--surface);
}
.cta-banner h2 { margin-bottom: .4em; }
.cta-banner p { max-width: 52ch; margin-inline: auto; color: var(--text-soft); margin-bottom: 1.75rem; }

/* ---------- Formularios ---------- */
.form-wrap { max-width: 760px; }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; color: var(--text); font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(7, 13, 24, .7); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 200, 255, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field-check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.field-check label { font-weight: 400; color: var(--text-soft); font-size: .92rem; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid; }
.alert-error { color: #ffd2d8; background: rgba(255, 122, 138, .1); border-color: rgba(255, 122, 138, .4); }
.alert-ok { color: #c9f7e3; background: rgba(79, 224, 168, .1); border-color: rgba(79, 224, 168, .4); }

/* ---------- Texto legal ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); background: rgba(7, 13, 24, .6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 1rem 0 1.25rem; }
.footer-title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer li a { color: var(--text-soft); }
.site-footer li a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Consentimiento ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 460px;
  padding: 1.25rem 1.4rem; background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1rem; margin-bottom: .4rem; }
.consent p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Ficha de producto: imagen, resumen y notas ---------- */
.two-col-media { align-items: center; }
.product-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-glow); background: var(--surface); }
.product-shot img { width: 100%; height: auto; display: block; }
.grid-2 > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
.summary-strip {
  margin: 2rem 0 .75rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan);
  background: rgba(16, 26, 46, .6); color: var(--text); font-size: 1.05rem;
}
.note { color: var(--muted); font-size: .9rem; margin: 0; }
