/* Estilos base de las tiendas: lo que no diseña el cliente (tarjetas de producto, ficha, carrito, páginas legales).
   Usan las variables del tema (--nv-*) y se pueden afinar desde el editor con CSS propio. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--nv-font-body);
  color: var(--nv-text);
  background: var(--nv-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--nv-font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Los elementos con entrada empiezan ocultos solo cuando el motor va a animarlos. */
.nv-anim-ready [data-nv-anim] {
  opacity: 0;
}
.nv-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.nv-word > span {
  display: inline-block;
}
.nv-typed::after {
  content: '|';
  animation: nv-blink 1s steps(2) infinite;
  margin-left: 2px;
  opacity: 0.7;
}
@keyframes nv-blink {
  to {
    visibility: hidden;
  }
}

/* ─── Botones y campos ─────────────────────────────────────────────────── */
.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--nv-radius);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.nv-btn:hover {
  transform: translateY(-1px);
}
.nv-btn-primary {
  background: var(--nv-primary);
  color: #fff;
}
.nv-btn-primary:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--nv-primary) 35%, transparent);
}
.nv-btn-outline {
  border-color: color-mix(in srgb, var(--nv-text) 20%, transparent);
  background: transparent;
  color: var(--nv-text);
}
.nv-btn-outline:hover {
  border-color: var(--nv-primary);
  color: var(--nv-primary);
}
.nv-btn-disabled {
  background: color-mix(in srgb, var(--nv-text) 8%, transparent);
  color: color-mix(in srgb, var(--nv-text) 50%, transparent);
  cursor: default;
}
.nv-btn-disabled:hover {
  transform: none;
}
.nv-btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}
.nv-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.nv-input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--nv-text) 18%, transparent);
  border-radius: var(--nv-radius);
  padding: 11px 14px;
  font: inherit;
  color: inherit;
  background: var(--nv-bg);
}
.nv-input:focus {
  outline: 2px solid var(--nv-primary);
  outline-offset: 1px;
}
.nv-field {
  display: block;
}
.nv-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.nv-form-status {
  margin: 12px 0 0;
  font-size: 14px;
}
.nv-form-status.is-ok {
  color: #16794b;
}
.nv-form-status.is-error {
  color: #b42318;
}

/* ─── Catálogo ─────────────────────────────────────────────────────────── */
.nv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.nv-filters .nv-input {
  width: auto;
  flex: 1 1 200px;
}
.nv-grid {
  display: grid;
  grid-template-columns: repeat(var(--nv-cols-m, 2), minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 720px) {
  .nv-grid {
    grid-template-columns: repeat(var(--nv-cols, 4), minmax(0, 1fr));
    gap: 24px;
  }
}
.nv-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--nv-radius);
  overflow: hidden;
  background: var(--nv-bg);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.nv-card-bordered .nv-card {
  border: 1px solid color-mix(in srgb, var(--nv-text) 12%, transparent);
}
.nv-card-shadow .nv-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nv-card-shadow .nv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.nv-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
}
.nv-card-media {
  position: relative;
  background: var(--nv-surface);
  overflow: hidden;
}
.nv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.nv-card:hover .nv-card-media img {
  transform: scale(1.04);
}
.nv-ratio-square .nv-card-media {
  aspect-ratio: 1;
}
.nv-ratio-portrait .nv-card-media {
  aspect-ratio: 4 / 5;
}
.nv-ratio-landscape .nv-card-media {
  aspect-ratio: 4 / 3;
}
.nv-card-noimg {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--nv-surface), color-mix(in srgb, var(--nv-surface) 60%, var(--nv-accent) 15%));
}
.nv-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--nv-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.nv-tag-sale {
  background: var(--nv-primary);
}
.nv-card-body {
  padding: 12px 14px 4px;
}
.nv-card-overlay .nv-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}
.nv-card-overlay .nv-card-link {
  position: relative;
}
.nv-card-brand {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.nv-card-title {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--nv-font-body);
}
.nv-card-price {
  margin: 0;
  font-weight: 700;
}
.nv-price-was {
  font-weight: 400;
  opacity: 0.55;
  margin-left: 6px;
  font-size: 0.9em;
}
.nv-card-actions {
  padding: 8px 14px 14px;
}
.nv-card-actions .nv-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}
.nv-empty {
  text-align: center;
  padding: 48px 16px;
  opacity: 0.65;
}

/* ─── Ficha de producto ────────────────────────────────────────────────── */
.nv-product {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .nv-product {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}
.nv-gallery-main {
  border-radius: var(--nv-radius);
  overflow: hidden;
  background: var(--nv-surface);
  aspect-ratio: 1;
}
.nv-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.nv-thumb {
  flex: 0 0 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: calc(var(--nv-radius) * 0.7);
  overflow: hidden;
  background: var(--nv-surface);
  cursor: pointer;
}
.nv-thumb.is-active {
  border-color: var(--nv-primary);
}
.nv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-product-brand {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.nv-product-title {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 10px;
}
.nv-product-price {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.nv-tax-note {
  margin: 2px 0 16px;
  font-size: 13px;
  opacity: 0.6;
}
.nv-tiers {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  font-size: 14px;
}
.nv-tiers-title {
  margin: 0 0 6px;
  font-weight: 700;
}
.nv-tiers table {
  width: 100%;
  border-collapse: collapse;
}
.nv-tiers td {
  padding: 3px 0;
}
.nv-tiers td:nth-child(2) {
  color: #16794b;
  font-weight: 600;
}
.nv-tiers td:last-child {
  text-align: right;
  font-weight: 600;
}
.nv-tiers-note {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.6;
}
.nv-product-summary {
  font-size: 17px;
  opacity: 0.85;
}
.nv-options {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  max-width: 360px;
}
.nv-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 28px;
}
.nv-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--nv-text) 18%, transparent);
  border-radius: var(--nv-radius);
  overflow: hidden;
}
.nv-qty button {
  border: 0;
  background: transparent;
  width: 42px;
  height: 46px;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}
.nv-qty input {
  width: 48px;
  height: 46px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: transparent;
  color: inherit;
  -moz-appearance: textfield;
}
.nv-qty input::-webkit-inner-spin-button,
.nv-qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.nv-product-desc {
  border-top: 1px solid color-mix(in srgb, var(--nv-text) 12%, transparent);
  padding-top: 20px;
  line-height: 1.65;
}
.nv-product-desc .nv-desc-title {
  margin: 1.6em 0 0.5em;
  font-size: 1.15em;
  line-height: 1.3;
}
.nv-product-desc h4.nv-desc-title {
  font-size: 1.02em;
}
.nv-product-desc ul {
  margin: 0.6em 0 1em;
  padding-left: 1.3em;
}
.nv-product-desc li {
  margin: 0.25em 0;
}
.nv-desc-table {
  overflow-x: auto;
  margin: 0.8em 0 1.2em;
}
.nv-desc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}
.nv-desc-table th,
.nv-desc-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--nv-text) 10%, transparent);
  vertical-align: top;
}
.nv-desc-table th {
  font-weight: 600;
}
.nv-desc-table tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--nv-text) 3%, transparent);
}
.nv-desc-table td:first-child {
  color: color-mix(in srgb, var(--nv-text) 70%, transparent);
  width: 40%;
}

/* ─── Componentes de bloque ────────────────────────────────────────────── */
[data-nv-marquee] {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  gap: 0;
}
[data-nv-marquee] > * {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: nv-marquee var(--nv-marquee-speed, 30s) linear infinite;
}
[data-nv-marquee]:hover > * {
  animation-play-state: paused;
}
@keyframes nv-marquee {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-nv-marquee] > * {
    animation: none;
  }
}
[data-nv-track] {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
[data-nv-track]::-webkit-scrollbar {
  display: none;
}
[data-nv-track] > * {
  flex: 0 0 min(100%, var(--nv-slide, 320px));
  scroll-snap-align: start;
}
[data-nv-tab] {
  cursor: pointer;
}
[data-nv-tab].is-active {
  color: var(--nv-primary);
  border-color: var(--nv-primary);
}
[data-nv-nav] {
  display: none;
}
[data-nv-nav].is-open {
  display: flex;
}
@media (min-width: 860px) {
  [data-nv-nav] {
    display: flex;
  }
  [data-nv-menu] {
    display: none;
  }
}
[data-nv-model],
[data-nv-spline],
[data-nv-lottie] {
  min-height: 240px;
}

/* ─── Páginas sencillas (legal, avisos) ────────────────────────────────── */
.nv-simple {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.nv-simple h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.nv-simple h2 {
  font-size: 20px;
  margin-top: 32px;
}
.nv-simple-store a {
  text-decoration: none;
  font-weight: 600;
  color: var(--nv-primary);
}

/* ─── Sello del plan Gratis ────────────────────────────────────────────── */
.nv-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  background: #fff;
  color: #2c2430;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font: 12px/1 system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.nv-badge strong {
  color: #951b81;
}

/* Selector de idioma */
.nv-langs {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.nv-lang {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}
.nv-lang:hover {
  opacity: 1;
}
.nv-lang.is-current {
  opacity: 1;
  background: var(--nv-surface);
}
