/* NovaShop · Bloques de las páginas personalizadas. Toman colores, tipografías y botones del tema activo. */
.ns-blocks { --nsb-ink: var(--ink, var(--primary, #111)); --nsb-bg: var(--bg, #fff); --nsb-accent: var(--accent, #333); }
.ns-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ns-blk { position: relative; }
.ns-blk-in { width: 100%; max-width: var(--wrap, 1240px); margin: 0 auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); box-sizing: border-box; }
.ns-w-narrow { max-width: calc(760px + 2 * clamp(16px, 3vw, 32px)); }
.ns-w-wide { max-width: calc(1100px + 2 * clamp(16px, 3vw, 32px)); }
.ns-al-center { text-align: center; }
.ns-al-center .ns-blk-actions { justify-content: center; }
.ns-sp-none { padding: 0; }
.ns-sp-s { padding: clamp(16px, 2.5vw, 28px) 0; }
.ns-sp-m { padding: clamp(32px, 5vw, 64px) 0; }
.ns-sp-l { padding: clamp(56px, 8vw, 112px) 0; }
.ns-bg-soft { background: var(--ns-soft, #f5f5f3); }
.ns-bg-accent { background: var(--nsb-accent); color: var(--ns-on-accent, #fff); }
.ns-bg-dark { background: var(--nsb-ink); color: var(--nsb-bg); }
.ns-bg-accent a:not(.btn), .ns-bg-dark a:not(.btn) { color: inherit; }
.ns-bg-accent .ns-muted-text, .ns-bg-dark .ns-muted-text { color: inherit; opacity: .8; }
.ns-blk-title { font-family: var(--ns-head, inherit); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.12; margin: 0 0 .7em; letter-spacing: -.01em; text-wrap: balance; }
.ns-blk-small { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; letter-spacing: 0; }
.ns-blk-headrow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: .7em; }
.ns-blk-headrow .ns-blk-title { margin: 0; }
.ns-blk-more { color: inherit; font-weight: 600; text-underline-offset: 4px; }
.ns-blk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ns-blk-empty { border: 1px dashed currentColor; opacity: .55; padding: 22px; text-align: center; border-radius: var(--ns-r, 8px); margin: 0; }
.ns-blk-error { background: #fdecea; color: #8c1d18; padding: 12px 16px; margin: 8px auto; max-width: 1100px; border-radius: 8px; font-size: 14px; }
.ns-page-h1 { font-family: var(--ns-head, inherit); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.ns-rte { line-height: 1.65; }
.ns-rte > :first-child { margin-top: 0; }
.ns-rte > :last-child { margin-bottom: 0; }
.ns-rte h2, .ns-rte h3 { font-family: var(--ns-head, inherit); line-height: 1.2; margin: 1.3em 0 .45em; }
.ns-rte a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ns-rte img { max-width: 100%; height: auto; border-radius: var(--ns-r, 8px); }
.ns-rte blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid currentColor; font-size: 1.1em; }
.ns-btn-ghost { background: transparent !important; color: inherit !important; border: 1.5px solid currentColor !important; box-shadow: none !important; }
.ns-btn-invert { background: var(--ns-on-accent, #fff) !important; color: var(--nsb-accent) !important; border-color: transparent !important; }
.ns-bg-dark .ns-btn-invert { background: var(--nsb-bg) !important; color: var(--nsb-ink) !important; }
.ns-bg-none .ns-btn-invert, .ns-bg-soft .ns-btn-invert { background: var(--nsb-accent) !important; color: var(--ns-on-accent, #fff) !important; }

/* Imagen principal */
.ns-blk-hero.ns-sp-s, .ns-blk-hero.ns-sp-m, .ns-blk-hero.ns-sp-l { padding: 0; }
.ns-hero { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; }
.ns-hero-s { min-height: 300px; } .ns-hero-m { min-height: clamp(380px, 52vh, 560px); } .ns-hero-l { min-height: clamp(460px, 72vh, 760px); } .ns-hero-full { min-height: calc(100svh - 120px); }
.ns-hero-media, .ns-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ns-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,calc(var(--ov) + .1)), rgba(0,0,0,var(--ov))); pointer-events: none; }
.ns-hero-center.has-img::after { background: rgba(0,0,0,var(--ov)); }
.ns-hero-right.has-img::after { background: linear-gradient(270deg, rgba(0,0,0,calc(var(--ov) + .1)), rgba(0,0,0,var(--ov))); }
.ns-hero-body { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; display: flex; }
.ns-hero.has-img .ns-hero-body { color: #fff; }
.ns-hero-center .ns-hero-body { justify-content: center; text-align: center; }
.ns-hero-center .ns-blk-actions { justify-content: center; }
.ns-hero-right .ns-hero-body { justify-content: flex-end; }
.ns-hero-text { max-width: 620px; }
.ns-hero-title { font-family: var(--ns-head, inherit); font-size: clamp(34px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .35em; text-wrap: balance; }
.ns-hero-lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; margin: 0; opacity: .95; }
.ns-hero.has-img .btn:not(.ns-btn-ghost) { background: #fff !important; color: #111 !important; border-color: #fff !important; box-shadow: none; }
.ns-hero.has-img .ns-btn-ghost { color: #fff !important; }
.ns-it.no-img { grid-template-columns: 1fr; max-width: calc(760px + 2 * clamp(16px, 3vw, 32px)); }
.ns-hero:not(.has-img) { min-height: 0; }
.ns-hero:not(.has-img) .ns-hero-body { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }

/* Imagen con texto */
.ns-it { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.ns-it-right .ns-it-media { order: 2; }
.ns-it-media img, .ns-img-ph { width: 100%; height: auto; display: block; border-radius: var(--ns-r, 8px); }
.ns-img-ph { aspect-ratio: 4 / 3; background: var(--ns-soft, #eee); }
.ns-r-square img { aspect-ratio: 1; object-fit: cover; height: auto; }
.ns-r-portrait img { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.ns-r-landscape img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; }

/* Productos */
.ns-blk-grid { margin: 0; }

/* Categorías */
.ns-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); }
.ns-cats a { color: inherit; text-decoration: none; display: grid; gap: 8px; }
.ns-cats-img { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ns-r, 8px); background: var(--ns-soft, #eee); font-size: 32px; font-weight: 600; }
.ns-cats-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ns-cats a:hover .ns-cats-img img { transform: scale(1.04); }
.ns-cats-name { font-weight: 600; }
.ns-cats-circles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); text-align: center; }
.ns-cats-circles .ns-cats-img { aspect-ratio: 1; border-radius: 50%; }
.ns-cats-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-cats-list a { display: inline-block; padding: 9px 18px; border: 1px solid var(--ns-line, #ddd); border-radius: 999px; }
.ns-cats-list a:hover { border-color: currentColor; }

/* Ventajas */
.ns-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ns-feats li { display: grid; gap: 6px; align-content: start; }
.ns-feats-icon { color: var(--accent-a11y, currentColor); }
.ns-bg-accent .ns-feats-icon, .ns-bg-dark .ns-feats-icon { color: inherit; }
.ns-feats span:last-child:not(.ns-feats-icon) { opacity: .78; line-height: 1.5; font-size: .95em; }

/* Opiniones */
.ns-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ns-quotes li { padding: 22px; border: 1px solid var(--ns-line, #ddd); border-radius: var(--ns-r, 8px); display: grid; gap: 12px; align-content: start; }
.ns-bg-soft .ns-quotes li { background: var(--nsb-bg); border-color: transparent; }
.ns-bg-accent .ns-quotes li, .ns-bg-dark .ns-quotes li { border-color: rgba(255,255,255,.25); }
.ns-quotes blockquote { margin: 0; font-size: 1.04em; line-height: 1.55; }
.ns-quotes-who { margin: 0; font-size: .9em; }
.ns-quotes-who span { opacity: .7; }
.ns-quotes-ok { font-size: .9em; }
.ns-quotes-stars { color: var(--ns-star, #d99a00); line-height: 0; }

/* Llamada a la acción */
.ns-blk-banner.ns-sp-s, .ns-blk-banner.ns-sp-m, .ns-blk-banner.ns-sp-l { padding: 0; }
.ns-banner { position: relative; overflow: hidden; }
.ns-banner-body { position: relative; z-index: 1; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(36px, 6vw, 80px); }
.ns-sp-s .ns-banner-body { padding-top: 24px; padding-bottom: 24px; }
.ns-sp-l .ns-banner-body { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(56px, 9vw, 128px); }
.ns-banner .ns-blk-title { margin-bottom: .3em; }
.ns-banner p { margin: 0; font-size: 1.08em; }
.ns-banner-media, .ns-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ns-banner.has-img { color: #fff; }
.ns-banner.has-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }

/* Galería */
.ns-gal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.ns-cols-2 { --cols: 2; } .ns-cols-3 { --cols: 3; } .ns-cols-4 { --cols: 4; } .ns-cols-6 { --cols: 6; }
.ns-gal li > * { display: block; position: relative; color: inherit; text-decoration: none; }
.ns-gal img { width: 100%; height: auto; display: block; border-radius: calc(var(--ns-r, 8px) / 2); }
.ns-gal-cap { display: block; margin-top: 6px; font-size: .9em; }

/* Vídeo */
.ns-video { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--ns-r, 8px); overflow: hidden; color: #fff; display: grid; place-items: center; }
.ns-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ns-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ns-video-play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 18px; border: 0; border-radius: 999px; background: #fff; color: #111; font: inherit; font-weight: 600; cursor: pointer; }
.ns-video-play:hover { transform: scale(1.03); }
.ns-video-note { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; opacity: .8; z-index: 1; }
.ns-video-text { margin: 14px 0 0; }

/* Preguntas frecuentes */
.ns-faq details { border-bottom: 1px solid var(--ns-line, #ddd); }
.ns-bg-accent .ns-faq details, .ns-bg-dark .ns-faq details { border-color: rgba(255,255,255,.3); }
.ns-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; }
.ns-faq details[open] summary::after { content: "−"; }
.ns-faq details > div { padding: 0 0 18px; line-height: 1.6; opacity: .85; }

/* Suscripción */
.ns-news p { margin: 0 0 16px; }
.ns-news-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; margin: 0 0 10px; }
.ns-news-form .ns-news-legal { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; cursor: pointer; }
.ns-news-form .ns-news-legal input { margin-top: 2px; }
.ns-al-center .ns-news-form { margin-left: auto; margin-right: auto; }
.ns-news-form input[type=email] { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--ns-line, #ccc); border-radius: var(--ns-r, 8px); background: #fff; color: #111; }
.ns-news-legal { font-size: .8em; opacity: .75; margin: 0 !important; }
.ns-news-legal a { color: inherit; }
.ns-news-msg { font-weight: 600; margin: 12px 0 0 !important; }

/* Logos */
.ns-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 56px); }
.ns-logos img { max-height: 48px; max-width: 150px; width: auto; height: auto; display: block; object-fit: contain; }
.ns-logos.is-gray img { filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.ns-logos.is-gray a:hover img { filter: none; opacity: 1; }

/* Blog */
.ns-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.ns-posts a { color: inherit; text-decoration: none; display: grid; gap: 8px; }
.ns-posts img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--ns-r, 8px); }
.ns-posts strong { font-size: 1.1em; line-height: 1.3; }
.ns-posts span { opacity: .75; font-size: .92em; line-height: 1.5; }
.ns-posts a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Separador */
.ns-spacer { max-width: var(--wrap, 1240px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.ns-spacer-s { height: 16px; } .ns-spacer-m { height: 40px; } .ns-spacer-l { height: 80px; }
.ns-spacer { display: flex; align-items: center; }
.ns-spacer hr { flex: 1; border: 0; border-top: 1px solid var(--ns-line, #ddd); margin: 0; }

@media (max-width: 760px) {
  .ns-it { grid-template-columns: 1fr; }
  .ns-it-right .ns-it-media { order: 0; }
  .ns-gal { --cols: 2 !important; }
  .ns-cols-6 { --cols: 3 !important; }
  .ns-cats-circles { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
  .ns-cats-circles .ns-cats-name { font-size: .88em; }
  .ns-news-form { flex-direction: column; }
  .ns-news-form input[type=email] { flex: none; }
  .ns-hide-m { display: none !important; }
  .ns-hero-right .ns-hero-body { justify-content: flex-start; }
}
@media (min-width: 761px) { .ns-hide-d { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ns-cats-img img, .ns-video-play { transition: none; transform: none !important; } }

/* Vista previa en el editor */
[data-ns-block] { position: relative; }
.ns-edit-hover { outline: 2px dashed rgba(43, 69, 224, .7); outline-offset: -2px; cursor: pointer; }
.ns-edit-on { outline: 2px solid #2b45e0; outline-offset: -2px; }
