/* =====================================================================
   NUTRIFITNESS · Tienda online — rediseño 2026
   Mobile-first, sin dependencias. Prefijo .nf- para no chocar con el CSS
   heredado (estilos.css) que aún usan las páginas interiores.
   ===================================================================== */

:root {
  --nf-red: #d60019;
  --nf-red-dark: #a80014;
  --nf-red-soft: #fff0f2;
  --nf-navy: #132477;
  --nf-navy-dark: #0b1650;
  --nf-ink: #16171b;
  --nf-ink-2: #3a3c44;
  --nf-muted: #6b6f7b;
  --nf-line: #e6e7ec;
  --nf-bg: #f5f6f8;
  --nf-surface: #ffffff;
  --nf-green: #11845b;
  --nf-amber: #f5a524;
  --nf-radius: 14px;
  --nf-radius-sm: 9px;
  --nf-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --nf-shadow-lg: 0 18px 50px rgba(16, 24, 40, .18);
  --nf-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nf-font-display: "Barlow Condensed", "Arial Narrow", var(--nf-font);
  --nf-wrap: 1280px;
  --nf-gutter: 16px;
  --nf-header-h: 72px;
}

@media (min-width: 768px) { :root { --nf-gutter: 24px; } }

/* ------------------------------------------------------------ base */
html { background: var(--nf-bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.nf {
  margin: 0;
  font-family: var(--nf-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--nf-ink);
  background: var(--nf-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.nf *, .nf *::before, .nf *::after { box-sizing: border-box; }
:where(.nf) img { max-width: 100%; height: auto; }
:where(.nf) a { color: inherit; text-decoration: none; }
.nf button { font: inherit; }
.nf :focus-visible { outline: 3px solid rgba(214, 0, 25, .45); outline-offset: 2px; }
.nf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf-wrap { width: 100%; max-width: var(--nf-wrap); margin: 0 auto; padding: 0 var(--nf-gutter); }
.nf svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nf-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--nf-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.nf-skip:focus { left: 8px; }

/* ------------------------------------------------------------ botones */
.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  background: var(--nf-red); color: #fff !important;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(214, 0, 25, .25);
}
.nf-btn:hover { background: var(--nf-red-dark); transform: translateY(-1px); }
.nf-btn:active { transform: translateY(0); }
.nf-btn--dark { background: var(--nf-ink); box-shadow: none; }
.nf-btn--dark:hover { background: #000; }
.nf-btn--ghost { background: transparent; color: var(--nf-ink) !important; border: 1.5px solid var(--nf-line); box-shadow: none; }
.nf-btn--ghost:hover { background: #fff; border-color: var(--nf-ink); }
.nf-btn--light { background: #fff; color: var(--nf-ink) !important; box-shadow: none; }
.nf-btn--block { width: 100%; }
.nf-btn--lg { min-height: 54px; font-size: 16px; padding: 0 28px; }
.nf-btn--icon { width: 42px; min-height: 42px; padding: 0; box-shadow: none; font-size: 18px; }
.nf-btn[disabled], .nf-btn.aspNetDisabled { opacity: .45; pointer-events: none; }

.nf-link { color: var(--nf-red); font-weight: 600; }
.nf-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ barra superior */
.nf-topbar { background: var(--nf-navy); color: #dfe4ff; font-size: 13px; }
.nf-topbar .nf-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.nf-topbar__msgs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nf-topbar__msgs::-webkit-scrollbar { display: none; }
.nf-topbar__msgs a, .nf-topbar__msgs span { display: inline-flex; align-items: center; gap: 6px; }
.nf-topbar__msgs strong { color: #fff; }
.nf-topbar__tel { display: none; color: #fff; font-weight: 600; }
@media (min-width: 900px) { .nf-topbar__tel { display: inline-flex; gap: 6px; align-items: center; } }
.nf-topbar__tel svg { fill: currentColor; stroke: none; font-size: 15px; }

/* ------------------------------------------------------------ cabecera */
.nf-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--nf-line); }
.nf-header__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 64px; }
.nf-logo { display: block; }
.nf-logo img { display: block; height: 30px; width: auto; }
@media (min-width: 768px) { .nf-logo img { height: 40px; } .nf-header__bar { min-height: var(--nf-header-h); gap: 24px; } }
.nf-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; color: var(--nf-ink); cursor: pointer; margin-left: -8px; }
.nf-burger:hover { background: var(--nf-bg); }
@media (min-width: 1024px) { .nf-burger { display: none; } }
.nf-header__brand { display: flex; align-items: center; gap: 4px; }

/* buscador */
.nf-search { position: relative; grid-column: 1 / -1; order: 3; padding-bottom: 12px; }
@media (min-width: 768px) { .nf-search { grid-column: auto; order: 0; padding: 0; max-width: 620px; width: 100%; justify-self: center; } }
.nf-search__box { display: flex; align-items: center; background: var(--nf-bg); border: 1.5px solid transparent; border-radius: 999px; padding: 0 6px 0 16px; transition: border-color .15s, background .15s, box-shadow .15s; }
.nf-search__box:focus-within { background: #fff; border-color: var(--nf-ink); box-shadow: 0 0 0 4px rgba(22, 23, 27, .06); }
.nf-search__box svg { font-size: 18px; color: var(--nf-muted); }
.nf-search input[type=text], .nf-search input[type=search] { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; padding: 0 10px; font: inherit; font-size: 15px; color: var(--nf-ink); }
.nf-search .nf-search__btn { height: 36px; min-height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.nf-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow-lg); border: 1px solid var(--nf-line); overflow: hidden; z-index: 60; display: none; }
.nf-suggest.is-open { display: block; }
.nf-suggest__list { list-style: none; margin: 0; padding: 6px; }
.nf-suggest__list a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.nf-suggest__list a:hover, .nf-suggest__list a.is-active { background: var(--nf-bg); }
.nf-suggest__list img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.nf-suggest__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.nf-suggest__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.nf-suggest__all { display: block; padding: 12px 16px; border-top: 1px solid var(--nf-line); font-weight: 600; color: var(--nf-red); text-align: center; }
.nf-suggest__empty { padding: 16px; margin: 0; color: var(--nf-muted); }

/* acciones */
.nf-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.nf-action { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--nf-ink); font-size: 14px; font-weight: 600; }
.nf-action:hover { background: var(--nf-bg); }
.nf-action svg { font-size: 22px; }
.nf-action__label { display: none; }
@media (min-width: 1024px) { .nf-action__label { display: inline; } }
.nf-action__count { position: absolute; top: 4px; left: 24px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--nf-red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.nf-account { position: relative; }
.nf-account__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); box-shadow: var(--nf-shadow-lg); padding: 8px; display: none; z-index: 60; }
.nf-account.is-open .nf-account__menu { display: block; }
.nf-account__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.nf-account__menu a:hover { background: var(--nf-bg); }
.nf-account__hello { padding: 8px 12px 10px; font-size: 13px; color: var(--nf-muted); border-bottom: 1px solid var(--nf-line); margin-bottom: 6px; }

/* ------------------------------------------------------------ navegación */
.nf-nav { display: none; background: var(--nf-ink); color: #fff; }
@media (min-width: 1024px) { .nf-nav { display: block; } }
.nf-nav__list { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nf-nav__item { position: static; }
.nf-nav__link { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 clamp(6px, .9vw, 14px); white-space: nowrap; font-family: var(--nf-font-display); font-weight: 600; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .04em; text-transform: uppercase; color: #fff; opacity: .92; border-bottom: 3px solid transparent; }
.nf-nav__link:hover, .nf-nav__item:focus-within > .nf-nav__link, .nf-nav__item.is-open > .nf-nav__link { opacity: 1; border-bottom-color: var(--nf-red); }
.nf-nav__link--hot { color: #ff8796; }
.nf-nav__link--mujer { color: #ffb3d1; }
.nf-nav__link svg { font-size: 14px; opacity: .7; }
.nf-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--nf-ink); border-top: 1px solid var(--nf-line); box-shadow: var(--nf-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nf-nav__item:hover > .nf-mega, .nf-nav__item:focus-within > .nf-mega, .nf-nav__item.is-open > .nf-mega { opacity: 1; visibility: visible; transform: none; }
.nf-mega__inner { padding: 28px var(--nf-gutter) 32px; max-height: 70vh; overflow: auto; }
.nf-mega__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nf-line); }

/* HTML de menús guardado en BD (menusx.texto): se normaliza su aspecto */
.nf-menuhtml { columns: 4 200px; column-gap: 32px; font-size: 14px; }
.nf-menuhtml ul { list-style: none; margin: 0 0 16px; padding: 0; break-inside: avoid; }
.nf-menuhtml li { margin: 0; padding: 0; float: none !important; width: auto !important; }
.nf-menuhtml a { display: inline-block; padding: 4px 0; color: var(--nf-ink-2); }
.nf-menuhtml a:hover { color: var(--nf-red); }
.nf-menuhtml h2, .nf-menuhtml h3, .nf-menuhtml h4, .nf-menuhtml strong, .nf-menuhtml li > a:first-child:only-child { break-after: avoid; }
.nf-menuhtml h2, .nf-menuhtml h3, .nf-menuhtml h4 { font-family: var(--nf-font-display); text-transform: uppercase; font-size: 16px; letter-spacing: .04em; margin: 0 0 6px; color: var(--nf-ink); }
.nf-menuhtml div { float: none !important; width: auto !important; }
.nf-menuhtml img { display: none; }

.nf-brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.nf-brandgrid a { display: grid; place-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--nf-line); border-radius: var(--nf-radius-sm); text-align: center; font-size: 13px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.nf-brandgrid a:hover { border-color: var(--nf-ink); box-shadow: var(--nf-shadow); }
.nf-brandgrid img { height: 48px; width: auto; object-fit: contain; }

/* ------------------------------------------------------------ menú móvil */
.nf-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.nf-drawer.is-open { visibility: visible; }
.nf-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 20, .5); opacity: 0; transition: opacity .25s; }
.nf-drawer.is-open .nf-drawer__backdrop { opacity: 1; }
.nf-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #fff; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.nf-drawer.is-open .nf-drawer__panel { transform: none; }
.nf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--nf-line); }
.nf-drawer__head img { height: 26px; width: auto; }
.nf-drawer__body { flex: 1; overflow: auto; padding: 8px 0 24px; }
.nf-drawer details { border-bottom: 1px solid var(--nf-line); }
.nf-drawer summary, .nf-drawer__link { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; font-family: var(--nf-font-display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; list-style: none; border-bottom: 1px solid var(--nf-line); }
.nf-drawer details summary { border-bottom: 0; }
.nf-drawer summary::-webkit-details-marker { display: none; }
.nf-drawer summary svg { transition: transform .2s; }
.nf-drawer details[open] summary svg { transform: rotate(180deg); }
.nf-drawer__sub { padding: 0 20px 16px; }
.nf-drawer__sub .nf-menuhtml { columns: 1; }
.nf-drawer__foot { padding: 16px 20px; display: grid; gap: 10px; border-top: 1px solid var(--nf-line); }
body.nf-lock { overflow: hidden; }

/* ------------------------------------------------------------ migas */
.nf-crumbs { font-size: 13px; color: var(--nf-muted); padding-top: 14px; }
.nf-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nf-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.nf-crumbs li + li::before { content: "/"; opacity: .5; }
.nf-crumbs a:hover { color: var(--nf-red); }
.nf-crumbs [aria-current] { color: var(--nf-ink); font-weight: 500; }

.nf-main { min-height: 50vh; padding-bottom: 48px; }

/* ------------------------------------------------------------ secciones / títulos */
.nf-section { padding-top: 36px; padding-bottom: 8px; }
@media (min-width: 768px) { .nf-section { padding-top: 52px; padding-bottom: 12px; } }
.nf-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nf-h1, .nf-h2 { font-family: var(--nf-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
.nf-h1 { font-size: clamp(30px, 5vw, 48px); font-style: italic; }
.nf-h2 { font-size: clamp(26px, 3.6vw, 36px); font-style: italic; }
.nf-h2 em, .nf-h1 em { color: var(--nf-red); font-style: inherit; }
.nf-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nf-red); margin-bottom: 6px; }
.nf-lead { color: var(--nf-muted); margin: 8px 0 0; max-width: 60ch; }
.nf-section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nf-section__more:hover { color: var(--nf-red); }

/* ------------------------------------------------------------ hero / slider */
.nf-hero { padding-top: 16px; }
.nf-slider { position: relative; border-radius: var(--nf-radius); overflow: hidden; background: var(--nf-ink); box-shadow: var(--nf-shadow); }
.nf-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.nf-slider__track::-webkit-scrollbar { display: none; }
.nf-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 1200 / 420; display: block; }
.nf-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* móvil: el banner se ve entero, a su tamaño natural y los puntos se hacen más pequeños */
@media (max-width: 767px) {
  .nf-slide { aspect-ratio: auto; }
  .nf-slide img { position: static; display: block; height: auto; }
  .nf-slider__dots { bottom: 6px; gap: 5px; }
  .nf-slider__dots button { width: 6px; height: 6px; }
  .nf-slider__dots button.is-active { width: 16px; }
}
.nf-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--nf-ink); display: none; place-items: center; cursor: pointer; font-size: 20px; box-shadow: var(--nf-shadow); z-index: 2; }
.nf-slider__btn--prev { left: 14px; } .nf-slider__btn--next { right: 14px; }
@media (min-width: 768px) { .nf-slider__btn { display: grid; } }
.nf-slider__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.nf-slider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.nf-slider__dots button.is-active { width: 26px; background: #fff; }

/* bloque hero cuando no hay banners */
.nf-hero-fallback { position: relative; overflow: hidden; border-radius: var(--nf-radius); color: #fff; padding: 48px 28px; background: radial-gradient(120% 120% at 100% 0%, rgba(214, 0, 25, .9) 0%, rgba(214, 0, 25, 0) 55%), linear-gradient(135deg, var(--nf-navy-dark), var(--nf-ink) 70%); }
.nf-hero-fallback .nf-h1 { font-size: clamp(36px, 6vw, 64px); max-width: 14ch; }
.nf-hero-fallback p { max-width: 46ch; opacity: .85; margin: 14px 0 24px; }

/* ------------------------------------------------------------ ventajas */
.nf-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .nf-benefits { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.nf-benefit { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); font-size: 13px; color: var(--nf-muted); line-height: 1.35; transition: transform .15s; }
a.nf-benefit:hover { transform: translateY(-2px); }
.nf-benefit strong { display: block; color: var(--nf-ink); font-size: 14px; }
.nf-benefit__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--nf-red-soft); color: var(--nf-red); font-size: 20px; flex: none; }
.nf-benefit:nth-child(2) .nf-benefit__ico { background: #eef0ff; color: var(--nf-navy); }
.nf-benefit:nth-child(3) .nf-benefit__ico { background: #fff6e5; color: #c77700; }
.nf-benefit:nth-child(4) .nf-benefit__ico { background: #e8f7f0; color: var(--nf-green); }
/* móvil: una lista compacta de 4 líneas que ocupa todo el ancho */
@media (max-width: 767px) {
  .nf-benefits { grid-template-columns: 1fr; gap: 0; margin-top: 10px; background: #fff; border-radius: var(--nf-radius-sm); box-shadow: var(--nf-shadow); overflow: hidden; }
  .nf-benefit { gap: 10px; padding: 8px 12px; border-radius: 0; box-shadow: none; font-size: 12px; line-height: 1.3; }
  .nf-benefit + .nf-benefit { border-top: 1px solid var(--nf-line); }
  a.nf-benefit:hover { transform: none; }
  .nf-benefit > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nf-benefit strong { display: inline; font-size: 13px; }
  .nf-benefit strong::after { content: " · "; font-weight: 400; color: var(--nf-muted); }
  .nf-benefit__ico { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }
}

/* ------------------------------------------------------------ categorías rápidas */
.nf-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.nf-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--nf-line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s; }
.nf-chip:hover, .nf-chip.is-active { border-color: var(--nf-ink); background: var(--nf-ink); color: #fff; }
.nf-chip small { opacity: .6; font-weight: 500; }

/* ------------------------------------------------------------ rejilla y tarjetas de producto */
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .nf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .nf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.nf-grid--5 { }
@media (min-width: 1240px) { .nf-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.nf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: thin; }
@media (min-width: 640px) { .nf-rail { grid-auto-columns: 31%; gap: 16px; } }
@media (min-width: 1100px) { .nf-rail { grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; } }
.nf-rail > * { scroll-snap-align: start; }

.nf-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--nf-radius); overflow: hidden; box-shadow: var(--nf-shadow); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.nf-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 32px rgba(16, 24, 40, .12); }
.nf-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.nf-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.nf-card:hover .nf-card__media img { transform: scale(1.04); }
.nf-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.nf-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--nf-ink); }
.nf-badge--sale { background: var(--nf-red); }
.nf-badge--outlet { background: var(--nf-amber); color: #2b1a00; }
.nf-badge--new { background: var(--nf-navy); }
.nf-card__body { display: flex; flex-direction: column; flex: 1; padding: 4px 14px 14px; gap: 4px; }
.nf-card__brand { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-muted); }
.nf-card__title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.nf-card__title a:hover { color: var(--nf-red); }
.nf-card__meta { margin: 0; font-size: 12px; color: var(--nf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.nf-card .nf-btn--icon { width: 38px; min-height: 38px; background: var(--nf-ink); }
.nf-card:hover .nf-btn--icon { background: var(--nf-red); }
.nf-price { display: flex; flex-direction: column; line-height: 1.1; }
.nf-price__now { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.nf-price__old { font-size: 13px; color: var(--nf-muted); }
.nf-price__ask { font-size: 14px; font-weight: 700; color: var(--nf-muted); }
@media (min-width: 640px) { .nf-price__now { font-size: 20px; } .nf-card__title { font-size: 15px; } }

/* ------------------------------------------------------------ oferta express */
.nf-express { position: relative; display: grid; gap: 20px; align-items: center; padding: 22px; border-radius: var(--nf-radius); color: #fff; overflow: hidden; background: linear-gradient(120deg, var(--nf-red) 0%, #8d0012 55%, var(--nf-navy-dark) 100%); box-shadow: var(--nf-shadow); }
@media (min-width: 768px) { .nf-express { grid-template-columns: 220px 1fr auto; padding: 28px 36px; gap: 32px; } }
.nf-express::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.nf-express__img { background: #fff; border-radius: var(--nf-radius-sm); padding: 12px; aspect-ratio: 1; display: grid; place-items: center; max-width: 220px; }
.nf-express__img img { max-height: 100%; object-fit: contain; }
.nf-express__name { font-size: 20px; font-weight: 700; margin: 6px 0 12px; line-height: 1.25; }
.nf-express__name a:hover { text-decoration: underline; }
.nf-express__price { display: flex; align-items: baseline; gap: 12px; }
.nf-express__price strong { font-family: var(--nf-font-display); font-size: 44px; font-weight: 800; line-height: 1; }
.nf-express__price s { opacity: .7; }
.nf-countdown { display: flex; gap: 8px; position: relative; z-index: 1; }
.nf-countdown div { min-width: 64px; padding: 10px 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); text-align: center; }
.nf-countdown b { display: block; font-family: var(--nf-font-display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.nf-countdown span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
/* móvil: oferta express en formato reducido (foto pequeña al lado, contador en una línea) */
@media (max-width: 767px) {
  .nf-express { grid-template-columns: 76px 1fr; gap: 8px 12px; padding: 12px; }
  .nf-express::after { display: none; }
  .nf-express__img { padding: 6px; max-width: 76px; }
  .nf-express .nf-eyebrow { display: block; font-size: 10px; letter-spacing: .08em; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nf-express__name { font-size: 14px; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nf-express__price { gap: 8px; font-size: 13px; }
  .nf-express__price strong { font-size: 24px; }
  .nf-express .nf-btn { display: none; }
  .nf-countdown { grid-column: 1 / -1; gap: 6px; }
  .nf-countdown div { flex: 1; min-width: 0; padding: 4px; border-radius: 8px; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
  .nf-countdown b { display: inline; font-size: 16px; }
  .nf-countdown span { font-size: 9px; letter-spacing: .06em; }
}

/* ------------------------------------------------------------ pestañas portada */
.nf-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.nf-tabs::-webkit-scrollbar { display: none; }
.nf-tab { flex: none; border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--nf-muted); cursor: pointer; }
.nf-tab[aria-selected=true] { background: var(--nf-ink); color: #fff; }
.nf-tabpanel[hidden] { display: none; }

/* ------------------------------------------------------------ banners promo */
.nf-promos { display: grid; gap: 14px; }
@media (min-width: 768px) { .nf-promos { grid-template-columns: 1.3fr 1fr; gap: 20px; } }
.nf-promo { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 220px; padding: 26px; border-radius: var(--nf-radius); color: #fff; overflow: hidden; background: var(--nf-ink); isolation: isolate; }
.nf-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 100% 0%, rgba(214, 0, 25, .75), transparent 60%), linear-gradient(160deg, #23252d, #0d0e12); }
.nf-promo--mujer::before { background: radial-gradient(90% 90% at 100% 0%, rgba(255, 64, 140, .75), transparent 60%), linear-gradient(160deg, #3a1630, #120a12); }
.nf-promo .nf-h2 { font-size: clamp(28px, 4vw, 42px); }
.nf-promo p { margin: 8px 0 16px; opacity: .85; max-width: 40ch; }
.nf-promo .nf-btn { align-self: flex-start; }

/* ------------------------------------------------------------ marcas */
.nf-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .nf-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .nf-brands { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.nf-brands a { display: grid; place-items: center; background: #fff; border-radius: var(--nf-radius-sm); padding: 14px; aspect-ratio: 1 / 1; box-shadow: var(--nf-shadow); filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s, transform .2s; }
.nf-brands a:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.nf-brands img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ------------------------------------------------------------ noticias */
.nf-news { display: grid; gap: 14px; }
@media (min-width: 768px) { .nf-news { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.nf-news a { display: flex; gap: 14px; align-items: center; background: #fff; padding: 12px; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); }
.nf-news img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; background: var(--nf-bg); }
.nf-news time { font-size: 12px; color: var(--nf-muted); }
.nf-news strong { display: block; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.nf-news a:hover strong { color: var(--nf-red); }

/* ------------------------------------------------------------ newsletter + pie */
.nf-newsletter { margin-top: 56px; background: var(--nf-navy); color: #fff; }
.nf-newsletter .nf-wrap { display: grid; gap: 18px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
@media (min-width: 900px) { .nf-newsletter .nf-wrap { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.nf-newsletter .nf-h2 { font-size: clamp(26px, 3.4vw, 34px); }
.nf-newsletter p { margin: 6px 0 0; opacity: .8; }
.nf-newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-newsletter__form input[type=email], .nf-newsletter__form input[type=text] { flex: 1 1 220px; height: 52px; border-radius: 999px; border: 0; padding: 0 22px; font: inherit; font-size: 15px; }
.nf-newsletter__legal { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; margin-top: 10px; }
.nf-newsletter__legal a { text-decoration: underline; }
.nf-newsletter__msg { flex-basis: 100%; font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.nf-promo__code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.nf-promo__label { flex-basis: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.nf-promo__value { display: inline-block; padding: 8px 18px; border: 2px dashed #ff8796; border-radius: 12px; font-family: var(--nf-font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: 1px; }

.nf-footer { background: var(--nf-ink); color: #b9bcc6; font-size: 14px; }
.nf-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 44px 0 32px; }
@media (min-width: 900px) { .nf-footer__cols { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.nf-footer h3 { font-family: var(--nf-font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; color: #fff; margin: 0 0 12px; }
.nf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nf-footer a:hover { color: #fff; }
.nf-footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .nf-footer__about { grid-column: auto; } }
.nf-footer__about img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 6px 12px; margin-bottom: 14px; }
.nf-footer__about p { margin: 0 0 14px; line-height: 1.6; }
.nf-footer__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; }
.nf-social { display: flex; gap: 8px; margin-top: 16px; }
.nf-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; transition: background .15s; }
.nf-social a:hover { background: var(--nf-red); }
.nf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 12px; }
.nf-footer__pay { display: flex; align-items: center; gap: 8px; }
.nf-footer__pay img { height: 24px; width: auto; background: #fff; border-radius: 4px; padding: 2px 4px; }

/* ------------------------------------------------------------ diálogo login */
.nf-dialog { border: 0; padding: 0; border-radius: 18px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--nf-shadow-lg); color: var(--nf-ink); }
.nf-dialog::backdrop { background: rgba(10, 12, 20, .55); backdrop-filter: blur(3px); }
.nf-dialog__body { padding: 28px; }
.nf-dialog__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--nf-bg); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.nf-dialog h2 { font-family: var(--nf-font-display); font-style: italic; text-transform: uppercase; font-size: 30px; margin: 0 0 4px; }
.nf-dialog p { color: var(--nf-muted); margin: 0 0 18px; font-size: 14px; }
.nf-field { display: grid; gap: 6px; margin-bottom: 14px; }
.nf-field label { font-size: 13px; font-weight: 600; }
.nf-input { width: 100%; height: 48px; border: 1.5px solid var(--nf-line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; background: #fff; color: var(--nf-ink); transition: border-color .15s, box-shadow .15s; }
.nf-input:focus { outline: none; border-color: var(--nf-ink); box-shadow: 0 0 0 4px rgba(22, 23, 27, .06); }
select.nf-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316171b' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.nf-input.is-error, .nf-input.rojo { border-color: var(--nf-red); }
.nf-dialog__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; margin: 4px 0 18px; }
.nf-dialog__alt { text-align: center; font-size: 14px; margin-top: 16px; color: var(--nf-muted); }
.nf-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; background: var(--nf-red-soft); color: var(--nf-red-dark); font-weight: 500; }
.nf-alert--ok { background: #e8f7f0; color: #0b6a48; }
.nf-alert--info { background: #eef0ff; color: var(--nf-navy); }

/* ------------------------------------------------------------ cookies */
.nf-cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: none; background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow-lg); padding: 18px; font-size: 14px; max-width: 560px; }
.nf-cookie.is-open { display: block; }
.nf-cookie p { margin: 0 0 14px; color: var(--nf-ink-2); }
.nf-cookie a { text-decoration: underline; }
.nf-cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-cookie .nf-btn { min-height: 40px; font-size: 14px; }

/* ------------------------------------------------------------ listado */
.nf-listing__head { padding: 18px 0 8px; }
.nf-listing__head .nf-lead { margin-top: 6px; }
.nf-brandhead { display: flex; gap: 18px; align-items: center; }
.nf-brandhead img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--nf-radius); padding: 10px; box-shadow: var(--nf-shadow); }
.nf-listing { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 1024px) { .nf-listing { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; } }
.nf-filters { display: none; }
@media (min-width: 1024px) { .nf-filters { display: block; position: sticky; top: calc(var(--nf-header-h) + 16px); align-self: start; } }
.nf-filters__box { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 18px; margin-bottom: 16px; }
.nf-filters h2 { font-family: var(--nf-font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 17px; margin: 0 0 10px; }
.nf-filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nf-filters a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--nf-ink-2); }
.nf-filters a:hover { background: var(--nf-bg); color: var(--nf-ink); }
.nf-filters a.is-active { background: var(--nf-ink); color: #fff; font-weight: 600; }
.nf-filters__parent { font-weight: 700; color: var(--nf-ink) !important; }
.nf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.nf-toolbar__count { font-size: 14px; color: var(--nf-muted); }
.nf-toolbar__count strong { color: var(--nf-ink); }
.nf-toolbar select { height: 42px; border-radius: 999px; padding: 0 40px 0 16px; width: auto; font-size: 14px; }
.nf-listing__chips { margin-bottom: 12px; }
@media (min-width: 1024px) { .nf-listing__chips { display: none; } }
.nf-more { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.nf-more__info { font-size: 13px; color: var(--nf-muted); }
.nf-progress { width: 220px; height: 4px; background: var(--nf-line); border-radius: 9px; overflow: hidden; }
.nf-progress span { display: block; height: 100%; background: var(--nf-ink); border-radius: 9px; }
.nf-empty { text-align: center; background: #fff; border-radius: var(--nf-radius); padding: 48px 20px; box-shadow: var(--nf-shadow); }
.nf-empty svg { font-size: 44px; color: var(--nf-muted); }
.nf-empty h2 { margin: 10px 0 6px; font-size: 20px; }
.nf-empty p { color: var(--nf-muted); margin: 0 0 18px; }
.nf-is-loading { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------ ficha de producto */
.nf-pdp { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 900px) { .nf-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.nf-gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .nf-gallery { position: sticky; top: calc(var(--nf-header-h) + 16px); } }
.nf-gallery__main { position: relative; display: grid; place-items: center; background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); aspect-ratio: 1; padding: 24px; overflow: hidden; cursor: zoom-in; }
.nf-gallery__main img { max-height: 100%; width: auto; object-fit: contain; transition: transform .3s; }
.nf-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.nf-gallery__thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 6px; cursor: pointer; box-shadow: var(--nf-shadow); }
.nf-gallery__thumbs button.is-active { border-color: var(--nf-ink); }
.nf-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.nf-pdp__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nf-muted); }
.nf-pdp__brand img { height: 32px; width: auto; }
.nf-pdp__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 8px 0 10px; }
.nf-pdp__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--nf-muted); }
.nf-stars { display: inline-flex; gap: 2px; color: var(--nf-amber); }
.nf-stars svg { fill: currentColor; stroke: none; font-size: 16px; }
.nf-stars .is-off { color: #d9dbe1; }
.nf-pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.nf-pdp__price strong { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.nf-pdp__price s { color: var(--nf-muted); font-size: 18px; }
.nf-pdp__tax { font-size: 13px; color: var(--nf-muted); margin: 0 0 18px; }
.nf-pdp__box { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 20px; display: grid; gap: 14px; }
.nf-pdp__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.nf-pdp__row .nf-btn { flex: 1 1 200px; }
.nf-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--nf-line); border-radius: 999px; height: 54px; overflow: hidden; background: #fff; }
.nf-qty button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--nf-ink); }
.nf-qty button:hover { background: var(--nf-bg); }
.nf-qty input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.nf-qty input::-webkit-outer-spin-button, .nf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.nf-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.nf-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(17, 132, 91, .15); }
.nf-stock--ok { color: var(--nf-green); }
.nf-stock--ko { color: var(--nf-red); }
.nf-stock--ko::before { box-shadow: 0 0 0 4px rgba(214, 0, 25, .12); }
.nf-points { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: #fff6e5; color: #6b4300; }
.nf-points svg { font-size: 20px; color: #c77700; }
.nf-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.nf-trust div { display: grid; justify-items: center; text-align: center; gap: 6px; font-size: 12px; color: var(--nf-muted); padding: 12px 6px; border-radius: 12px; border: 1px solid var(--nf-line); background: #fff; }
.nf-trust svg { font-size: 22px; color: var(--nf-ink); }
.nf-variants { display: grid; gap: 8px; }
.nf-variants label { font-size: 13px; font-weight: 700; }

.nf-pdp-tabs { margin-top: 40px; background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); }
.nf-pdp-tabs .nf-tabs { padding: 10px 10px 0; margin: 0; border-bottom: 1px solid var(--nf-line); border-radius: 0; }
.nf-pdp-tabs .nf-tab { border-radius: 10px 10px 0 0; }
.nf-pdp-tabs .nf-tab[aria-selected=true] { background: transparent; color: var(--nf-ink); box-shadow: inset 0 -3px 0 var(--nf-red); }
.nf-pdp-tabs .nf-tabpanel { padding: 22px; }
.nf-rich { line-height: 1.7; color: var(--nf-ink-2); overflow-wrap: anywhere; }
.nf-rich img { border-radius: 10px; }
.nf-rich table { border-collapse: collapse; width: 100%; max-width: 100%; display: block; overflow-x: auto; font-size: 14px; }
.nf-rich td, .nf-rich th { border: 1px solid var(--nf-line); padding: 6px 10px; }
.nf-rich iframe { max-width: 100%; }
.nf-review { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--nf-line); }
.nf-review:last-child { border-bottom: 0; }
.nf-review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--nf-muted); }
.nf-review__verified { color: var(--nf-green); font-weight: 600; font-size: 12px; }
.nf-review p { margin: 0; }

.nf-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--nf-line); padding: 10px var(--nf-gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .25s; box-shadow: 0 -8px 24px rgba(16, 24, 40, .08); }
.nf-sticky-buy.is-visible { transform: none; }
.nf-sticky-buy strong { font-size: 20px; }
@media (min-width: 900px) { .nf-sticky-buy { display: none; } }

/* ------------------------------------------------------------ cesta (reutiliza controles existentes) */
.nf-cart { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 1024px) { .nf-cart { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; } }
.nf-cart__items { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 4px 18px; }
.nf-cart__line { display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--nf-line); align-items: center; }
.nf-cart__line:last-child { border-bottom: 0; }
@media (min-width: 700px) { .nf-cart__line { grid-template-columns: 84px 1fr auto auto auto; gap: 18px; } }
.nf-cart__img { grid-row: span 3; width: 72px; height: 72px; border-radius: 12px; background: var(--nf-bg); padding: 6px; display: grid; place-items: center; }
@media (min-width: 700px) { .nf-cart__img { grid-row: auto; width: 84px; height: 84px; } }
.nf-cart__img img { max-height: 100%; object-fit: contain; }
.nf-cart__name { font-weight: 600; line-height: 1.3; }
.nf-cart__name a:hover { color: var(--nf-red); }
.nf-cart__name small { display: block; color: var(--nf-muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.nf-cart__qty { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-cart__qty input[type=text] { width: 60px; height: 40px; border: 1.5px solid var(--nf-line); border-radius: 10px; text-align: center; font: inherit; font-weight: 600; }
.nf-cart__qty input[type=submit] { height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--nf-bg); font-weight: 600; cursor: pointer; }
.nf-cart__qty input[type=submit]:hover { background: var(--nf-line); }
.nf-cart__total { font-weight: 800; font-size: 17px; white-space: nowrap; }
.nf-cart__total a, .nf-cart__total .btPuntos { display: block; font-size: 12px; font-weight: 600; color: var(--nf-navy); }
.nf-cart__del input[type=submit] { border: 0; background: transparent; color: var(--nf-muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 6px; }
.nf-cart__del input[type=submit]:hover { color: var(--nf-red); }
.nf-summary { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 22px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .nf-summary { position: sticky; top: calc(var(--nf-header-h) + 16px); } }
.nf-summary h2 { font-family: var(--nf-font-display); text-transform: uppercase; font-size: 22px; margin: 0; }
.nf-summary__row, .nf-summary > div > div, .nf-summary .sub { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.nf-summary .right { float: none; margin-left: auto; text-align: right; }
.nf-summary .total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; border-top: 1px solid var(--nf-line); padding-top: 14px; margin-top: 4px; }
.nf-summary input[type=submit] { width: 100%; }
.nf-promo-code { display: flex; gap: 8px; }
.nf-promo-code input[type=text] { flex: 1; min-width: 0; }
.nf-promo-code input[type=submit] { width: auto; }
.nf-cart__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.nf-cart__note { font-size: 12px; color: var(--nf-muted); text-align: center; }

/* ------------------------------------------------------------ páginas heredadas */
.nf-legacy { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 20px; margin-top: 16px; font-size: 14px; line-height: 1.6; overflow-x: auto; }
@media (min-width: 768px) { .nf-legacy { padding: 32px; } }
.nf-legacy::after { content: ""; display: table; clear: both; }
.nf-legacy h1, .nf-legacy .titH2 h1, .nf-legacy .titH2 h2 { font-family: var(--nf-font-display); font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1.1; margin: 0 0 16px; color: var(--nf-ink); background: none; padding: 0; }
.nf-legacy .bloqueCentro, .nf-legacy .centroDcha, .nf-legacy .contenido, .nf-legacy .centro { width: 100% !important; max-width: 100%; float: none !important; margin: 0 !important; }
.nf-legacy input[type=text], .nf-legacy input[type=password], .nf-legacy input[type=email], .nf-legacy select, .nf-legacy textarea { max-width: 100%; border: 1.5px solid var(--nf-line); border-radius: 10px; padding: 8px 12px; font: inherit; min-height: 42px; }
.nf-legacy textarea { min-height: 120px; }
.nf-legacy input[type=submit], .nf-legacy input[type=button], .nf-legacy .btGen, .nf-legacy .btContinuar, .nf-legacy .btComprar, .nf-legacy .btEntrar { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--nf-red); color: #fff; font-weight: 700; cursor: pointer; text-transform: none; background-image: none; width: auto; height: auto; }
.nf-legacy input[type=submit]:hover, .nf-legacy input[type=button]:hover { background: var(--nf-red-dark); }
.nf-legacy table { max-width: 100%; }
.nf-legacy .ok, .nf-legacy .aviso, .nf-legacy .info { padding: 12px 14px; border-radius: 12px; margin: 10px 0; }
.nf-legacy .ok { background: #e8f7f0; color: #0b6a48; }
.nf-legacy .aviso, .nf-legacy .info { background: var(--nf-red-soft); color: var(--nf-red-dark); }

/* ------------------------------------------------------------ utilidades */
.nf-mt { margin-top: 24px; }
.nf-center { text-align: center; }
.nf-hide-sm { display: none; }
@media (min-width: 768px) { .nf-hide-sm { display: initial; } }

@media (prefers-reduced-motion: reduce) {
  .nf *, .nf *::before, .nf *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* mensajes de la cesta (CssClass asignada desde código: ok / aviso / info) */
.nf-wrap > .ok, .nf-wrap > .aviso, .nf-wrap > .info { padding: 12px 16px; border-radius: 12px; margin: 8px 0 0; font-weight: 500; }
.nf-wrap > .ok { background: #e8f7f0; color: #0b6a48; }
.nf-wrap > .aviso, .nf-wrap > .info { background: var(--nf-red-soft); color: var(--nf-red-dark); }
.nf-summary .nf-points { flex-wrap: wrap; justify-content: space-between; }

/* ------------------------------------------------------------ filtros del listado (facetas) */
.nf-facet + .nf-facet { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nf-line); }
.nf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 232px; overflow: auto; overscroll-behavior: contain; }
.nf-checks label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--nf-ink-2); cursor: pointer; }
.nf-checks label:hover { background: var(--nf-bg); }
.nf-checks input { width: 18px; height: 18px; accent-color: var(--nf-red); flex: none; margin: 0; }
.nf-checks span { flex: 1; min-width: 0; }
.nf-checks small { color: var(--nf-muted); font-size: 12px; background: var(--nf-bg); border-radius: 99px; padding: 1px 8px; }
.nf-checks input:checked + span { color: var(--nf-ink); font-weight: 600; }

.nf-range { position: relative; height: 28px; margin: 6px 4px 0; }
.nf-range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 9px; background: var(--nf-line); }
.nf-range__fill { position: absolute; top: 0; bottom: 0; background: var(--nf-red); border-radius: 9px; }
.nf-range input[type=range] { position: absolute; left: -4px; width: calc(100% + 8px); top: 4px; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.nf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--nf-red); box-shadow: var(--nf-shadow); cursor: grab; }
.nf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--nf-red); cursor: grab; }
.nf-range input[type=range]::-moz-range-track { background: none; }
.nf-range__vals { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-top: 6px; }

.nf-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.nf-active:empty { display: none; }
.nf-chip--x { padding: 6px 12px; font-size: 13px; }
.nf-chip--x span { font-size: 16px; line-height: 1; opacity: .8; }

.nf-filters__open { min-height: 42px; padding: 0 16px; font-size: 14px; }
.nf-filters__mhead, .nf-filters__backdrop { display: none; }
@media (min-width: 1024px) { .nf-filters__open { display: none; } }
@media (max-width: 1023px) {
  .nf-toolbar { flex-wrap: nowrap; }
  .nf-toolbar__count { flex: 1; }
  .nf-toolbar select { max-width: 46vw; }
  .nf-filters.is-open { display: block; position: fixed; top: 0; bottom: 0; right: 0; z-index: 95; width: min(90vw, 380px); overflow: auto; background: var(--nf-bg); padding: 0 14px 24px; box-shadow: var(--nf-shadow-lg); animation: nf-in .25s ease; }
  .nf-filters.is-open .nf-filters__mhead { display: flex; position: sticky; top: 0; z-index: 1; align-items: center; justify-content: space-between; margin: 0 -14px 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--nf-line); font-size: 18px; }
  .nf-filters__backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(10, 12, 20, .5); }
}
@keyframes nf-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ mini-carrito (panel lateral derecho) */
.nf-drawer--right .nf-drawer__panel { left: auto; right: 0; transform: translateX(100%); width: min(92vw, 420px); }
.nf-drawer--right.is-open .nf-drawer__panel { transform: none; }
.nf-mini__title { font-family: var(--nf-font-display); font-size: 22px; text-transform: uppercase; font-style: italic; }
.nf-mini { padding: 16px; display: grid; gap: 14px; align-content: start; }
.nf-mini__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nf-mini__list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--nf-line); font-size: 14px; }
.nf-mini__img { width: 64px; height: 64px; border-radius: 10px; background: var(--nf-bg); padding: 4px; display: grid; place-items: center; }
.nf-mini__img img { max-height: 100%; object-fit: contain; }
.nf-mini__name { display: block; font-weight: 600; line-height: 1.3; }
.nf-mini__name:hover { color: var(--nf-red); }
.nf-mini__qty { font-size: 12px; color: var(--nf-muted); }
.nf-mini__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }

/* ------------------------------------------------------------ barra de envío gratis */
.nf-freeship { background: #eef0ff; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--nf-navy); }
.nf-freeship p { margin: 0 0 8px; }
.nf-freeship small { display: block; margin-top: 6px; font-size: 11px; opacity: .8; }
.nf-freeship__bar { height: 8px; border-radius: 99px; background: rgba(19, 36, 119, .15); overflow: hidden; }
.nf-freeship__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--nf-navy), var(--nf-red)); transition: width .4s; }
.nf-freeship.is-done { background: #e8f7f0; color: #0b6a48; }
.nf-freeship.is-done .nf-freeship__bar span { background: var(--nf-green); }

/* ------------------------------------------------------------ aviso de stock */
.nf-notify { margin-top: 14px; border: 2px dashed var(--nf-line); box-shadow: none; }
.nf-notify p { margin: -6px 0 0; font-size: 14px; color: var(--nf-muted); }
.nf-notify__legal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nf-muted); }
.nf-notify__legal a { text-decoration: underline; }

/* ------------------------------------------------------------ comprados juntos */
.nf-together { margin-top: 32px; background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 22px; }
.nf-together .nf-h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.nf-together__row { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.nf-together__item { position: relative; flex: 0 0 170px; display: grid; gap: 6px; align-content: start; padding: 12px; border: 1.5px solid var(--nf-line); border-radius: 12px; cursor: pointer; font-size: 13px; }
.nf-together__item:has(input:checked) { border-color: var(--nf-ink); }
.nf-together__item input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; accent-color: var(--nf-red); }
.nf-together__item img { height: 110px; width: 100%; object-fit: contain; }
.nf-together__name { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-together__plus { align-self: center; font-size: 26px; font-weight: 800; color: var(--nf-muted); flex: none; }
.nf-together__buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nf-line); }
.nf-together__buy strong { font-size: 22px; }

/* ------------------------------------------------------------ estrellas en tarjetas */
.nf-card__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--nf-muted); }
.nf-card__rating .nf-stars svg { font-size: 13px; }

/* ------------------------------------------------------------ calculadora de proteína */
.nf-calc { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .nf-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.nf-calc__form, .nf-calc__res { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 22px; }
.nf-calc__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.nf-calc__opts label { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1.5px solid var(--nf-line); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.nf-calc__opts label:has(input:checked) { border-color: var(--nf-red); background: var(--nf-red-soft); }
.nf-calc__opts input { accent-color: var(--nf-red); }
.nf-calc__big { font-family: var(--nf-font-display); font-size: clamp(56px, 9vw, 84px); font-weight: 800; line-height: 1; color: var(--nf-red); }
.nf-calc__res ul { padding-left: 18px; color: var(--nf-ink-2); }
.nf-calc__note { font-size: 12px; color: var(--nf-muted); }
.nf-summary .nf-freeship__bar { display: block; padding: 0; }

/* ------------------------------------------------------------ mega-menú en rejilla */
.nf-megagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 32px; align-items: start; }
.nf-megagroup { min-width: 0; }
.nf-megagroup__title { display: block; font-family: var(--nf-font-display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--nf-ink); padding: 2px 0 6px; border-bottom: 2px solid transparent; transition: color .15s; }
.nf-megagroup__title:hover { color: var(--nf-red); }
.nf-megagroup ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.nf-megagroup li a { display: block; padding: 4px 0; font-size: 14px; color: var(--nf-ink-2); }
.nf-megagroup li a:hover { color: var(--nf-red); }
.nf-megagroup__more { font-weight: 600; color: var(--nf-red) !important; }
.nf-drawer__sub .nf-megagrid { grid-template-columns: 1fr; gap: 14px; }
.nf-drawer__sub .nf-megagroup__title { font-size: 15px; }
.nf-megagrid:has(> .nf-megagroup:only-child) { grid-template-columns: 1fr; }
.nf-megagrid:has(> .nf-megagroup:only-child) ul { display: block; columns: 4 180px; column-gap: 32px; }
.nf-drawer__sub .nf-megagrid ul { columns: 1; }

/* =====================================================================
   FORMULARIOS · estilo plano y moderno (sin sombras)
   Afecta a los formularios nuevos y a las páginas heredadas (.nf-legacy:
   registro, mis datos, contacto, pago...) sin tocar su HTML.
   ===================================================================== */

/* --- sin sombras ni degradados heredados */
.nf-legacy *, .nf-legacy *::before, .nf-legacy *::after { box-shadow: none !important; text-shadow: none !important; }
.nf-btn, .nf-btn:hover { box-shadow: none; }

/* --- foco: anillo nítido con outline (no sombra) */
.nf-input:focus, .nf-search__box:focus-within { box-shadow: none; outline: 2px solid var(--nf-ink); outline-offset: 1px; border-color: var(--nf-ink); }

/* --- contenedores heredados → rejilla responsive */
.nf-legacy .detProd, .nf-legacy .bloqueTotal { float: none; width: auto; border: 0; background: none; border-radius: 0; padding: 0; margin: 0 0 20px; }
.nf-legacy .detProd:has(> .bloq50) { display: grid; gap: 28px; }
@media (min-width: 960px) { .nf-legacy .detProd:has(> .bloq50) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.nf-legacy .bloq50 { float: none; width: auto !important; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; align-content: start; }
@media (min-width: 600px) { .nf-legacy .bloq50 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nf-legacy .bloq50 > :not(.b50) { grid-column: 1 / -1; }
.nf-legacy .b50 { float: none; width: auto; padding: 0; }
.nf-legacy .padding, .nf-legacy .padding10, .nf-legacy .padding15 { padding: 0; float: none; }
.nf-legacy .left, .nf-legacy .right { float: none; width: auto; }
.nf-legacy .both { clear: both; }

/* --- títulos de bloque */
.nf-legacy .titH2, .nf-legacy .titH3 { float: none; width: auto; background: none; border: 0; padding: 0; margin: 0 0 16px; height: auto; }
.nf-legacy .titH3 h3, .nf-legacy h3 { font-family: var(--nf-font-display); font-weight: 700; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; color: var(--nf-ink); margin: 0 0 4px; padding: 0 0 10px; border-bottom: 2px solid var(--nf-line); background: none; }
.nf-legacy .titH2 h2 { font-family: var(--nf-font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 34px); color: var(--nf-ink); background: none; padding: 0; margin: 0; }

/* --- etiquetas */
.nf-legacy .campo, .nf-legacy .etiqueta { float: none; width: auto; display: block; font-size: 13px; font-weight: 600; color: var(--nf-ink-2); margin: 0 0 6px; padding: 0; }
.nf-legacy .asterisco { color: var(--nf-red); font-weight: 700; }
.nf-legacy .opcional { color: var(--nf-muted); font-size: 12px; font-weight: 400; }

/* --- campos de texto, selects y áreas */
.nf-legacy .campoTexto, .nf-legacy .campoFor2, .nf-legacy .campoSus, .nf-legacy .campoUnid,
.nf-legacy input[type=text], .nf-legacy input[type=password], .nf-legacy input[type=email], .nf-legacy input[type=tel],
.nf-legacy input[type=number], .nf-legacy input[type=date], .nf-legacy select, .nf-legacy textarea {
  float: none; display: block; width: 100%; max-width: 100%;
  min-height: 48px; margin: 0 0 16px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--nf-ink);
  background: #fff; border: 1.5px solid var(--nf-line); border-radius: 12px;
  transition: border-color .15s, background-color .15s;
  -webkit-appearance: none; appearance: none;
}
.nf-legacy textarea { min-height: 130px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.nf-legacy select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316171b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.nf-legacy .campoTexto:hover, .nf-legacy input[type=text]:hover, .nf-legacy input[type=password]:hover,
.nf-legacy input[type=email]:hover, .nf-legacy select:hover, .nf-legacy textarea:hover { border-color: #c9cbd3; }
.nf-legacy .campoTexto:focus, .nf-legacy input:focus, .nf-legacy select:focus, .nf-legacy textarea:focus {
  outline: 2px solid var(--nf-ink); outline-offset: 1px; border-color: var(--nf-ink);
}
.nf-legacy .campoTexto[disabled], .nf-legacy input[disabled], .nf-legacy select[disabled], .nf-legacy .aspNetDisabled {
  background: var(--nf-bg); color: var(--nf-muted); cursor: not-allowed;
}
.nf-legacy .wAuto {
    width: auto;
    display: inline-block;
 
}
.colorInk {
    color: var(--nf-ink);
}
/* mismo texto que las opciones de radio (forma de pago); gana a .opcional */
.nf-legacy .colorInk, .nf-legacy .colorInk label {
    color: var(--nf-ink); font-size: 14px; font-weight: 600; line-height: 1.6;
}
.nf-legacy .rojo, .nf-legacy .campoTexto.rojo { border-color: var(--nf-red) !important; background: var(--nf-red-soft); }
.nf-legacy .campoUnid { width: 72px; display: inline-block; text-align: center; margin: 0; }

/* --- casillas y radios */
.nf-legacy input[type=checkbox], .nf-legacy input[type=radio] {
  width: 18px; height: 18px; min-height: 0; margin: 0 8px 0 0; padding: 0;
  vertical-align: -3px; accent-color: var(--nf-red); cursor: pointer;
  -webkit-appearance: auto; appearance: auto; border: 0; display: inline-block;
}
.nf-legacy label { cursor: pointer; }

/* --- botones heredados → mismos botones que el diseño nuevo */
.nf-legacy .btEntrar, .nf-legacy .btGen, .nf-legacy .btGenN, .nf-legacy .btContinuar, .nf-legacy .btComprar,
.nf-legacy .botonV, .nf-legacy .btOk, .nf-legacy .btAplicar, .nf-legacy .btSus, .nf-legacy .botonS,
.nf-legacy .botonGris, .nf-legacy .btEliminar, .nf-legacy .comprar, .nf-legacy .comprarPest, .nf-legacy .btPuntos,
.nf-legacy input[type=submit], .nf-legacy input[type=button], .nf-legacy button:not(.nf-burger) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  float: none; width: auto; height: auto; min-height: 46px; margin: 4px 8px 4px 0; padding: 0 24px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; text-decoration: none;
  color: #fff !important; background: var(--nf-red); background-image: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.nf-legacy .btEntrar:hover, .nf-legacy .btGen:hover, .nf-legacy .btContinuar:hover, .nf-legacy .btComprar:hover,
.nf-legacy input[type=submit]:hover, .nf-legacy input[type=button]:hover, .nf-legacy button:not(.nf-burger):hover {
  background: var(--nf-red-dark); transform: translateY(-1px);
}
/* secundarios: grises / volver / eliminar */
.nf-legacy .botonGris, .nf-legacy .btGenN, .nf-legacy .btEliminar, .nf-legacy .botonS, .nf-legacy .btOk {
  color: var(--nf-ink) !important; background: #fff; border: 1.5px solid var(--nf-line);
}
.nf-legacy .botonGris:hover, .nf-legacy .btGenN:hover, .nf-legacy .btEliminar:hover, .nf-legacy .botonS:hover, .nf-legacy .btOk:hover {
  background: var(--nf-bg); border-color: var(--nf-ink);
}

/* --- bloques de opciones (forma de envío / pago...) */
.nf-legacy .padding10:has(> input[type=radio]), .nf-legacy .padding10:has(> span > input[type=radio]) {
  display: flex; align-items: center; gap: 4px; padding: 14px 16px; margin: 0 0 8px;
  border: 1.5px solid var(--nf-line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600;
}
.nf-legacy .padding10:has(input[type=radio]:checked) { border-color: var(--nf-red); background: var(--nf-red-soft); }

/* --- tablas heredadas (pedidos, puntos...) */
.nf-legacy .fila, .nf-legacy .filaE, .nf-legacy .filaE2 { background: none; border-bottom: 1px solid var(--nf-line); }
.nf-legacy .columE1, .nf-legacy .colum1 { background: var(--nf-ink); color: #fff; font-weight: 600; font-size: 13px; }
.nf-legacy .columE1:first-child, .nf-legacy .colum1:first-child { border-radius: 10px 0 0 10px; }
.nf-legacy .columE1:last-child, .nf-legacy .colum1:last-child { border-radius: 0 10px 10px 0; }

/* --- mensajes */
.nf-legacy .parrafo { float: none; width: auto; color: var(--nf-ink-2); }

/* --- tipografía y cabeceras heredadas (estilos.css usa la fuente "gotham" y !important) */
.nf-legacy * { font-family: inherit !important; }
.nf-legacy h1, .nf-legacy h2, .nf-legacy h3, .nf-legacy h4 { font-family: var(--nf-font-display) !important; }
.nf-legacy .bloqueCentro { float: none; width: auto; padding: 0; }
.nf-legacy .bloqueCentro p, .nf-legacy .bloqueCentro h2 { float: none; width: auto; }
.nf-legacy .titH2, .nf-legacy .titH3 { float: none !important; width: auto !important; box-shadow: none; border-radius: 0; }
.nf-legacy .titH2 h2, .nf-legacy .bloqueCentro h1 {
  float: none !important; width: auto !important; margin: 0 0 8px !important; padding: 0 !important;
  font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05;
  color: var(--nf-ink) !important; background: none !important; border: 0 !important; border-radius: 0;
}
.nf-legacy .bloqueCentro a:not([class]), .nf-legacy .parrafo a, .nf-legacy p a { color: var(--nf-red); font-weight: 600; }
.nf-legacy .bloqueCentro a:not([class]):hover, .nf-legacy p a:hover { text-decoration: underline; }
.nf-legacy .bloq50 > .titH3:not(:first-child) { margin-top: 22px; }
.nf-legacy .padding10:has(input[type=checkbox]) {
  display: flex; align-items: center; gap: 4px; padding: 14px 16px; margin: 0 0 8px; width: auto;
  border: 1.5px solid var(--nf-line); border-radius: 12px; background: #fff; font-weight: 500;
}
.nf-legacy .padding10:has(input[type=checkbox]:checked) { border-color: var(--nf-ink); }

/* ------------------------------------------------------------ página "Nuestras marcas" (cuadrícula de logos) */
.nf-marcas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .nf-marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .nf-marcas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nf-marca { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius-sm); text-align: center; transition: border-color .15s, box-shadow .15s; }
.nf-marca:hover { border-color: var(--nf-ink); box-shadow: var(--nf-shadow); }
.nf-marca__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; }
.nf-marca__logo img { max-width: 144px; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.nf-marca__nombre { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--nf-red); text-transform: uppercase; }

/* ------------------------------------------------------------ pago con tarjeta / Bizum (tienda/pago/tpv.aspx, página sin plantilla) */
.nf-pago__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.nf-pago__seguro { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nf-muted); }
.nf-pago__seguro svg, .nf-pago__nota svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf-pago { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 60px; }
.nf-pago form { width: 100%; max-width: 480px; }
.nf-pago__card { background: #fff; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow); padding: 32px 28px; text-align: center; }
.nf-pago__icono { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--nf-red-soft); color: var(--nf-red); }
.nf-pago__icono svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nf-pago__titulo { margin: 0 0 10px; font-family: var(--nf-font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 6vw, 32px); line-height: 1.05; color: var(--nf-ink); }
.nf-pago__texto { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: var(--nf-ink-2); }
.nf-pago__nota { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; text-align: left; font-size: 13px; line-height: 1.45; color: var(--nf-muted); }
.nf-pago__nota svg { margin-top: 1px; }
.nf-pago__volver { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--nf-muted); }
.nf-pago__volver:hover { color: var(--nf-ink); text-decoration: underline; }
.nf-pago__oculto { display: none; }
@media (max-width: 479px) { .nf-pago { padding-top: 20px; } .nf-pago__card { padding: 24px 18px; } }

/* ------------------------------------------------------------ pop-up código promocional SUPLEFIT-10 */
.nf-cupon { width: min(460px, calc(100vw - 32px)); }
.nf-cupon .nf-dialog__body { text-align: center; }
.nf-cupon__pct { display: inline-grid; place-items: center; width: 74px; height: 74px; margin: 4px auto 10px; border-radius: 50%; background: var(--nf-red); color: #fff; font-family: var(--nf-font-display); font-weight: 800; font-size: 26px; }
.nf-cupon h2 { color: var(--nf-ink); line-height: 1.05; margin-bottom: 10px; }
.nf-cupon__code { display: inline-block; padding: 1px 8px; border: 2px dashed var(--nf-red); border-radius: 8px; color: var(--nf-red); font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.nf-cupon .nf-field { text-align: left; }
.nf-cupon__legal { display: flex; align-items: flex-start; gap: 8px; text-align: left; font-size: 13px; color: var(--nf-muted); margin: 0 0 16px; }
.nf-cupon__legal input { margin-top: 2px; }
.nf-cupon__nota { font-size: 14px; color: var(--nf-muted); }
.nf-cupon__no { margin-top: 10px; border: 0; background: none; color: var(--nf-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------ distintivo VIP / distribuidor */
.nf-badge-cliente { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; background: linear-gradient(180deg, #ffe27a, #d4a514); color: #3d2d00; }
.nf-badge-cliente--dist { background: linear-gradient(180deg, #5b74e8, var(--nf-navy)); color: #fff; }
@media (max-width: 599px) { .nf-badge-cliente { font-size: 10px; padding: 4px 7px; } }
.cajaTipoCliente { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; background: #fff6d6; border: 1px solid #e7c75a; color: #6b5100; }
.cajaTipoCliente.distribuidor { background: #eef0ff; border-color: #b9c2f5; color: var(--nf-navy); }

/* ------------------------------------------------------------ checkout */
.invitadoInfo { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: #e8f7f0; color: #0b6a48; }
.envioUnico { padding: 12px 14px !important; border-radius: 12px; background: #eef0ff; color: var(--nf-navy); line-height: 1.5; }
