/* Inka Farmacia — header + footer chrome (29.09.2026). Self-contained: works on pages with
   the shared main/components CSS and on stand-alone landings with their own inline CSS.
   Generated markup: scripts/hub-chrome/chrome.py. Palette = the hub's own tokens. */
.ih-header, .ih-footer {
  --ih-green: #1a5c38; --ih-green-d: #0d3321; --ih-green-50: #eef5f0; --ih-gold: #c9a227;
  --ih-ink: #1a1a2e; --ih-ink-2: #4a5568; --ih-muted: #5d6b7e; --ih-line: #e2e8f0; --ih-bg-alt: #f4f7f4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.45; -webkit-text-size-adjust: 100%;
}
.ih-header, .ih-footer { margin: 0; padding: 0; text-align: left; font-size: 16px; letter-spacing: normal; text-transform: none; }
.ih-header *, .ih-footer * { box-sizing: border-box; }
.ih-header ul, .ih-footer ul { list-style: none; margin: 0; padding: 0; }
.ih-header p, .ih-footer p { margin: 0; }
.ih-header a, .ih-footer a { text-decoration: none; }
.ih-header img, .ih-footer img { max-width: none; }
.ih-flag { width: 24px; height: 16px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.ih-flag--globe { box-shadow: none; color: var(--ih-green); width: 20px; height: 20px; }

/* ---------------- header ---------------- */
.ih-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--ih-line); color: var(--ih-ink); }
.ih-bar { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 8px; }
.ih-logo { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex-shrink: 0; margin-right: 8px; }
.ih-logo img { height: 44px; width: auto; display: block; }
.ih-nav { display: none; }
.ih-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.ih-catalog { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--ih-green); color: #fff !important; font-weight: 700; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(26,92,56,.7); transition: background .15s ease, transform .15s ease; }
.ih-catalog:hover { background: var(--ih-green-d); }
.ih-catalog:active { transform: scale(.97); }
.ih-catalog.is-block { display: flex; width: 100%; height: 48px; font-size: 1rem; margin-top: 10px; }

.ih-dd { position: relative; }
.ih-dd > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ih-dd > summary::-webkit-details-marker { display: none; }
.ih-dd > summary::marker { content: ''; }
details.ih-dd:not([open]) > .ih-panel { display: none; }

.ih-navbtn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ih-ink) !important; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.ih-navbtn:hover, details[open] > .ih-navbtn, .ih-navbtn[aria-current] { background: var(--ih-green-50); color: var(--ih-green) !important; }
.ih-chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; opacity: .7; }
details[open] > summary .ih-chev { transform: translateY(1px) rotate(-135deg); }

.ih-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1001; background: #fff; border: 1px solid var(--ih-line);
  border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -18px rgba(13,51,33,.35), 0 2px 6px rgba(13,51,33,.06); animation: ih-in .16s ease-out; }
@keyframes ih-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ih-topics { width: 18rem; }
.ih-topics.is-cats ul, .ih-topics.is-guides ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ih-topics.is-cats { width: 30rem; }
.ih-topics.is-guides { width: 34rem; }
.ih-topic { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ih-ink) !important; }
.ih-topic:hover, .ih-topic[aria-current] { background: var(--ih-green-50); color: var(--ih-green) !important; }

.ih-langbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--ih-line); border-radius: 999px; background: #fff; color: var(--ih-ink); font-size: .88rem; font-weight: 650; white-space: nowrap; }
.ih-langbtn:hover, details[open] > .ih-langbtn { border-color: #b9d3c2; background: var(--ih-green-50); }
.ih-lang-name { display: none; }
.ih-lang-panel { left: auto; right: 0; width: min(18rem, calc(100vw - 32px)); padding: 8px; }
.ih-dd-title { padding: 6px 10px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-muted); }
.ih-lang-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 10px; color: var(--ih-ink) !important; font-size: .9rem; line-height: 1.2; }
.ih-lang-link:hover { background: var(--ih-bg-alt); }
.ih-lang-link.is-current { background: var(--ih-green-50); }
.ih-lang-txt { flex-grow: 1; }
.ih-lang-txt b { display: block; font-weight: 700; }
.ih-lang-txt small { display: block; font-size: .78rem; color: var(--ih-muted); }
.ih-check { color: var(--ih-green); font-weight: 800; }

.ih-burger { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--ih-green-d); color: #fff; font-size: .9rem; font-weight: 700; }
.ih-burger-lines { display: grid; gap: 3px; width: 16px; }
.ih-burger-lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.ih-mnav[open] .ih-burger-lines i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ih-mnav[open] .ih-burger-lines i:nth-child(2) { opacity: 0; }
.ih-mnav[open] .ih-burger-lines i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.ih-mnav { position: static; }
.ih-mpanel { position: absolute; left: 0; right: 0; top: 100%; border-radius: 0 0 16px 16px; border-top: 0; padding: 4px 16px 18px;
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.ih-mtitle { margin: 16px 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-muted); }
.ih-mgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.ih-mlink { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: .92rem; font-weight: 600; color: var(--ih-ink) !important; line-height: 1.25; }
.ih-mlink[aria-current] { color: var(--ih-green) !important; }
.ih-mlink.is-strong { color: var(--ih-green) !important; font-weight: 700; }
.ih-mmore { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--ih-line); }

@media (min-width: 640px) {
  .ih-lang-name { display: inline; }
  .ih-lang-short { display: none; }
}
@media (min-width: 1100px) {
  .ih-nav { display: flex; align-items: center; gap: 4px; }
  .ih-mnav { display: none; }
  .ih-logo { margin-right: 14px; }
}

/* ---------------- footer (FOOTER_STANDARD v1, 01.10.2026) ----------------
   brand bar + e-mail | language switcher (desktop: row; mobile: <details>, closed)
   → Categorías · Sobre nosotros · Legal → disclaimer + affiliate line → © · e-mail */
.ih-footer { background: #fff; border-top: 1px solid var(--ih-line); color: var(--ih-ink-2); margin-top: 0; }
.ih-fwrap { max-width: 1280px; margin: 0 auto; padding: 40px 16px 20px; }
.ih-ftop { display: grid; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--ih-line); }
.ih-fbrand { min-width: 0; }
.ih-flogo { display: inline-flex; min-height: 44px; margin-bottom: 10px; }
.ih-flogo img { height: 64px; width: auto; display: block; }
.ih-fbrand p { font-size: .9rem; line-height: 1.65; max-width: 34rem; }
.ih-fmail { margin-top: 4px !important; }
.ih-fmail a, .ih-fline a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ih-green) !important; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26,92,56,.35); overflow-wrap: anywhere; }
.ih-flangbox { min-width: 0; }
.ih-flt, .ih-flangs-d { display: none !important; }
.ih-flangs-m > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 16px; border: 1px solid var(--ih-line);
  border-radius: 999px; background: #fff; color: var(--ih-ink-2); font-size: .9rem; font-weight: 600; list-style: none; cursor: pointer; }
.ih-flangs-m > summary::-webkit-details-marker { display: none; }
.ih-flangs-m > summary::marker { content: ''; }
.ih-flangs-m > summary strong { color: var(--ih-ink); }
.ih-flangs-m .ih-fcountries { margin-top: 10px; }
.ih-ftitle { margin-bottom: 6px !important; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-green-d); }
.ih-fcols { display: grid; gap: 26px; padding: 26px 0 22px; }
.ih-fcol { min-width: 0; }
.ih-fcats ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ih-fcats .is-all { grid-column: 1 / -1; }
.ih-fpair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; min-width: 0; }
.ih-flink { display: flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--ih-ink-2) !important; line-height: 1.3; transition: color .15s ease; }
.ih-flink:hover { color: var(--ih-green) !important; text-decoration: underline; }
.ih-flink.is-strong { color: var(--ih-green) !important; font-weight: 700; }
.ih-fcountries { display: flex; flex-wrap: wrap; gap: 8px; }
.ih-fcountry { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ih-line); border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--ih-ink) !important; background: #fff; }
.ih-fcountry:hover { border-color: #b9d3c2; background: var(--ih-green-50); }
.ih-fcountry.is-current { background: var(--ih-green); border-color: var(--ih-green); color: #fff !important; }
.ih-fcountry.is-current .ih-flag--globe { color: #fff; }
.ih-fbottom { padding-top: 18px; border-top: 1px solid var(--ih-line); }
.ih-fdisc { font-size: .8rem; line-height: 1.65; color: var(--ih-ink-2); margin-bottom: 10px !important; }
.ih-fdisc strong { color: var(--ih-ink); }
.ih-fline { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin-top: 6px !important; padding-top: 6px; border-top: 1px solid var(--ih-line);
  font-size: .8rem; color: var(--ih-muted); }
.ih-fline strong { color: var(--ih-ink); font-weight: 700; }
.ih-fline span { opacity: .6; }

@media (min-width: 768px) {
  .ih-ftop { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; }
  .ih-flt { display: block !important; }
  .ih-flangs-d { display: flex !important; }
  .ih-flangs-m { display: none !important; }
  .ih-fcats ul { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  /* iPad (768-1023) keeps 44 px tap targets; the compact rows start at laptop width. */
  .ih-flink { min-height: 36px; }
  .ih-fmail a, .ih-fline a { min-height: 32px; }
  .ih-fcols { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .ih-fcats ul { grid-template-columns: 1fr 1fr; }
  .ih-fpair { display: contents; }
}
