:root {
  --green: #00834c;
  --lime: #d7e933;
  --pink: #e990ba;
  --dark: #192b2c;
  --darker: #102021;
  --paper: #fffdf8;
  --muted: #9db0ae;
  --shell: 1380px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: var(--dark);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 1664 / 933;
  overflow: hidden;
  color: #143e31;
  background: #f8f6ef;
}
.hero::before {
  position: absolute;
  inset: -24px;
  background: url("/assets/pagina-brevemente-v1.jpg") center / cover no-repeat;
  content: "";
  filter: blur(18px);
  opacity: .13;
  transform: scale(1.03);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  width: min(660px, calc(100% - 40px));
  height: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(8px, 1.1vw, 18px);
}
.brand img {
  width: clamp(50px, 8.5vw, 160px);
  height: auto;
  object-fit: contain;
}
.hero-copy > p {
  margin: 0 0 8px;
  color: #6f8a55;
  font-size: clamp(11px, 1.25vw, 24px);
}
.hero h1 {
  margin: 0;
  color: #9ec829;
  font-size: clamp(36px, 5.4vw, 104px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-transform: uppercase;
}

.pharmacies {
  padding: 92px 0 104px;
  background: var(--dark);
}
.pharmacies header {
  max-width: 860px;
  margin: 0 auto 62px;
  text-align: center;
}
.pharmacies header p {
  margin: 0 0 10px;
  color: #c8d968;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 650;
  letter-spacing: .025em;
  line-height: 1.15;
  text-transform: uppercase;
}
.pharmacies h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.pharmacy-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.16);
}
.pharmacy-grid article {
  min-height: 398px;
  min-width: 0;
  padding: 32px;
  background: var(--darker);
  transition: background .18s ease;
}
.pharmacy-grid article:hover { background: #173535; }
.pharmacy-logo {
  display: flex;
  width: 100%;
  height: 126px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.pharmacy-logo img {
  width: auto;
  max-width: min(100%, 265px);
  max-height: 118px;
  object-fit: contain;
}
.pharmacy-logo-cesar {
  flex-direction: column;
  gap: 2px;
}
.pharmacy-logo-cesar img {
  width: auto;
  max-width: 110px;
  height: 88px;
}
.pharmacy-logo-cesar span {
  color: #58a9c0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.pharmacy-grid article > p {
  margin: 0 0 7px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.pharmacy-grid h3 {
  margin: 0 0 15px;
  font-size: 23px;
  letter-spacing: -.03em;
}
.pharmacy-grid address {
  min-height: 52px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 24px;
  padding-top: 18px;
}
.actions .phone {
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}
.location-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #fff;
  background: #55b8b0;
  box-shadow: 0 4px 0 #9eb65f;
  font-size: 13px;
  font-weight: 750;
  transition: transform .16s ease, background .16s ease;
}
.location-button:hover {
  background: #48aaa2;
  transform: translateY(-1px);
}
.location-button img {
  width: 22px;
  height: 22px;
  color: currentColor;
  filter: brightness(0) invert(1);
}

footer {
  border-top: 6px solid var(--lime);
  padding: 18px 0;
  color: #516563;
  background: #fffdf8;
}
footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand img { width: 54px; height: auto; }
footer p { margin: 0; font-size: 12px; }

@media (min-width: 981px) {
  .hero {
    height: clamp(560px, 38vw, 700px);
    aspect-ratio: auto;
  }
}

@media (max-width: 980px) {
  .pharmacy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero-copy { width: min(70%, 360px); }
  .hero-copy > p { max-width: 240px; line-height: 1.25; }
  .hero h1 { margin-top: 4px; }
  .pharmacies { padding: 68px 0 72px; }
  .pharmacies header { margin-bottom: 42px; }
  .pharmacies header p { font-size: 27px; }
  .pharmacies h2 { font-size: 35px; }
  .pharmacy-grid { grid-template-columns: 1fr; }
  .pharmacy-grid article { min-height: 380px; padding: 28px 24px; }
  .pharmacy-logo { height: 122px; }
  .pharmacy-logo img { max-width: 245px; max-height: 114px; }
  .actions { gap: 12px; }
  footer .shell { align-items: flex-start; flex-direction: column; gap: 12px; }
}
