/* =============================================================
   FARMACIA MM — styles.css
   Archetype: Glassmorphism Modern, adapted to a monochrome
   pharmacy palette (charcoal/gray/white) + a single green accent
   already present in the real brand material (WhatsApp icon).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --cta-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Palette — cool, clinical, minimal. Matches the client's grayscale cross logo. */
  --bg:        #f5f6f5;
  --bg-2:      #eceeec;
  --paper:     #ffffff;
  --glass:     rgba(255, 255, 255, 0.6);
  --glass-2:   rgba(255, 255, 255, 0.38);
  --ink:       #24272a;
  --ink-soft:  #454a4d;
  --ink-mute:  #6a6e70;   /* darkened from initial gray to clear WCAG AA 4.5:1 on white */
  --line:      rgba(36, 39, 42, 0.1);

  --accent:      #1c7a55;   /* deep pharmacy green — links, badges, focus */
  --accent-soft: #e4f2ea;
  --whatsapp:    #25d366;   /* brand-accurate WhatsApp green, used only for that CTA */

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);
  --serif: "Fraunces", "Lora", Georgia, "Times New Roman", serif;

  --nav-h: 76px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Film grain — very subtle, adds a premium tactile surface */
.grain {
  position: fixed; inset: 0; z-index: 401; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* Refined scrollbar (desktop pointers) */
@media (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: rgba(28,122,85,.55) transparent; }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(28,122,85,.5); border-radius: 999px; border: 3px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: rgba(28,122,85,.75); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 600;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 0; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--whatsapp));
  will-change: transform;
}

.kicker {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-mute); text-transform: uppercase;
}
[data-open-status] { white-space: nowrap; }
.open-status-link {
  color: var(--accent); font-weight: 800;
  text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap; transition: color .25s;
}
.open-status-link:hover { color: var(--ink); }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); flex: none;
}
.eyebrow-dot.is-open { background: var(--accent); animation: dotPulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .eyebrow-dot.is-open { animation: none; } }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28,122,85,.35); }
  50% { box-shadow: 0 0 0 6px rgba(28,122,85,0); }
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .6rem; }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}

.cross-deco {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.cross-deco svg { width: 100%; height: 100%; }
.hero-cross-deco { opacity: .65; }
@media (max-width: 639px) { .hero-cross-deco { opacity: .38; } }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .96rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(36,39,42,0.08), 0 1px 3px rgba(36,39,42,0.05);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(36,39,42,0.14), 0 8px 18px rgba(28,122,85,0.14); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 14px 30px rgba(36,39,42,0.1); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Glass cards
   ============================================================= */
.glass-card {
  background: rgba(255,255,255,0.82); /* solid fallback */
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(36,39,42,.04), 0 20px 40px -20px rgba(36,39,42,.18);
}
@supports (backdrop-filter: blur(16px)) {
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
  }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245,246,245,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(36,39,42,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; object-fit: contain; transition: transform .5s var(--ease-bounce); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark svg { width: 100%; height: 100%; }

.nav-links { display: none; align-items: center; gap: 1.4rem; }
.nav-link { position: relative; padding: .25rem 0; font-weight: 600; font-size: .93rem; color: var(--ink-soft); }
.nav-link--alert { color: var(--accent); font-weight: 700; }
.nav-link--alert::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .35rem; vertical-align: middle;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .nav-link--alert::before { animation: none; } }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .55rem; }

/* "Cómo llegar" — visual directions button, always visible */
.btn-directions {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .58rem .95rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(28,122,85,.28);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s;
}
.btn-directions:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28,122,85,.36); }
.btn-directions svg { width: 1.05em; height: 1.05em; flex: none; }
@media (max-width: 639px) {
  .btn-directions { padding: 0; width: 42px; height: 42px; justify-content: center; border-radius: 50%; }
  .btn-directions-label { display: none; }
  .btn-directions svg { width: 19px; height: 19px; }
}
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: rgba(255,255,255,.6);
}
.lang-toggle button {
  padding: .35rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  color: var(--ink-mute); transition: background-color .3s, color .3s;
}
.lang-toggle button.is-active { background: var(--ink); color: #fff; }

.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.nav-burger svg { width: 20px; height: 20px; }
/* On very narrow phones, show just the logo mark so the top bar never crowds */
@media (max-width: 439px) { .brand span { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; z-index: 900;   /* above the fixed nav (500) */
  background: var(--ink); color: #fff;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path .55s var(--ease-soft);
  overflow: hidden;
}
.nav-mobile[data-open="true"] { clip-path: inset(0); pointer-events: auto; }
.nav-mobile-glow {
  position: absolute; inset: -30% -20% auto -20%; height: 70%;
  background: radial-gradient(50% 60% at 70% 10%, rgba(28,122,85,.5), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.nav-mobile-inner {
  position: relative; z-index: 1;
  height: 100%; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 1.15rem clamp(1.4rem, 6vw, 2.4rem) 2rem;
  width: min(100%, 640px); margin-inline: auto;
}
.nav-mobile-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
.brand-on-dark { color: #fff; }
.nav-mobile-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  transition: background-color .3s, transform .3s var(--ease-soft);
}
.nav-mobile-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.nav-mobile-close svg { width: 22px; height: 22px; }

.nav-mobile-list {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(.4rem, 2.2vh, 1rem);
}
.nav-mobile-list a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 800;
  letter-spacing: -.02em; color: #fff; line-height: 1.1;
  padding: .25rem 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .25s;
}
.nav-mobile[data-open="true"] .nav-mobile-list a { opacity: 1; transform: none; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(1) { transition-delay: .08s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(2) { transition-delay: .14s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(3) { transition-delay: .20s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(4) { transition-delay: .26s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(5) { transition-delay: .32s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(6) { transition-delay: .38s; }
.nav-mobile[data-open="true"] .nav-mobile-list a:nth-child(7) { transition-delay: .44s; }
.nav-mobile-list a:hover { color: var(--whatsapp); }
.nav-mobile-idx {
  font-size: .8rem; font-weight: 700; color: var(--cream-3, #8b9a92);
  opacity: .5; min-width: 1.6em;
}
.nav-mobile-list a:hover .nav-mobile-idx { color: var(--whatsapp); opacity: 1; }

.nav-mobile-foot { display: flex; gap: .8rem; flex: none; margin-top: 1.4rem; }
.nav-mobile-foot .btn { flex: 1; }
.btn-ghost-light {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.22); box-shadow: none;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.nav-mobile-directions {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem; padding: .5rem; flex: none;
  color: rgba(255,255,255,.7); font-weight: 700; font-size: .92rem;
  transition: color .3s;
}
.nav-mobile-directions:hover { color: #fff; }
.nav-mobile-directions svg { width: 1.1em; height: 1.1em; color: var(--whatsapp); }
@media (prefers-reduced-motion: reduce) {
  .nav-mobile-list a { transition-delay: 0s !important; }
}

@media (min-width: 1240px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(48% 42% at var(--mesh-x) var(--mesh-y), rgba(28,122,85,.16), transparent 62%),
    radial-gradient(55% 45% at 82% 20%, rgba(36,39,42,.07), transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(120%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-x: 24%; --mesh-y: 36%; }
  50%      { --mesh-x: 62%; --mesh-y: 58%; }
}

.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  margin-top: .9rem;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 1.3rem; max-width: 48ch;
  color: var(--ink-soft); font-size: 1.08rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-orb {
  position: relative; width: min(320px, 70vw); aspect-ratio: 1;
  display: grid; place-items: center;
  animation: bob 6s var(--ease-soft) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation-duration: 10s; } }

.hero-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 55%, transparent 70%), var(--paper);
  box-shadow: 0 40px 80px -20px rgba(36,39,42,.25), inset 0 1px 0 rgba(255,255,255,.8);
  filter: drop-shadow(0 30px 40px rgba(36,39,42,.14));
}
.hero-orb-mark { position: relative; z-index: 2; width: 66%; height: auto; }

/* Ultra-minimal hero mark: no white disc, no ring — just the logo, larger,
   floating, with a soft shadow for presence. Scroll dynamism handled in JS. */
.hero-orb--bare { width: min(360px, 80vw); }
.hero-orb--bare::before { display: none; }
.hero-orb--bare .hero-orb-mark {
  width: 100%;
  filter: brightness(.88) contrast(1.14) drop-shadow(0 26px 40px rgba(36,39,42,.24)) drop-shadow(0 4px 10px rgba(36,39,42,.14));
  transform-origin: 50% 50%; will-change: transform;
}
/* Rating pill sits cleanly below the bare logo (no white disc to anchor it) */
@media (min-width: 640px) {
  .hero-orb--bare .hero-float-card {
    left: 50%; right: auto; top: 100%; bottom: auto; margin: 0;
    transform: translate(-50%, 20px);
    width: max-content; max-width: 92%;
    padding: .6rem 1.05rem; border-radius: 999px;
  }
}

/* Slow rotating accent ring around the orb — subtle "alive" motion */
.hero-orb::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(28,122,85,.55) 78%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: spinRing 14s linear infinite;
  opacity: .8;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-orb::before { animation: none; } }

.hero-float-card {
  position: absolute; bottom: -6%; left: -6%;
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md);
}
.hero-float-card strong { font-family: var(--display); font-size: 1.2rem; }
.hero-float-card .rating-stars { color: var(--accent); font-size: .85rem; letter-spacing: .05em; }
.hero-float-card small { color: var(--ink-mute); font-size: .78rem; display: block; }

/* Hero energy marquee — mobile only */
.hero-marquee { display: none; }
.hero-marquee .marquee-track {
  display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap; will-change: transform;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: .01em;
}
.hm-cross {
  display: inline-block; width: 12px; height: 12px; flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='10' y='2' width='4' height='20' rx='1.2'/%3E%3Crect x='2' y='10' width='20' height='4' rx='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='10' y='2' width='4' height='20' rx='1.2'/%3E%3Crect x='2' y='10' width='20' height='4' rx='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* -------- Mobile hero: tighter, more dynamic, less "plain" -------- */
@media (max-width: 639px) {
  .hero {
    flex-direction: column; justify-content: center;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 0;
  }
  .hero-grid { gap: 1.4rem; }
  .hero-title { font-size: clamp(2.3rem, 12vw, 3rem); }
  .hero-sub { font-size: 1rem; margin-top: 1rem; }
  .hero > .container .hero-ctas { flex-wrap: nowrap; gap: .6rem; margin-top: 1.4rem; }
  .hero > .container .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding: .82rem .7rem; font-size: .9rem; }
  .hero-visual { min-height: auto; margin-top: .8rem; padding-bottom: 5.6rem; }
  .hero-orb { width: 168px; animation-duration: 7s; }
  .hero-orb--bare { width: 208px; }
  /* Rating sits cleanly BELOW the logo as a centered badge (no white bar over the circle) */
  .hero-float-card {
    left: 50%; right: auto; top: 100%; bottom: auto; margin: 0;
    transform: translate(-50%, 14px);
    width: max-content; max-width: 94vw;
    padding: .5rem .95rem; gap: .6rem; border-radius: 999px;
    box-shadow: 0 14px 30px -14px rgba(36,39,42,.3);
  }
  .hero-float-card strong { font-size: .98rem; }
  .hero-float-card small { font-size: .73rem; }
  .hero-marquee {
    display: block; align-self: stretch; width: auto;
    margin-top: 2.6rem; padding-block: .9rem;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.5);
  }
}

/* =============================================================
   8. Stats strip
   ============================================================= */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  padding-block: clamp(2.2rem, 5vw, 3rem);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.4rem 1.2rem; text-align: center; }
.stat-num { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); }
.stat-num-max { color: var(--ink-mute); font-weight: 700; font-size: .62em; }
.rating-max { color: var(--ink-mute); font-weight: 700; }
.stat-label { margin-top: .3rem; font-size: .82rem; color: var(--ink-mute); font-weight: 600; }

/* Scroll word-fill statement */
.statement { padding-block: clamp(3.5rem, 11vw, 8rem); }
.statement-text {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 3.5rem); line-height: 1.2; letter-spacing: -.02em;
  max-width: 22ch; color: var(--ink); text-wrap: balance;
}
.statement-text .word {
  color: rgba(36, 39, 42, calc(.15 + var(--lit, 1) * .85));
  transition: color .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .statement-text .word { color: var(--ink); }
}

/* =============================================================
   9. Services
   ============================================================= */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 1.9rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
/* soft accent sheen that sweeps in on hover */
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% -10%, rgba(28,122,85,.1), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(28,122,85,.28); }
.service-card.is-featured {
  background: linear-gradient(160deg, rgba(28,122,85,.09), rgba(255,255,255,.85));
  border-color: rgba(28,122,85,.25);
}
.service-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1rem;
  transition: transform .5s var(--ease-bounce), background-color .4s;
}
.service-card:hover .service-icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; }
.service-badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  color: var(--accent); background: #fff; border: 1px solid rgba(28,122,85,.3);
  padding: .25rem .55rem; border-radius: 999px;
}

/* =============================================================
   9b. Categorías de producto
   ============================================================= */
.categories-section { background: var(--bg-2); overflow: hidden; }
.categories-cross-deco { opacity: .5; }
@media (max-width: 639px) { .categories-cross-deco { opacity: .32; } }
.categories-section .container { position: relative; z-index: 1; }

.categories-grid {
  display: grid; gap: .75rem;
  /* minmax(0,1fr) lets columns shrink below their content's min-width, so long
     single words (e.g. "Suplementación") never force the grid past the container. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 560px) { .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .categories-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.cat-tile {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(36,39,42,.04);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              border-color .35s var(--ease-out), background-color .35s;
}
@supports (backdrop-filter: blur(12px)) {
  .cat-tile { background: var(--glass); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(28,122,85,.32);
  box-shadow: 0 22px 40px -22px rgba(28,122,85,.35);
}
.cat-tile-ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .5s var(--ease-bounce), background-color .35s, color .35s;
}
.cat-tile:hover .cat-tile-ico { transform: rotate(-6deg) scale(1.06); background: var(--accent); color: #fff; }
.cat-tile-ico svg { width: 22px; height: 22px; }
.cat-tile-label {
  min-width: 0; font-size: .9rem; font-weight: 700; color: var(--ink);
  line-height: 1.2; letter-spacing: -.01em;
  overflow-wrap: break-word; hyphens: auto;
}
@media (max-width: 460px) {
  /* Icon on top, label below — gives long pharmacy words the full tile width
     so they read on one clean line instead of breaking mid-word. */
  .cat-tile { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .85rem .8rem; }
  .cat-tile-ico { width: 36px; height: 36px; }
  .cat-tile-ico svg { width: 20px; height: 20px; }
  .cat-tile-label { font-size: .86rem; }
}

/* Disclaimer de disponibilidad */
.cat-disclaimer {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  display: grid; gap: .55rem 1.2rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 1.7rem) clamp(1.3rem, 3vw, 1.9rem);
}
.cat-disclaimer-ico {
  grid-row: 1 / span 2; align-self: start;
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.cat-disclaimer-ico svg { width: 26px; height: 26px; }
.cat-disclaimer-text { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.cat-disclaimer-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cat-disclaimer-actions .btn { padding: .72rem 1.25rem; font-size: .9rem; }
@media (max-width: 620px) {
  .cat-disclaimer { grid-template-columns: 1fr; }
  .cat-disclaimer-ico { grid-row: auto; }
  .cat-disclaimer-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* =============================================================
   10. Nosotros
   ============================================================= */
.about-grid {
  display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 960px) { .about-grid { grid-template-columns: .95fr 1.05fr; } }

.about-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--bg-2), var(--paper));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 34px 60px -34px rgba(36,39,42,.34);
}
@media (min-width: 960px) { .about-figure { aspect-ratio: 4/5; } }
.about-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-figure-placeholder {
  position: relative; z-index: 1; text-align: center; padding: 2rem; color: var(--ink-mute);
}
.about-figure-placeholder svg { width: 40px; height: 40px; margin-inline: auto; margin-bottom: .8rem; color: var(--accent); }
.about-figure-placeholder strong { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: .3rem; }
.about-figure-placeholder span { font-size: .82rem; }

.about-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.about-item { display: flex; gap: .8rem; align-items: flex-start; }
.about-item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.about-item p { font-weight: 600; color: var(--ink-soft); }

/* =============================================================
   11. Testimonials
   ============================================================= */
.testi-track {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 860px) { .testi-track { grid-template-columns: repeat(3, 1fr); } }
.testi-card { padding: 1.8rem; }
.testi-quote { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.testi-quote::before { content: "\201C"; color: var(--accent); font-weight: 800; margin-right: 2px; }
.testi-foot { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .75rem; }
.testi-name { font-weight: 800; font-size: .92rem; }
.testi-source { font-size: .78rem; color: var(--ink-mute); }
.testi-stars { color: var(--accent); font-size: .82rem; }

/* =============================================================
   12. Horario & ubicación
   ============================================================= */
.hours-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hours-grid { grid-template-columns: 1fr 1fr; } }

.hours-card { padding: 1.8rem; }
.hours-season { margin-bottom: 1.3rem; }
.hours-season h4 {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: 1.02rem; margin-bottom: .8rem; color: var(--ink);
}
.season-ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--bg-2); color: var(--ink-soft);
}
.season-ico svg { width: 18px; height: 18px; }
.hours-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem 0; border-top: 1px solid var(--line); font-size: .92rem;
}
.hours-row:first-of-type { border-top: 0; }
.hours-day { color: var(--ink-soft); font-weight: 600; flex: none; }
.tchips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; justify-content: flex-end; }
.tchip {
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  font-weight: 700; font-size: .82rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: .28rem .6rem; border-radius: 8px; white-space: nowrap;
}
.tchip-or { color: var(--ink-mute); font-size: .74rem; font-weight: 700; text-transform: lowercase; }
.hours-alt { color: var(--ink-soft); font-weight: 600; font-size: .86rem; text-align: right; }
.hours-note { margin-top: .7rem; font-size: .82rem; color: var(--ink-mute); }
.hours-note-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hours-note-link:hover { color: var(--ink); }

.guard-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  padding: 1.6rem; border: 1.5px dashed rgba(28,122,85,.4);
  background: rgba(28,122,85,.05);
}
.guard-card svg { width: 28px; height: 28px; color: var(--accent); }

/* Premium location card */
.map-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--paper);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(150deg, rgba(28,122,85,.55), rgba(36,39,42,.15) 45%, rgba(37,211,102,.5)) border-box;
  box-shadow: 0 2px 4px rgba(36,39,42,.05), 0 34px 60px -34px rgba(36,39,42,.32);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.map-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(36,39,42,.05), 0 44px 74px -34px rgba(28,122,85,.34); }
.map-card-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .72rem .5rem .72rem 1.05rem;
  background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
}
.map-card-live { display: inline-flex; align-items: center; gap: .55rem; }
.map-card-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); flex: none;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: mapPulse 2.2s ease-out infinite;
}
@keyframes mapPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .map-card-dot { animation: none; } }
.map-card-cta {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: .8rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: background-color .3s, gap .3s var(--ease-soft);
}
.map-card-cta:hover { background: var(--whatsapp); border-color: transparent; gap: .6rem; }
.map-card-cta svg { width: 15px; height: 15px; }

/* Location map — self-contained illustrated map (no external requests, no cookies).
   Always renders, links straight to Google Maps directions. */
.map-wrap { position: relative; display: block; aspect-ratio: 16/12; overflow: hidden; }
.map-static { position: absolute; inset: 0; z-index: 0; display: block; }
/* Real Google map — revealed by JS only once it truly loads (production).
   Until then, the illustrated map below stays visible so it never looks broken. */
.map-embed {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1;
  background: transparent; opacity: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: opacity .7s ease, filter .7s ease;
}
.map-embed.is-live { opacity: 1; pointer-events: auto; }
.map-card:hover .map-embed.is-live { filter: grayscale(0) contrast(1) brightness(1); }
.map-static-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  transition: transform 1.1s var(--ease-soft);
}
.map-card:hover .map-static-svg { transform: scale(1.05); }
.map-static-center {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .55rem; pointer-events: none;
}
.map-static-pin {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 26px -8px rgba(28,122,85,.55), 0 0 0 9px rgba(28,122,85,.14);
  animation: mapPulse 2.6s ease-out infinite;
}
.map-static-pin svg { width: 27px; height: 27px; }
.map-static-name {
  background: #fff; color: var(--ink); font-weight: 800; font-size: .82rem;
  padding: .32rem .75rem; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(36,39,42,.35);
}
.map-static-open {
  position: absolute; z-index: 2; bottom: .9rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem;
  padding: .55rem 1rem; border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(36,39,42,.55);
  transition: transform .4s var(--ease-soft), background-color .3s;
}
.map-static-open svg { width: 15px; height: 15px; }
.map-card:hover .map-static-open { transform: translateX(-50%) translateY(-2px); background: var(--accent); }
/* subtle inner frame + green vignette so the map feels integrated, not pasted */
.map-frame {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 0 60px rgba(28,122,85,.14);
}
.map-card-foot {
  display: flex; align-items: center; gap: .55rem;
  padding: .8rem 1.05rem; background: var(--paper);
  font-size: .84rem; color: var(--ink-soft); font-weight: 600;
}
.map-card-foot svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.address-block { margin-top: 1.1rem; display: grid; gap: .4rem; font-size: .95rem; color: var(--ink-soft); }
.address-block strong { color: var(--ink); }

/* =============================================================
   13. Coverage / SEO local + marquee
   ============================================================= */
.coverage-section { text-align: center; }
.marquee { overflow: hidden; position: relative; margin-top: 2.2rem; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: inline-flex; gap: 2.4rem; white-space: nowrap; will-change: transform;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink-mute);
}
.marquee-track span.dot { color: var(--accent); }

/* =============================================================
   14. CTA final
   ============================================================= */
.cta-final {
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  /* Animated gradient border (brand greens) — vanilla-CSS equivalent of the
     requested animated-gradient-border component. Inner fill stays charcoal;
     the rotating conic gradient only shows through the transparent border. */
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    conic-gradient(from var(--cta-angle),
      #0f5c3f 0%, #1c7a55 18%, #25d366 30%, #1c7a55 42%, #0f5c3f 50%,
      #0f5c3f 62%, #1c7a55 80%, #25d366 90%, #1c7a55 96%, #0f5c3f 100%) border-box;
  animation: ctaBorderSpin 6s linear infinite;
}
@keyframes ctaBorderSpin { to { --cta-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cta-final { animation: none; } }
.cta-final::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(45% 40% at var(--mesh-x) var(--mesh-y), rgba(28,122,85,.5), transparent 65%);
  filter: blur(70px);
  animation: meshDrift 22s ease-in-out infinite reverse;
}
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-final p { color: rgba(255,255,255,.72); margin-top: .8rem; }
.cta-final .hero-ctas { justify-content: center; margin-top: 1.8rem; }
.cta-final .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.cta-social { margin-top: 1.6rem; display: flex; justify-content: center; gap: 1rem; }
.cta-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  transition: background-color .3s, transform .3s var(--ease-soft);
}
.cta-social a:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.cta-social svg { width: 19px; height: 19px; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { padding-block: 3.4rem 2.2rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: 2.2rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { color: var(--ink-mute); margin-top: .8rem; max-width: 32ch; font-size: .92rem; }
.footer h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: .9rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list a, .footer-list span { font-size: .92rem; color: var(--ink-soft); }
.footer-list a:hover { color: var(--accent); }

/* Visual contact + hours lists */
.footer-contact, .footer-hours { display: grid; gap: .3rem; }
.footer-contact li a, .footer-hours li {
  display: flex; align-items: center; gap: .7rem;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.35;
  padding: .4rem .55rem; margin-inline: -.55rem; border-radius: 10px;
  transition: background-color .3s, color .3s;
}
.footer-hours li { align-items: flex-start; }
.footer-contact li a:hover { background: var(--accent-soft); color: var(--ink); }
.footer-ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: var(--bg-2); color: var(--accent);
  transition: background-color .3s, color .3s;
}
.footer-contact li a:hover .footer-ico { background: var(--accent); color: #fff; }
.footer-ico svg { width: 16px; height: 16px; }
.footer-ico--summer, .footer-ico--winter { background: var(--bg-2); color: var(--ink-soft); }
.footer-hours strong { color: var(--ink); font-weight: 700; }
.footer-wordmark {
  margin-top: 2.6rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 15vw, 12rem); line-height: .82;
  letter-spacing: -.04em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px rgba(36,39,42,.13);
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.15));
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.15));
}
.footer-bottom {
  margin-top: 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a:hover { color: var(--accent); }

/* =============================================================
   16. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .8s, clip-path 1s;
  animation: splashSafety .01s 3.6s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { width: 72px; height: 72px; object-fit: contain; animation: splashPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .splash-mark { animation: none; } }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }

/* =============================================================
   17. Reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; } /* defensive: never leave split-text hidden */

/* Staggered group reveals — children fade+rise with incremental delay */
[data-stagger] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .65s var(--ease-soft), transform .65s var(--ease-soft);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .07s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .14s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .21s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: .35s; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: .42s; }

/* =============================================================
   12b. Galería del local (scroll parallax)
   ============================================================= */
.gallery-section { background: var(--bg); }
.gallery { display: grid; gap: clamp(.7rem, 1.6vw, 1.15rem); }
.ph {
  margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 2px 4px rgba(36,39,42,.05), 0 30px 55px -34px rgba(36,39,42,.3);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.ph:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(36,39,42,.05), 0 42px 72px -36px rgba(28,122,85,.32); }
.ph-frame { display: block; position: relative; overflow: hidden; }
/* image is taller than the frame so it can drift on scroll without gaps */
.ph-frame img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; object-position: center; }
.ph-wide .ph-frame { aspect-ratio: 16 / 9; }
.ph-row { display: grid; gap: clamp(.7rem, 1.6vw, 1.15rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 439px) { .ph-row { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .ph-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .ph-row--duo { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin-inline: auto; } }
.ph-row .ph-frame { aspect-ratio: 4 / 5; }
/* On phones: no intra-frame parallax — every image sits exactly cover-centered
   inside its frame, so nothing looks off-square or half-cropped. */
@media (max-width: 759px) {
  .ph-frame img { inset: 0; width: 100%; height: 100%; transform: none !important; }
  .ph-wide .ph-frame { aspect-ratio: 4 / 3; }
}

.about-figure img { transition: transform 1.2s var(--ease-soft); }
.about-figure:hover img { transform: scale(1.05); }

/* =============================================================
   12c. Panel de guardias
   ============================================================= */
.badge-alert { background: rgba(28,122,85,.14); color: var(--accent); }
.guardia-panel {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  background: linear-gradient(160deg, rgba(28,122,85,.08), var(--paper) 62%);
  border: 1.5px solid rgba(28,122,85,.24);
  box-shadow: 0 2px 4px rgba(36,39,42,.05), 0 32px 62px -34px rgba(28,122,85,.3);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.guardia-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.guardia-panel-head { max-width: 720px; margin-bottom: 1.2rem; }
.guardia-panel-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: .55rem 0; }
.guardia-panel-head p { color: var(--ink-soft); font-size: 1rem; }
.guardia-figure {
  display: block; width: 100%; padding: 0; position: relative; cursor: zoom-in;
  border-radius: var(--radius-md); overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -26px rgba(36,39,42,.4);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.guardia-figure:hover { transform: translateY(-3px); box-shadow: 0 32px 60px -28px rgba(28,122,85,.34); }
.guardia-figure img { display: block; width: 100%; height: auto; }
.guardia-zoom-hint {
  position: absolute; right: .8rem; bottom: .8rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(36,39,42,.82); color: #fff; font-weight: 700; font-size: .8rem;
  padding: .45rem .8rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.guardia-zoom-hint svg { width: 15px; height: 15px; }

/* =============================================================
   12d. Lightbox (ampliar imágenes)
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 12000; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20,22,24,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  transition: background-color .3s, transform .3s var(--ease-soft);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.lightbox-close svg { width: 22px; height: 22px; }

/* =============================================================
   17b. Preguntas frecuentes (acordeón)
   ============================================================= */
.faq-section { background: var(--bg); }
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); overflow: hidden;
  transition: border-color .3s var(--ease-out), box-shadow .4s var(--ease-soft);
}
.faq-item[open] { border-color: rgba(28,122,85,.3); box-shadow: 0 24px 48px -30px rgba(28,122,85,.34); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--display); font-weight: 700; font-size: 1.03rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { position: relative; width: 20px; height: 20px; flex: none; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft);
}
.faq-ico::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-ico::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.faq-item[open] .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 1.35rem 1.25rem; }
.faq-answer p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.faq-item[open] .faq-answer { animation: faqIn .42s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-answer { animation: none; } }

/* =============================================================
   19. Toques de lujo (premium)
   ============================================================= */
/* Serif editorial de alta gama para los grandes titulares */
.hero-title, .section-title, .statement-text, .cta-final h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  font-weight: 600;
}
/* La marca «Farmacia MM» del pie respeta la fuente del logo (marca), no la serif */
.footer-wordmark { font-family: var(--display); }
.statement-text { font-weight: 500; }

/* Tarjetas: filo superior de luz + sombra más profunda y "cara" */
.glass-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7),
              0 1px 2px rgba(36,39,42,.05),
              0 26px 50px -30px rgba(36,39,42,.24);
}

/* Botón principal con degradado sutil (más materialidad) */
.btn-primary { background: linear-gradient(180deg, #2d3135, var(--ink)); }
.btn-primary:hover { background: linear-gradient(180deg, #33383c, var(--ink)); }

/* Eyebrow/badge más fino y elegante */
.badge { border: 1px solid rgba(28,122,85,.18); }

/* Hero: viñeta cálida muy sutil para dar profundidad y sensación cara */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 8%, transparent 55%, rgba(36,39,42,.05));
}

/* Enlace de teléfono/legales con subrayado fino elegante al pasar */
.address-block a { color: var(--accent); text-underline-offset: 3px; }
.address-block a:hover { text-decoration: underline; }

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .hero-ctas { flex-wrap: nowrap; } }
