/* Onda Nipona — CSS shell para home y páginas de categoría.
   Replica el lenguaje visual de los reportajes (variables, tipografías, clases).
   Los reportajes traen su propio CSS inline; este archivo es sólo para las
   páginas server-rendered. */

:root {
  --ink:        #0E1E2A;
  --ink-soft:   #1C2E3C;
  --paper:      #F5F0E8;
  --red:        #CE1E4C;
  --red-dark:   #A8123A;
  --red-deep:   #7D0B2A;
  --gold:       #C9963A;
  --gold-light: #E8C97A;
  --grey:       #5A6570;
  --grey-light: #D2D6D0;
  --white:      #FDFAF4;
  --accent:     #1E3A5F;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-kanji:   'Shippori Mincho', serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
::selection { background: var(--red); color: var(--paper); }

/* ── HEADER ── */
.site-header {
  background: var(--ink);
  border-bottom: 2px solid var(--red);
  padding: 0 40px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.site-logo {
  font-family: var(--font-kanji);
  font-weight: 800;
  font-size: 19px;
  color: var(--paper);
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.site-logo:hover { color: var(--gold-light); }
.site-logo img { width: 30px; height: 30px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.site-nav {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  display: flex; gap: 24px;
}
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--gold-light); }
@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
  .site-logo { font-size: 16px; gap: 8px; }
  .site-logo img { width: 26px; height: 26px; }
  .site-nav { font-size: 9px; gap: 10px; letter-spacing: 0.12em; }
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("/brand/wave-strip.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,30,42,0.2) 0%, rgba(14,30,42,0.75) 100%);
}
.hero-deco {
  position: absolute;
  right: 60px; top: 60px;
  font-family: var(--font-kanji);
  font-size: 260px;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  color: var(--paper);
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-deck {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  color: rgba(245,240,232,0.75);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red-dark));
}

/* ── SECTIONS ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: 80px 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-light);
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--ink);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── CARDS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--red);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(14,30,42,0.18);
}
.card-kanji {
  position: absolute; top: 8px; right: 18px;
  font-family: var(--font-kanji);
  font-weight: 800;
  font-size: 120px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.card-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.22;
  margin-bottom: 14px;
  position: relative;
}
.card-title a {
  color: var(--paper);
  text-decoration: none;
}
.card-title a:hover { color: var(--gold-light); }
.card-dek {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245,240,232,0.75);
  margin-bottom: 22px;
  position: relative;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.card-meta a {
  color: var(--gold-light);
}

/* Card crimson variant — for the featured piece */
.card-featured {
  background: var(--red);
  border-left-color: var(--gold);
}
.card-featured .card-label { color: rgba(255,255,255,0.75); }
.card-featured .card-label::before { background: rgba(255,255,255,0.75); }
.card-featured .card-title a:hover { color: var(--ink); }
.card-featured .card-dek { color: rgba(255,255,255,0.85); }
.card-featured .card-kanji { color: rgba(255,255,255,0.08); }
.card-featured .card-meta { color: rgba(255,255,255,0.65); }
.card-featured .card-meta a { color: var(--ink); }

/* ── CATEGORY PAGE ── */
.cat-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  color: var(--paper);
}
.cat-hero .hero-deco { font-size: 340px; top: 30px; right: 40px; }
.cat-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.cat-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--gold);
  margin-bottom: 18px;
}
.cat-desc {
  font-family: var(--font-body);
  font-weight: 300;
  color: rgba(245,240,232,0.75);
  max-width: 640px;
}

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey);
}
.empty-kanji {
  font-family: var(--font-kanji);
  font-size: 72px;
  color: var(--red);
  margin-bottom: 16px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 30px;
  margin-top: 0;
  border-top: 2px solid var(--red);
}
.site-footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .site-footer-wrap { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.footer-brand-name {
  font-family: var(--font-kanji);
  font-weight: 800;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 6px;
  line-height: 1.2;
}
.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.footer-brand-lead {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(245,240,232,0.65);
  max-width: 380px;
  line-height: 1.6;
  font-weight: 300;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.footer-list a { color: rgba(245,240,232,0.75); text-decoration: none; font-size: 15px; font-weight: 300; }
.footer-list a:hover { color: var(--gold-light); }
.footer-cookie-reopen {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(245,240,232,0.75);
  font: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  text-align: left;
}
.footer-cookie-reopen:hover { color: var(--gold-light); }

/* Newsletter */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-newsletter-lead {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,240,232,0.6);
  margin: 0 0 14px;
  font-weight: 300;
  max-width: 320px;
}
.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.footer-newsletter input[type=email] {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--paper);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition: border-color .15s, background .15s;
}
.footer-newsletter input[type=email]::placeholder { color: rgba(245,240,232,0.35); }
.footer-newsletter input[type=email]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.footer-newsletter button[type=submit] {
  background: var(--red);
  color: var(--paper);
  border: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.footer-newsletter button[type=submit]:hover { background: var(--red-dark); }
.footer-newsletter button[type=submit]:disabled { opacity: .5; cursor: not-allowed; }
.nl-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 14px;
  margin: 2px 0 0;
}
.nl-status.ok { color: var(--gold-light); }
.nl-status.error { color: var(--red); }
.nl-status.pending { color: rgba(245,240,232,0.5); }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.footer-bottom .copy  { text-align: left; white-space: nowrap; flex-shrink: 0; }
.footer-bottom .legal { text-align: right; white-space: nowrap; flex-shrink: 0; }
.footer-bottom a {
  color: rgba(245,240,232,0.55);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold-light); }
@media (max-width: 800px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .legal { text-align: left; }
}

/* ── CONSENT BANNER ── */
.on-cookies {
  position: fixed; bottom: 16px; right: 16px; left: auto;
  max-width: 420px;
  width: calc(100% - 32px);
  z-index: 9999;
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.on-cookies[hidden] { display: none; }
.on-cookies p { margin: 0 0 14px; color: rgba(245,240,232,0.88); }
.on-cookies a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.on-cookies .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.on-cookies button {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.on-cookies .accept { background: var(--red); color: var(--paper); border-color: var(--red); }
.on-cookies .accept:hover { background: var(--red-dark); border-color: var(--red-dark); }
.on-cookies .reject { background: transparent; color: var(--paper); border-color: rgba(245,240,232,0.35); }
.on-cookies .reject:hover { border-color: var(--paper); }
@media (max-width: 560px) {
  .on-cookies { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
}
