:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #536076;
  --line: #dbe3ee;
  --surface: #ffffff;
  --page: #f8fafc;
  --primary: #17206a;
  --primary-strong: #121735;
  --accent: #008442;
  --soft: #eef7f4;
  --hero-overlay: linear-gradient(
    90deg,
    rgba(18, 23, 53, 0.95) 0%,
    rgba(23, 32, 106, 0.82) 48%,
    rgba(0, 132, 66, 0.36) 100%
  );
}

.brand-biosalud {
  --primary: #1b3b83;
  --primary-strong: #17184f;
  --accent: #10b7d4;
  --soft: #edf8fb;
  --hero-overlay: linear-gradient(
    90deg,
    rgba(23, 24, 79, 0.94) 0%,
    rgba(43, 52, 125, 0.8) 48%,
    rgba(16, 183, 212, 0.34) 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 183, 212, 0.1), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #f1f8f8 48%, #f8fafc 100%);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

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

h1,
h2 {
  letter-spacing: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(219, 227, 238, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  animation: shell-slide-down 540ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.topbar-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.brand small,
.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand span {
  display: block;
}

.brand-name {
  color: var(--ink);
  font-size: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.nav a,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

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

.nav a:hover {
  background: var(--soft);
  color: var(--primary-strong);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 74px));
  background: #0d122d;
  color: #fff;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: landing-carousel 32s linear infinite;
}

.hero-slide:nth-child(2) {
  animation-delay: 6.4s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12.8s;
}

.hero-slide:nth-child(4) {
  animation-delay: 19.2s;
}

.hero-slide:nth-child(5) {
  animation-delay: 25.6s;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: landing-image-drift 8s ease-in-out infinite alternate;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: '';
  background: var(--hero-overlay);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: -18%;
  z-index: 1;
  content: '';
  pointer-events: none;
}

.hero::before {
  animation: hero-diagnostic-scan 8s linear infinite;
  background:
    repeating-linear-gradient(
      94deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      4deg,
      rgba(184, 245, 219, 0.12) 0,
      rgba(184, 245, 219, 0.12) 1px,
      transparent 1px,
      transparent 42px
    );
  opacity: 0.34;
  transform: rotate(-8deg);
}

.hero::after {
  animation: hero-light-sweep 6.5s ease-in-out infinite;
  background: linear-gradient(
    105deg,
    transparent 12%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(184, 245, 219, 0.2) 50%,
    transparent 58%
  );
  opacity: 0.34;
  transform: translateX(-60%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: min(760px, calc(100svh - 74px));
  align-items: center;
  gap: 34px;
  padding: 58px 0 64px;
}

.hero-content {
  max-width: 900px;
}

.hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-lockup .brand-mark {
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-lockup small,
.hero .eyebrow {
  color: #c7f7e0;
}

.hero-lockup strong {
  display: block;
  color: #fff;
}

.hero .eyebrow {
  display: inline-flex;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
}

h1 {
  max-width: 920px;
  margin: 22px 0 20px;
  font-size: clamp(40px, 7.3vw, 78px);
  line-height: 0.97;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #edf7ff;
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 650;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.button-primary {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.button-primary:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
}

.button-outline {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--primary-strong);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 34px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 16px;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.19);
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: #e9f7ff;
  font-size: 13px;
  font-weight: 750;
}

.hero-panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  color: #111827;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.slide-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.slide-item img {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
}

.slide-item small {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-item strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.25;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots span {
  position: relative;
  width: 42px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots span::after {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
  background: #fff;
  transform: translateX(-100%);
  animation: landing-dot-progress 32s linear infinite;
}

.hero-dots span:nth-child(2)::after {
  animation-delay: 6.4s;
}

.hero-dots span:nth-child(3)::after {
  animation-delay: 12.8s;
}

.hero-dots span:nth-child(4)::after {
  animation-delay: 19.2s;
}

.hero-dots span:nth-child(5)::after {
  animation-delay: 25.6s;
}

.hero-reveal {
  animation: content-lift 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-reveal:nth-child(2) {
  animation-delay: 80ms;
}

.hero-reveal:nth-child(3) {
  animation-delay: 150ms;
}

.hero-reveal:nth-child(4) {
  animation-delay: 220ms;
}

.hero-reveal:nth-child(5) {
  animation-delay: 300ms;
}

.band {
  padding: 68px 0;
}

.band-white {
  background: #fff;
}

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

.band-dark {
  background: var(--primary-strong);
  color: #fff;
}

.section-grid {
  display: grid;
  gap: 32px;
}

.section-grid.two {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.section-head {
  max-width: 760px;
}

.section-kicker {
  display: block;
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
}

.section-head p,
.muted {
  color: var(--muted);
  font-weight: 650;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.service-card,
.result-card,
.prep-card,
.location-card,
.value-card,
.document-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.feature-card:hover,
.service-card:hover,
.result-card:hover,
.prep-card:hover,
.location-card:hover,
.value-card:hover,
.document-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.feature-card {
  overflow: hidden;
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--soft);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.045);
}

.feature-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 72%;
  content: '';
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.84), transparent);
}

.feature-title {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: #fff;
}

.feature-title small {
  color: #d9fff0;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-title h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.feature-body {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.feature-body p {
  margin: 0;
  color: #3f4b5d;
  font-weight: 650;
}

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

.service-card,
.prep-card,
.location-card {
  padding: 20px;
}

.service-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 950;
}

.service-card h3,
.prep-card h3,
.location-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.result-list,
.prep-list,
.value-grid,
.document-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-card {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--soft);
}

.check {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.result-card p,
.prep-card p,
.location-card p {
  margin: 0;
  color: #4a5568;
  font-weight: 650;
}

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

.prep-step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 9px 12px;
  color: #3f4b5d;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.value-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.spark {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.location-card h3 {
  margin-top: 0;
}

.location-card a {
  color: var(--primary-strong);
  font-weight: 900;
}

.document-card {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.document-card small {
  display: block;
  margin-top: 4px;
  color: rgba(236, 253, 245, 0.76);
  font-size: 14px;
  font-weight: 650;
}

.document-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.arrow {
  font-size: 22px;
  font-weight: 900;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1020;
  color: #fff;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer h2,
.footer h3 {
  margin-bottom: 12px;
}

.footer p,
.footer a {
  color: #d8e5ef;
  font-weight: 650;
}

.footer a {
  display: inline-flex;
  margin: 5px 0;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  color: #aab8c5;
  font-size: 14px;
  font-weight: 650;
}

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

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-y both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  .reveal[data-reveal='left'] {
    animation-name: reveal-left;
  }

  .reveal[data-reveal='right'] {
    animation-name: reveal-right;
  }

  .reveal[data-reveal='zoom'] {
    animation-name: reveal-zoom;
  }
}

@keyframes hero-diagnostic-scan {
  from {
    transform: translate3d(-6%, 0, 0) rotate(-8deg);
  }

  to {
    transform: translate3d(6%, 0, 0) rotate(-8deg);
  }
}

@keyframes hero-light-sweep {
  0%,
  42% {
    transform: translateX(-68%);
  }

  100% {
    transform: translateX(68%);
  }
}

@keyframes landing-image-drift {
  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.075) translateX(-0.9rem);
  }
}

@keyframes landing-dot-progress {
  0% {
    transform: translateX(-100%);
  }

  20%,
  100% {
    transform: translateX(0);
  }
}

@keyframes landing-carousel {
  0%,
  18% {
    opacity: 1;
  }

  20%,
  100% {
    opacity: 0;
  }
}

@keyframes shell-slide-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-lift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-y {
  from {
    opacity: 0.72;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-left {
  from {
    opacity: 0.72;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-right {
  from {
    opacity: 0.72;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-zoom {
  from {
    opacity: 0.72;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.98fr) 24rem;
  }

  .hero-panel {
    display: block;
  }
}

@media (max-width: 860px) {
  @supports (animation-timeline: view()) {
    .reveal[data-reveal='left'],
    .reveal[data-reveal='right'] {
      animation-name: reveal-y;
    }
  }

  .topbar-inner,
  .section-grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    display: grid;
    justify-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 48px 0 58px;
  }

  .hero-lockup {
    display: none;
  }

  .metrics,
  .feature-grid,
  .service-grid,
  .prep-list,
  .value-grid,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .feature-body,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .nav a,
  .button {
    width: 100%;
  }

  .actions,
  .nav {
    width: 100%;
  }

  h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-dots span {
    width: 30px;
  }
}

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