/* =========================================================
   HEAVYFILTERS J&E, C.A. — Hoja de estilos
   CSS propio (sin frameworks): carga rápida y sin CDN.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0a0a0c;
  --bg-2: #101013;
  --surface: #15151a;
  --surface-2: #1c1c22;
  --line: #26262d;
  --line-2: #383841;

  --text: #f4f4f5;
  --text-2: #d0d0d6;
  --muted: #9c9ca8;

  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --amber-3: #fcd34d;
  --amber-ink: #1b1303;
  --amber-glow: rgba(245, 158, 11, 0.18);

  --wa: #25d366;
  --wa-2: #3ae07a;
  --wa-ink: #052e16;

  --danger: #f87171;
  --ok: #34d399;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --shadow-amber: 0 10px 30px -10px rgba(245, 158, 11, 0.55);

  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--amber-ink); }

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

.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: 16px; top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35em;
  border-radius: var(--r);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn--primary {
  --btn-bg: linear-gradient(180deg, var(--amber-2), var(--amber));
  --btn-fg: var(--amber-ink);
  --btn-bd: transparent;
  background: var(--btn-bg);
  box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { border-color: transparent; box-shadow: 0 14px 36px -10px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255,255,255,.35); }

.btn--wa {
  --btn-bg: var(--wa);
  --btn-fg: var(--wa-ink);
  --btn-bd: transparent;
  box-shadow: 0 10px 28px -12px rgba(37, 211, 102, 0.6);
}
.btn--wa:hover { --btn-bg: var(--wa-2); border-color: transparent; }

.btn--ghost { --btn-bg: transparent; }

.btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
  background: #050506;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item .icon { color: var(--amber); width: 14px; height: 14px; }
.topbar a:hover { color: var(--amber-2); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 15, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 12, 15, 0.94);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  width: 88px;
  aspect-ratio: 1022 / 645;
  flex-shrink: 0;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: border-color 0.2s;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand__logo { border-color: var(--amber); }
.brand__text { min-width: 0; line-height: 1.1; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__name span { color: var(--amber); }
.brand__tag { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s, background-color 0.15s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--amber-2); }

.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header__cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 15, 0.98);
  padding: 12px 0 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { display: grid; gap: 2px; }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text-2);
}
.mobile-menu__list a:hover { background: var(--surface); color: var(--text); }
.mobile-menu__list .icon { color: var(--muted); }
.mobile-menu__cta { margin-top: 12px; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(245, 158, 11, 0.07), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px);
  opacity: 0.9;
}
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(21, 21, 26, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}

.hero__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.hl {
  background: linear-gradient(180deg, var(--amber-3), var(--amber) 70%, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--text-2);
}
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon {
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--amber-glow);
  color: var(--amber-2);
  stroke-width: 3;
}

/* Tarjeta con el logo */
.showcase { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }
.showcase__frame {
  position: relative;
  padding: 1px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #6b6b75, #1e1e24 35%, #1e1e24 65%, var(--amber));
  box-shadow: var(--shadow), 0 0 80px -30px var(--amber-glow);
}
.showcase__card {
  border-radius: calc(var(--r-xl) - 1px);
  background: #000;
  overflow: hidden;
}
.showcase__logo { padding: 28px 28px 8px; }
.showcase__logo img { width: 100%; aspect-ratio: 1022 / 645; object-fit: contain; }
.showcase__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #1d1d22;
}
.showcase__meta div {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid #1d1d22;
}
.showcase__meta div:last-child { border-right: 0; }
.showcase__meta dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.showcase__meta dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.showcase__badge {
  position: absolute;
  z-index: 2; /* por encima del marco, que también está posicionado */
  top: -14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-amber);
}
.showcase__badge .icon { width: 16px; height: 16px; }

/* ---------- Franja de sectores ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: #070708;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__list { display: flex; flex-shrink: 0; }
.ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__list li::after {
  content: "";
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--amber);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-2);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.section-head--center .kicker::after { content: ""; width: 22px; height: 2px; background: var(--amber); }
.section-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- Líneas de producto ---------- */
.products { display: grid; gap: 16px; }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product:hover::before { opacity: 1; }
.product__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-2);
}
.product__icon .icon { width: 26px; height: 26px; }
.product__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.product__text { color: var(--muted); font-size: 0.95rem; flex: 1; }
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--amber-2);
  padding: 6px 0;
}
.product__link .icon { transition: transform 0.2s var(--ease); }
.product__link:hover .icon { transform: translateX(4px); }

.product--feature {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(245, 158, 11, 0.14), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border-color: rgba(245, 158, 11, 0.35);
}
.product__tag {
  position: absolute;
  top: 22px; right: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-2);
}

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}
.sector:hover { border-color: rgba(245, 158, 11, 0.5); background: var(--surface-2); }
.sector .icon { width: 30px; height: 30px; color: var(--amber-2); stroke-width: 1.7; }
.sector h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.sector p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step__num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 0 0 6px var(--amber-glow);
}
.step__icon .icon { width: 22px; height: 22px; }
.step h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.step p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pedido / contacto ---------- */
.order { display: grid; gap: 28px; align-items: start; }

.contact-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
}
.order__aside { display: grid; gap: 16px; align-content: start; }
.contact-card__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.phones { margin-top: 14px; display: grid; gap: 10px; }
.phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.phone__num { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; min-width: 0; }
.phone__label { display: block; font-size: 0.72rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.phone__actions { display: flex; gap: 6px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--amber); color: var(--amber-2); }
.icon-btn--wa { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.4); color: var(--wa); }
.icon-btn--wa:hover { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }

.info-list { margin-top: 14px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--text-2); }
.info-list .icon { margin-top: 3px; color: var(--amber-2); }
.info-list strong { display: block; color: var(--text); }
.info-list a:hover { color: var(--amber-2); }

/* Formulario */
.form-card {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface), #111115);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.form-card__head { margin-bottom: 22px; }
.form-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1;
}
.form-card__sub { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; min-width: 0; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field__label .req { color: var(--amber-2); }
.field__label .opt { color: var(--muted); font-weight: 400; }
.field__hint { font-size: 0.78rem; color: var(--muted); }
.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--danger);
}
.field.has-error .field__error { display: flex; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0b0b0e;
  color: var(--text);
  font-size: 1rem; /* 16px evita el zoom automático en iPhone */
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.input::placeholder,
.textarea::placeholder { color: #6b6b76; }
.input:hover,
.select:hover,
.textarea:hover { border-color: #4a4a55; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  background: #0d0d10;
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select option { background: #15151a; color: var(--text); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.counter { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }

/* Tipo de solicitud (tarjetas de opción) */
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #0b0b0e;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.choice__box .icon { width: 22px; height: 22px; color: var(--muted); transition: color 0.15s; }
.choice__title { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.choice__desc { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.choice:hover .choice__box { border-color: #4a4a55; }
.choice input:checked + .choice__box {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  box-shadow: inset 0 0 0 1px var(--amber);
}
.choice input:checked + .choice__box .icon { color: var(--amber-2); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--amber-2); outline-offset: 3px; }

.form__submit { margin-top: 4px; }
.form__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
}
.form__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }

/* Panel de resumen */
.summary {
  margin-top: 4px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(6, 30, 20, 0.45);
  padding: 20px;
}
.summary[hidden] { display: none; }
.summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary__title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ok); }
.summary__title .icon { width: 22px; height: 22px; }
.summary__text { margin-top: 6px; font-size: 0.9rem; color: var(--text-2); }
.summary__pre {
  margin: 14px 0 0;
  padding: 14px;
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #08080a;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.summary__actions { margin-top: 14px; display: grid; gap: 10px; }
.link-btn { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 6px 2px; }
.link-btn:hover { color: var(--text); }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--amber-2); transition: transform 0.25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--amber-2); }
.faq__body { padding: 0 20px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Llamado final ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 40px 26px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--amber-2), var(--amber) 55%, #d97706);
  color: var(--amber-ink);
  display: grid;
  gap: 22px;
  align-items: center;
}
.cta-band > * { min-width: 0; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 240px; height: 240px;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 0 12px, transparent 12px 24px);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1;
}
.cta-band p { margin-top: 10px; font-weight: 500; max-width: 52ch; }
.cta-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.btn--dark { --btn-bg: #0b0b0e; --btn-fg: #fff; --btn-bd: transparent; }
.btn--dark:hover { --btn-bg: #1a1a1f; border-color: transparent; }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--amber-ink); --btn-bd: rgba(27, 19, 3, 0.45); }
.btn--outline-dark:hover { border-color: var(--amber-ink); }

/* ---------- Pie ---------- */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #070708;
  padding: 48px 0 96px; /* espacio para que el botón flotante no tape el texto */
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin-top: 14px; max-width: 40ch; }
.footer__logo { width: 150px; aspect-ratio: 1022 / 645; border-radius: 12px; background: #000; border: 1px solid var(--line); overflow: hidden; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--amber-2); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.25s, background-color 0.15s;
}
.fab.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--wa-2); }
.fab .icon { width: 26px; height: 26px; }

/* ---------- Avisos (toast) ---------- */
.toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 90px;
  z-index: 60;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  background: rgba(21, 21, 26, 0.97);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s var(--ease);
}
.toast--ok { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast.is-leaving { animation: toast-out 0.25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 559px) {
  .hide-sm { display: none !important; }
  .topbar__inner { flex-wrap: nowrap; }
  .hero__actions .btn,
  .cta-band__actions .btn { flex: 1 1 100%; }
  .cta-band { padding: 32px 22px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hide-xs { display: none !important; }
  .topbar { font-size: 0.74rem; }
  .brand__logo { width: 72px; }
  .brand__name { font-size: 1.15rem; }
  .brand__tag { display: none; }
  .choices { grid-template-columns: 1fr; }
  .btn--lg { padding: 0 1em; font-size: 0.95rem; }
  .phone { padding-left: 12px; }
  .phone__num { font-size: 0.92rem; }
}

/* Tablet: tarjeta principal a lo ancho, contacto en 2 columnas y el formulario primero */
@media (min-width: 720px) and (max-width: 959px) {
  .product--feature { grid-column: 1 / -1; }
  .order__aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 959px) {
  .order .form-card { order: -1; }
}

@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .summary__actions { grid-template-columns: 1fr 1fr; }
  .summary__actions .btn--wa { grid-column: 1 / -1; }
  .toasts { left: auto; right: 20px; bottom: 96px; width: 360px; }
  .sectors { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 32px; }
  .cta-band { padding: 52px 48px; grid-template-columns: 1fr auto; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 80px; --gutter: 28px; }
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand__logo { width: 104px; }

  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero__title { font-size: clamp(2.9rem, 4.8vw, 4.6rem); }

  .section { padding: 100px 0; }
  .products { grid-template-columns: repeat(6, 1fr); }
  .product { grid-column: span 2; }
  .product--feature { grid-column: span 4; }
  .product--wide { grid-column: span 3; }

  .order { grid-template-columns: 0.85fr 1.15fr; gap: 36px; }
  .order__aside { position: sticky; top: calc(var(--header-h) + 24px); }

  .fab { right: 24px; bottom: 24px; }
}

@media (max-width: 959px) {
  .fab__label { display: none; }
  .fab { width: 58px; padding: 0; justify-content: center; }
}

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