:root{--nb-primary:#0d3b44;--nb-on-primary:#ffffff;--nb-accent:#f26a3d;--nb-on-accent:#111111}
/*
 * Estilos de los bloques de la tienda. Sin Tailwind y con el prefijo nb- para que valgan igual en el editor y en la
 * web pública. Los colores salen de las variables de la tienda (--nb-primary, --nb-accent y su texto legible).
 */
.nb-page {
  --nb-text: #1b2326;
  --nb-muted: #5b676b;
  --nb-line: #e3e8ea;
  --nb-soft: #f5f7f8;
  --nb-radius: 14px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--nb-text);
  background: #ffffff;
  line-height: 1.55;
  min-height: 100%;
}
.nb-page *,
.nb-page *::before,
.nb-page *::after {
  box-sizing: border-box;
}
.nb-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.nb-section {
  padding: 48px 0;
}
.nb-tone-light {
  background: #ffffff;
  color: var(--nb-text);
}
.nb-tone-primary {
  background: var(--nb-primary);
  color: var(--nb-on-primary);
}
.nb-tone-accent {
  background: var(--nb-accent);
  color: var(--nb-on-accent);
}
.nb-title,
.nb-hero-title {
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.nb-title {
  font-size: 1.75rem;
}
.nb-text p {
  margin: 0 0 12px;
}
.nb-text p:last-child {
  margin-bottom: 0;
}
.nb-narrow {
  max-width: 720px;
}
.nb-align-center {
  text-align: center;
}
.nb-align-center .nb-narrow {
  margin: 0 auto;
}

/* Portada */
.nb-hero {
  padding: 88px 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.nb-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
}
.nb-hero-image {
  color: #ffffff;
}
.nb-hero-inner {
  position: relative;
  max-width: 820px;
}
.nb-align-center .nb-hero-inner {
  margin: 0 auto;
}
.nb-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.nb-hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 28px;
  opacity: 0.92;
}
.nb-hero-subtitle p {
  margin: 0 0 8px;
}

/* Botones */
.nb-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.nb-button-accent {
  background: var(--nb-accent);
  color: var(--nb-on-accent);
}
.nb-tone-accent .nb-button-accent {
  background: var(--nb-primary);
  color: var(--nb-on-primary);
}
.nb-button-outline {
  border-color: currentColor;
  color: inherit;
}

/* Franja */
.nb-banner .nb-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nb-banner .nb-title {
  margin-bottom: 6px;
}

/* Foto y texto */
.nb-split .nb-container {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .nb-split .nb-container {
    grid-template-columns: 1fr 1fr;
  }
  .nb-split-left .nb-split-media {
    order: -1;
  }
  .nb-split-right .nb-split-media {
    order: 2;
  }
}
.nb-split-media img {
  width: 100%;
  border-radius: var(--nb-radius);
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.nb-split-body .nb-button {
  margin-top: 20px;
}
.nb-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--nb-radius);
  border: 2px dashed var(--nb-line);
  background: var(--nb-soft);
  display: grid;
  place-items: center;
  padding: 16px;
}

/* Artículos */
.nb-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .nb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.nb-card {
  position: relative;
  color: var(--nb-text);
}
/* El enlace del título cubre toda la tarjeta: se pulsa en la foto o en el precio y lleva a la ficha. */
.nb-card-title a {
  color: inherit;
  text-decoration: none;
}
.nb-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.nb-card-title a:hover,
.nb-card-title a:focus-visible {
  text-decoration: underline;
}
.nb-tone-primary .nb-card,
.nb-tone-accent .nb-card {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--nb-radius);
}
.nb-card-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--nb-radius);
  background: var(--nb-soft);
  overflow: hidden;
}
.nb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1b2326;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
}
.nb-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 10px 0 2px;
}
.nb-card-price {
  margin: 0;
  font-weight: 600;
}
.nb-card-price span {
  font-weight: 400;
  color: var(--nb-muted);
}
.nb-price-before {
  font-weight: 400;
  color: var(--nb-muted);
}

/* Categorías */
.nb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--nb-line);
  background: var(--nb-soft);
  font-weight: 500;
}

/* Opiniones */
.nb-quotes {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .nb-quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.nb-quote {
  margin: 0;
  padding: 24px;
  border-radius: var(--nb-radius);
  background: var(--nb-soft);
}
.nb-quote blockquote {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.nb-quote blockquote p {
  margin: 0 0 8px;
}
.nb-quote figcaption {
  color: var(--nb-muted);
  font-weight: 500;
}

/* Preguntas */
.nb-faq {
  border-bottom: 1px solid var(--nb-line);
  padding: 14px 0;
}
.nb-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.nb-faq .nb-text {
  margin-top: 10px;
  color: var(--nb-muted);
}

/* Contacto */
.nb-contact {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.nb-contact dt {
  font-size: 0.8rem;
  color: var(--nb-muted);
}
.nb-contact dd {
  margin: 0;
  font-weight: 500;
}
.nb-contact a {
  color: inherit;
}

/* Avisos del editor */
.nb-empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--nb-radius);
  border: 2px dashed var(--nb-line);
  color: var(--nb-muted);
  font-size: 0.9rem;
  text-align: center;
}

/*
 * Estilos de la web comercial que no son de los bloques: fuentes, cabecera, pie, tarjetas, planes y listas. Prefijo
 * st- y los colores de la marca (petróleo #0D3B44 y mandarina #F26A3D) a través de las variables de los bloques.
 */
@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fuentes/outfit-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fuentes/inter-latin-wght-normal.woff2') format('woff2-variations');
}
html {
  -webkit-text-size-adjust: 100%;
}
.st-body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  color: var(--nb-text);
  background: #ffffff;
}
.st-body h1,
.st-body h2,
.st-body h3 {
  font-family: 'Outfit Variable', 'Segoe UI', system-ui, sans-serif;
}
.st-body :focus-visible {
  outline: 3px solid var(--nb-accent);
  outline-offset: 2px;
}
.st-skip {
  position: absolute;
  left: -9999px;
}
.st-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
}
.st-logo {
  height: 24px;
  width: auto;
  color: var(--nb-primary);
}

/* Cabecera */
.st-header {
  border-bottom: 1px solid var(--nb-line);
  background: #ffffff;
}
.st-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.st-brand {
  display: inline-flex;
}
.st-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  flex: 1;
}
.st-nav a,
.st-login {
  color: var(--nb-text);
  text-decoration: none;
  font-weight: 500;
}
.st-nav a:hover,
.st-login:hover,
.st-nav a[aria-current='page'] {
  color: var(--nb-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.st-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bajo el titular de portada */
.st-hero-note {
  margin: 0;
  padding: 10px 16px 0;
  text-align: center;
  color: var(--nb-muted);
  font-size: 0.95rem;
}
.st-intro {
  max-width: 60ch;
  color: var(--nb-muted);
  margin: -8px 0 24px;
}

/* Tarjetas */
.st-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.st-cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.st-card {
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  padding: 20px;
  background: #ffffff;
}
.st-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--nb-primary);
}
.st-card p {
  margin: 0;
  color: var(--nb-muted);
  line-height: 1.55;
}
.st-checks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.st-checks li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}
.st-checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.35em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--nb-accent);
  border-bottom: 2px solid var(--nb-accent);
  transform: rotate(-45deg);
}

/* Planes */
.st-plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.st-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-plan .st-checks {
  flex: 1;
  align-content: start;
  margin-bottom: 16px;
}
.st-plan .nb-button {
  align-self: flex-start;
}
.st-prices {
  display: flex;
  gap: 24px;
  margin: 8px 0 0;
}
.st-prices dt {
  font-size: 0.85rem;
  color: var(--nb-muted);
}
.st-prices dd {
  margin: 0;
  font-family: 'Outfit Variable', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--nb-text);
}
.st-muted {
  color: var(--nb-muted);
  font-size: 0.9rem;
}

/* Pie */
.st-footer {
  margin-top: auto;
  background: var(--nb-primary);
  color: var(--nb-on-primary);
}
.st-footer .st-logo {
  color: var(--nb-on-primary);
}
.st-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 16px;
}
.st-footer-inner p {
  max-width: 40ch;
  opacity: 0.85;
}
.st-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-footer-nav a {
  color: inherit;
}
.st-made {
  padding-bottom: 24px;
  opacity: 0.7;
  font-size: 0.85rem;
}
