:root {
  --green-950: #073f39;
  --green-900: #095047;
  --green-800: #0d6659;
  --green-700: #0f7c6b;
  --green-600: #16947e;
  --mint-100: #def3ec;
  --mint-50: #f1faf7;
  --cream: #fbfcf8;
  --ink: #17302d;
  --muted: #667875;
  --white: #ffffff;
  --line: rgba(15, 124, 107, .16);
  --shadow: 0 24px 60px rgba(8, 73, 64, .13);
  --radius-lg: 30px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

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

.section-pad {
  padding: 92px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(222, 243, 236, .42), rgba(255,255,255,.66));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(251, 252, 248, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 124, 107, .08);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand-mark,
.medical-cross {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-700);
  box-shadow: 0 10px 26px rgba(15, 124, 107, .24);
}

.cross-v, .cross-h {
  position: absolute;
  border-radius: 999px;
  background: var(--white);
}

.brand-mark .cross-v {
  width: 9px;
  height: 27px;
}

.brand-mark .cross-h {
  width: 27px;
  height: 9px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-city {
  color: var(--muted);
  font-size: .77rem;
  margin-top: 4px;
}

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

.main-nav a {
  position: relative;
  color: #3e5450;
  font-size: .94rem;
  font-weight: 650;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-700);
  transition: right .25s ease;
}

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 60, 53, .08);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(95, 203, 173, .24), transparent 30%),
    linear-gradient(135deg, #fdfefb 0%, #edf8f4 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -180px 45%;
  height: 440px;
  border-radius: 50%;
  background: rgba(15, 124, 107, .07);
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero h1,
.section-copy h2,
.contact-copy h2 {
  margin: 18px 0 22px;
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
}

.hero h1 span {
  color: var(--green-700);
}

.hero-location {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #47605b;
  margin: 0 0 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  box-shadow: 0 16px 35px rgba(15, 124, 107, .23);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 40px rgba(15, 124, 107, .3);
}

.btn-secondary {
  color: var(--green-900);
  border: 1px solid rgba(15, 124, 107, .2);
  background: rgba(255,255,255,.72);
}

.btn-large {
  min-height: 58px;
  padding-inline: 30px;
}

.icon {
  font-size: 1.15rem;
}

.hero-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  color: var(--muted);
  font-size: .9rem;
}

.hero-contact a {
  color: var(--green-800);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.pharmacy-card {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: .9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(230,247,241,.8));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pharmacy-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(15,124,107,.12);
}

.glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(36, 180, 150, .14);
  filter: blur(6px);
}

.medical-cross {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 32px;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 26px 48px rgba(15, 124, 107, .22);
}

.medical-cross .cross-v {
  width: 21px;
  height: 72px;
}

.medical-cross .cross-h {
  width: 72px;
  height: 21px;
}

.pharmacy-card p,
.pharmacy-card strong,
.pharmacy-card small {
  position: relative;
  z-index: 1;
  margin: 0;
}

.pharmacy-card p {
  color: var(--muted);
  font-size: 1rem;
}

.pharmacy-card strong {
  margin-top: 2px;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.045em;
}

.pharmacy-card small {
  margin-top: 12px;
  color: var(--muted);
}

.mini-card {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 38px rgba(13, 68, 59, .13);
  backdrop-filter: blur(12px);
}

.mini-card span {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
}

.mini-card strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: .95rem;
}

.mini-phone {
  left: -40px;
  top: 80px;
}

.mini-address {
  right: -28px;
  bottom: 80px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 110px;
  height: 110px;
  left: 4%;
  bottom: 8%;
  background: rgba(22, 148, 126, .09);
}

.orb-two {
  width: 60px;
  height: 60px;
  right: 42%;
  top: 16%;
  border: 12px solid rgba(22, 148, 126, .08);
}

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

.info-card {
  min-height: 185px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(13, 76, 66, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(13, 76, 66, .11);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--green-700);
  background: var(--mint-100);
  font-size: 1.2rem;
  font-weight: 800;
}

.card-label,
.contact-number span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.card-value {
  display: block;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.text-link {
  grid-column: 2;
  width: max-content;
  color: var(--green-700);
  font-size: .9rem;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.section-copy h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.lead {
  margin: 0 0 28px;
  color: #4e615d;
  font-size: 1.2rem;
}

.location-art {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(15,124,107,.12);
  border-radius: 34px;
  background: linear-gradient(145deg, #e8f5ef, #f8fbf8);
  box-shadow: var(--shadow);
}

.map-pattern {
  position: absolute;
  inset: -10%;
  opacity: .65;
  background-image:
    linear-gradient(35deg, transparent 45%, rgba(15,124,107,.11) 46%, rgba(15,124,107,.11) 48%, transparent 49%),
    linear-gradient(125deg, transparent 44%, rgba(15,124,107,.09) 45%, rgba(15,124,107,.09) 48%, transparent 49%);
  background-size: 110px 110px, 140px 140px;
  transform: rotate(-6deg);
}

.pin {
  position: absolute;
  left: 56%;
  top: 40%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--green-700);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 20px 34px rgba(15,124,107,.28);
}

.pin-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
}

.address-ticket {
  position: absolute;
  left: 32px;
  bottom: 30px;
  right: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 16px 36px rgba(10, 64, 55, .11);
}

.address-ticket span,
.address-ticket small {
  display: block;
  color: var(--muted);
}

.address-ticket strong {
  display: block;
  margin: 4px 0;
  color: var(--green-900);
  font-size: 1.15rem;
}

.section-deep {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(60, 190, 159, .17), transparent 30%),
    linear-gradient(135deg, var(--green-950), var(--green-900));
  overflow: hidden;
}

.section-deep::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.025);
}

.hours-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.section-copy.light h2 {
  color: var(--white);
}

.section-copy.light p {
  color: rgba(255,255,255,.7);
  max-width: 460px;
}

.eyebrow-light {
  color: #8ee1c8;
}

.hours-card {
  padding: 12px 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(1, 28, 24, .22);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 28px 4px;
}

.hours-row > div {
  display: flex;
  flex-direction: column;
}

.day {
  font-size: 1.1rem;
  font-weight: 800;
}

.hours-row small {
  color: rgba(255,255,255,.55);
}

.hours-row strong {
  color: #c9f4e6;
  font-size: 1.25rem;
  text-align: right;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.11);
}

.contact-section {
  background: linear-gradient(180deg, var(--cream), #edf8f4);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(15,124,107,.15);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.contact-number a {
  display: block;
  margin-top: 6px;
  color: var(--green-800);
  font-size: 1.35rem;
  font-weight: 850;
}

.site-footer {
  padding: 40px 0;
  color: #d9e9e5;
  background: #052f2b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 5px 0 0;
  color: #9db7b1;
  font-size: .88rem;
}

.site-footer > .container > a {
  color: #bcebdc;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .86rem;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--white);
}

.floating-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 16px 32px rgba(12, 87, 74, .28);
  font-size: 1.25rem;
  transition: transform .2s ease;
}

.floating-call:hover,
.floating-call:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

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

/* El contenido permanece visible aunque JavaScript no se ejecute. */
.js-ready .reveal {
  animation: reveal-in .65s ease both;
}

@keyframes reveal-in {
  from {
    opacity: .001;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .main-nav {
    position: fixed;
    inset: 76px 20px auto 20px;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(15,124,107,.12);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 50px rgba(10, 75, 64, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

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

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

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--mint-50);
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-layout,
  .hours-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-actions,
  .hero-contact {
    justify-content: center;
  }

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

  .mini-phone {
    left: 4px;
  }

  .mini-address {
    right: 4px;
  }

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

  .info-card {
    min-height: 150px;
  }

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

  .contact-panel .btn {
    grid-column: 1 / -1;
  }

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

  .site-footer nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .section-pad {
    padding: 72px 0;
  }

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: .92rem;
  }

  .brand-city {
    font-size: .72rem;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-contact {
    flex-direction: column;
    gap: 4px;
  }

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

  .pharmacy-card {
    width: calc(100% - 20px);
    border-radius: 32px;
    padding: 30px;
  }

  .medical-cross {
    width: 105px;
    height: 105px;
    border-radius: 30px;
  }

  .mini-card {
    min-width: auto;
    width: 66%;
    padding: 14px 16px;
  }

  .mini-phone {
    left: 0;
    top: 54px;
  }

  .mini-address {
    right: 0;
    bottom: 54px;
  }

  .info-card {
    padding: 22px;
  }

  .location-art {
    min-height: 380px;
  }

  .address-ticket {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .pin {
    width: 62px;
    height: 62px;
  }

  .hours-card {
    padding: 4px 20px;
  }

  .hours-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 24px 2px;
  }

  .hours-row strong {
    text-align: left;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 24px;
  }

  .contact-panel .btn {
    grid-column: auto;
  }

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

  .site-footer nav {
    grid-column: auto;
    flex-direction: column;
    gap: 8px;
  }

  .floating-call {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
