/* =============================================================================
   B2Market — hoja de estilos del sitio comercial
   Sin frameworks. Tokens + utilidades + componentes. Mobile-first.
   ============================================================================= */

@import url("../fonts/fonts.css");

:root {
  /* Marca */
  --ink: #0b1310;
  --ink-2: #14201a;
  --ink-3: #1d2c24;
  --paper: #f6f8f4;
  --white: #ffffff;
  --green: #73b35c;          /* verde de marca B2Market / Ofimar */
  --green-ink: #3f7a2e;
  --green-deep: #173d22;
  --lime: #b9f04a;
  --lime-soft: #e9f9c9;
  --mint: #dff3e2;
  --amber: #f0b429;
  --coral: #ff6b57;
  --sky: #4aa8ff;

  /* Texto */
  --text: #16211b;
  --text-2: #4b5a51;
  --text-3: #7c8a82;
  --text-on-dark: #eef4ee;
  --text-on-dark-2: #a9b8ae;

  /* Superficies */
  --surface: #ffffff;
  --surface-2: #f0f4ee;
  --line: #dfe6dd;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Tipografía */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Métrica */
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 19, 16, .06), 0 12px 40px -12px rgba(11, 19, 16, .18);
  --shadow-lg: 0 30px 80px -30px rgba(11, 19, 16, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: 320ms;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

.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;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
  transition: top var(--t);
}
.skip:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--text-on-dark-2); }
.section--alt { background: var(--surface-2); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--green); border-radius: 2px; }
.section--dark .eyebrow { color: var(--lime); }
.section--dark .eyebrow::before { background: var(--lime); }
.h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mark {
  background: linear-gradient(120deg, var(--lime) 0%, #9be36a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .mark { background-image: linear-gradient(120deg, var(--lime), #7ddc8c); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head.center { margin-inline: auto; }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 30px -10px rgba(11, 19, 16, .6); }
.btn--primary:hover { background: var(--ink-3); box-shadow: 0 16px 36px -12px rgba(11, 19, 16, .6); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(185, 240, 74, .7); }
.btn--lime:hover { background: #c8f56a; }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost, .hero .btn--ghost, .cta .btn--ghost { border-color: rgba(255, 255, 255, .25); color: var(--text-on-dark); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta .btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(246, 248, 244, .78);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 248, 244, .92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: .7rem; color: var(--text-3); letter-spacing: .1em; margin-left: .2rem; }
.nav__links { display: none; gap: 1.6rem; font-weight: 600; font-size: .95rem; }
.nav__links a { position: relative; padding: .3rem 0; color: var(--text-2); transition: color var(--t); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
}
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--paper);
  padding: 1.5rem var(--gutter); flex-direction: column; gap: .25rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-size: 1.35rem; font-weight: 700; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(185, 240, 74, .22), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(95, 167, 63, .28), transparent 60%),
    radial-gradient(30% 30% at 50% 50%, rgba(74, 168, 255, .07), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero .wrap { position: relative; }
.hero__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero .lead { color: var(--text-on-dark-2); margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .5rem;
  border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  font-size: .85rem; color: var(--text-on-dark-2); margin-bottom: 1.5rem;
}
.hero__pill b { display: inline-grid; place-items: center; padding: .15rem .55rem; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(185, 240, 74, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(185, 240, 74, .6); } 70% { box-shadow: 0 0 0 10px rgba(185, 240, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 240, 74, 0); } }
.hero__trust { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .9rem; color: var(--text-on-dark-2); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--lime); }

/* Palabras rotando en el titular */
.rotator { display: inline-grid; vertical-align: bottom; text-align: left; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.6em); }

/* ---------- Escena de producto (mockup animado) ---------- */
.scene { position: relative; perspective: 1600px; }
.device {
  position: relative; border-radius: 18px; background: #0f1a14;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(6deg) rotateY(-10deg) rotateZ(1deg);
  transform-style: preserve-3d; transition: transform .8s var(--ease);
  overflow: hidden;
}
@media (hover: hover) { .scene:hover .device { transform: rotateX(2deg) rotateY(-4deg) rotateZ(0); } }
@media (max-width: 999px) { .device { transform: none; } }
.device__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a40; }
.device__bar i:nth-child(1) { background: #ff5f57; } .device__bar i:nth-child(2) { background: #febc2e; } .device__bar i:nth-child(3) { background: #28c840; }
.device__url { margin-left: .5rem; flex: 1; font-family: var(--mono); font-size: .7rem; color: var(--text-on-dark-2); background: rgba(255, 255, 255, .05); border-radius: 6px; padding: .3rem .6rem; }
.device__screen { position: relative; aspect-ratio: 16 / 10.2; background: #f6f8f4; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__screen .mock { position: absolute; inset: 0; }

/* Mock de interfaz en CSS (fallback cuando aún no hay captura) */
.mock { display: grid; grid-template-columns: 56px 1fr; font-size: 10px; color: #223; }
.mock__side { background: #14201a; display: grid; grid-auto-rows: 26px; gap: 4px; padding: 10px 8px; align-content: start; }
.mock__side i { display: block; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.mock__side i:first-child { background: var(--lime); height: 20px; }
.mock__main { padding: 10px 12px; display: grid; gap: 10px; align-content: start; }
.mock__top { display: flex; gap: 6px; align-items: center; }
.mock__top i { height: 18px; border-radius: 6px; background: #e3e9e0; }
.mock__top i:first-child { flex: 1; background: #fff; border: 1px solid #dfe6dd; }
.mock__top i:last-child { width: 60px; background: var(--ink); }
.mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mock__kpi { background: #fff; border: 1px solid #e4eae2; border-radius: 8px; padding: 8px; display: grid; gap: 4px; }
.mock__kpi b { font-size: 14px; letter-spacing: -.02em; }
.mock__kpi small { color: #7c8a82; font-size: 8px; }
.mock__kpi em { font-style: normal; color: var(--green-ink); font-size: 8px; }
.mock__chart { background: #fff; border: 1px solid #e4eae2; border-radius: 8px; padding: 10px; height: 96px; display: flex; align-items: flex-end; gap: 6px; }
.mock__chart i { flex: 1; background: linear-gradient(180deg, var(--green), #9be36a); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.mock__chart i:nth-child(odd) { background: linear-gradient(180deg, var(--ink-3), #3d5a48); }
@keyframes grow { from { transform: scaleY(0); } }
.mock__rows { display: grid; gap: 6px; }
.mock__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 60px 40px; min-width: 0; gap: 8px; align-items: center; background: #fff; border: 1px solid #e4eae2; border-radius: 8px; padding: 6px 8px; }
.mock__row i { height: 8px; border-radius: 4px; background: #e3e9e0; }
.mock__row i:first-child { height: 24px; width: 24px; border-radius: 6px; background: linear-gradient(135deg, #cfe6c7, #eef7ea); }
.mock__row i:last-child { background: var(--lime-soft); }

/* Tarjetas flotantes alrededor del dispositivo */
.float {
  position: absolute; z-index: 2; background: var(--white); color: var(--text); border-radius: 12px;
  padding: .7rem .9rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem;
  font-size: .85rem; font-weight: 600; animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.float small { display: block; color: var(--text-3); font-weight: 500; font-size: .75rem; }
.float__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lime-soft); color: var(--green-ink); }
.float--a { left: -6%; top: 14%; animation-delay: -1s; }
.float--b { right: -4%; top: 52%; animation-delay: -3s; }
.float--c { left: 8%; bottom: -8%; animation-delay: -5s; }
@media (max-width: 999px) { .float--a { left: 0; } .float--b { right: 0; } .float--c { left: 4%; bottom: -14px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Franja de logos / "confían" ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; color: var(--text-3); white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddbc8; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--green-ink); margin-bottom: 1.1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-2); }
.card ul { margin-top: .9rem; display: grid; gap: .4rem; font-size: .95rem; color: var(--text-2); }
.card li { display: flex; gap: .5rem; align-items: flex-start; }
.card li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .3rem; border-radius: 50%; background: var(--lime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b1310' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.section--dark .card:hover { border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.section--dark .card p, .section--dark .card ul { color: var(--text-on-dark-2); }
.section--dark .card__icon { background: rgba(185, 240, 74, .14); color: var(--lime); }
.card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) { .card--featured { grid-column: span 2; } }
.card__tag { position: absolute; top: 1rem; right: 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: var(--ink); color: var(--lime); }

/* Módulos: mosaico "bento" */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento > .card { grid-column: span 2; } .bento > .card--wide { grid-column: span 3; } .bento > .card--full { grid-column: span 6; } }

/* ---------- Estadísticas / contadores ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { padding: 1.6rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.stat__n { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.stat__n sup { font-size: .45em; vertical-align: top; margin-left: .1em; color: var(--text-on-dark); }
.stat__l { margin-top: .6rem; color: var(--text-on-dark-2); font-size: .95rem; }
.stat__src { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .68rem; color: var(--text-3); }

/* ---------- Comparativa con / sin B2B ---------- */
.compare { display: grid; gap: 1rem; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); background: var(--surface); }
.compare__col--bad { background: #fbf7f4; border-color: #f0e1d8; }
.compare__col--good { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.compare__col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.compare__col h3 span { font-size: .75rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.compare__col--bad h3 span { background: #ffe1da; color: #9b2f1f; }
.compare__col--good h3 span { background: var(--lime); color: var(--ink); }
.compare__col li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); align-items: start; }
.compare__col--good li { border-top-color: var(--line-dark); }
.compare__col li svg { width: 20px; height: 20px; margin-top: .15rem; }
.compare__col--bad li svg { color: var(--coral); }
.compare__col--good li svg { color: var(--lime); }
.compare__col li b { display: block; }
.compare__col li small { color: var(--text-3); font-size: .85rem; }
.compare__col--good li small { color: var(--text-on-dark-2); }

/* Barras de comparación animadas */
.bars { display: grid; gap: 1.1rem; margin-top: 1rem; }
.bar { display: grid; gap: .35rem; }
.bar__head { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; }
.bar__track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.section--dark .bar__track { background: rgba(255, 255, 255, .08); }
.bar__fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.4s var(--ease); background: linear-gradient(90deg, var(--green), var(--lime)); }
.bar__fill--bad { background: linear-gradient(90deg, #f0a58f, var(--coral)); }
.in-view .bar__fill { width: var(--w); }

/* ---------- Calculadora ROI ---------- */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; } }
.calc__form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .5rem; }
.field label { font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; }
.field output { font-family: var(--mono); color: var(--green-ink); font-weight: 600; }
.section--dark .field output { color: var(--lime); }
.field input[type="range"] { width: 100%; accent-color: var(--green); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; color: var(--text); transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(95, 167, 63, .18); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.calc__result { border-radius: var(--radius-lg); background: var(--ink); color: var(--text-on-dark); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; align-content: start; position: relative; overflow: hidden; }
.calc__result::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(185, 240, 74, .25), transparent 65%); pointer-events: none; }
.calc__big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.calc__line { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.calc__line b { font-variant-numeric: tabular-nums; }
.calc__note { font-size: .8rem; color: var(--text-on-dark-2); }

/* ---------- Pasos / timeline ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--mono); color: var(--green-ink); font-size: .8rem; letter-spacing: .1em; }
.step h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; }
.step p { color: var(--text-2); font-size: .95rem; }
.step__time { display: inline-block; margin-top: .9rem; font-family: var(--mono); font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; background: var(--lime-soft); color: var(--green-ink); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; display: grid; gap: 1.2rem; }
.quote__stars { color: var(--amber); letter-spacing: .1em; font-size: .9rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; font-weight: 500; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, var(--lime), #7ddc8c); }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--text-3); }
.quote__badge { font-family: var(--mono); font-size: .68rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Capturas / galería ---------- */
.shots { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } .shots > .shot--wide { grid-column: 1 / -1; } }
.shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.shot__img { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; overflow: hidden; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.shot:hover .shot__img img { transform: scale(1.03); }
.shot__cap { padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.shot__cap b { display: block; }
.shot__cap small { color: var(--text-3); }
.shot__cap .mono { font-size: .7rem; color: var(--text-3); }

/* Pestañas de producto (captura grande + lista) */
.tabs { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .tabs { grid-template-columns: 340px 1fr; align-items: start; } }
.tabs__list { display: grid; gap: .5rem; }
.tab {
  text-align: left; width: 100%; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line-dark); background: transparent;
  color: var(--text-on-dark-2); display: grid; gap: .25rem; transition: background var(--t), color var(--t), border-color var(--t);
}
.tab b { color: var(--text-on-dark); }
.tab[aria-selected="true"] { background: rgba(255, 255, 255, .06); border-color: rgba(185, 240, 74, .5); color: var(--text-on-dark); }
.tab small { font-size: .85rem; }
.tabs__panel { position: relative; }
.tabs__panel .device { transform: none; }
.tabs__panel [role="tabpanel"] { display: none; }
.tabs__panel [role="tabpanel"].is-active { display: block; animation: fadeUp .5s var(--ease); }
.tabs__panel figcaption { margin-top: .9rem; color: var(--text-on-dark-2); font-size: .9rem; }

/* ---------- Stack técnico ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green-ink); transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--text-2); }

/* ---------- CTA final ---------- */
.cta {
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #12251a, #0b1310 60%); color: var(--text-on-dark); border: 1px solid var(--line-dark);
}
.cta::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(40% 50% at 50% 50%, rgba(185, 240, 74, .22), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta .lead { color: var(--text-on-dark-2); margin: 1rem auto 2rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; } }
.contact__aside { display: grid; gap: 1.2rem; align-content: start; }
.contact__item { display: flex; gap: .9rem; align-items: flex-start; }
.contact__item .card__icon { margin: 0; flex: none; }
.contact__item b { display: block; }
.contact__item a { color: var(--green-ink); font-weight: 600; }
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.form .check input { margin-top: .25rem; accent-color: var(--green); }
.form__status { font-size: .95rem; padding: .8rem 1rem; border-radius: 10px; display: none; }
.form__status.is-ok { display: block; background: var(--lime-soft); color: var(--green-ink); }
.form__status.is-err { display: block; background: #ffe1da; color: #9b2f1f; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--text-on-dark-2); padding: 4rem 0 2rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: var(--text-on-dark); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: var(--lime); }
.footer .brand { color: var(--text-on-dark); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.footer__ofimar { display: inline-flex; align-items: center; gap: .5rem; }
.footer__ofimar img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- Página legal ---------- */
.legal { padding-block: 3rem 5rem; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .35rem; margin: .6rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.legal .meta { font-family: var(--mono); font-size: .78rem; color: var(--text-3); margin-bottom: 2rem; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; margin: 1rem 0; }
.legal a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.legal-nav a { font-size: .85rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text-2); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Aviso de cookies ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 560px; margin-inline: auto;
  background: var(--ink); color: var(--text-on-dark); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-lg);
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; border: 1px solid var(--line-dark);
}
.cookie.is-visible { display: flex; animation: fadeUp .5s var(--ease); }
.cookie p { flex: 1 1 260px; color: var(--text-on-dark-2); }
.cookie a { color: var(--lime); text-decoration: underline; }

/* ---------- Animaciones de entrada (reveal) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: scale(.94); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--green), var(--lime)); z-index: 101; transition: width .1s linear; }

/* Cursor spotlight en tarjetas (solo con puntero) */
@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; }
  .spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--t);
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 240, 74, .18), transparent 60%);
  }
  .spot:hover::before { opacity: 1; }
}

/* ---------- Accesibilidad / preferencias ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bar__fill { width: var(--w); }
}
@media print {
  .header, .footer, .cookie, .progress, .btn, .hero__bg, .hero__grid { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; }
}

/* Listas "planas" dentro de tarjetas (sin la marca de verificación) */
.card ul.plain { color: inherit; margin: 0; gap: 0; font-size: inherit; }
.card ul.plain li { display: grid; }
.card ul.plain li::before { content: none; }

/* Móvil: los contenedores de rejilla no deben crecer por su contenido (mockups, tarjetas) */
.tabs > *, .hero__inner > *, .split > *, .calc > *, .contact > * { min-width: 0; }
.tabs__panel, .device, .device__screen { min-width: 0; max-width: 100%; }
.mock, .mock__main, .mock__kpi { min-width: 0; }
.mock__kpi b, .mock__kpi small, .mock__row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field input[type="range"] { height: 32px; }
@media (max-width: 480px) {
  .mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device__screen { aspect-ratio: 16 / 12; }
  .float { font-size: .78rem; padding: .55rem .7rem; }
  .float b { font-size: .95rem; }
}
@media (max-width: 900px) {
  /* En pantallas estrechas las entradas laterales pasan a verticales: nunca empujan el ancho de la página */
  .reveal--left, .reveal--right { transform: translateY(24px); }
}
@media (max-width: 600px) {
  .cookie { left: .6rem; right: .6rem; bottom: .6rem; padding: .8rem .9rem; font-size: .82rem; gap: .6rem; }
  .cookie .btn { padding: .5rem .9rem; font-size: .85rem; }
}

/* Capturas reales dentro del marco: el marco toma la proporción de la imagen, sin recortes */
.device__screen:has(> img) { aspect-ratio: auto; }
.device__screen > img { width: 100%; height: auto; object-fit: fill; display: block; }

.cookie__actions { display: flex; gap: .5rem; flex: none; }
