/* Sakicore Judo — revista editorial */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #16130f;
  --ink-2: #3b352d;
  --muted: #7a7166;
  --line: #e0d7c8;
  --red: #c8321f;
  --red-deep: #9e2414;
  --red-soft: #f8e4dd;
  --indigo: #1f2a44;
  --night: #16130f;
  --gold: #b88a3b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --jp: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,19,15,.05), 0 8px 28px rgba(22,19,15,.07);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.2'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3Ccircle cx='30' cy='30' r='21'/%3E%3Ccircle cx='30' cy='30' r='14'/%3E%3Ccircle cx='0' cy='15' r='28'/%3E%3Ccircle cx='60' cy='15' r='28'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13110e;
    --paper-2: #1c1915;
    --card: #1a1814;
    --ink: #f4efe6;
    --ink-2: #d9d1c4;
    --muted: #a0968a;
    --line: #2f2a24;
    --red: #ef5a43;
    --red-deep: #c8321f;
    --red-soft: #3a1c16;
    --indigo: #263354;
    --night: #221e19;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--red); text-underline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.shell { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }

/* ── masthead ── */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .shell { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; font-weight: 700;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav .nav-cta {
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.nav .nav-cta:hover { background: var(--red); color: #fff; }

/* ── labels ── */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.label-ad {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid currentColor; padding: 2px 8px; border-radius: 3px;
}
.meta { font-size: 13px; color: var(--muted); }

/* ── hub hero ── */
.hub-hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #f4efe6;
  padding: 88px 0 96px;
}
.hub-hero {
  background:
    linear-gradient(90deg, rgba(12,10,8,.94) 0%, rgba(12,10,8,.82) 42%, rgba(12,10,8,.35) 75%, rgba(12,10,8,.15) 100%),
    url("/judo/img/judo-proyeccion-1600.webp") center 35% / cover no-repeat,
    var(--night);
}
.hub-hero .shell { position: relative; z-index: 1; }
.hub-hero .kanji {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 1;
  font-family: var(--serif); font-size: 220px; line-height: 1; color: #fff; opacity: .95;
}
.hub-hero .kicker { color: #ffb4a6; }
.hub-hero h1 {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.03em;
  margin: 16px 0 20px; max-width: 13ch;
}
.hub-hero h1 em { font-style: italic; color: #ffb4a6; }
.hub-hero p { font-size: 19px; max-width: 52ch; color: #d9d1c4; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .9; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ── section headings ── */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); letter-spacing: -.01em; }

/* ── covers (art blocks) ── */
.cover {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/10; background: var(--paper-2);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }

/* ── feature ── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.feature .cover { aspect-ratio: 4/3; box-shadow: var(--shadow); }
.feature h2 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 14px; }
.feature h2 a, .card h3 a { color: inherit; text-decoration: none; }
.feature h2 a:hover, .card h3 a:hover { color: var(--red); }
.feature p { font-size: 17px; }

/* ── cards ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 56px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .cover { margin-bottom: 6px; }
.card:hover .cover img, .feature:hover .cover img { transform: scale(1.04); }
.card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
.card p { font-size: 15px; color: var(--muted); }

/* ── stat band ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
.stat { background: var(--card); padding: 20px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--red); letter-spacing: -.02em; margin-bottom: 6px; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }

/* ── club banner ── */
.club-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.club-banner .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; }
.club-banner h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.2; }
.club-banner p { font-size: 15px; color: var(--muted); }

/* ── article ── */
.article-hero { padding: 40px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.article-hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 18px;
}
.dek { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.42; color: var(--muted); font-weight: 600; }
.byline { display: flex; align-items: center; gap: 12px; margin: 26px 0 30px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.byline strong { color: var(--ink); font-weight: 600; display: block; line-height: 1.3; }
.article-cover { margin: 0 auto 44px; max-width: 1040px; padding: 0 20px; }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.article-cover figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: right; }

.disclosure { font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line); padding: 10px 14px; border-radius: 8px; margin-bottom: 28px; }
.tldr { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 20px 22px; margin: 0 0 36px; border-radius: 10px; box-shadow: var(--shadow); }
.tldr strong { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.tldr ul { padding-left: 18px; font-size: 16px; }
.tldr li { margin-bottom: 4px; }

.prose { font-size: 18.5px; line-height: 1.75; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-weight: 700; color: var(--red);
  font-size: 4.1em; line-height: .82; margin: .08em .1em 0 0;
}
.prose p, .prose ul, .prose ol, .prose table, .prose dl { margin-bottom: 1.2em; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin: 1.9em 0 .6em; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }
.prose dt { font-weight: 700; color: var(--ink); margin-top: .9em; }
.prose dd { margin: 0; }

.pull {
  margin: 2em -10px; padding: 8px 0 8px 26px; border-left: 4px solid var(--red);
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 30px); line-height: 1.3; color: var(--ink); font-weight: 600; letter-spacing: -.01em;
}
.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 10px; letter-spacing: 0; }

.reasons { counter-reset: r; list-style: none; padding: 0 !important; display: grid; gap: 14px; margin: 1.4em 0 1.6em; }
.reasons li { counter-increment: r; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 66px; font-size: 17px; margin: 0; }
.reasons li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--red); line-height: 1;
}
.reasons li strong { display: block; font-size: 18px; margin-bottom: 2px; }

.table-wrap { overflow-x: auto; margin-bottom: 1.4em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.belts { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 1.4em; }
.belt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; }
.belt i { width: 28px; height: 10px; border-radius: 3px; display: block; border: 1px solid rgba(0,0,0,.15); }

.faq { margin-top: 52px; }
.faq h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; font-size: 16.5px; }

.cta {
  position: relative; overflow: hidden;
  margin: 56px 0 0; padding: 36px 32px; background: var(--night); color: #f4efe6; border-radius: 18px;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: var(--wave); background-size: 60px 30px; mask-image: linear-gradient(to left, #000, transparent 75%); -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--red); opacity: .9; }
.cta > * { position: relative; z-index: 1; }
.cta .kicker { color: #ffb4a6; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.12; color: #fff; margin: 8px 0 10px; max-width: 20ch; }
.cta p { color: #d9d1c4; font-size: 16.5px; margin-bottom: 20px; max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-ghost { color: #fff; }
.cta small { display: block; margin-top: 16px; font-size: 13px; color: #a0968a; }

.related { margin-top: 64px; }
.related .grid { grid-template-columns: repeat(3, 1fr); }
.related .card h3 { font-size: 19px; }

/* ── sticky conversion bar ── */
.dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  background: var(--night); color: #f4efe6; padding: 8px 8px 8px 18px; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); font-size: 14px; white-space: nowrap;
  max-width: calc(100% - 24px);
}
.dock span { overflow: hidden; text-overflow: ellipsis; }
.dock a { background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 999px; flex-shrink: 0; }
.dock a:hover { background: var(--red-deep); }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 44px 0 110px; font-size: 14px; color: var(--muted); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot p { max-width: 38ch; }

@media (max-width: 1500px) {
  .dock span { display: none; }
  .dock { padding: 6px; }
}
@media (max-width: 900px) {
  .hub-hero { background:
    linear-gradient(180deg, rgba(12,10,8,.7) 0%, rgba(12,10,8,.88) 60%, rgba(12,10,8,.95) 100%),
    url("/judo/img/judo-proyeccion-800.webp") center / cover no-repeat, var(--night); }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .grid, .related .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .club-banner { grid-template-columns: auto 1fr; }
  .club-banner .btn { grid-column: 1 / -1; justify-content: center; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hub-hero { padding: 60px 0 120px; }
  .grid, .grid.two, .related .grid { grid-template-columns: 1fr; }
  .prose { font-size: 17.5px; }
  .pull { margin: 1.6em 0; }
  .reasons li { padding-left: 58px; }
  .cta { padding: 28px 22px; }
  .dock span { display: none; }
  .dock { padding: 6px; right: 12px; bottom: 12px; }
}
