:root {
  color-scheme: light;
  --ink: #10232d;
  --muted: #64747d;
  --line: rgba(16, 35, 45, 0.12);
  --paper: #f6fafb;
  --white: #ffffff;
  --navy: #0c2d3a;
  --teal: #147a84;
  --mint: #d7f3ee;
  --sky: #e9f7ff;
  --amber: #f4bf45;
  --coral: #e86f5a;
  --shadow: 0 22px 70px rgba(16, 35, 45, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 14px clamp(16px, 4vw, 46px);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 8px;
  background: rgba(246, 250, 251, 0.92);
  box-shadow: 0 10px 36px rgba(16, 35, 45, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  max-width: 190px;
  font-size: 0.68rem;
  color: currentColor;
  opacity: 0.74;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .nav-links {
  color: var(--ink);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .nav-links a:hover {
  background: rgba(20, 122, 132, 0.08);
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: var(--ink);
  background: var(--amber);
}

.nav-links .nav-cta:hover {
  background: #ffd36c;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: var(--white);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-laboratorio.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 27, 36, 0.88) 0%, rgba(8, 27, 36, 0.64) 46%, rgba(8, 27, 36, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 27, 36, 0.92) 0%, rgba(8, 27, 36, 0.1) 48%);
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -34px;
  width: 74vw;
  height: 155px;
  content: "";
  background: var(--paper);
  clip-path: polygon(10% 35%, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mint);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 5.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions,
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  margin-left: 8px;
}

.button.primary {
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 18px 36px rgba(244, 191, 69, 0.22);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  width: min(900px, 100%);
  margin: 52px 0 0;
}

.hero-facts div {
  flex: 1 1 210px;
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-facts dt {
  margin-bottom: 6px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 124px) clamp(16px, 4vw, 46px);
}

.section-grid,
.contact,
.maternity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.section-grid.compact {
  grid-template-columns: 0.76fr 1.1fr;
}

.section-copy p,
.maternity-copy p,
.pathway-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 1.04rem;
}

.image-stack {
  position: relative;
  min-height: 640px;
}

.image-stack img {
  width: 76%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack .image-large {
  margin-left: auto;
}

.image-stack .image-small {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52%;
  height: 300px;
  border: 10px solid var(--paper);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 58px auto 0;
}

.metric-row article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 35, 45, 0.06);
}

.metric-row strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-weight: 700;
}

.services {
  position: relative;
  background:
    linear-gradient(180deg, var(--white), #edf8f6 48%, var(--paper)),
    repeating-linear-gradient(90deg, rgba(20, 122, 132, 0.08) 0 1px, transparent 1px 90px);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(16, 35, 45, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 20px;
}

.service-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-card p,
.steps p,
.contact-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-note {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(20, 122, 132, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(16, 35, 45, 0.07);
}

.service-note h3 {
  margin-bottom: 8px;
}

.service-note p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
}

.study-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 16px auto 0;
}

.study-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 122, 132, 0.16);
  border-radius: var(--radius);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 760;
}

.faq-section {
  background:
    linear-gradient(135deg, rgba(215, 243, 238, 0.74), rgba(255, 255, 255, 0.92)),
    var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro p {
  color: var(--muted);
  font-size: 1.04rem;
}

.faq-intro .button {
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(16, 35, 45, 0.06);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 18px 58px 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 20px;
  width: 28px;
  height: 28px;
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
  background: var(--navy);
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.pathway {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 45, 58, 0.94), rgba(20, 122, 132, 0.92)),
    url("assets/lab-profesional.jpg") center / cover;
}

.pathway .eyebrow,
.pathway-copy p {
  color: var(--mint);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.steps article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.steps span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--amber);
  font-weight: 900;
}

.steps p {
  color: rgba(255, 255, 255, 0.78);
}

.maternity {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.maternity-media {
  padding: clamp(8px, 1.4vw, 14px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), var(--sky));
  box-shadow: var(--shadow);
}

.maternity-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 720;
}

.check-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact {
  align-items: stretch;
}

.contact-panel {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.contact-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.contact-grid a {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(12, 45, 58, 0.95), rgba(20, 122, 132, 0.92)),
    url("assets/convenio.jpg") center / cover;
}

.contact-card img {
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--white);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card .button {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal,
.metric-row.reveal article {
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .section-grid,
  .section-grid.compact,
  .faq-layout,
  .contact,
  .maternity {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .image-stack {
    min-height: 540px;
  }

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

  .metric-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  .steps span {
    margin-bottom: 28px;
  }
}

@media (min-width: 981px) {
  .hero-facts {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: grid;
    width: min(360px, 30vw);
    margin: 0;
  }

  .hero-facts div {
    min-height: 84px;
    padding: 15px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 27, 36, 0.9), rgba(8, 27, 36, 0.52)),
      linear-gradient(0deg, rgba(8, 27, 36, 0.96), rgba(8, 27, 36, 0.14));
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: none;
  }

  .image-stack {
    min-height: 440px;
  }

  .image-stack img {
    width: 78%;
    height: 420px;
  }

  .image-stack .image-small {
    width: 55%;
    height: 220px;
    border-width: 7px;
  }

  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-list summary {
    min-height: 62px;
    padding: 16px 54px 16px 16px;
  }

  .faq-list details p {
    padding: 0 16px 18px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
