:root {
  --ink: #17231f;
  --muted: #5c6963;
  --forest: #174f42;
  --teal: #0f766e;
  --red: #b33c36;
  --amber: #e3ad25;
  --paper: #f6f7f4;
  --soft: #e9efeb;
  --line: #cfd8d2;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(23, 35, 31, 0.1);
  --shell: 1180px;
  --narrow: 780px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 52px;
  font-weight: 760;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 740;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 720;
}

.site-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.content-narrow {
  max-width: var(--narrow);
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding: 58px 0;
}

.section-soft {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-dark a:not(.button) {
  color: var(--white);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: #f3c453;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
}

.section-dark .lede,
.hero .lede {
  color: rgba(255, 255, 255, 0.84);
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--ink);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav > a:not(.button) {
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.primary-nav > a:not(.button):hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--white);
  background: #94302b;
  border-color: #94302b;
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--forest);
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.button.is-disabled {
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
  cursor: not-allowed;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 760;
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
}

.hero {
  position: relative;
  display: flex;
  min-height: min(620px, 68vh);
  align-items: center;
  color: var(--white);
  background-color: var(--ink);
  background-image: url("../images/products/double-chamber.jpg");
  background-position: center 38%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(10, 27, 23, 0.78);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 72px 0 82px;
}

.hero h1 {
  max-width: 780px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-proof span::before {
  margin-right: 8px;
  color: #f3c453;
  content: "\2713";
  font-weight: 900;
}

.page-heading {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  max-width: 880px;
  margin-bottom: 16px;
}

.split-grid,
.two-column,
.three-column,
.four-column,
.footer-grid,
.form-grid {
  display: grid;
  gap: 26px;
}

.split-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

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

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-header > div {
  max-width: 760px;
}

.pathway {
  padding: 28px 0 22px;
  border-top: 3px solid var(--forest);
  border-bottom: 1px solid var(--line);
}

.pathway.distributor {
  border-top-color: var(--amber);
}

.pathway p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.product-image::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(23, 35, 31, 0.76);
  border-radius: 3px;
  content: "Referencia con IA";
  font-size: 10px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-meta {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body p {
  color: var(--muted);
}

.product-body .button-row {
  margin-top: auto;
  padding-top: 14px;
}

.fact-list,
.check-list,
.plain-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.fact-list li,
.check-list li,
.plain-list li {
  position: relative;
  padding: 9px 0 9px 25px;
  border-bottom: 1px solid var(--line);
}

.fact-list li::before,
.check-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  color: var(--teal);
  content: "\2713";
  font-weight: 900;
}

.plain-list li::before {
  position: absolute;
  top: 10px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  content: "";
}

.numbered-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
  counter-reset: steps;
  border-block: 1px solid var(--line);
}

.numbered-steps li {
  min-width: 0;
  padding: 26px 18px;
  counter-increment: steps;
  border-right: 1px solid var(--line);
}

.numbered-steps li:last-child {
  border-right: 0;
}

.numbered-steps li::before {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  content: counter(steps, decimal-leading-zero);
  font-size: 13px;
  font-weight: 900;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 15px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--white);
  background: var(--forest);
  font-size: 14px;
}

.comparison-table td {
  font-size: 15px;
}

.notice {
  padding: 18px 20px;
  margin: 28px 0;
  background: #fff7dc;
  border-left: 4px solid var(--amber);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.cta-band {
  padding: 54px 0;
  color: var(--white);
  background: var(--forest);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2 {
  max-width: 680px;
  margin-bottom: 8px;
}

.cta-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.equipment-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.equipment-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.equipment-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 11px 13px;
  color: var(--white);
  background: rgba(23, 35, 31, 0.82);
  font-size: 12px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 42px;
}

.guide-entry {
  padding: 28px 0;
  border-top: 3px solid var(--forest);
  border-bottom: 1px solid var(--line);
}

.guide-entry p {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 1fr);
  gap: 72px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body > * + * {
  margin-top: 24px;
}

.article-body h2 {
  padding-top: 28px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.article-body h3 {
  margin-top: 34px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-left: 24px;
  border-left: 2px solid var(--line);
}

.article-aside h2 {
  font-size: 18px;
}

.article-aside .plain-list {
  margin-top: 8px;
}

.article-aside .plain-list li {
  padding-block: 7px;
  font-size: 14px;
}

.article-aside .button {
  width: 100%;
  margin-top: 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.article-summary {
  padding: 22px 24px;
  background: var(--soft);
  border-left: 4px solid var(--teal);
}

.article-summary strong {
  display: block;
  margin-bottom: 6px;
}

.form-shell {
  max-width: 920px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.form-section + .form-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 14px;
  font-weight: 740;
}

.field small {
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9fac9f;
  border-radius: 4px;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-message {
  padding: 18px 20px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.form-message.success {
  color: #0d4b36;
  background: #dff4e9;
  border: 1px solid #93ccb1;
}

.form-message.error {
  color: #7a201c;
  background: #fbe5e3;
  border: 1px solid #dea09b;
}

.contact-lines {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-line {
  display: grid;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-line strong {
  font-size: 14px;
}

.contact-line span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.prose > * + * {
  margin-top: 22px;
}

.prose h2 {
  margin-top: 44px;
}

.empty-state {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  grid-template-columns: 1.5fr repeat(3, 1fr);
  padding: 58px 0 42px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-brand,
.footer-heading {
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.footer-bottom p {
  margin-bottom: 0;
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--white);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a:not(.button) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .primary-nav .button {
    margin-top: 18px;
  }

  .product-grid,
  .three-column,
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .numbered-steps li {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 29px;
  }

  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .section {
    padding: 64px 0;
  }

  .section-compact {
    padding: 42px 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 190px;
  }

  .hero {
    min-height: 560px;
    background-position: 48% center;
  }

  .hero-inner {
    padding: 54px 0 66px;
  }

  .hero .lede {
    font-size: 19px;
  }

  .split-grid,
  .two-column,
  .three-column,
  .four-column,
  .product-grid,
  .guide-list,
  .article-layout,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    gap: 48px;
  }

  .article-aside {
    position: static;
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-header,
  .cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header {
    display: block;
  }

  .section-header .button {
    margin-top: 8px;
  }

  .numbered-steps {
    grid-template-columns: 1fr;
  }

  .numbered-steps li {
    border-right: 0;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .form-shell {
    padding: 22px 18px;
  }

  .cta-inner {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
