/* Estilos de la página KFA — Kyokushin Fight Academy */
:root {
  --bg: #d8d2c7;
  --fg: #0a0a0a;
  --ac: #d0121b;
  --onac: #fff;
  --card: #f3f1ee;
  --nav: #ffffffdd;
  --r: 6px;
  --dot: #c9c5c0;
  --line: #e2dfdb;
  --hbg:
    linear-gradient(180deg, #fff0, #fff0),
    radial-gradient(circle at 70% 30%, #d0121b26, transparent 55%);
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
:root {
  --foto: none;
  --kw: url(../img/logo-kwu-senshi.png);
  --logo: url(../img/logo-kfa.png);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body {
  font:
    16px/1.6 Manrope,
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
}
h1,
h2,
h3,
.logo,
time b,
.tee text {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}
a {
  color: inherit;
  text-decoration: none;
}
section {
  padding: 80px 6vw;
}
h2 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
}
.k {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ac);
  font-weight: 700;
  margin-bottom: 10px;
}
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 6vw;
  background: var(--nav);
  backdrop-filter: blur(10px);
}
.logo {
  font-size: 28px;
  margin-right: auto;
}
.logo span {
  color: var(--ac);
}
nav a {
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 800px) {
  nav {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 5vw;
  }
  nav a:not(.btn):not(.logo) {
    font-size: 11px;
  }
  nav .btn {
    padding: 9px 14px;
    font-size: 11px;
  }
}
.btn {
  display: inline-block;
  background: var(--ac);
  color: var(--onac);
  padding: 12px 22px;
  border-radius: var(--r);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn.o {
  background: none;
  border: 2px solid currentColor;
  color: inherit;
}
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding: 90px 6vw;
  background:
    var(--hbg),
    var(--foto) center/cover;
}
.hero h1 {
  font-size: clamp(64px, 13vw, 170px);
  line-height: 0.88;
}
.hero h1 em {
  font-style: normal;
  color: var(--ac);
}
.hero p {
  max-width: 520px;
  font-size: 18px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
.pr {
  padding: 28px;
  background: var(--card);
  border-radius: var(--r);
}
.pr h3 {
  font-size: 30px;
}
.pr p {
  opacity: 0.75;
  font-size: 14px;
}
.pr em {
  font-style: normal;
  color: var(--ac);
  font-family: 'Bebas Neue';
  font-size: 26px;
}
.map {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.map svg {
  width: min(380px, 90%);
  height: auto;
}
.map .t {
  max-width: 420px;
}
.dot {
  fill: var(--dot);
}
.pin {
  fill: var(--ac);
}
.ring {
  fill: none;
  stroke: var(--ac);
  stroke-width: 2;
  animation: p 2s infinite;
  transform-origin: 188px 64px;
}
@keyframes p {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.lbl {
  font: 700 20px 'Bebas Neue';
  fill: var(--fg);
  letter-spacing: 1px;
}
.ev {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ev > div {
  flex: 1;
}
.ev h3 {
  font-size: 32px;
}
.ev p {
  opacity: 0.7;
  font-size: 14px;
}
time {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  min-width: 80px;
}
time b {
  display: block;
  font-size: 56px;
  line-height: 1;
  color: var(--ac);
}
.shop {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.p {
  position: relative;
  background: #fff;
  color: #111;
  border-radius: var(--r);
  padding: 18px;
  display: grid;
  gap: 4px;
  transition: 0.2s;
}
.p:hover {
  transform: translateY(-4px);
}
.p b {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p span {
  opacity: 0.6;
  font-size: 14px;
}
.p i {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-style: normal;
}
.tee svg {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: auto;
}
footer {
  padding: 40px 6vw;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.75;
}
.wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  z-index: 9;
}
.a .pg {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.a .hero h1 {
  max-width: 900px;
}
.a .stats {
  display: flex;
  gap: 40px;
}
.a .stats b {
  font: 40px Bebas Neue;
  display: block;
  color: var(--ac);
}
.a #tienda {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 800px) {
  .a #tienda {
    grid-template-columns: 1fr;
  }
}
.a .cta {
  text-align: center;
  background: var(--ac);
}
.a .cta .btn {
  background: #0a0a0a;
}
.a .p {
  border: 1px solid var(--line);
}
.a .hero h1 {
  max-width: none;
}
.big {
  display: block;
}
.sm {
  display: block;
  font-size: 0.34em;
  letter-spacing: 0.14em;
  color: var(--ac);
  margin-top: 0.15em;
}
.lg {
  display: block;
  width: 124px;
  height: 66px;
  background: var(--logo) left center/contain no-repeat;
}
.hnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  align-self: flex-start;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  margin-bottom: auto;
}
.hnav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 30px;
  transition: 0.2s;
}
.hnav a:hover {
  background: var(--ac);
  color: #fff;
}
.hl {
  width: 46px;
  height: 46px;
  color: var(--ac);
  margin-right: 8px;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.wm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: -1;
  opacity: 0.26;
  filter: blur(4px);
}
.wm .wl {
  display: block;
  width: min(115vw, 1200px);
  aspect-ratio: 1.875;
  background: var(--logo) center/contain no-repeat;
  will-change: transform;
}
.bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ac);
  z-index: 60;
}
.hero > * {
  animation: up 0.9s both;
}
.hero > :nth-child(2) {
  animation-delay: 0.15s;
}
.hero > :nth-child(3) {
  animation-delay: 0.3s;
}
.hero > :nth-child(4) {
  animation-delay: 0.45s;
}
.hero > :nth-child(5) {
  animation-delay: 0.6s;
}
.hero > :nth-child(6) {
  animation-delay: 0.75s;
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.rv.in {
  opacity: 1;
  transform: none;
}
.pr {
  transition: 0.25s;
}
.pr:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px #0002;
}
.btn {
  transition: 0.2s;
}
.btn:hover {
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
.a .big {
  color: #000;
}
.a .s {
  position: relative;
  z-index: 9;
}
.a .pr {
  background: #4a3b33;
  color: #fff;
}
.a .pr em {
  color: #ff7a7f;
}
.a .pr:hover {
  box-shadow: 0 14px 30px #d0121b44;
}
.a .map svg {
  width: min(600px, 96%);
}
.a .dot {
  fill: #6e6a65;
}
.a #tienda {
  background: #000000ee;
  color: #fff;
}
.a #tienda .p {
  background: #fff;
  color: #000;
  text-align: center;
  gap: 12px;
  padding: 22px;
}
.a .p b {
  font-size: 14px;
}
.a .p .pp {
  font: 34px 'Bebas Neue';
  opacity: 1;
  color: #000;
}
.a .p .buy {
  background: var(--ac);
  color: #fff;
}
.a .cta {
  background: #d0121b;
  color: #fff;
}
.lg2 {
  display: block;
  margin: 0 auto 26px;
  width: min(360px, 80%);
  aspect-ratio: 1.874;
  background: var(--logo) center/contain no-repeat;
  filter: brightness(0) invert(1);
}
#membresia {
  background: #ffffff66;
}
.mb {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 34px;
}
.mc {
  background: #efece8;
  padding: 28px;
  border-top: 5px solid #000;
}
.mc.hot {
  background: var(--ac);
  color: #fff;
  border-color: #000;
}
.mc h3 {
  font-size: 32px;
}
.mc p {
  font-size: 14px;
  opacity: 0.85;
}
.wa {
  background: #25d366 !important;
  box-shadow: 0 6px 18px #0004;
}
.a #tienda .p {
  text-align: left;
  gap: 14px;
}
.pb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
}
.pb .btn {
  padding: 10px 18px;
}
.a .p .pp {
  font-size: 30px;
}
.ph {
  background: repeating-linear-gradient(
    45deg,
    #d8d3ca,
    #d8d3ca 10px,
    #e2ded6 10px,
    #e2ded6 20px
  );
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  font: 700 11px Manrope;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6e6a65;
  border-radius: 6px;
}
.ph.tall {
  aspect-ratio: 4/5;
}
.ph3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sn2 {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.4fr;
  gap: 44px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}
@media (max-width: 700px) {
  .sn2 {
    grid-template-columns: 1fr;
  }
}
.card.t {
  max-width: 520px;
  width: 100%;
}
.sd {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sd h2 {
  font-size: clamp(34px, 5vw, 56px);
}
.lbx {
  width: 84px;
  height: 84px;
  flex: none;
  border: 2px dashed #000;
  display: grid;
  place-items: center;
  font: 800 12px Manrope;
  letter-spacing: 0.15em;
}
.city {
  color: var(--ac);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-top: 8px;
}
dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(560px, 92vw);
  box-shadow: 0 30px 80px #0008;
  color: #000;
}
dialog::backdrop {
  background: #000a;
}
.dc {
  padding: 24px;
  display: grid;
  gap: 14px;
  background: #fff;
}
button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
button.btn.o {
  border: 2px solid currentColor;
  background: none;
}
.ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: #000a;
  padding: 16px;
  overflow: auto;
}
.ov.open {
  display: grid;
}
.ov .dc {
  width: min(560px, 100%);
  border-radius: 14px;
  box-shadow: 0 30px 80px #0008;
  color: #000;
}
.shop {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.a #tienda .p {
  padding: 24px 26px;
}
.pb .btn.buy {
  padding: 8px 16px;
  font-size: 12px;
}
.a .p .pp {
  font-size: 28px;
}
.a #tienda {
  grid-template-columns: 1fr;
  gap: 34px;
}
.a #tienda .shop {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
}
@media (max-width: 700px) {
  .a #tienda .shop {
    grid-template-columns: 1fr;
  }
}
.at {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.at li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  line-height: 1.4;
}
.at li:before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--ac);
  transform: rotate(45deg);
}
.rs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rd {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: 22px;
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.rd b {
  display: block;
  font-size: 18px;
}
.rd span {
  opacity: 0.6;
  font-size: 14px;
}
.rd:hover {
  background: var(--ac);
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 16px 30px #d0121b44;
}
.a #tienda .shop {
  gap: 26px;
  padding: 12px;
}
.a #tienda .p {
  border-radius: 34px;
  padding: 16px 16px 20px;
  gap: 6px;
  border: 0;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s !important;
  transition-delay: 0s !important;
}
.pimg {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, #f3f0ea, #e2ddd3);
  padding: 34px 20px 40px;
  margin-bottom: 12px;
  transition: background 0.3s;
}
.pimg .tee svg {
  max-width: 210px;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.bd {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0009;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
}
.lgc {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--logo) center/74% no-repeat #fff;
}
.dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.dots s {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0003;
}
.dots s:first-child {
  background: #fff;
}
.a .p .pn {
  font: 800 22px Manrope;
  letter-spacing: 0;
  text-transform: none;
  margin: 4px 8px 0;
}
.a .p .ps {
  font-size: 17px;
  color: #9b9b9b;
  margin: 0 8px;
  transition: color 0.3s;
}
.a .p .pd {
  font-size: 14px;
  color: #aaa;
  margin: 0 8px 8px;
  line-height: 1.4;
  transition: color 0.3s;
}
.a #tienda .pb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  padding: 0 4px 0 8px;
}
.a .p .pp {
  font: 800 22px Manrope;
  background: #eee;
  border-radius: 30px;
  padding: 10px 22px;
  opacity: 1;
  transition: 0.3s;
}
.a .p .buy {
  background: #0a0a0a;
  color: #fff;
  border-radius: 40px;
  padding: 8px 8px 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.ar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: 0.3s;
}
.a #tienda .p:hover,
.a #tienda .p:focus-within {
  transform: translateY(-12px) scale(1.07);
  z-index: 8;
  background: var(--ac);
  color: #fff;
  box-shadow: 0 30px 60px #d0121b66;
}
.a #tienda .p:hover .pimg {
  background: linear-gradient(160deg, #e0202a, #8f0a10);
}
.a #tienda .p:hover .tee svg {
  transform: translateY(-10px) scale(1.18) rotate(-4deg);
  filter: drop-shadow(0 18px 14px #0006);
}
.a #tienda .p:hover .pn {
  color: #fff;
}
.a #tienda .p:hover .ps {
  color: #ffd9d5;
}
.a #tienda .p:hover .pd {
  color: #ffc2bc;
}
.a #tienda .p:hover .pp {
  background: #ffffff33;
  color: #fff;
}
.a #tienda .p:hover .buy {
  background: #fff;
  color: var(--ac);
}
.a #tienda .p:hover .ar {
  background: var(--ac);
  color: #fff;
}
.at li {
  font-weight: 500;
  font-size: 15px;
  color: #3b3b3b;
}
.a .hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 130px;
}
.a .hero h1 {
  font-size: clamp(80px, 15vw, 250px);
  line-height: 0.84;
}
.a .hero > :not(.slab):not(.mq) {
  position: relative;
  z-index: 1;
}
.a .hero > :nth-child(n) {
  animation-delay: 1.35s;
}
.a .hero > :nth-child(3) {
  animation-delay: 1.45s;
}
.a .hero > :nth-child(4) {
  animation-delay: 1.6s;
}
.a .hero > :nth-child(5) {
  animation-delay: 1.75s;
}
.a .hero > :nth-child(6) {
  animation-delay: 1.9s;
}
.a .hero h1 .big {
  animation: rise 1.1s 1.45s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise {
  from {
    transform: translateY(70%);
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}
.slab {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  z-index: 0;
  background: linear-gradient(160deg, #e0202a, #a50d14);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
}
.a .hero > .slab {
  animation: slab 1.3s 1.2s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slab {
  from {
    transform: translateX(100%);
  }
}
.slab .lg2 {
  position: absolute;
  left: 62%;
  top: 46%;
  width: 60%;
  margin: 0;
  transform: translate(-50%, -50%);
  animation: flo 6s ease-in-out infinite;
  filter: brightness(0) invert(1) drop-shadow(0 12px 24px #0005);
}
@keyframes flo {
  50% {
    transform: translate(-50%, -56%);
  }
}
.mq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  z-index: 2;
  padding: 12px 0;
}
.a .hero > .mq {
  animation: up 0.9s 2s both;
}
.mt {
  display: flex;
  width: max-content;
  animation: mqs 28s linear infinite;
  font:
    30px 'Bebas Neue',
    Impact,
    sans-serif;
  letter-spacing: 0.12em;
}
.mt span {
  padding: 0 26px;
  white-space: nowrap;
}
.mt span:after {
  content: '◆';
  color: var(--ac);
  margin-left: 52px;
  font-size: 16px;
  vertical-align: middle;
}
@keyframes mqs {
  to {
    transform: translateX(-50%);
  }
}
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  animation: wipe 0.9s 1.15s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}
.intro .lg2 {
  margin: 0;
  width: min(420px, 70vw);
  animation: pop 0.9s both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
@keyframes wipe {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}
@media (max-width: 800px) {
  .slab {
    width: 100%;
    opacity: 0.14;
    clip-path: none;
  }
  .a .hero {
    padding-top: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
}
.a .hero {
  padding-bottom: 90px;
}
.a .pr {
  background: #fff;
  color: #111;
  border-top: 5px solid var(--ac);
}
.a .pr em {
  color: var(--ac);
}
.a .pr:hover {
  background: var(--ac);
  color: #fff;
}
.a .pr:hover em {
  color: #fff;
}
.a .pr:hover p {
  opacity: 0.9;
}
.logo {
  display: flex;
  align-items: center;
}
.kw {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  margin-left: 30px;
  background: var(--kw) center/contain no-repeat;
  opacity: 0.95;
}
.kw:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 6px;
  bottom: 6px;
  border-left: 1px solid #0003;
}
.fnd {
  display: block;
  width: max-content;
  font:
    800 12px/1 Manrope,
    sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: #0a0a0a;
  color: #fff;
  padding: 8px 14px 8px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.rd:hover .fbf {
  fill: var(--ac);
}
.rd:hover .fbr {
  stroke: #0a0a0a;
}
.a .cta {
  background: #b5111a;
}

/* ---- Contenido nuevo: historia, dojo kun, cinturones, biblioteca ---- */
.bio { margin-top: 16px; max-width: 520px; opacity: 0.85; }
#historia { background: #0a0a0aee; color: #fff; position: relative; z-index: 9; }
#historia .lead { max-width: 620px; margin-top: 14px; opacity: 0.8; }
.tl { list-style: none; padding: 0; margin: 48px 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid #fff3; }
.tl li { padding: 26px 22px 26px 0; border-bottom: 1px solid #fff2; position: relative; }
.tl li:before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
  background: var(--ac); transform: rotate(45deg); }
.tl b { display: block; font: 52px/1 'Bebas Neue', Impact, sans-serif; color: var(--ac); margin: 6px 0 8px; }
.tl h3 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.tl p { font-size: 14px; opacity: 0.75; line-height: 1.5; }
.tl li.now b { color: #fff; }
#dojokun .kun { list-style: none; padding: 0; margin: 40px 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; counter-reset: k; }
.kun li { counter-increment: k; background: #fff; border-radius: var(--r); padding: 22px 22px 22px 70px;
  position: relative; font-size: 15px; line-height: 1.5; }
.kun li:before { content: counter(k); position: absolute; left: 20px; top: 14px;
  font: 44px/1 'Bebas Neue', Impact, sans-serif; color: var(--ac); }
.kun li i { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.5; margin-bottom: 4px; }
.quote { margin: 46px auto 0; max-width: 760px; text-align: center;
  font: clamp(28px, 4vw, 46px)/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.02em; }
.quote small { display: block; margin-top: 10px; font: 700 12px Manrope; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ac); }
#biblioteca .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bk { text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; background: #fff;
  border-radius: var(--r); padding: 26px; display: grid; gap: 6px; align-content: start;
  border-left: 5px solid #0a0a0a; transition: 0.25s; }
.bk em { font: 26px 'Bebas Neue'; font-style: normal; color: var(--ac); }
.bk h3 { font-size: 30px; line-height: 1; }
.bk p { font-size: 14px; opacity: 0.7; }
.bk span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 8px; color: var(--ac); }
.bk:hover, .bk:focus-visible { transform: translateY(-6px); background: var(--ac); color: #fff;
  border-color: #0a0a0a; box-shadow: 0 14px 30px #d0121b44; }
.bk:hover em, .bk:hover span, .bk:focus-visible em, .bk:focus-visible span { color: #fff; }
#lector .dc { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 34px; gap: 0; }
#lector .art h3 { font-size: clamp(36px, 6vw, 56px); line-height: 1; margin-bottom: 18px; }
#lector .art h4 { font: 800 13px Manrope; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ac); margin: 26px 0 8px; }
#lector .art p, #lector .art li { font-size: 16px; line-height: 1.7; color: #222; margin-bottom: 12px; }
#lector .art ul { padding-left: 20px; }
#lector .cl { position: sticky; top: 0; justify-self: end; margin: -14px -14px 0 0; z-index: 2; }
@media (max-width: 600px) { #lector .dc { padding: 24px 20px; } .tl b { font-size: 44px; } }
/* ---- Nuestra fundación ---- */
.fd-r { max-width: 760px; margin: 18px auto 0; background: #fff; border-radius: var(--r);
  border-top: 5px solid var(--ac); padding: 44px 40px; display: grid; gap: 26px;
  justify-items: center; text-align: center; }
#fundacion > .k { text-align: center; }
.fd-a { display: grid; gap: 18px; justify-items: center; }
.fd-b { max-width: 600px; font-size: 17px; line-height: 1.75; color: #333; }
.fd-v { margin: 0; gap: 10px; width: max-content; max-width: 100%; text-align: left; }
.fd-v li { font-size: 17px; font-weight: 700; color: #111; }
.fd-msg { max-width: 520px; margin: 4px 0 0; font-size: 15px; font-style: italic; font-weight: 600; line-height: 1.6; color: #c4434a; }
.fnd { max-width: 100%; white-space: normal; line-height: 1.5 !important; }
.a .hero p.hero-fd { max-width: 560px; font-size: 17px; line-height: 1.6; }
@media (min-width: 801px) { .a .hero p.hero-fd { max-width: min(560px, 50vw); } }
@media (max-width: 860px) { .fd-r { padding: 32px 22px; } }
@media (max-width: 600px) { .fnd { letter-spacing: 0.16em; } }

/* ---- Dojo Kun: español / japonés ---- */
.kun-t { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; background: #fff; border-radius: 40px; }
.kun-t button { border: 0; cursor: pointer; font: 800 12px Manrope, sans-serif; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 10px 18px; border-radius: 30px; background: none; color: #555; }
.kun-t button.on { background: var(--ac); color: #fff; }
.kun-t button span { font: 600 14px 'Noto Serif JP', serif; letter-spacing: 0.05em; margin-right: 4px; }
#dojokun .kun { margin-top: 22px; }
#dojokun .jp { display: none; }
#dojokun.ja .jp { display: grid; gap: 8px; }
#dojokun.ja .es { display: none; }
.kun .jp b { font: 600 19px/1.6 'Noto Serif JP', serif; letter-spacing: 0.04em; color: #111; }
.kun .jp em { font-size: 13px; line-height: 1.5; color: #8a8580; }

/* ---- Sedes: Honbu + aliadas ---- */
#sedes > h2 { margin-bottom: 30px; }
.pa { fill: #0a0a0a; stroke: #fff; stroke-width: 2; }
.pin { stroke: #fff; stroke-width: 2; }
#m text { paint-order: stroke; stroke: #f4f1ec; stroke-width: 4px; stroke-linejoin: round; }
.mc { font: 20px 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; fill: #0a0a0a; }
.mn { font: 700 12.5px Manrope, sans-serif; fill: #3b3b3b; }
.mc.hb { fill: var(--ac); font-size: 24px; }
.mn.hb { fill: var(--ac); font-size: 14px; }
.hon { position: relative; background: #fff; border-radius: var(--r); border-top: 5px solid var(--ac);
  padding: 26px; display: grid; gap: 14px; box-shadow: 0 20px 50px #d0121b22; }
.hb-tag { justify-self: start; background: var(--ac); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 14px; border-radius: 30px; }
.hon .sd h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.hon .city { margin: 0; }
.hon dl, .sa dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; line-height: 1.45; }
.hon dt, .sa dt { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a8580; padding-top: 2px; }
.hon dd, .sa dd { margin: 0; color: #222; }
.ali { margin-top: 80px; }
.ali-h { font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.sa-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.sa { background: #fff; border-radius: var(--r); border-top: 4px solid #0a0a0a; padding: 22px;
  display: grid; gap: 12px; align-content: start; transition: 0.25s; }
.sa:hover { transform: translateY(-5px); border-top-color: var(--ac); box-shadow: 0 14px 30px #0001; }
.sa-c { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac); }
.sa h3 { font-size: 28px; line-height: 1; }
.sa-ig { justify-self: start; font-size: 13px; font-weight: 800; color: var(--ac); }
.sa-ig.off { color: #aaa; font-weight: 600; }
@media (max-width: 980px) { .sa-g { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sa-g { grid-template-columns: 1fr; } .hon { padding: 20px; } }

/* ---- Logos de sedes ---- */
.sa-top { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.sa-top .sa-c { margin-bottom: 4px; }
.sa-logo { width: 84px; height: 84px; display: grid; place-items: center; flex: none; }
.sa-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.sa-logo.lg-hon { width: 110px; height: 110px; }
.hon .sd { gap: 18px; }
@media (max-width: 620px) { .sa-top { grid-template-columns: 72px 1fr; } .sa-logo { width: 72px; height: 72px; } }

/* ---- Ventana "Conocer más" del Sensei ---- */
#sensei-dlg .dc { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 34px; gap: 10px; }
#sensei-dlg h3 { font-size: clamp(36px, 6vw, 56px); line-height: 1; margin-bottom: 8px; }
#sensei-dlg .cl { position: sticky; top: 0; justify-self: end; margin: -14px -14px 0 0; z-index: 2; }
.sn-hist p { font-size: 16px; line-height: 1.75; color: #222; margin-bottom: 14px; }
@media (max-width: 600px) { #sensei-dlg .dc { padding: 24px 20px; } }

/* ---- Texto del Sensei ---- */
.sn-tit { margin-top: 24px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.sn-cred { margin-top: 14px; }
.sn-cred + .bio { margin-top: 22px; }
.sn-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac); margin-bottom: 14px; }
.sn-hist ul { margin: 0 0 14px; padding-left: 20px; }
.sn-hist li { font-size: 16px; line-height: 1.7; color: #222; margin-bottom: 8px; }
#sensei-dlg .cl, #lector .cl { background: #fff; }
