:root {
  --ink: #122033;
  --muted: #536174;
  --line: #d8e0ea;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --navy: #08284a;
  --blue: #1268d8;
  --teal: #0c9f9a;
  --red: #c91f2e;
  --graphite: #202833;
  --shadow: 0 20px 50px rgba(8, 40, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 224, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: clamp(220px, 24vw, 330px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--navy);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(201, 31, 46, 0.24);
}

.button.secondary {
  color: var(--navy);
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(44px, 6vw, 82px) clamp(18px, 5vw, 76px) 56px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 251, 0.7) 52%, #fff),
    var(--soft);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.2;
}

.no-break {
  white-space: nowrap;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.problem-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 76px) clamp(64px, 8vw, 110px);
  background: var(--paper);
}

.problem-strip article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.problem-strip span,
.method-steps span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.problem-strip strong,
.method-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 19px;
}

.problem-strip p,
.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 76px) clamp(64px, 8vw, 110px);
  background: var(--paper);
}

.trust-strip div {
  min-height: 160px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--navy);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.client-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(46px, 6vw, 78px) clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.client-strip h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(26px, 2.7vw, 38px);
}

.client-logo-marquee {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.client-logo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: client-marquee 55s linear infinite;
}

.client-logo-marquee:hover .client-logo-track {
  animation-play-state: paused;
}

.client-logo-track div {
  flex: 0 0 172px;
  display: grid;
  min-height: 102px;
  place-items: center;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 40, 74, 0.06);
}

.client-logo-track img {
  display: block;
  width: 100%;
  max-width: 142px;
  max-height: 70px;
  object-fit: contain;
}

@keyframes client-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.intro > p,
.sectors > p,
.production-content p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.section-heading {
  max-width: 820px;
}

.production-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 40, 74, 0.98), rgba(18, 104, 216, 0.92)),
    var(--navy);
}

.production-band h2,
.production-band .eyebrow {
  color: #fff;
}

.production-band p {
  color: rgba(255, 255, 255, 0.82);
}

.production-grid,
.module-grid,
.classroom-grid,
.benefit-list {
  display: grid;
  gap: 16px;
}

.production-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-grid article {
  min-height: 174px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.production-grid strong,
.production-grid span {
  display: block;
}

.production-grid strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.production-grid span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.module-card {
  min-height: 236px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.module-card span {
  display: inline-flex;
  color: var(--red);
  font-weight: 900;
}

.module-card svg {
  width: 42px;
  height: 42px;
  color: var(--navy);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.module-card p,
.benefit-list p {
  color: var(--muted);
  line-height: 1.65;
}

.learning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(135deg, rgba(244, 248, 251, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
}

.learning-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.learning-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.learning-panel strong {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 20px;
}

.learning-panel ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.module-course {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(201, 31, 46, 0.22);
  border-radius: 6px;
  color: var(--red);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.module-course:hover {
  color: #fff;
  background: var(--red);
}

.classroom-modules {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px) clamp(36px, 5vw, 70px);
  background: #fff;
}

.classroom-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.classroom-grid article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.classroom-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--red);
  font-weight: 900;
}

.classroom-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 18px;
}

.classroom-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.module-course {
  margin-top: auto;
}

.video-classroom {
  padding: 0 clamp(18px, 5vw, 76px) clamp(64px, 8vw, 110px);
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.video-card {
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(8, 40, 74, 0.07);
}

.video-thumb {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background:
    radial-gradient(circle at 90px 50%, rgba(18, 104, 216, 0.08) 0 42px, transparent 43px),
    radial-gradient(circle at 90px 50%, transparent 0 56px, rgba(18, 104, 216, 0.14) 57px 58px, transparent 59px),
    linear-gradient(135deg, #fff, var(--soft));
}

.module-badge {
  position: static;
  margin-left: auto;
}

.video-thumb .module-badge {
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.module-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow:
    0 12px 28px rgba(8, 40, 74, 0.12),
    inset 0 0 0 1px rgba(216, 224, 234, 0.9);
  font-size: 0;
}

.module-icon::before {
  z-index: 1;
}

.module-icon::after {
  z-index: 0;
}

.module-thumb-menus .module-icon {
  background: #eef7ff;
}

.module-thumb-contabilidad .module-icon {
  background: #f2f7ff;
}

.module-thumb-caja-bancos .module-icon {
  background: #eefbf9;
}

.module-thumb-compras .module-icon {
  background: #fff7ec;
}

.module-thumb-ventas .module-icon {
  background: #fff1f3;
}

.module-thumb-cxc .module-icon {
  background: #f0f7ff;
}

.module-thumb-cxp .module-icon {
  background: #fff8ec;
}

.module-thumb-inventario .module-icon {
  background: #effaf2;
}

.module-thumb-activos .module-icon {
  background: #f5f3ff;
}

.module-thumb-produccion .module-icon {
  background: #eef8ff;
}

.module-thumb-nomina .module-icon {
  background: #fff2ed;
}

.module-icon::before,
.module-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.module-thumb-menus .module-icon::before {
  width: 34px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(currentColor, currentColor) 7px 7px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 13px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 19px / 14px 2px no-repeat;
}

.module-thumb-contabilidad .module-icon::before {
  width: 34px;
  height: 29px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(var(--red), var(--red)) 6px 16px / 5px 11px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 17px 10px / 5px 17px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 28px 4px / 5px 23px no-repeat;
}

.module-thumb-contabilidad .module-icon::after {
  top: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  transform: translateX(8px);
}

.module-thumb-caja-bancos .module-icon::before {
  width: 34px;
  height: 22px;
  border-bottom: 3px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 5px 9px / 4px 13px no-repeat,
    linear-gradient(currentColor, currentColor) 15px 9px / 4px 13px no-repeat,
    linear-gradient(currentColor, currentColor) 25px 9px / 4px 13px no-repeat;
}

.module-thumb-caja-bancos .module-icon::after {
  top: 18px;
  width: 34px;
  height: 0;
  border-right: 17px solid transparent;
  border-bottom: 10px solid var(--red);
  border-left: 17px solid transparent;
}

.module-thumb-compras .module-icon::before {
  width: 32px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: skewX(-10deg);
}

.module-thumb-compras .module-icon::after {
  bottom: 9px;
  width: 24px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 4px 2px, var(--red) 0 3px, transparent 3px),
    radial-gradient(circle at 20px 2px, var(--red) 0 3px, transparent 3px);
}

.module-thumb-ventas .module-icon::before,
.module-thumb-cxc .module-icon::before,
.module-thumb-cxp .module-icon::before {
  width: 28px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(currentColor, currentColor) 6px 8px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 15px / 13px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) 6px 23px / 18px 3px no-repeat;
}

.module-thumb-inventario .module-icon::before {
  width: 34px;
  height: 29px;
  background: linear-gradient(135deg, var(--red), #f06a75);
  clip-path: polygon(50% 0, 100% 23%, 100% 76%, 50% 100%, 0 76%, 0 23%);
}

.module-thumb-activos .module-icon::before {
  width: 33px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: linear-gradient(var(--teal), var(--teal)) 7px 7px / 16px 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 7px 16px / 12px 4px no-repeat;
}

.module-thumb-produccion .module-icon::before {
  width: 34px;
  height: 34px;
  border: 6px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 2px currentColor inset;
}

.module-thumb-nomina .module-icon::before {
  width: 38px;
  height: 29px;
  background: radial-gradient(circle at 10px 7px, var(--red) 0 5px, transparent 5px),
    radial-gradient(circle at 24px 7px, var(--blue) 0 5px, transparent 5px),
    radial-gradient(ellipse at 10px 23px, currentColor 0 8px, transparent 8px),
    radial-gradient(ellipse at 24px 23px, currentColor 0 8px, transparent 8px);
}

.video-card h3 {
  margin-bottom: 10px;
}

.video-card p {
  color: var(--muted);
  line-height: 1.6;
}

.video-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.video-links a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.video-links a::before {
  content: "▶";
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(201, 31, 46, 0.18);
}

.video-links a:hover {
  border-color: rgba(201, 31, 46, 0.34);
  color: var(--red);
  background: #fff;
}

.video-empty {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.method {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
  background: #fff;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.method-steps article {
  min-height: 224px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.benefits {
  background: var(--soft);
}

.benefit-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.benefit-list div {
  min-height: 210px;
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: #fff;
  box-shadow: 0 12px 26px rgba(8, 40, 74, 0.06);
}

.benefit-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 18px;
}

.sectors {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
  background: #fff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 76px);
  background: var(--graphite);
}

.contact h2,
.contact .eyebrow {
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card a,
.contact-card span {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 800;
}

.contact-card svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-card a span,
.contact-card > span span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.72);
  background: #111820;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 14, 20, 0.72);
}

.modal-backdrop.is-open {
  display: flex;
}

.demo-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.modal-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.modal-brand img {
  width: min(340px, 78vw);
  height: auto;
}

.demo-modal h2 {
  margin: 0 auto 28px;
  color: var(--navy);
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.demo-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #8293b2;
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  outline: none;
}

.demo-form textarea {
  min-height: 102px;
  padding: 16px 18px;
  border-radius: 18px;
  resize: vertical;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 31, 46, 0.1);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  padding: 0;
  border-radius: 4px;
}

.modal-promo {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 40, 74, 0.18), rgba(8, 40, 74, 0.94)),
    url("assets/gerent-system-erp-produccion-hero.png") center / cover;
}

.modal-promo strong {
  max-width: 420px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.modal-promo p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .intro,
  .production-band,
  .learning,
  .client-strip,
  .sectors,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .module-grid,
  .classroom-grid,
  .benefit-list,
  .problem-strip,
  .trust-strip,
  .method-steps,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
  }

  .brand img {
    width: 172px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav {
    gap: 18px;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .production-grid,
  .module-grid,
  .classroom-grid,
  .benefit-list,
  .problem-strip,
  .trust-strip,
  .method-steps,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .demo-modal {
    border-radius: 12px;
  }

  .modal-promo {
    min-height: 260px;
  }

  .footer {
    flex-direction: column;
  }
}
