/* Tango Tabi: portada del ecosistema. Mismo estilo que Tango Dojo y Tango
   Duels (fondo zinc con trama, superficies azul noche, ámbar de acento,
   Manrope para texto e IBM Plex Mono para etiquetas). */

:root {
  --bg: #09090b;
  --ink: #f4f2ee;
  --ink-2: #c9ccd3;
  --muted: #9aa0ab;
  --faint: #6f737d;
  --line: rgba(255, 255, 255, 0.07);
  --amber: #f0a52a;
  --amber-soft: rgba(240, 165, 42, 0.14);
  --duels: #a78bfa;
  --duels-soft: rgba(167, 139, 250, 0.14);
  --teal: #4ec9a8;
  --surface: linear-gradient(160deg, #18202e 0%, #141a26 55%, #111621 100%);
  --panel-clip: polygon(8% 4%, 100% 0%, 94% 100%, 0% 94%);
  --dots: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1.4px);
  --mono: 'IBM Plex Mono', 'Noto Sans JP', ui-monospace, monospace;
  --sans: 'Manrope', 'Noto Sans JP', system-ui, sans-serif;
  --jp: 'Noto Sans JP', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgb(217 119 6 / 0.035) 25%, transparent 25%, transparent 75%, rgb(217 119 6 / 0.035) 75%),
    linear-gradient(45deg, rgb(217 119 6 / 0.035) 25%, transparent 25%, transparent 75%, rgb(217 119 6 / 0.035) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  overflow-x: hidden;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.jp { font-family: var(--jp); }
.amber { color: var(--amber); }

/* Marca: el kanji 単 sobre el panel ámbar inclinado, como en el teaser. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  font-family: var(--jp);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: #2a1a04;
  background-color: var(--amber);
  background-image: var(--dots);
  background-size: 4px 4px;
  clip-path: var(--panel-clip);
}
.mark--lg { width: 64px; height: 64px; font-size: 36px; background-size: 5px 5px; }
.wordmark {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Cabecera */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .nav a:not(.nav-keep) { display: none; }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible, .nav a:focus-visible, .foot a:focus-visible, .mail:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--amber); color: #1b1305; }
.btn--solid:hover { filter: brightness(1.08); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.12); color: var(--ink-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); }

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.5vw, 52px) 0 clamp(25px, 4.4vw, 45px);
}
.hero-kanji {
  position: absolute;
  top: 50%;
  right: max(-40px, calc(50% - 600px));
  transform: translateY(-50%);
  font-family: 'Shippori Mincho B1', var(--jp);
  font-size: clamp(220px, 38vw, 440px);
  font-weight: 700;
  line-height: 1;
  color: rgba(240, 165, 42, 0.045);
  pointer-events: none;
  user-select: none;
}
.hero .wrap { position: relative; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(78, 201, 168, 0.35);
  border-radius: 999px;
  background: rgba(78, 201, 168, 0.06);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(78, 201, 168, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(78, 201, 168, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(78, 201, 168, 0); }
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(28px, 7.4vw, 80px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-sub {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero-sub .jp { font-size: 20px; color: var(--ink-2); font-weight: 500; }
.hero p.lead {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 500;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Secciones */
section { scroll-margin-top: 72px; }
.section { padding: clamp(25px, 4.4vw, 50px) 0; }
.section-head { margin-bottom: clamp(15px, 2.5vw, 22px); }
.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-head p {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* Teaser */
.teaser {
  position: relative;
  padding: clamp(6px, 1vw, 10px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(240, 165, 42, 0.18);
}
.teaser video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #050506;
}

/* Apps */
.apps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.app::after {
  content: attr(data-kanji);
  position: absolute;
  right: -6px;
  bottom: -34px;
  font-family: 'Shippori Mincho B1', var(--jp);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  color: var(--tone);
  opacity: 0.06;
  pointer-events: none;
}
.app--dojo { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.app--duels { --tone: var(--duels); --tone-soft: var(--duels-soft); }
.app-head { display: flex; align-items: center; gap: 14px; }
.portrait {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--tone);
  object-fit: cover;
}
.app h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.1; }
.app h3 .jp { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--faint); }
.app p { position: relative; margin: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.chip {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tone-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tone);
}
.link-arrow {
  display: grid;
  place-items: center;
  color: var(--amber);
}
.link-arrow svg { width: 56px; height: 16px; }
.shared {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
}
@media (max-width: 720px) {
  .apps { grid-template-columns: 1fr; }
  .link-arrow svg { transform: rotate(90deg); width: 40px; }
}

/* Hoja de ruta: un viaje (旅) con paradas, sin fechas. */
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 16px);
}
.route::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  width: calc(12.5% - 10px);
  height: 2px;
  background: var(--amber);
}
.stop { position: relative; display: flex; flex-direction: column; gap: 12px; }
.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #0f131b;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}
.stop--now .node {
  border-color: var(--amber);
  background: var(--amber);
  color: #1b1305;
  font-weight: 700;
  animation: beacon 2.4s ease-out infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(240, 165, 42, 0.5); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(240, 165, 42, 0); }
}
.stop--next .node { border-color: var(--amber); color: var(--amber); }
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.stop--now .card { border-color: rgba(240, 165, 42, 0.35); }
.card .when {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.stop--now .when, .stop--next .when { color: var(--amber); }
.card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.card p { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 14px; }
  .route::before {
    top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 16px);
  }
  .route::after { top: 20px; left: 19px; width: 2px; height: 60px; }
  .stop { flex-direction: row; align-items: flex-start; gap: 14px; }
}

/* Contacto */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.contact h2 { margin: 8px 0 0; font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.contact p { max-width: 480px; margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.mail { font-family: var(--mono); font-size: 15px; color: var(--amber); text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; }

/* Pie */
.foot {
  margin-top: clamp(20px, 3.8vw, 40px);
  padding: 20px 0 calc(env(safe-area-inset-bottom) + 28px);
  border-top: 1px solid var(--line);
}
.foot .wrap { display: flex; flex-direction: column; gap: 16px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.fine { margin: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--faint); }
.fine a { color: var(--muted); }

/* Páginas legales */
.legal { max-width: 720px; padding: clamp(40px, 7vw, 72px) 0 0; }
.legal h1 { margin: 10px 0 6px; font-size: clamp(32px, 6vw, 48px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.legal h2 { margin: 36px 0 10px; font-size: 19px; font-weight: 800; }
.legal p, .legal li { font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--amber); }
.legal .fine { font-size: 11.5px; color: var(--faint); }
.legal strong { color: var(--ink); }

/* Entrada */
.up { animation: up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
