/* Fuentes autoalojadas (SIL Open Font License 1.1, ver OFL-*.txt) */
/* Commissioner normal greek */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/commissioner-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Commissioner normal latin */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/commissioner-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Literata italic greek */
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-italic-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Literata italic latin */
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Literata normal greek */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/literata-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Literata normal latin */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/literata-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Farmacia Petrakou · demo TRUE Lab — tokens y base compartida */
:root {
  --sage-900: #23382b;
  --sage-800: #2f4a39;
  --sage-700: #3d5e49;
  --sage-600: #557a5f;
  --sage-400: #8fae90;
  --sage-200: #d3e1d0;
  --sage-100: #e8efe4;
  --sage-50: #f2f6ef;
  --cream: #fbf7f0;
  --cream-2: #f4ece0;
  --cream-3: #ebdfcd;
  --paper: #fffdf9;
  --ink: #26261f;
  --ink-2: #4a483f;
  --muted: #6a665b;
  --line: #e6dccb;
  --accent: #b55d33;
  --accent-light: #d9825b;
  --accent-soft: #f7dfd0;
  --accent-ink: #9c4a26;
  --ok: #2d6a3c;
  --ok-bg: #e2f0e2;
  --warn: #7a4f00;
  --warn-bg: #fbecc8;
  --bad: #a02f20;
  --bad-bg: #f9dcd6;

  --font-sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-serif: "Literata", Georgia, "Noto Serif", serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(38, 38, 31, .06), 0 2px 8px rgba(38, 38, 31, .05);
  --shadow-2: 0 6px 24px rgba(38, 38, 31, .10), 0 2px 6px rgba(38, 38, 31, .06);
  --shadow-3: 0 18px 50px rgba(35, 56, 43, .18);
  --gutter: 16px;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sage-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sage-800); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--sage-700); color: #fff; box-shadow: 0 4px 14px rgba(61, 94, 73, .28); }
.btn-primary:hover { background: var(--sage-800); }
.btn-ghost { background: transparent; border-color: var(--sage-400); color: var(--sage-800); }
.btn-ghost:hover { background: var(--sage-100); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #974a26; }
.btn-light { background: var(--paper); color: var(--sage-800); border-color: var(--line); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--sage-800);
}
.icon-btn:hover { background: var(--sage-100); }
.icon-btn svg { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink-2); font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.chip .count { font-size: .8rem; opacity: .75; }

/* Etiqueta demo */
.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 40;
  font: 600 11px/1 var(--font-sans); letter-spacing: .04em;
  color: var(--sage-800); background: rgba(255, 253, 249, .88);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
}
.demo-badge b { color: var(--accent-ink); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-sans); font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 90; transform: translate(-50%, 20px);
  background: var(--sage-900); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: .95rem; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Diálogo */
dialog.sheet {
  border: 0; padding: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink);
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow-3);
}
dialog.sheet::backdrop { background: rgba(35, 56, 43, .45); backdrop-filter: blur(2px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 8px 22px; }
.sheet-head h2 { font-size: 1.3rem; }
.sheet-body { padding: 8px 22px 22px; }
