:root {
  --navy: #123c4a;
  --navy-dark: #082934;
  --teal: #287d79;
  --teal-soft: #8bc9b7;
  --cream: #f7f4ed;
  --sand: #e9dfcd;
  --white: #ffffff;
  --text: #17323a;
  --muted: #60757b;
  --line: rgba(18, 60, 74, 0.13);
  --shadow: 0 24px 70px rgba(8, 41, 52, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 11px 16px;
  color: var(--white);
  background: var(--navy-dark);
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  padding: 9px 0;
  background: rgba(247, 244, 237, 0.96);
  box-shadow: 0 12px 34px rgba(8, 41, 52, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 9px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(40, 125, 121, 0.2);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(8, 41, 52, 0.08);
}

.brand-symbol svg,
.visual-center-icon svg,
.card-icon svg,
.medical-card svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  min-width: 0;
  display: grid;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.footer-inner nav a {
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transition: right 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy-dark);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 90px;
  background:
    radial-gradient(circle at 15% 22%, rgba(139, 201, 183, 0.4), transparent 31%),
    radial-gradient(circle at 88% 12%, rgba(233, 223, 205, 0.95), transparent 34%),
    linear-gradient(135deg, #f8f7f1 0%, #edf6f2 56%, #f5ecdf 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.hero-glow {
  position: absolute;
  border: 1px solid rgba(40, 125, 121, 0.16);
  border-radius: 50%;
}

.hero-glow-one {
  width: 430px;
  height: 430px;
  left: -235px;
  bottom: 50px;
}

.hero-glow-two {
  width: 250px;
  height: 250px;
  top: 80px;
  right: -125px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  color: var(--navy-dark);
  font-size: clamp(3.4rem, 6.5vw, 6.4rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  color: var(--navy-dark);
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 15px;
  color: var(--navy-dark);
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: #425e65;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 16px 34px rgba(18, 60, 74, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy-dark);
}

.button-outline {
  color: var(--navy-dark);
  border-color: rgba(18, 60, 74, 0.2);
  background: rgba(255, 255, 255, 0.62);
}

.button-light {
  color: var(--navy-dark);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(40, 125, 121, 0.22);
  border-radius: 50%;
}

.visual-ring-one {
  width: 445px;
  height: 445px;
  inset: 35px 0 auto auto;
}

.visual-ring-two {
  width: 315px;
  height: 315px;
  inset: 100px 65px auto auto;
  border-style: dashed;
}

.visual-center {
  position: absolute;
  top: 145px;
  right: 116px;
  z-index: 4;
  width: 215px;
  height: 215px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 26px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.visual-center-icon {
  width: 74px;
  height: 74px;
}

.visual-center strong {
  font-size: 1.05rem;
}

.visual-label {
  position: absolute;
  z-index: 5;
  min-width: 155px;
  padding: 14px 17px;
  color: var(--navy-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 60, 74, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 41, 52, 0.13);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: center;
}

.visual-label-top {
  top: 35px;
  left: 52px;
}

.visual-label-left {
  top: 233px;
  left: 0;
}

.visual-label-bottom {
  right: 0;
  bottom: 46px;
}

.section {
  padding: 112px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 90px;
  align-items: start;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.centered {
  max-width: 920px;
  margin: 0 auto 52px;
  text-align: center;
}

.intro-text {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.intro-text p {
  margin-bottom: 21px;
  color: #3f5960;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.program {
  position: relative;
  padding-top: 55px;
  padding-bottom: 55px;
}

.program-card {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: 42px;
  overflow: hidden;
  padding: 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 201, 183, 0.18), transparent 30%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 58%, #236e6d);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.program-copy {
  position: relative;
  z-index: 4;
}

.program-copy h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(4rem, 8vw, 7.5rem);
  letter-spacing: -0.06em;
}

.program-copy p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.program-network {
  position: relative;
  min-height: 460px;
}

.network-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 850;
}

.network-center {
  width: 170px;
  height: 170px;
  top: 145px;
  left: 50%;
  color: var(--navy-dark);
  background: var(--white);
  transform: translateX(-50%);
  font-size: 1.05rem;
}

.network-a,
.network-b,
.network-c {
  width: 122px;
  height: 122px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.network-a {
  top: 18px;
  left: 8%;
}

.network-b {
  top: 20px;
  right: 3%;
}

.network-c {
  right: 7%;
  bottom: 10px;
  width: 145px;
  height: 145px;
}

.network-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.36);
  transform-origin: left center;
}

.line-one {
  width: 190px;
  top: 118px;
  left: 22%;
  transform: rotate(28deg);
}

.line-two {
  width: 175px;
  top: 119px;
  left: 58%;
  transform: rotate(-31deg);
}

.line-three {
  width: 180px;
  top: 306px;
  left: 58%;
  transform: rotate(28deg);
}

.areas {
  padding-top: 120px;
}

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

.info-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 60, 74, 0.11);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(8, 41, 52, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -65px;
  width: 160px;
  height: 160px;
  background: rgba(139, 201, 183, 0.18);
  border-radius: 50%;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(8, 41, 52, 0.12);
}

.card-number {
  display: block;
  margin-bottom: 48px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.card-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  padding: 16px;
  color: var(--teal);
  background: rgba(139, 201, 183, 0.2);
  border-radius: 20px;
}

.info-card p {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  color: var(--muted);
}

.dispensary-section {
  padding-top: 70px;
}

.dispensary-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 90px;
}

.dispensary-visual {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 201, 183, 0.32), transparent 34%),
    linear-gradient(145deg, #e9f3ef, #f0e8dc);
  border: 1px solid var(--line);
  overflow: hidden;
}

.medical-card {
  position: absolute;
  z-index: 5;
  width: 170px;
  height: 170px;
  top: 150px;
  left: 50%;
  display: grid;
  place-items: center;
  padding: 43px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), var(--teal));
  border: 9px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.medical-dot {
  position: absolute;
  z-index: 4;
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 12px solid rgba(139, 201, 183, 0.45);
  border-radius: 50%;
  box-shadow: 0 13px 30px rgba(8, 41, 52, 0.12);
}

.dot-a {
  top: 55px;
  left: 60px;
}

.dot-b {
  top: 56px;
  right: 58px;
}

.dot-c {
  right: 70px;
  bottom: 52px;
}

.medical-link {
  position: absolute;
  z-index: 2;
  height: 1px;
  background: rgba(40, 125, 121, 0.35);
  transform-origin: left center;
}

.link-a {
  width: 190px;
  top: 150px;
  left: 112px;
  transform: rotate(28deg);
}

.link-b {
  width: 185px;
  top: 150px;
  left: 51%;
  transform: rotate(-30deg);
}

.link-c {
  width: 180px;
  top: 293px;
  left: 52%;
  transform: rotate(28deg);
}

.dispensary-copy p:last-child {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.15rem;
}

.closing {
  padding: 110px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(139, 201, 183, 0.18), transparent 34%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.closing-inner {
  max-width: 920px;
  text-align: center;
}

.closing-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-inner h2 {
  margin-bottom: 34px;
  color: var(--white);
}

.site-footer {
  padding: 48px 0;
  color: #d8e2e4;
  background: #061f28;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.footer-inner p {
  margin-bottom: 0;
  color: #9db0b5;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 24px;
}

.footer-inner nav a {
  color: #d8e2e4;
}

/* El contenido permanece visible aunque JavaScript no cargue. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.js-enabled .reveal.reveal-pending {
  opacity: 1;
  transform: translateY(24px);
}

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

@media (max-width: 980px) {
  .site-header {
    padding-inline: 0;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 94px;
    right: 20px;
    left: 20px;
    z-index: 999;
    display: grid;
    gap: 4px;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: #eef5f2;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-grid,
  .intro-grid,
  .program-card,
  .dispensary-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

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

  .hero-visual {
    width: min(620px, 100%);
    min-height: 490px;
    margin-inline: auto;
  }

  .intro-grid {
    gap: 34px;
  }

  .intro-text {
    padding-left: 0;
    border-left: 0;
  }

  .program-card {
    gap: 15px;
    padding: 58px 42px;
  }

  .program-network {
    min-height: 430px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }

  .dispensary-grid {
    gap: 44px;
  }

  .dispensary-visual {
    width: min(620px, 100%);
    margin-inline: auto;
  }
}

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

  .site-header {
    padding: 10px 0;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-symbol {
    width: 43px;
    height: 43px;
  }

  .brand-text strong {
    font-size: 0.78rem;
  }

  .brand-text small {
    font-size: 0.66rem;
  }

  .main-nav {
    top: 82px;
    right: 12px;
    left: 12px;
  }

  .hero {
    padding: 118px 0 75px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 410px;
  }

  .visual-ring-one {
    width: 350px;
    height: 350px;
    inset: 28px -8px auto auto;
  }

  .visual-ring-two {
    width: 245px;
    height: 245px;
    inset: 80px 44px auto auto;
  }

  .visual-center {
    top: 112px;
    right: 70px;
    width: 180px;
    height: 180px;
    padding: 22px;
  }

  .visual-center-icon {
    width: 62px;
    height: 62px;
  }

  .visual-label {
    min-width: 138px;
    padding: 12px 14px;
    font-size: 0.74rem;
  }

  .visual-label-top {
    top: 24px;
    left: 0;
  }

  .visual-label-left {
    top: 213px;
    left: 0;
  }

  .visual-label-bottom {
    right: 0;
    bottom: 18px;
  }

  .section {
    padding: 84px 0;
  }

  .program {
    padding: 25px 0;
  }

  .program-card {
    padding: 46px 23px;
    border-radius: 25px;
  }

  .program-copy h2 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .program-network {
    min-height: 390px;
  }

  .network-center {
    width: 145px;
    height: 145px;
    top: 130px;
  }

  .network-a,
  .network-b {
    width: 103px;
    height: 103px;
    font-size: 0.69rem;
  }

  .network-c {
    width: 125px;
    height: 125px;
    font-size: 0.7rem;
  }

  .line-one {
    width: 125px;
    left: 21%;
  }

  .line-two {
    width: 120px;
    left: 58%;
  }

  .line-three {
    width: 130px;
    left: 57%;
  }

  .section-heading.centered {
    margin-bottom: 38px;
  }

  .info-card {
    padding: 28px;
  }

  .card-number {
    margin-bottom: 34px;
  }

  .dispensary-section {
    padding-top: 56px;
  }

  .dispensary-visual {
    min-height: 390px;
  }

  .medical-card {
    width: 145px;
    height: 145px;
    top: 125px;
    padding: 36px;
  }

  .medical-dot {
    width: 60px;
    height: 60px;
    border-width: 10px;
  }

  .dot-a {
    top: 48px;
    left: 32px;
  }

  .dot-b {
    top: 48px;
    right: 32px;
  }

  .dot-c {
    right: 44px;
    bottom: 42px;
  }

  .link-a {
    width: 145px;
    top: 126px;
    left: 80px;
  }

  .link-b {
    width: 140px;
    top: 126px;
  }

  .link-c {
    width: 135px;
    top: 246px;
  }

  .closing {
    padding: 84px 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-inner nav {
    display: grid;
    justify-content: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}
