/* ==========================================================================
   NicheRocket — Theme v3 (18-sep-2026): el diseño del lienzo "Diseño web v3" llevado al tema
   compartido. Se carga DESPUÉS de tailwind.min.css y style.css y sobreescribe componentes.
   Cada sitio aporta su paleta por variables (--primary/--secondary/--accent); el fondo marfil,
   las superficies y los tonos suaves se derivan del primario con color-mix.
   Sin cambios de estructura HTML ni de encabezados (SEO intacto).
   ========================================================================== */

:root {
  --nr-radius: 18px;
  --nr-radius-sm: 12px;
  --nr-ink: #1c1917;
  --nr-ink-2: #44403c;
  --nr-ink-3: #78716c;
  --nr-line: color-mix(in srgb, var(--primary) 12%, #e7e0d6);
  --nr-bg: color-mix(in srgb, var(--primary) 3%, #f6f3ee);
  --nr-surface: color-mix(in srgb, var(--primary) 1.5%, #fffdf9);
  --nr-well: color-mix(in srgb, var(--primary) 6%, #f6f1ea);
  --nr-shadow-sm: 0 1px 2px rgba(28, 25, 23, .04), 0 2px 8px rgba(28, 25, 23, .04);
  --nr-shadow-md: 0 10px 30px rgba(28, 25, 23, .09);
  --nr-shadow-lg: 0 18px 40px rgba(28, 25, 23, .14);
  --nr-primary-soft: color-mix(in srgb, var(--primary) 12%, white);
  --nr-primary-softer: color-mix(in srgb, var(--primary) 7%, white);
  --nr-primary-dark: color-mix(in srgb, var(--primary) 82%, black);
  --nr-deal: #9a3412;
  --nr-deal-soft: #fde8dc;
  --nr-ok: #166534;
  --nr-ok-soft: #dcfce7;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--nr-bg); color: var(--nr-ink-2); font-family: var(--font-body), 'Source Sans 3', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .font-heading { font-family: var(--font-heading), 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--nr-ink); }
a { transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
::selection { background: var(--nr-primary-soft); color: var(--nr-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bg-gray-50 { background-color: var(--nr-bg) !important; }
.bg-white { background-color: var(--nr-surface) !important; }
.border-gray-100, .border-gray-200 { border-color: var(--nr-line) !important; }

/* Botones */
.product-cta, .cta-button, .table-cta, .btn-primary, .nr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: #fff !important; font-weight: 700; font-size: 1rem;
  min-height: 48px; padding: .6rem 1.35rem; border-radius: var(--nr-radius-sm); border: 0; text-decoration: none !important;
}
.product-cta:hover, .cta-button:hover, .table-cta:hover, .nr-btn:hover { background: var(--nr-primary-dark); transform: translateY(-1px); box-shadow: var(--nr-shadow-md); }
.product-cta::after, .table-cta::after, .cta-button::after { content: "→"; font-weight: 700; }
.table-cta { min-height: 40px; padding: .4rem .9rem; font-size: .9rem; }

/* ---------- Header ---------- */
header.sticky { background: color-mix(in srgb, var(--nr-surface) 92%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: none; border-bottom: 1px solid var(--nr-line); }
header.sticky .h-16 { height: 4.25rem; }
header.sticky img.h-8 { height: 2.1rem; }
header.sticky nav.hidden.lg\:flex { gap: .15rem; }
header.sticky nav.hidden.lg\:flex a { padding: .5rem .75rem; border-radius: 999px; color: var(--nr-ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
header.sticky nav.hidden.lg\:flex a:hover { background: var(--nr-well); color: var(--nr-ink); }
header.sticky nav.hidden.lg\:flex a[href$="/ofertas"] { background: var(--nr-deal-soft); color: var(--nr-deal) !important; font-weight: 700; margin-left: .35rem; padding-left: .6rem; }
header.sticky nav.hidden.lg\:flex a[href$="/ofertas"]::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: .35rem; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center/contain no-repeat; }
header.sticky form input { border-radius: 999px; background: var(--nr-well); border-color: transparent; padding-left: 1rem; width: 9.5rem; }
header.sticky form input:focus { background: #fff; border-color: var(--primary); width: 13rem; }
@media (min-width: 1024px) and (max-width: 1439px) { header.sticky nav.hidden.lg\:flex a:nth-of-type(6) { display: none; } }
#mobile-menu { border-top: 1px solid var(--nr-line); }
#mobile-menu a { padding: .7rem .6rem; border-radius: var(--nr-radius-sm); font-size: 1rem; }
#mobile-menu a:hover { background: var(--nr-well); }

/* ---------- Hero home (v3: dos columnas, elección y cifras) ---------- */
.nr-hero { background: var(--nr-bg); color: var(--nr-ink); border-bottom: 1px solid var(--nr-line); }
.nr-hero-inner { max-width: 72rem; margin: 0 auto; padding: 3.25rem 1rem 2.5rem; }
.nr-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; }
.nr-hero-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.nr-hero-kicker { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--nr-surface); border: 1px solid var(--nr-line); padding: .35rem .75rem; border-radius: 999px; }
.nr-hero h1 { color: var(--nr-ink); font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0; max-width: 34rem; }
.nr-hero p { font-size: 1.2rem; line-height: 1.5; color: var(--nr-ink-3); margin: 0; max-width: 34rem; }
.nr-hero form { display: flex; gap: .5rem; max-width: 32rem; }
.nr-hero form input { flex: 1; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 1.1rem; border-radius: var(--nr-radius-sm); border: 1px solid var(--nr-line); background: #fff; color: var(--nr-ink); font-size: 1rem; font-family: inherit; }
.nr-hero form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--nr-primary-soft); }
.nr-hero form button { height: 52px; border-radius: var(--nr-radius-sm); padding: 0 1.4rem; }
.nr-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.nr-chips a { display: inline-flex; align-items: center; gap: .35rem; color: var(--nr-ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; background: var(--nr-surface); border: 1px solid var(--nr-line); padding: .45rem .9rem; border-radius: 999px; }
.nr-chips a:hover { border-color: var(--primary); color: var(--primary); }
.nr-chips a.nr-chip-deals { background: var(--nr-deal-soft); color: var(--nr-deal); border-color: transparent; }
.nr-hero-side { display: flex; flex-direction: column; gap: .9rem; }
.nr-pick { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem; background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: var(--nr-radius); box-shadow: var(--nr-shadow-md); color: var(--nr-ink); text-decoration: none; }
.nr-pick:hover { transform: translateY(-2px); box-shadow: var(--nr-shadow-lg); }
.nr-pick img { width: 120px; height: 120px; flex-shrink: 0; object-fit: contain; border-radius: var(--nr-radius-sm); background: var(--nr-well); padding: .5rem; box-sizing: border-box; mix-blend-mode: multiply; }
.nr-pick-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.nr-pick-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nr-deal); }
.nr-pick-title { font-family: var(--font-heading), sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.nr-pick-sub { font-size: .9rem; color: var(--nr-ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-pick-price { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; }
.nr-pick-price strong { font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.nr-pick-price s { color: var(--nr-ink-3); font-size: .9rem; }
.nr-pick-price em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--nr-deal); background: var(--nr-deal-soft); padding: .15rem .5rem; border-radius: 999px; }
.nr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.nr-stats > * { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: var(--nr-radius-sm); color: inherit; text-decoration: none; }
.nr-stats strong { font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--nr-ink); letter-spacing: -0.02em; }
.nr-stats span { font-size: .8rem; color: var(--nr-ink-3); line-height: 1.25; }
.nr-stats a:hover { border-color: var(--primary); }
@media (max-width: 1023px) { .nr-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; } .nr-hero-inner { padding: 2rem 1rem 1.75rem; } }
@media (max-width: 640px) { .nr-pick img { width: 84px; height: 84px; } .nr-stats { gap: .5rem; } .nr-stats > * { padding: .65rem .7rem; } .nr-stats strong { font-size: 1.2rem; } .nr-hero form input { height: 48px; } .nr-hero form button { height: 48px; padding: 0 1rem; } }

/* ---------- Secciones ---------- */
.nr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.nr-more { font-weight: 600; color: var(--primary); white-space: nowrap; }
.max-w-6xl h2.font-heading.text-2xl, .nr-section-head h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0; }
.max-w-6xl .lg\:w-2\/3 > h2.font-heading.text-2xl { margin-bottom: 1.25rem; }

/* Ofertas en la home */
.nr-home-deals { max-width: 72rem; margin: 2.5rem auto 0; padding: 0 1rem; }
.nr-deal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.nr-deal { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: var(--nr-radius); color: var(--nr-ink); text-decoration: none; }
.nr-deal:hover { transform: translateY(-2px); box-shadow: var(--nr-shadow-md); }
.nr-deal-top { display: flex; justify-content: space-between; align-items: center; }
.nr-deal-pct { font-size: .75rem; font-weight: 800; color: #fff; background: var(--nr-deal); padding: .2rem .55rem; border-radius: 999px; }
.nr-deal-end { font-size: .75rem; color: var(--nr-ink-3); }
.nr-deal img { height: 96px; width: auto; max-width: 100%; align-self: center; object-fit: contain; mix-blend-mode: multiply; }
.nr-deal-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.nr-deal-price { display: flex; align-items: baseline; gap: .5rem; }
.nr-deal-price strong { font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 1.25rem; }
.nr-deal-price s { font-size: .8rem; color: var(--nr-ink-3); }
@media (max-width: 640px) { .nr-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .nr-deal { padding: .8rem; } .nr-deal img { height: 80px; } }

/* Cards de artículo */
.article-card { border-radius: var(--nr-radius); border: 1px solid var(--nr-line); box-shadow: none; background: var(--nr-surface); overflow: hidden; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--nr-shadow-md); }
.article-card img.h-48, .article-card .card-placeholder { height: 11.25rem; object-fit: cover; }
.article-card .p-5 { padding: 1.1rem 1.25rem 1.25rem; }
.article-card h3 { font-size: 1.1rem; line-height: 1.28; font-weight: 700; }
.article-card h3 a:hover { color: var(--primary); }
.article-card p.line-clamp-2 { color: var(--nr-ink-3); font-size: .95rem; }
.article-card a.rounded-full { background: var(--nr-primary-softer); color: var(--primary); font-weight: 700; letter-spacing: .02em; }
.article-card time { color: #a8a29e; }

/* Categorías destacadas (home) */
.max-w-6xl .grid.grid-cols-2 > a.block { border-radius: var(--nr-radius-sm); border-color: var(--nr-line); box-shadow: none; }
.max-w-6xl .grid.grid-cols-2 > a.block:hover { border-color: var(--primary); box-shadow: var(--nr-shadow-sm); }
#home-intro-wrap { padding: 0; }
#home-intro { margin-top: 0; }
#home-intro h2 { font-size: 1.35rem; }

/* ---------- Sidebar ---------- */
aside .bg-white.rounded-xl, .sidebar-toc { border-radius: var(--nr-radius); border: 1px solid var(--nr-line); box-shadow: none; }
aside h3.font-semibold, aside h3.uppercase { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nr-ink-3); font-weight: 700; margin-bottom: .9rem; }
.sidebar-toc-list { list-style: none; padding: 0; margin: 0; }
.sidebar-toc-list li { padding: 0; }
.sidebar-toc-list a { display: block; padding: .4rem .6rem; border-radius: 8px; color: var(--nr-ink-2); font-size: .92rem; }
.sidebar-toc-list a:hover { background: var(--nr-well); color: var(--nr-ink); text-decoration: none; }
.popular-rank { background: var(--nr-primary-softer) !important; color: var(--primary) !important; font-weight: 700; }
.nr-side-deal { display: flex; gap: .75rem; align-items: center; color: var(--nr-ink); text-decoration: none; padding: .45rem 0; }
.nr-side-deal + .nr-side-deal { border-top: 1px solid var(--nr-line); }
.nr-side-deal img { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; background: var(--nr-well); border-radius: 8px; padding: .25rem; box-sizing: border-box; mix-blend-mode: multiply; }
.nr-side-deal > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nr-side-deal-title { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.nr-side-deal-price { font-size: .9rem; }
.nr-side-deal-price strong { font-family: var(--font-heading), sans-serif; font-weight: 800; }
.nr-side-deal-price em { font-style: normal; font-weight: 700; color: var(--nr-deal); }

/* ---------- Artículo ---------- */
main h1.font-heading, article h1.font-heading { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
article > .flex.flex-wrap.items-center { border-bottom-color: var(--nr-line); }
.nr-checked { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--nr-ok); background: var(--nr-ok-soft); padding: .3rem .65rem; border-radius: 999px; }
.article-content { font-size: 1.1rem; line-height: 1.75; color: #292524; }
.article-content h2 { font-size: 1.7rem; font-weight: 700; margin-top: 2.6rem; margin-bottom: .9rem; padding-bottom: 0; border-bottom: 0; letter-spacing: -0.02em; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.8rem; }
.article-content a:not(.product-cta):not(.cta-button):not(.table-cta) { color: var(--primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
.article-content a:not(.product-cta):not(.cta-button):not(.table-cta):hover { text-decoration-color: var(--primary); }
.article-content aside, .article-content .verdict-box, .article-content .expert-tip { background: var(--nr-surface) !important; border: 1px solid var(--nr-line) !important; border-left-width: 1px !important; border-radius: var(--nr-radius) !important; box-shadow: none; }
.article-content aside p:first-child { color: var(--primary) !important; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem !important; }
.article-content table { border-radius: var(--nr-radius-sm); overflow: hidden; border: 1px solid var(--nr-line); font-size: .95rem; }
.article-content table th { background: var(--nr-ink) !important; color: #f4efe8 !important; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border-color: var(--nr-ink) !important; }
.article-content table tr:nth-child(even) td { background: var(--nr-well); }
.article-content .see-also { background: var(--nr-primary-softer); border: 1px solid var(--nr-line); padding: .85rem 1rem; border-radius: var(--nr-radius-sm); font-size: 1rem; }
.toc.toc-box { border-radius: var(--nr-radius); background: var(--nr-surface); border: 1px solid var(--nr-line); }
nav[aria-label="Breadcrumb"], .breadcrumbs { font-size: .85rem; color: var(--nr-ink-3); }

/* ---------- Caja de producto (v3) ---------- */
.product-box { border-radius: var(--nr-radius); border: 1px solid var(--nr-line); background: var(--nr-surface); box-shadow: var(--nr-shadow-md); padding: 1.5rem; margin: 1.75rem 0; position: relative; }
.product-box-inner { display: flex; gap: 1.5rem; align-items: flex-start; }
.product-image { flex: 0 0 200px; height: 200px; background: var(--nr-well); border-radius: var(--nr-radius-sm); padding: .75rem; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.product-image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-title { font-size: 1.3rem; line-height: 1.2; margin: .15rem 0 .35rem; padding-right: 4.5rem; }
.product-title a { color: var(--nr-ink); text-decoration: none !important; }
.product-title a:hover { color: var(--primary); }
.product-badge { position: absolute; top: -.75rem; left: 1.25rem; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.product-badge-budget { background: #0f766e; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--nr-ink-3); margin-bottom: .4rem; }
.product-tag { background: transparent; color: var(--nr-ink-3); font-weight: 500; padding: 0; font-size: .9rem; }
.prime-badge { background: #0ea5e9; color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 .7rem; }
.price-current { font-size: 2rem; font-weight: 800; color: var(--nr-ink); letter-spacing: -0.02em; font-family: var(--font-heading), sans-serif; }
.price-original { color: var(--nr-ink-3); text-decoration: line-through; font-size: .95rem; }
.price-discount { background: var(--nr-deal-soft); color: var(--nr-deal); font-weight: 800; font-size: .8rem; padding: .2rem .55rem; border-radius: 999px; }
.product-pros { list-style: none; padding: 0; margin: .3rem 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.1rem; }
.product-pros li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: #292524; line-height: 1.4; }
.product-pros li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 14px; height: 14px; background: #15803d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.product-score { position: absolute; top: 1.25rem; right: 1.25rem; display: inline-flex; align-items: baseline; gap: .1rem; background: var(--nr-ink); color: #fff; border-radius: 10px; padding: .35rem .7rem; margin: 0; }
.product-score .score-value { font-size: 1.15rem; font-weight: 800; font-family: var(--font-heading), sans-serif; }
.product-score .score-label { font-size: .7rem; opacity: .7; }
.product-cta { align-self: flex-start; margin-top: auto; }
@media (max-width: 767px) {
  .product-box { padding: 1rem; padding-top: 1.25rem; }
  .product-box-inner { flex-direction: column; }
  .product-image { flex-basis: auto; width: 100%; height: 190px; }
  .product-title { padding-right: 0; font-size: 1.15rem; }
  .product-score { position: static; align-self: flex-start; margin: 0 0 .5rem; }
  .product-pros { grid-template-columns: 1fr; }
  .product-cta { width: 100%; }
}

/* Tabla comparativa */
.comparison-table-wrapper { border-radius: var(--nr-radius); overflow: hidden; border: 1px solid var(--nr-line); background: var(--nr-surface); }
.comparison-table th { background: var(--nr-ink); color: #f4efe8; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.comparison-table tr:nth-child(even) td { background: var(--nr-well); }
.comparison-table td { vertical-align: middle; }
.price-cell { font-weight: 800; color: var(--nr-ink); white-space: nowrap; font-family: var(--font-heading), sans-serif; }

/* ---------- Categoría ---------- */
.bg-white.border-b.border-gray-200 .max-w-6xl.py-12 { padding-top: 2.5rem; padding-bottom: 2rem; }

/* ---------- Autor / disclaimer / relacionados ---------- */
.author-box, .affiliate-disclaimer, .related-articles { border-radius: var(--nr-radius); }
.affiliate-disclaimer { background: var(--nr-surface) !important; border-color: var(--nr-line) !important; color: var(--nr-ink-3); }
.author-card-home { border-radius: var(--nr-radius); }

/* ---------- Footer ---------- */
footer.bg-gray-900 { background: var(--nr-ink) !important; border-top: 0; margin-top: 4rem; }
footer.bg-gray-900 h3 { color: #fff; }
footer.bg-gray-900 a:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
#cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; border-radius: var(--nr-radius); background: rgba(28, 25, 23, .96); backdrop-filter: blur(8px); max-width: 72rem; margin: 0 auto; box-shadow: var(--nr-shadow-lg); }
#cookie-banner button, #cookie-banner .btn { border-radius: var(--nr-radius-sm); }

/* ---------- Barra inferior móvil ---------- */
.nr-bottom-nav { display: none; }
@media (max-width: 1023px) {
  .nr-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding: .45rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--nr-surface) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--nr-line); }
  .nr-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; font-weight: 600; color: var(--nr-ink-3); text-decoration: none; min-height: 44px; justify-content: center; }
  .nr-bottom-nav a.is-active { color: var(--primary); font-weight: 700; }
  body { padding-bottom: 4.5rem; }
  #cookie-banner { bottom: 5rem; }
  #backToTop { bottom: 5.5rem; }
}

/* ---------- Ofertas ---------- */
.deals-hero { background: var(--nr-bg); color: var(--nr-ink); padding: 2.5rem 1rem 0; text-align: left; border-bottom: 1px solid var(--nr-line); }
.deals-hero-inner { max-width: 72rem; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.deals-hero h1 { color: var(--nr-ink); font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 .6rem; }
.deals-hero p { color: var(--nr-ink-3); font-size: 1.1rem; line-height: 1.5; max-width: 44rem; margin: 0; opacity: 1; }
.deals-status { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; font-size: .85rem; color: var(--nr-ink-3); }
.deals-live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--nr-ok); background: var(--nr-ok-soft); padding: .35rem .75rem; border-radius: 999px; }
.deals-live i { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; }
.deals-filters { max-width: 72rem; margin: 1.25rem auto 0; display: flex; gap: .5rem; flex-wrap: wrap; padding-bottom: 1.25rem; }
.deals-filters a { font-size: .88rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; background: var(--nr-surface); border: 1px solid var(--nr-line); color: var(--nr-ink-2); text-decoration: none; }
.deals-filters a.is-active, .deals-filters a:hover { background: var(--nr-ink); color: #fff; border-color: var(--nr-ink); }
.deals-groups { padding-top: .5rem; }
.deals-group h2 { display: flex; align-items: baseline; gap: .5rem; border: 0; font-size: 1.5rem; scroll-margin-top: 5rem; }
.deals-grid .product-box { padding: 1.1rem; margin: 0; box-shadow: none; }
.deals-grid .product-box:hover { box-shadow: var(--nr-shadow-md); transform: translateY(-2px); }
.deals-grid .product-box-inner { flex-direction: column; gap: .75rem; }
.deals-grid .product-image { width: 100%; flex-basis: auto; height: 160px; }
.deals-grid .product-title { font-size: 1rem; padding-right: 0; }
.deals-grid .price-current { font-size: 1.5rem; }
.deals-grid .product-cta { width: 100%; min-height: 44px; }
.deal-pct { top: .9rem; left: .9rem; border-radius: 999px; padding: .25rem .65rem; background: var(--nr-deal); }
.deal-end { color: var(--nr-deal); }
.deals-disclaimer { color: var(--nr-ink-3); }
@media (max-width: 640px) { .deals-status { align-items: flex-start; } .deals-hero { padding-top: 1.75rem; } }

/* ---------- Calculadoras ---------- */
.nr-calc { border-radius: var(--nr-radius); border: 1px solid var(--nr-line); box-shadow: none; background: var(--nr-surface); }
.nr-calc__result--primary .nr-calc__result-value { color: var(--primary); }

/* ---------- Sticky CTA móvil ---------- */
#sticky-product-cta { border-radius: var(--nr-radius) var(--nr-radius) 0 0; box-shadow: 0 -8px 24px rgba(28,25,23,.12); }

/* ---------- Accesibilidad ---------- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
