/* ==========================================================================
   Jianwei Membrane Switch — hoja de estilos principal
   Autor: Suzhou Jianwei Membrane Switch Co., Ltd.
   ========================================================================== */

:root {
  --navy-900: #061426;
  --navy-800: #0a1f36;
  --navy-700: #0e2b48;
  --navy-600: #13395e;
  --blue-600: #0f6fb5;
  --blue-500: #1588d4;
  --cyan-400: #2ec4e6;
  --cyan-300: #6fd8ef;
  --ink-900: #0b1622;
  --ink-700: #24384c;
  --ink-500: #5b7186;
  --ink-400: #8a9cad;
  --line: #e3eaf1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --bg-mist: #eef5fa;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(9, 38, 66, 0.06);
  --shadow: 0 12px 34px rgba(9, 38, 66, 0.09);
  --shadow-lg: 0 28px 70px rgba(6, 26, 46, 0.16);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; border: 0; }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--cyan-400); }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  color: var(--ink-900);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

strong { color: var(--ink-900); font-weight: 650; }

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

.container-narrow { max-width: 860px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--mist { background: linear-gradient(180deg, var(--bg-mist), #ffffff); }

.section--dark {
  background: radial-gradient(circle at 15% 0%, #123a5f 0%, var(--navy-900) 62%);
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--navy-800);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
}

/* ---------- Encabezado de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}
.section--dark .eyebrow { color: var(--cyan-300); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.03rem; margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.7); }
.section-head h2 { margin-bottom: 0.5em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 60px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  text-align: center;
  line-height: 1.3;
}
.btn svg { flex: 0 0 auto; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(120deg, var(--blue-500), #0a5e9c);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 111, 181, 0.28);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 111, 181, 0.36);
}

.btn--accent {
  background: linear-gradient(120deg, var(--cyan-400), var(--blue-500));
  color: #04202f;
  box-shadow: 0 12px 26px rgba(46, 196, 230, 0.3);
}
.btn--accent:hover { color: #04202f; transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn--outline {
  border-color: rgba(15, 111, 181, 0.35);
  color: var(--blue-600);
  background: #fff;
}
.btn--outline:hover { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.94rem;
  color: var(--blue-600);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Barra superior / navegación ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding: 6px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.topbar__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: 7px; }
.topbar a { color: rgba(255, 255, 255, 0.72); }
.topbar a:hover { color: #fff; }

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 20, 38, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(3, 14, 26, 0.35); background: rgba(6, 20, 38, 0.98); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 194px; height: auto; }
.brand__text { display: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.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.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu > li { margin: 0; position: relative; }
.nav__menu > li > a {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 550;
  border-radius: 8px;
  white-space: nowrap;
}
.nav__menu > li > a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__menu > li > a[aria-current="page"] { color: #fff; }
.nav__menu > li > a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
}

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__menu-mobile-cta { display: none; }
.nav__menu-mobile-cta .btn { margin-top: 6px; }
.btn--accent { border: 1px solid transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: saturate(1.05);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 15, 28, 0.97) 0%, rgba(6, 26, 46, 0.9) 52%, rgba(6, 26, 46, 0.6) 100%),
    radial-gradient(circle at 78% 30%, rgba(46, 196, 230, 0.22), transparent 55%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 7vw, 92px) 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--cyan-300), #8ee7ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #cdefff;
  margin-bottom: 22px;
}
.hero__badge i {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--cyan-400), var(--blue-500));
  color: #04202f;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero__panel {
  background: rgba(9, 32, 55, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero__panel h2 { font-size: 1.05rem; color: #fff; margin-bottom: 18px; letter-spacing: 0.02em; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; list-style: none; margin: 0; padding: 0; }
.hero__stats li { margin: 0; }
.hero__stats b {
  display: block;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__stats span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); }
.hero__panel hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 22px 0; }
.hero__panel p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ---------- Franja de confianza ---------- */
.trust {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.85rem;
}
.trust__item { display: flex; align-items: center; gap: 9px; }
.trust__item svg { color: var(--cyan-400); }

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.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)); }

/* ---------- Tarjetas ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe1ef; }

.card__media {
  position: relative;
  aspect-ratio: 548 / 375;
  overflow: hidden;
  background: var(--bg-mist);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 20, 38, 0.82);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 60px;
  backdrop-filter: blur(6px);
}

.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body h3 { font-size: 1.16rem; margin-bottom: 0.5em; }
.card__body h3 a { color: inherit; }
.card__body h3 a:hover { color: var(--blue-600); }
.card__body p { color: var(--ink-500); font-size: 0.94rem; margin-bottom: 1.2em; }
.card__body .link-arrow { margin-top: auto; }

/* Tarjeta de valor */
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card:hover::before { transform: scaleX(1); }
.value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(46, 196, 230, 0.16), rgba(15, 111, 181, 0.12));
  color: var(--blue-600);
  margin-bottom: 18px;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.45em; }
.value-card p { font-size: 0.94rem; color: var(--ink-500); margin: 0; }

/* ---------- Split (texto + imagen) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.split__media--framed::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(15, 111, 181, 0.22);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.split__body p:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; }
.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0.7em;
  color: var(--ink-700);
  font-size: 0.96rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 196, 230, 0.18);
  box-shadow: inset 0 0 0 1.5px rgba(15, 111, 181, 0.5);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ---------- Cifras ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stats li {
  margin: 0;
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.stats b {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stats span { font-size: 0.86rem; color: var(--ink-500); }

/* ---------- Línea de tiempo ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-400), rgba(15, 111, 181, 0.15));
}
.timeline li { position: relative; margin: 0 0 26px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(21, 136, 212, 0.12);
}
.timeline time {
  display: block;
  font-weight: 800;
  color: var(--blue-600);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.timeline p { margin: 2px 0 0; font-size: 0.94rem; color: var(--ink-500); }

/* ---------- Producción / galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy-800);
}
.gallery img {
  width: 100%;
  aspect-ratio: 256 / 175;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(4, 15, 28, 0.85));
}

/* ---------- Certificados ---------- */
.certs { display: flex; gap: 20px; flex-wrap: wrap; }
.certs figure {
  margin: 0;
  width: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.certs figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.certs img { width: 100%; aspect-ratio: 300 / 360; object-fit: cover; }
.certs figcaption { padding: 10px 12px; font-size: 0.8rem; text-align: center; color: var(--ink-500); }

/* ---------- Acordeón FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item[open] { border-color: #bfd9ec; box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 650;
  color: var(--ink-900);
  font-size: 1rem;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 22px 22px; color: var(--ink-500); font-size: 0.95rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Formulario ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-900);
  margin-bottom: 7px;
}
.field label .req { color: #d14343; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: #fbfdff;
  border: 1px solid #d7e4ee;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b7186' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 136, 212, 0.12);
}
.field input:user-invalid { border-color: #d14343; }
.field .hint { font-size: 0.78rem; color: var(--ink-400); margin-top: 6px; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink-500);
  margin: 4px 0 0;
}
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-600); flex: 0 0 auto; }
.form-consent label { margin: 0; font-weight: 400; font-size: 0.84rem; color: var(--ink-500); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-note { font-size: 0.8rem; color: var(--ink-400); margin: 0; }

.alert {
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.94rem;
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid transparent;
}
.alert--ok { background: #eaf8f0; border-color: #b7e4c9; color: #1d6b42; }
.alert--err { background: #fdeeee; border-color: #f3c9c9; color: #9c2f2f; }
.alert svg { flex: 0 0 auto; margin-top: 2px; }
.alert strong { display: block; color: inherit; margin-bottom: 2px; }
.alert p { margin: 0; }

/* ---------- Bloque CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 10%, #12496f 0%, var(--navy-900) 60%);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 230, 0.28), transparent 66%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.4em; }
.cta-band p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, 0.72); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Migas de pan ---------- */
.breadcrumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-400);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 14px 24px;
  max-width: var(--container);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #c3d2de; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs [aria-current="page"] { color: var(--ink-900); font-weight: 600; }

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  position: relative;
  background: radial-gradient(circle at 12% 0%, #14415f 0%, var(--navy-900) 62%);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(52px, 7vw, 92px) 0;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p { max-width: 66ch; color: rgba(255, 255, 255, 0.74); margin: 0; font-size: 1.03rem; }

/* ---------- Detalle de producto ---------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.product-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-mist);
  box-shadow: var(--shadow);
}
.product-figure img { width: 100%; aspect-ratio: 548 / 375; object-fit: cover; }
.product-figure figcaption { padding: 12px 18px; font-size: 0.8rem; color: var(--ink-400); background: #fff; }

.product-summary h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 0.35em; }
.product-summary .lead { color: var(--ink-500); font-size: 1.02rem; }

.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.92rem; }
.spec-table caption { text-align: left; font-weight: 700; color: var(--ink-900); padding-bottom: 10px; }
.spec-table th,
.spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--ink-500); font-weight: 600; background: #fbfdff; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.product-meta li {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--blue-600);
  background: rgba(21, 136, 212, 0.09);
  border-radius: 60px;
  padding: 5px 12px;
}

.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p { color: var(--ink-700); }
.prose ul { color: var(--ink-700); }

.info-band {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.info-band h3 { font-size: 1rem; margin-bottom: 0.6em; }
.info-band p:last-child { margin-bottom: 0; }

/* ---------- Navegación entre productos ---------- */
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prevnext a { font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding-top: clamp(48px, 6vw, 72px);
}
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: 44px;
}
.footer-grid h3 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #fff;
}
.footer-brand img { width: 194px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.58); max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: rgba(255, 255, 255, 0.66); }
.footer-list a:hover { color: #fff; }
.footer-list address { font-style: normal; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animación suave al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--navy-800);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  z-index: 90;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 560px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    box-shadow: 0 24px 40px rgba(3, 14, 26, 0.4);
  }
  .nav.is-open .nav__menu { max-height: 620px; }
  .nav__menu > li > a {
    padding: 13px 12px;
    border-radius: 8px;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__menu > li > a[aria-current="page"]::after { display: none; }
  .nav__menu > li > a[aria-current="page"] { color: var(--cyan-300); }
  .nav__cta { display: none; }
  .nav__menu-mobile-cta { display: block; margin-top: 16px; }
  .nav { position: relative; flex-wrap: wrap; }
  .topbar__inner { justify-content: center; }
  .topbar__list:first-child { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media--framed::after { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  :root { --header-h: 66px; }
  .brand img { width: 156px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 14px; }
  .hero__panel { padding: 22px; }
  .form-wrap { padding: 22px 18px; }
  .certs figure { width: calc(50% - 10px); }
  .section-head { margin-bottom: 28px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 0 1 auto; width: auto; }
  .prevnext { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .hero__stats b { font-size: 1.5rem; }

  .gallery { grid-template-columns: 1fr; }
}
