/* ============================================================
   Farmacia Ruiz Maldonado — Design System
   Verde farmacia + acento naranja (rótulo real) · Lorca, Murcia
   ============================================================ */

:root {
  /* Greens — pharmacy, clean & luminous */
  --green-900: oklch(0.30 0.055 162);
  --green-800: oklch(0.38 0.078 160);
  --green-700: oklch(0.46 0.100 158);
  --green-600: oklch(0.55 0.122 156);
  --green-500: oklch(0.64 0.135 155);
  --green-200: oklch(0.88 0.055 158);
  --green-100: oklch(0.94 0.034 158);
  --green-50:  oklch(0.972 0.018 160);

  /* Teal — azul verdoso suave (secondary) */
  --teal-600: oklch(0.60 0.078 200);
  --teal-100: oklch(0.94 0.030 200);

  /* Orange accent — from the real facade sign */
  --orange:      oklch(0.69 0.165 49);
  --orange-soft: oklch(0.96 0.034 60);

  /* Neutrals — warm with a faint green cast */
  --ink:    oklch(0.27 0.018 162);
  --body:   oklch(0.38 0.014 162);
  --muted:  oklch(0.55 0.012 162);
  --line:   oklch(0.915 0.008 160);
  --line-2: oklch(0.95 0.006 160);
  --bg:     oklch(0.992 0.004 150);
  --bg-soft:oklch(0.975 0.008 158);
  --white:  #ffffff;

  --star: oklch(0.78 0.155 78);

  /* Type */
  --display: "Hanken Grotesk", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Shadow — soft, luminous */
  --sh-1: 0 1px 2px oklch(0.4 0.03 160 / 0.04), 0 4px 14px oklch(0.4 0.03 160 / 0.05);
  --sh-2: 0 2px 6px oklch(0.4 0.03 160 / 0.05), 0 14px 34px oklch(0.4 0.03 160 / 0.08);
  --sh-3: 0 10px 50px oklch(0.4 0.04 160 / 0.14);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--text);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

.section-head { max-width: 640px; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  min-height: 52px;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 22px oklch(0.55 0.122 156 / 0.32);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 12px 30px oklch(0.55 0.122 156 / 0.40); }
.btn-ghost {
  background: var(--white);
  color: var(--green-800);
  box-shadow: inset 0 0 0 1.5px var(--green-200), var(--sh-1);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green-500), var(--sh-2); transform: translateY(-2px); }
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px oklch(0.69 0.165 49 / 0.32);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 30px oklch(0.69 0.165 49 / 0.42); filter: brightness(1.03); }

/* ---------- Brand logo mark ---------- */
.logo { display: inline-block; }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}
