/* ==========================================================================
   mejortablets.com — "Pika" cream diptych meets cinema void. MIXED.
   Cream #ffedd2 + void #0d0d0d, whisper Inter 300–450, ONE 900 shout,
   6px buttons / 10px cards, zero shadows. No chromatic CTA. Diptych by design.
   ========================================================================== */

:root {
  --cream: #ffedd2;
  --void: #0d0d0d;
  --white: #ffffff;
  --hair: #e5e7eb;
  --ash: #9e9e9e;
  --char: #1f1f1f;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-btn: 6px;
  --r-card: 10px;
  --page-max: 1120px;
  --pad-x: clamp(18px, 4vw, 32px);
  --section-gap: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--void);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  font-weight: 400; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  color-scheme: light;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--void); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 {
  font-family: var(--font); color: var(--void); margin: 0;
  font-weight: 400; letter-spacing: -0.02em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--void); color: var(--white);
  padding: 10px 16px; z-index: 200; font-size: 14px; font-weight: 450;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--void); outline-offset: 2px; }

.section { padding: 0; }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: 680px; }

.prose { max-width: 66ch; color: var(--void); font-weight: 400; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  font-size: 28px; line-height: 1.2; font-weight: 450;
  margin: 1.8em 0 0.5em; scroll-margin-top: 88px;
}
.prose h3 {
  font-size: 20px; line-height: 1.3; font-weight: 450;
  margin: 1.5em 0 0.45em; scroll-margin-top: 88px;
}
.prose h4 {
  font-size: 17px; line-height: 1.35; font-weight: 450;
  margin: 1.3em 0 0.4em; scroll-margin-top: 88px;
}
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--hair);
  border-left: 3px solid var(--void); border-radius: var(--r-card);
  color: var(--void); font-size: 15px; font-weight: 300;
}
.prose blockquote p { margin: 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0;
  font-size: 15px; display: block; overflow-x: auto;
  background: var(--white); border-radius: var(--r-card); border: 1px solid var(--hair);
}
.prose th, .prose td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair);
  vertical-align: top; min-width: 110px;
}
.prose th {
  font-size: 11px; font-weight: 450; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ash);
}
.prose img { border-radius: var(--r-card); margin: 1.2em 0; border: 1px solid var(--hair); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.prose strong { font-weight: 450; }
.prose a { color: var(--void); }
.prose code {
  font-size: 0.9em; background: var(--white); border: 1px solid var(--hair);
  border-radius: 4px; padding: 1px 5px;
}
.prose pre {
  background: var(--void); color: var(--white); border-radius: var(--r-card);
  padding: 16px 18px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; color: var(--white); padding: 0; font-size: 13px; }

.legal-updated { font-size: 12px; color: var(--ash); font-weight: 300; }

.breadcrumb { margin: 0 0 18px; }
.breadcrumb-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--ash); font-weight: 300; letter-spacing: -0.01em;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "·"; }
.breadcrumb-list a { color: var(--ash); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--void); }
.breadcrumb-list [aria-current] { color: var(--void); font-weight: 450; }

/* header cream strip */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,237,210,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-head-in {
  max-width: var(--page-max); margin: 0 auto;
  padding: 0 var(--pad-x); height: 56px;
  display: flex; align-items: center; gap: 18px;
}
.lockup {
  display: flex; align-items: center; gap: 10px;
  color: var(--void); font-weight: 400; font-size: 16px;
  text-decoration: none; letter-spacing: -0.02em;
}
.lockup:hover { text-decoration: none; color: var(--void); }
.lockup img { width: 28px; height: 28px; border-radius: 6px; }
.lockup-b { font-weight: 300; color: var(--ash); }

.mainnav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.mainnav a {
  color: var(--void); font-weight: 400; font-size: 14px;
  text-decoration: none; letter-spacing: -0.02em;
}
.mainnav a:hover { text-decoration: underline; }
.mainnav a.is-here { font-weight: 450; }
.mainnav .btn-void:hover { text-decoration: none; }

.btn-void {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--void); color: var(--white);
  font-family: var(--font); font-weight: 450; font-size: 14px;
  padding: 12px 16px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap; letter-spacing: -0.02em;
}
.btn-void:hover { background: #1a1a1a; color: var(--white); text-decoration: none; }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--void);
  font-family: var(--font); font-weight: 450; font-size: 14px;
  padding: 12px 16px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-white:hover { background: var(--hair); color: var(--void); text-decoration: none; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--void);
  border: 1px solid var(--hair); font-family: var(--font);
  font-weight: 450; font-size: 14px; padding: 11px 16px;
  border-radius: var(--r-btn); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-line:hover { background: var(--white); text-decoration: none; }
.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--hair);
  border: 1px solid rgba(229,231,235,0.35); font-family: var(--font);
  font-weight: 450; font-size: 14px; padding: 11px 16px;
  border-radius: var(--r-btn); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-ghost-dark:hover { background: var(--char); color: var(--white); text-decoration: none; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; margin-left: auto; background: var(--white);
  border: 1px solid var(--hair); border-radius: var(--r-btn);
  cursor: pointer; width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--void);
  margin: 5px auto; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 740px) {
  .nav-toggle { display: block; }
  .mainnav {
    position: absolute; top: 56px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--hair);
    padding: 12px var(--pad-x) 18px; display: none;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { font-size: 15px; padding: 12px 0; }
  .mainnav .btn-void { margin-top: 8px; justify-content: center; }
  body.nav-locked { overflow: hidden; }
}

main { display: block; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: 680px; }
.band-cream { padding: var(--section-gap) 0; background: var(--cream); }
.band-split { padding: var(--section-gap) 0; background: var(--cream); border-top: 1px solid var(--hair); }

.cap {
  font-size: 12px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--ash); margin: 0 0 10px;
}
.cap-mute {
  font-size: 12px; font-weight: 300; color: var(--ash); margin: 0 0 10px;
}
.cap-mute a { color: var(--hair); }

.h-shout {
  font-size: clamp(28px, 4.5vw, 36px); line-height: 1.13;
  font-weight: 900; letter-spacing: 0.01em; color: var(--white);
  text-transform: uppercase; margin: 0 0 18px;
}
.h-whisper-lg {
  font-size: clamp(24px, 3.5vw, 32px); line-height: 1.2;
  font-weight: 450; letter-spacing: -0.02em; color: var(--void);
}
.h-whisper-lg.on-dark { color: var(--white); }
.body-light {
  font-size: 16px; line-height: 1.5; font-weight: 300;
  color: var(--void); max-width: 40ch; letter-spacing: -0.02em;
}
.lede-mute {
  font-size: 16px; line-height: 1.5; font-weight: 300;
  color: var(--ash); max-width: 36ch; margin: 0 0 24px;
}
.tagline-quiet {
  font-size: 14px; font-weight: 300; color: var(--ash); margin: 20px 0 0;
}
.go {
  display: inline-block; margin-top: 12px;
  font-size: 14px; font-weight: 450; color: var(--void); text-decoration: underline;
}

/* diptych hero */
.diptych {
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 56px);
}
@media (max-width: 900px) {
  .diptych { grid-template-columns: 1fr; min-height: auto; }
}
.dip-cream {
  background: var(--cream); display: flex; align-items: center;
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
}
.dip-cream-in { width: 100%; max-width: 480px; margin: 0 auto; }
.dip-void {
  background: var(--void); display: flex; align-items: center;
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
}
.dip-void-in { width: 100%; max-width: 400px; margin: 0 auto; }

.preview-tile {
  background: var(--white); border-radius: var(--r-card);
  border: 1px solid var(--hair); overflow: hidden; margin: 18px 0 22px;
}
.preview-bar {
  height: 28px; background: var(--hair);
  display: flex; align-items: center; padding: 0 10px; gap: 4px;
}
.preview-bar::before, .preview-bar::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ash);
}
.preview-body {
  padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 140px;
}
.preview-chip {
  align-self: flex-start; font-size: 11px; font-weight: 450;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--void); border-radius: 999px; padding: 3px 10px;
}
.preview-line {
  display: block; height: 6px; background: var(--hair); border-radius: 3px;
}
.preview-line.w40 { width: 40%; }
.preview-line.w50 { width: 50%; }
.preview-line.w70 { width: 70%; }
.preview-line.w85 { width: 85%; }

.or-row {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--ash); font-size: 12px; font-weight: 300;
}
.or-row::before, .or-row::after {
  content: ""; flex: 1; height: 1px; background: rgba(229,231,235,0.25);
}
.or-row span { text-transform: lowercase; }

/* cards */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 20px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .15s ease;
}
a.card:hover { background: #fff7e8; text-decoration: none; color: inherit; }
.card h3, .card h2 {
  font-size: 18px; line-height: 1.3; font-weight: 450; margin: 0;
}
.card p {
  margin: 0; font-size: 14px; line-height: 1.45; font-weight: 300;
  color: var(--void); flex: 1; opacity: 0.85;
}
.card-post a {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit; height: 100%;
}
.card-post a:hover { text-decoration: none; }
.card-img {
  border-radius: 8px; aspect-ratio: 16/10; object-fit: cover;
  margin-bottom: 4px; border: 1px solid var(--hair);
}

.row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.split {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }
.quiet-list { list-style: none; margin: 22px 0 24px; padding: 0; }
.quiet-list li {
  padding: 14px 0; border-bottom: 1px solid var(--hair);
  font-size: 15px; line-height: 1.5; font-weight: 300;
}
.quiet-list li:last-child { border-bottom: 0; }
.quiet-list strong { font-weight: 450; }

.void-card {
  background: var(--void); color: var(--white);
  border-radius: var(--r-card); padding: 22px;
}
.v-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(229,231,235,0.15);
  font-size: 14px; font-weight: 300; color: var(--ash);
}
.v-row:last-child { border-bottom: 0; }
.v-row span:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.v-row span:last-child { color: var(--white); font-weight: 450; }
.v-row.on span:last-child { color: var(--cream); }

.empty-note {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: clamp(28px, 5vw, 48px);
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* article */
.article-head { padding: 0 0 20px; }
.article-title {
  font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15;
  font-weight: 450; letter-spacing: -0.025em; margin: 0 0 14px;
}
.lede-art { margin: 0 0 20px; max-width: 48ch; }
.byline {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0 0; border-top: 1px solid var(--hair);
}
.byline-img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--hair);
}
.byline-col { display: flex; flex-direction: column; gap: 2px; }
.byline-a { color: var(--void); font-weight: 450; font-size: 15px; text-decoration: none; }
.byline-a:hover { text-decoration: underline; }
.article-cover { margin: 26px 0 0; }
.article-cover img {
  border-radius: var(--r-card); width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border: 1px solid var(--hair);
}

.toc {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 20px 22px; margin: 28px 0;
}
.toc .cap { margin: 0 0 12px; }
.toc-list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 28px;
}
@media (max-width: 620px) { .toc-list { columns: 1; } }
.toc-list li { margin: 0 0 8px; break-inside: avoid; }
.toc-list a {
  color: var(--void); font-size: 14px; font-weight: 400;
  text-decoration: none; display: inline-block; padding: 2px 0;
}
.toc-list a:hover { text-decoration: underline; }
.article-body { max-width: 66ch; }

.amz-card { border-radius: var(--r-card) !important; border-color: var(--hair) !important; }
.amz-card .amz-cta {
  border-radius: var(--r-btn) !important;
  background: var(--void) !important; color: var(--white) !important;
}

.prose details {
  border: 1px solid var(--hair); border-radius: var(--r-card);
  background: var(--white); padding: 4px 18px; margin: 12px 0;
}
.prose summary {
  font-weight: 450; font-size: 16px; color: var(--void);
  padding: 14px 0; cursor: pointer; list-style: none;
}
.prose summary::-webkit-details-marker { display: none; }
.prose details p { margin: 0 0 14px; font-weight: 300; }

.author-hero { display: flex; gap: 24px; align-items: center; }
.author-hero img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--hair);
}
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px;
}
@media (max-width: 720px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 22px;
}
.approach-card h3 { font-size: 16px; font-weight: 450; margin-bottom: 8px; }
.approach-card p { margin: 0; font-size: 14px; font-weight: 300; color: var(--void); opacity: 0.85; }

/* void newsletter */
.nl-void {
  background: var(--void); color: var(--white);
  padding: var(--section-gap) 0;
}
.nl-in {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
@media (max-width: 800px) { .nl-in { grid-template-columns: 1fr; } }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.nl-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 12px 14px;
  border-radius: var(--r-btn); border: 1px solid rgba(229,231,235,0.3);
  background: var(--char); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 300;
}
.nl-form input[type="email"]::placeholder { color: var(--ash); }
.nl-form input[type="email"]:focus { outline: 2px solid var(--white); outline-offset: 0; }
.nl-form input[aria-invalid="true"] { border-color: #f87171; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-ok {
  margin: 0; padding: 14px 16px; background: var(--char);
  border-radius: var(--r-card); font-size: 14px; color: var(--white); font-weight: 450;
}

/* footer cream */
.site-foot {
  background: var(--cream); border-top: 1px solid var(--hair);
  padding: 48px 0 32px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p {
  font-size: 14px; margin: 14px 0 0; max-width: 34ch;
  font-weight: 300; color: var(--void); opacity: 0.8;
}
.foot-col h3 {
  font-weight: 450; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 12px;
}
.foot-col a {
  display: block; color: var(--void); font-size: 14px;
  padding: 4px 0; text-decoration: none; font-weight: 300;
}
.foot-col a:hover { text-decoration: underline; }
.foot-base {
  margin: 32px 0 0; padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 12px; color: var(--ash); font-weight: 300;
}

/* cookie */
.cookiebox {
  position: fixed; left: 50%; bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  width: min(620px, calc(100vw - 28px)); z-index: 300;
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 18px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cookiebox.is-visible {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.cookiebox p { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 300; color: var(--void); }
.cookiebox p a { color: var(--void); }
.cookiebox-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cookiebox-actions .btn-void,
.cookiebox-actions .btn-line { flex: 1; justify-content: center; min-width: 120px; }

.page-productos .prose h1 {
  font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15;
  font-weight: 450; letter-spacing: -0.025em;
}
.page-productos .prod-disclosure {
  border-radius: var(--r-card); background: var(--white); border-color: var(--hair);
}
.page-productos .prod-jumpnav { background: rgba(255,237,210,.92); border-bottom-color: var(--hair); }
.page-productos .prod-jumpnav a { border-radius: var(--r-btn); border-color: var(--hair); }
.page-productos .prod-card { border-radius: var(--r-card); border-color: var(--hair); }
.page-productos .prod-card-cta {
  border-radius: var(--r-btn) !important;
  background: var(--void) !important; color: var(--white) !important;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
