/* Cabecera y pie de toda la web — Farmacia Plus Ultra.
   Composición de tienda: barra de contacto · cabecera verde (logo, buscador, cuenta, cesta) · menú blanco de categorías con submenús.
   Se carga también en las páginas de Elementor, así que todo va acotado a .fpu-top/.fpu-head/.fpu-cats/.fpu-foot y se reinicia lo que el tema padre toca. */

@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.fpu-chrome {
  --c-deep: #0B3A1E;     /* barra de contacto */
  --c-frame: #0F4B27;    /* cabecera y pie: blanco encima = 10.4:1 */
  --c-ink: #16191D;
  --c-muted: #4A524D;
  --c-green: #19661B;
  --c-rule: #DDE4DF;
  --c-tone: #F3F5F4;
  --c-on-frame: #FFFFFF;
  --c-on-frame-2: #C9DED0;
  --c-font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-ease: cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0;
}
.fpu-top, .fpu-head, .fpu-cats, .fpu-foot { font-family: var(--c-font); -webkit-font-smoothing: antialiased; line-height: 1.4; }
.fpu-top *, .fpu-head *, .fpu-cats *, .fpu-foot * { box-sizing: border-box; font-family: var(--c-font); }
.fpu-top p, .fpu-foot p, .fpu-cats p { margin: 0; }
.fpu-top a, .fpu-head a, .fpu-cats a, .fpu-foot a { text-decoration: none; }
.fpu-head button, .fpu-cats button { font: inherit; background: none; border: 0; border-radius: 8px; padding: 0; margin: 0; color: inherit; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.fpu-head svg, .fpu-top svg, .fpu-cats svg, .fpu-foot svg { flex: none; display: block; }
.fpu-top :focus-visible, .fpu-head :focus-visible, .fpu-foot :focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }
.fpu-cats :focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; border-radius: 6px; }
.fpu-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.fpu-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fpu-skip { position: absolute; left: 12px; top: -80px; background: #fff; color: var(--c-ink) !important; padding: 12px 16px; border-radius: 8px; z-index: 100; font: 600 16px var(--c-font); }
.fpu-skip:focus { top: 12px; }
.fpu-anchor { height: 0; outline: 0; }

/* ---------- Barra de contacto ---------- */
.fpu-top { background: var(--c-deep); color: var(--c-on-frame-2); font-size: 15px; }
.fpu-top__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.fpu-top__c { display: flex; align-items: center; gap: 20px; }
.fpu-top__c a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.fpu-top__c svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .fpu-top__c a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Cabecera ---------- */
.fpu-head { background: var(--c-frame); color: #fff; }
.fpu-head__in { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto auto; align-items: center; gap: 24px; min-height: 84px; }
.fpu-menu-btn { display: none !important; }
.fpu-logo img { display: block; height: 46px; width: auto; filter: brightness(0) invert(1); }
.fpu-search { position: relative; display: flex; align-items: center; max-width: 640px; width: 100%; justify-self: center; }
.fpu-search svg { position: absolute; left: 16px; color: var(--c-muted); pointer-events: none; }
.fpu-search input[type="search"] { width: 100%; height: 50px; margin: 0; padding: 0 16px 0 46px; border: 0; border-radius: 999px; background: #fff; color: var(--c-ink);
  font: 400 17px/1 var(--c-font); box-shadow: none; -webkit-appearance: none; appearance: none; }
.fpu-search input::placeholder { color: #5C655F; opacity: 1; }
.fpu-search input:focus { outline: 3px solid #9FD3B0; outline-offset: 0; } /* taste-skill-ignore: anillo de foco */
.fpu-acc { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; color: #fff !important; font-weight: 600; font-size: 16px; }
.fpu-acc svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .fpu-acc:hover span { text-decoration: underline; text-underline-offset: 3px; } }
.fpu-cart { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px 0 16px; border-radius: 999px; background: #fff; color: var(--c-ink) !important;
  font-weight: 700; font-size: 16px; transition: transform 160ms var(--c-ease); -webkit-user-select: none; user-select: none; }
.fpu-cart svg { width: 22px; height: 22px; }
.fpu-cart:active { transform: scale(0.97); }
.fpu-cart-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--c-frame); color: #fff;
  font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Menú de categorías ---------- */
.fpu-cats { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-rule); color: var(--c-ink); }
.fpu-cats__l { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; gap: 0 4px; }
.fpu-cats__i { display: flex; align-items: center; margin: 0; }
.fpu-cats__a { display: block; padding: 16px 4px 16px 12px; color: var(--c-ink) !important; font-size: 17px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent; transition: box-shadow 150ms ease; } /* taste-skill-ignore: subrayado de categoría activa */
span.fpu-cats__a { cursor: default; padding-right: 0; }
.fpu-cats__i.is-current > .fpu-cats__a { box-shadow: inset 0 -3px 0 var(--c-green); } /* taste-skill-ignore: subrayado de categoría activa */
.fpu-cats__t { display: grid !important; place-items: center; width: 32px; height: 44px; color: var(--c-muted) !important; }
.fpu-cats__t svg { width: 18px; height: 18px; transition: transform 200ms var(--c-ease); }
.fpu-cats__i.is-open .fpu-cats__t svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .fpu-cats__a:hover { box-shadow: inset 0 -3px 0 #B9C4BC; } /* taste-skill-ignore: subrayado al pasar */
  .fpu-cats__t:hover { color: var(--c-ink) !important; background: var(--c-tone); }
}
/* panel: ocupa el ancho de la barra, debajo */
.fpu-cats__p { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule);
  box-shadow: 0 18px 32px -12px rgba(15, 75, 39, .18); }
.fpu-cats__i.is-open > .fpu-cats__p { display: block; animation: fpu-panel 160ms var(--c-ease); }
.fpu-cats:not(.is-js) .fpu-cats__i:hover > .fpu-cats__p, .fpu-cats:not(.is-js) .fpu-cats__i:focus-within > .fpu-cats__p { display: block; }
@keyframes fpu-panel { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fpu-cats__pin { max-width: 1320px; margin: 0 auto; padding: 28px 24px 32px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 32px; align-items: start; }
.fpu-cats__pt { grid-row: span 2; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.fpu-cats__sub { margin: 0; padding: 0; list-style: none; columns: 3 220px; column-gap: 32px; }
.fpu-cats__sub li { break-inside: avoid; margin: 0; }
.fpu-cats__sub a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--c-ink) !important; font-size: 17px; font-weight: 500;
  transition: background-color 150ms ease; }
.fpu-cats__n { color: var(--c-muted); font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .fpu-cats__sub a:hover { background: var(--c-tone); } }
.fpu-cats__all { justify-self: start; margin: 8px 0 0 12px; color: var(--c-green) !important; font-weight: 700; font-size: 17px; text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Pie ---------- */
.fpu-foot { background: var(--c-frame); color: var(--c-on-frame-2); font-size: 17px; margin-top: 0; }
.fpu-foot > .fpu-wrap { padding-top: 64px; padding-bottom: 32px; }
.fpu-foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.fpu-foot__c { display: grid; gap: 14px; align-content: start; }
.fpu-foot h2, .fpu-chrome .fpu-foot h2 { margin: 0; font-family: var(--c-font); color: #fff !important; }
.fpu-foot .fpu-foot__name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.fpu-foot .fpu-foot__t { font-size: 18px; font-weight: 700; margin-bottom: 14px !important; }
.fpu-foot a { color: #fff !important; }
@media (hover: hover) and (pointer: fine) { .fpu-foot a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.fpu-foot__contact { display: grid; gap: 8px; }
.fpu-foot__contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fpu-foot__contact svg { width: 18px; height: 18px; }
.fpu-foot__h { margin: 0; display: grid; gap: 4px; }
.fpu-foot__h div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.fpu-foot__h dt { color: var(--c-on-frame-2); }
.fpu-foot__h dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.fpu-foot__map { font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }
.fpu-foot__l, .fpu-foot ul.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fpu-foot__l a { display: inline-block; padding: 6px 0; }
.fpu-foot__copy { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; }
.fpu-foot__kit { background: #fff; padding: 12px 24px max(12px, env(safe-area-inset-bottom)); }
.fpu-foot__kit img { display: block; max-width: 520px; width: 100%; height: auto; margin: 0 auto; }

/* ---------- Tableta ---------- */
@media (max-width: 1180px) {
  .fpu-head__in { grid-template-columns: auto minmax(160px, 1fr) auto auto; gap: 16px; }
  .fpu-acc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fpu-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fpu-foot__c { grid-column: 1 / -1; }
}

/* ---------- Teléfono: menú plegable ---------- */
@media (max-width: 960px) {
  .fpu-wrap { padding: 0 16px; }
  .fpu-top__msg { display: none; }
  .fpu-top__in { justify-content: center; }
  .fpu-top__c { gap: 16px; flex-wrap: wrap; justify-content: center; padding: 6px 0; }
  .fpu-head__in { grid-template-columns: auto 1fr auto auto; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .fpu-menu-btn { display: inline-flex !important; align-items: center; gap: 6px; height: 44px; padding: 0 10px !important; color: #fff !important; font-weight: 600 !important; font-size: 16px !important; }
  .fpu-menu-btn svg { width: 22px; height: 22px; }
  .fpu-logo img { height: 38px; }
  .fpu-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .fpu-acc { padding: 0 6px; }
  .fpu-cart { padding: 0 8px 0 12px; }
  .fpu-cart__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fpu-cats.is-js { display: none; }
  .fpu-cats.is-js.is-open { display: block; }
  .fpu-cats__l { flex-direction: column; padding: 4px 0 12px; }
  .fpu-cats__i { flex-wrap: wrap; border-bottom: 1px solid var(--c-rule); }
  .fpu-cats__a { flex: 1; padding: 14px 0; font-size: 18px; box-shadow: none !important; }
  .fpu-cats__i.is-current > .fpu-cats__a { color: var(--c-green) !important; }
  .fpu-cats__t { width: 48px; height: 48px; }
  .fpu-cats__p { position: static; flex-basis: 100%; border: 0; box-shadow: none; animation: none !important; }
  .fpu-cats__pin { display: block; padding: 0 0 12px; }
  .fpu-cats__pt { display: none; }
  .fpu-cats__sub { columns: 1; }
  .fpu-cats__sub a { padding: 12px 12px; background: var(--c-tone); border-radius: 0; margin-bottom: 1px; }
  .fpu-cats__all { display: inline-block; margin: 12px 0 4px 12px; }
  .fpu-foot > .fpu-wrap { padding-top: 48px; }
  .fpu-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .fpu-foot__h div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .fpu-foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fpu-cats__p, .fpu-cats__t svg, .fpu-cart { animation: none !important; transition: none !important; }
}
html:has(body.fpu-chrome) { -webkit-tap-highlight-color: transparent; }
.fpu-head a, .fpu-head button, .fpu-cats a, .fpu-cats button { touch-action: manipulation; }

/* Blindaje frente al kit global de Elementor (tipografía de enlaces, tamaños de imagen) en servicios, campañas y blog */
body.fpu-chrome .fpu-top a, body.fpu-chrome .fpu-head a, body.fpu-chrome .fpu-cats a, body.fpu-chrome .fpu-foot a,
body.fpu-chrome .fpu-foot p, body.fpu-chrome .fpu-foot dt, body.fpu-chrome .fpu-foot dd, body.fpu-chrome .fpu-foot li { font-family: var(--c-font) !important; letter-spacing: 0; line-height: 1.4; }
body.fpu-chrome .fpu-cats__a { font-size: 17px !important; font-weight: 600 !important; }
body.fpu-chrome .fpu-cats__sub a { font-size: 17px !important; font-weight: 500 !important; }
body.fpu-chrome .fpu-cats__all { font-size: 17px !important; font-weight: 700 !important; }
body.fpu-chrome .fpu-top a { font-size: 15px !important; font-weight: 600 !important; }
body.fpu-chrome .fpu-acc, body.fpu-chrome .fpu-cart { font-size: 16px !important; }
body.fpu-chrome .fpu-acc { font-weight: 600 !important; }
body.fpu-chrome .fpu-cart { font-weight: 700 !important; }
body.fpu-chrome .fpu-foot a, body.fpu-chrome .fpu-foot p, body.fpu-chrome .fpu-foot dt, body.fpu-chrome .fpu-foot dd { font-size: 17px !important; }
body.fpu-chrome .fpu-foot__copy { font-size: 15px !important; }
body.fpu-chrome .fpu-logo img { height: 46px !important; width: auto !important; max-width: none !important; }
body.fpu-chrome .fpu-foot__kit img { width: 100% !important; max-width: 520px !important; height: auto !important; }
@media (max-width: 960px) { body.fpu-chrome .fpu-logo img { height: 38px !important; } body.fpu-chrome .fpu-cats__a { font-size: 18px !important; } }
@media (max-width: 440px) {
  .fpu-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fpu-head__in { gap: 8px 6px; }
  body.fpu-chrome .fpu-logo img { height: 34px !important; }
}

/* ---------- Categorías del cliente (10 + Por necesidad + Marcas): una sola línea en escritorio ---------- */
.fpu-top__c a, .fpu-top__hoy { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1199px) { .fpu-top__hoy { display: none; } }
@media (min-width: 1200px) {
  .fpu-cats__l { flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .fpu-cats__a { padding: 16px 2px 16px 6px; }
  body.fpu-chrome .fpu-cats__a { font-size: 15px !important; }
  .fpu-cats__t { width: 22px; }
  .fpu-cats__t svg { width: 16px; height: 16px; }
}
@media (min-width: 1440px) { body.fpu-chrome .fpu-cats__a { font-size: 16px !important; } .fpu-cats__t { width: 26px; } }
