:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-soft: #e8f0ec;
  --text: #10263d;
  --muted: #506273;
  --brand: #126448;
  --brand-dark: #0d5039;
  --navy: #092746;
  --line: #d5dfdb;
  --shadow: 0 10px 26px rgba(9, 39, 70, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.25rem 0;
}

.eyebrow {
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 142px;
  height: 80px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.nav-cta {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero {
  padding: 5.25rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

#inicio .hero-grid {
  align-items: start;
}

.hero-grid-laboratorio {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 19ch;
}

.hero-copy h1 span {
  color: var(--brand);
}

.hero-subtext {
  font-size: 1.05rem;
  max-width: 55ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.text-link:focus-visible,
.main-nav a:focus-visible,
.footer-inner a:focus-visible {
  outline: 3px solid #78b99e;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(9, 39, 70, 0.14);
}

.btn-ghost {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.2rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li {
  margin-bottom: 0.8rem;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  flex: none;
  min-width: 2.1rem;
  padding: 0.1rem 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.hero-card > p:not(.eyebrow) {
  color: var(--muted);
}

.hero-featured {
  overflow: hidden;
  padding: 0;
}

.hero-featured-image {
  position: relative;
  padding: 0.65rem 0.65rem 0;
  background: linear-gradient(145deg, #ffffff, #e1eee8);
}

.hero-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
}

.hero-featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(213, 223, 219, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-featured-copy {
  padding: 1.2rem 1.5rem 1.35rem;
}

.hero-featured-copy h2 {
  font-size: 1.2rem;
}

.hero-featured-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.hero-featured-copy ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-featured-copy li {
  margin-bottom: 0.35rem;
}

.hero-featured-copy .text-link {
  margin-top: 0.45rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #e1eee8);
  box-shadow: 0 24px 60px rgba(9, 39, 70, 0.2);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-visual figcaption {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 2.3rem);
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(213, 223, 219, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(9, 39, 70, 0.14);
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-visual-indicator {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #36a275;
  box-shadow: 0 0 0 4px rgba(54, 162, 117, 0.14);
}

.lab-showcase {
  background: var(--surface);
}

.lab-showcase h2 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.lab-showcase-intro {
  max-width: 58ch;
  color: var(--muted);
}

.lab-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.lab-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.lab-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.lab-feature-copy {
  padding: 1.2rem;
}

.lab-feature h3 {
  font-size: 1.12rem;
}

.lab-feature p {
  margin-bottom: 0;
  color: var(--muted);
}

img.zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

img.zoomable:hover {
  opacity: 0.88;
}

img.zoomable:focus-visible {
  outline: 3px solid #78b99e;
  outline-offset: -3px;
}

.lightbox {
  width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(9, 39, 70, 0.35);
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(9, 39, 70, 0.75);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 5rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin: 0.7rem 0.3rem 0.2rem;
  font-weight: 700;
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid #78b99e;
  outline-offset: 3px;
}

.hero-assurance {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tests h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.tests-summary {
  color: var(--brand-dark);
  font-weight: 800;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.test-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.test-card h3 {
  font-size: 1.1rem;
}

.test-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.roadmap-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
}

.faq {
  background: var(--surface);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin-top: 0.4rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0.9rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.cta-band {
  background: var(--navy);
  color: #ffffff;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.cta-band p {
  margin-bottom: 0;
  color: #c9d6e2;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band .hero-actions {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--navy);
}

.card-kicker,
.download-type {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.services h2,
.process h2,
.impact h2,
.contact h2 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.service-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.services {
  background: var(--navy);
  color: #ffffff;
}

.services > .container > .eyebrow {
  color: #a9d5c3;
}

.service-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
}

.service-card .text-link {
  margin-top: 0;
}

.downloads {
  background: var(--navy);
  color: #ffffff;
}

.downloads .eyebrow,
.downloads .download-type {
  color: #a9d5c3;
}

.downloads-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.downloads-heading h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.downloads-intro {
  max-width: 42ch;
  color: #d5e0e8;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.download-card h3 {
  font-size: 1.2rem;
}

.download-card p {
  flex: 1;
  color: var(--muted);
}

.download-card .btn {
  margin-top: 0.6rem;
}

.download-card-featured {
  background: var(--surface-soft);
}

.download-note {
  margin: 1rem 0 0;
  color: #d5e0e8;
  font-size: 0.88rem;
}

.process {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(228, 233, 238, 0.75));
}

.process-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.process-steps span {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.process-steps p {
  color: var(--muted);
  margin-bottom: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.impact-list {
  margin: 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.impact-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.impact-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

.impact-list span {
  color: var(--muted);
}

.contact {
  padding-top: 4.25rem;
}

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-email {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d4ce;
  border-radius: 10px;
  font: inherit;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: #fbfcfb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 38, 58, 0.14);
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-location {
  color: var(--muted);
}

.footer-inner a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-grid-laboratorio,
  .impact-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.8rem;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-card-featured {
    grid-column: 1 / -1;
  }

  .downloads-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    position: absolute;
    top: 84px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-visual {
    padding: 0.45rem;
    border-radius: 16px;
  }

  .hero-visual img {
    border-radius: 11px;
  }

  .hero-visual figcaption {
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: calc(100% - 1.6rem);
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }

  .brand-logo {
    width: 124px;
    height: 70px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .lab-feature-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .download-card-featured {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
