/* ============================================================
   La Botica de Güemes — Farmacia Natural
   Design tokens derived from brand logo (3 leaf greens + paper)
   ============================================================ */

:root {
  /* Brand */
  --leaf-light: #A6C97A;
  --leaf: #7FB82A;
  --leaf-dark: #1B7E20;
  --leaf-deep: #14601A;
  --ink: #1E3323;
  --ink-soft: #48604e;

  /* Surfaces */
  --paper: #FAF8F2;
  --paper-warm: #F1EBDD;
  --stone: #EFEAE0;
  --sage: #E9EFE1;   /* Nuestras especialidades: verde salvia pálido */
  --sand: #F0EBE1;   /* Visitanos: arena cálida */
  /* “blanco” de tarjetas: blanco cálido, sin #ffffff clínico */
  --white: #FDFBF6;

  /* Semantic */
  --color-primary: var(--leaf-dark);
  --color-on-primary: #ffffff;
  --color-border: #E3DECE;
  --focus-ring: 3px solid #4a9c50;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 6px 24px rgba(30, 51, 35, 0.08);
  --shadow-lift: 0 14px 40px rgba(30, 51, 35, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 var(--space-2); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 var(--space-2); }

a { color: var(--leaf-dark); }

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

.container { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--leaf-dark); color: #fff;
  padding: 0.6rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--leaf-dark);
  margin-bottom: var(--space-2);
}

.section { padding-block: var(--space-6); }
.section-head { max-width: 620px; margin-bottom: var(--space-5); }
.section-sub { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s, color 0.2s;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--leaf-dark); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--leaf-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--leaf-dark); color: var(--leaf-dark); transform: translateY(-2px); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.88rem; background: var(--paper-warm); color: var(--ink); }
.btn-small:hover { background: var(--leaf-dark); color: #fff; }

/* ---------- Portada: expansión con scroll ---------- */
.expand-hero { background: var(--paper); }
.expand-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.expand-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.expand-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}

/* nubes que se corren con el scroll */
.cloud {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  will-change: transform, opacity;
}
.cloud-a { width: 78%; top: -4%; left: -6%; }
.cloud-b { width: 68%; top: 2%; right: -8%; }

/* semillas de diente de león */
.seeds { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.seed {
  position: absolute;
  width: 22px; height: 33px;
  color: #FFFDF6;
  filter: drop-shadow(0 1px 2px rgba(30, 51, 35, 0.25));
}
.seed svg { width: 100%; height: 100%; display: block; }
.expand-title {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.35em;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 24px rgba(250, 248, 242, 0.85), 0 1px 3px rgba(250, 248, 242, 0.9);
}
.expand-title-right { color: var(--leaf-dark); font-style: italic; }
.expand-media {
  position: absolute;
  z-index: 2;
  /* por defecto (sin JS / motion reducido) la tarjeta está abierta */
  width: 92vw;
  height: 84vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(30, 51, 35, 0.35);
}
/* con GSAP activo arranca chica y se expande con el scroll */
.gsap-on .expand-media { width: min(320px, 78vw); height: min(430px, 60vh); }
@media (prefers-reduced-motion: reduce) {
  .gsap-on .expand-media { width: 92vw; height: 84vh; }
}

/* el 2º hero vive DENTRO de la tarjeta, a tamaño final: la tarjeta es una ventana */
.media-hero {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  height: 84vh;
  background: var(--paper);
  overflow: hidden;
}
/* sin neblinas dentro de la tarjeta: el velo que se corría a la derecha */
.media-hero .hero-blob-a,
.media-hero .hero-blob-b { display: none; }
.media-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-4);
}
.media-hero .hero-headline { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.media-hero .hero-visual { display: grid; place-items: center; }
.media-hero .hero-mark { width: min(280px, 70%); height: auto; filter: drop-shadow(0 24px 40px rgba(27, 126, 32, 0.18)); }

@media (max-width: 720px) {
  .expand-media, .media-hero { width: 94vw; height: 74vh; }
  .gsap-on .expand-media { width: min(320px, 78vw); height: min(430px, 60vh); }
  .media-hero-inner { grid-template-columns: 1fr; gap: var(--space-2); align-content: center; }
  .media-hero .hero-visual { display: none; }
  .media-hero .hero-actions .btn { width: 100%; justify-content: center; }
  /* Título de portada apilado: "La Botica" sobre "de Güemes" para que entre en pantalla */
  .expand-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.05em;
    line-height: 1.02;
    white-space: normal;
    font-size: clamp(3rem, 14vw, 4.6rem);
  }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .gsap-on .expand-media { width: 94vw; height: 74vh; }
}

/* franja de confianza (debajo de la portada) */
.trust-section { padding-block: var(--space-4); background: var(--paper); }

/* ---------- Insignia de calificación en Google ---------- */
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-3);
  padding: 0.55rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.g-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.g-badge-logo { width: 20px; height: 20px; flex: none; }
.g-badge strong { font-size: 1.05rem; font-weight: 800; }
.g-badge-stars { display: inline-flex; gap: 1px; color: #F4B400; }
.g-badge-stars svg { width: 14px; height: 14px; }
.g-badge-label { color: var(--ink-soft); font-weight: 600; }

/* ---------- Testimonios: cinta infinita ---------- */
.testimonials { background: var(--paper); padding-block: var(--space-5); overflow: hidden; }
.testimonials .container { max-width: none; width: 100%; }
.testimonials .section-head { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

.marquee {
  overflow: hidden;
  margin-bottom: var(--space-3);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  padding-inline: calc(var(--space-3) / 2);
}
/* la animación arranca sólo cuando JS duplicó el contenido */
.marquee-ready .marquee-track {
  animation: marquee-left var(--marquee-dur, 55s) linear infinite;
}
.marquee-reverse.marquee-ready .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testi-card {
  margin: 0;
  width: 360px;
  flex: none;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.testi-stars { display: inline-flex; gap: 2px; color: #F4B400; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.testi-card figcaption { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  background: var(--av, var(--leaf-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.testi-card figcaption div { display: flex; flex-direction: column; gap: 0.05rem; }
.testi-card figcaption strong { font-size: 0.95rem; }
.testi-card figcaption span:not(.testi-avatar) { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 720px) {
  .testi-card { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-ready .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}
.expand-hint {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  bottom: 2rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.expand-hint svg { width: 18px; height: 18px; animation: hint-bob 1.8s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .expand-hint { display: none; }
  .expand-media { width: min(880px, 90vw); height: min(500px, 62vh); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--color-border); box-shadow: 0 4px 20px rgba(30,51,35,0.06); }

.header-inner { display: flex; align-items: center; gap: var(--space-3); padding-block: 0.8rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink);
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--leaf-dark); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  padding: 0.4rem 0.1rem; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--leaf); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px; justify-content: center;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  pointer-events: none; will-change: transform;
}
.hero-blob-a {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 35% 35%, #cfe6a4, #7FB82A55 65%, transparent 75%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-blob-b {
  width: 420px; height: 420px; bottom: -180px; left: -140px;
  background: radial-gradient(circle at 60% 40%, #e9e2cd, #A6C97A44 60%, transparent 75%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-50px, 40px, 0) scale(1.12); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: var(--space-4);
  position: relative;
}
.hero-headline { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.015em; font-weight: 500; line-height: 1.12; }
.hero-headline span { color: var(--leaf-dark); font-style: italic; }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.hero-visual { display: grid; place-items: center; }
.hero-mark {
  width: min(300px, 62%); height: auto;
  filter: drop-shadow(0 24px 40px rgba(27, 126, 32, 0.18));
  opacity: 0;
  animation:
    markIn 0.9s var(--ease-out) 0.15s forwards,
    breathe 7s ease-in-out 1.05s infinite;
  will-change: transform;
}

@keyframes markIn {
  from { opacity: 0; transform: translateY(26px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.trust-item { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--leaf-dark); }
.trust-item strong { color: var(--ink); }

/* ---------- Categorías ---------- */
.categories { background: var(--sage); }

/* flex en vez de grid: la última fila incompleta queda centrada,
   así cualquier cantidad de categorías se ve intencional */
.cat-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3);
  --cols: 3;
}
.cat-card { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--space-3)) / var(--cols)); }
.cat-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-decoration: none; color: var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--leaf-light); }
.cat-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; margin: 0; }

.cat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef5df, #dcecc2);
  color: var(--leaf-dark);
  margin-bottom: 0.4rem;
  transition: transform 0.25s var(--ease-out);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-4deg); }

.cat-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.92rem; color: var(--leaf-dark);
  margin-top: 0.4rem;
}
.cat-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* ---------- Destacados ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.prod-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.prod-media {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.prod-media svg { width: 64px; height: 64px; opacity: 0.9; }
.prod-media-a { background: linear-gradient(150deg, #eaf3d8, #cfe4ab); color: var(--leaf-deep); }
.prod-media-b { background: linear-gradient(150deg, #f4efe0, #e4d9ba); color: #7d6a35; }
.prod-media-c { background: linear-gradient(150deg, #e7f1e4, #c4dfc0); color: #2f6d33; }
.prod-media-d { background: linear-gradient(150deg, #f0ece4, #dcd2c2); color: #6d5c46; }

.prod-body { padding: var(--space-2) var(--space-2) var(--space-3); }
.prod-body h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.prod-cat { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: var(--space-2); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.prod-price { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.featured-cta { text-align: center; margin-top: var(--space-5); }

/* ---------- Nosotros ---------- */
.about { background: var(--ink); color: #eef2ea; }
.about .eyebrow { color: var(--leaf-light); }
.about h2 { color: #fff; }
.about p { color: #c4d0c3; }

.about-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5); align-items: center;
}
.about-frame {
  background: linear-gradient(160deg, #27422d, #1a2b1f);
  border-radius: var(--radius-lg);
  border: 1px solid #35503b;
  /* la foto llena el marco: sin padding, esquinas recortadas */
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  /* encuadre: la esquina del local queda centrada, con el cartel completo */
  object-position: 20% center;
  display: block;
  will-change: transform;
}
/* en 2 columnas, la foto iguala la altura del panel de texto */
@media (min-width: 1025px) {
  .about-inner { align-items: stretch; }
  .about-frame { aspect-ratio: auto; height: 100%; }
}

/* panel sólido: las láminas de fondo nunca pisan el texto */
.about-copy {
  background: #26432D;
  border: 1px solid #35503b;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.about-points { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 0.8rem; }
.about-points li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: #dde7db; }
.about-points svg { width: 22px; height: 22px; color: var(--leaf); flex: none; }

/* ---------- Envíos / pasos ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
  position: relative;
}
.step-num {
  position: absolute; top: -22px; left: var(--space-3);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--leaf-dark); color: #fff;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.step h3 { margin-top: 0.4rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---------- Hilo dibujado entre los pasos ---------- */
.steps-wrap { position: relative; }
.steps-thread {
  position: absolute;
  top: -32px; left: 0;
  width: 100%; height: 60px;
  color: var(--leaf);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Micro-interacciones (solo dispositivos con hover) ---------- */
@media (hover: hover) {
  /* cada planta tiene su gesto secreto */
  .cat-icon svg { transition: transform 0.5s var(--ease-out); }
  .cat-card:nth-child(1):hover .cat-icon svg { transform: scale(1.1); }               /* ortomolecular */
  .cat-card:nth-child(2):hover .cat-icon svg { animation: sway 1.8s ease-in-out infinite; }  /* fitoterapia */
  .cat-card:nth-child(3):hover .cat-icon svg { animation: drip 1.4s ease-in-out infinite; }  /* homeopatía */
  .cat-card:nth-child(4):hover .cat-icon svg { animation: bloom-spin 7s linear infinite; }   /* florales */
  .cat-card:nth-child(5):hover .cat-icon svg { transform: translateY(-3px) rotate(6deg); }   /* cosmética */
  .cat-card:nth-child(6):hover .cat-icon svg { animation: sway 2s ease-in-out infinite; }    /* adaptógenos */

  .prod-media svg { transition: transform 0.5s var(--ease-out); }
  .prod-card:hover .prod-media svg { transform: translateY(-5px) rotate(-3deg); }
  .prod-price { transition: color 0.3s; }
  .prod-card:hover .prod-price { color: var(--leaf-dark); }

  .step { transition: transform 0.5s var(--ease-out); }
  .step:hover { transform: translateY(-4px); }
  .step-num { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .step:hover .step-num { transform: rotate(-8deg) scale(1.08); }

  .footer-brand .brand-mark { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .footer-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
}

@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes drip { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08) translateY(2px); } }
@keyframes bloom-spin { to { transform: rotate(360deg); } }

/* subrayado que crece (tinta que corre) */
.visit-list a, .visit-map, .footer-nav a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out);
  padding-bottom: 1px;
}
.visit-list a:hover, .visit-map:hover, .footer-nav a:hover { background-size: 100% 1.5px; }

/* ---------- Visitanos ---------- */
.visit { background: var(--sand); }
.visit-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }

.visit-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-3); }
.visit-list li { display: flex; gap: 1rem; align-items: flex-start; }
.visit-list svg { width: 26px; height: 26px; color: var(--leaf-dark); flex: none; margin-top: 0.2rem; }
.visit-list a { font-weight: 700; }
.visit-map { display: inline-block; margin-left: 0.6rem; font-size: 0.9rem; }

.visit-card {
  background: linear-gradient(160deg, var(--leaf-dark), #145c19);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.map-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.map-embed {
  width: 100%; height: 100%; border: 0; display: block;
  object-fit: cover;
  /* los clics pasan al enlace */
  pointer-events: none;
}
.map-attribution {
  position: absolute;
  right: 6px; bottom: 4px;
  font-size: 0.62rem;
  color: #5a6a5e;
  background: rgba(255, 255, 255, 0.72);
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
}
.map-cta {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  background: var(--leaf-dark); color: #fff;
  font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(20, 60, 25, 0.4);
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.map-cta svg { width: 18px; height: 18px; }
.map-link:hover .map-cta { background: var(--leaf-deep); transform: translateX(-50%) translateY(-2px); }
.map-link:focus-visible { outline: var(--focus-ring); outline-offset: -3px; }

.visit-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: #f2f6e8; margin: 0; line-height: 1.45;
  padding: 1rem var(--space-3);
  text-align: center;
}

/* ---------- Ilustraciones botánicas flotantes ---------- */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}
.deco-sm { width: 64px; height: 64px; }
.deco-md { width: 100px; height: 100px; }
.deco-lg { width: 140px; height: 140px; }
.deco-xl { width: 220px; height: 220px; opacity: 0.22; }

/* ---------- Láminas botánicas de fondo (desenfocadas, entran por los lados) ---------- */
.bg-plate {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at center, #000 38%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 62% at center, #000 38%, transparent 72%);
}
/* láminas oscuras sobre la sección verde: se funden por luminosidad */
.bg-plate-dark {
  mix-blend-mode: lighten;
  opacity: 0.4;
}
/* acuarelas sobre fondo claro: el papel blanco se funde con la sección */
.bg-cut {
  mix-blend-mode: multiply;
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 82%);
}

@media (max-width: 1023px) {
  .bg-plate { display: none; }
}

/* ---------- Filosofía / servicios ---------- */
.manifesto { background: var(--stone); }
.statement {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.22;
  font-weight: 500;
  max-width: 24ch;
  margin-bottom: var(--space-5);
}
.statement em { color: var(--leaf-dark); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service {
  background: var(--paper);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.service-icon { width: 64px; height: 64px; color: var(--leaf-dark); margin-bottom: var(--space-2); }
.service h3 { margin-bottom: 0.4rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6b8; padding-block: var(--space-5) var(--space-4); }
.footer-inner { display: grid; gap: var(--space-3); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-mark { width: 40px; height: auto; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin: 0; }
.footer-tag { font-size: 0.9rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: #d7e0d5; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--leaf-light); }
.footer-legal { font-size: 0.85rem; margin: 0; border-top: 1px solid #33473a; padding-top: var(--space-3); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- GSAP activo: CSS cede el control de entradas ---------- */
.gsap-on .reveal { opacity: 1; transform: none; transition: none; }
.gsap-on .hero-mark { opacity: 1; animation: none; }
.gsap-on .hero-blob-a, .gsap-on .hero-blob-b { animation: none; }
/* GSAP escribe transform en los botones (intro + magnéticos): la transición CSS de transform pelearía con él */
.gsap-on .btn { transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s var(--ease-out); }

/* ---------- Scroll reveal (fallback sin GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* Stagger grids */
.cat-grid .reveal:nth-child(2), .prod-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cat-grid .reveal:nth-child(3), .prod-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cat-grid .reveal:nth-child(4), .prod-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.cat-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.cat-grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.cat-grid .reveal:nth-child(7) { transition-delay: 0.6s; }
.services .reveal:nth-child(2) { transition-delay: 0.15s; }
.services .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark, .hero-blob-a, .hero-blob-b { animation: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { --cols: 2; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-mark { width: 200px; }
  .about-inner, .visit-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding-block: var(--space-5); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); }
  .site-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .trust-strip { grid-template-columns: 1fr; gap: var(--space-2); }
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .prod-grid { grid-template-columns: 1fr; }
  .cat-grid { --cols: 1; }

  .hero-actions .btn { width: 100%; justify-content: center; }
  .map-cta { font-size: 0.85rem; padding: 0.55rem 1rem; }
  .services { grid-template-columns: 1fr; gap: var(--space-4); }
  .deco-desktop { display: none; }
  .deco { opacity: 0.3; }
  .steps-thread { display: none; }
}
