/* Landing de Ikigai Training. Misma identidad que el portal: tokens de assets/brand/tokens.css,
   Bebas Neue + Rajdhani locales, superficies casi negras y rojo de marca. */
:root {
  color-scheme: dark;
  --bg: var(--ikigai-surface);
  --panel: var(--ikigai-surface-raised);
  --panel-2: var(--ikigai-surface-elevated);
  --line: var(--ikigai-line);
  --muted: var(--ikigai-muted);
  --text: var(--ikigai-white);
  --red: var(--ikigai-brand-red);
  --red-dark: var(--ikigai-brand-red-dark);
  --gutter: clamp(16px, 5vw, 56px);
  font-family: "Rajdhani", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ikigai-brand-red-highlight); outline-offset: 3px; }

/* ---- barra superior ---- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; min-height: 72px; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); background: rgba(8,8,8,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 1.5px; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 3px; font-weight: 600; }
.topnav { display: flex; gap: 22px; }
.topnav a { text-decoration: none; font-weight: 600; color: #c8c8ce; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a:hover { color: var(--text); }

/* ---- botones (iguales a los del portal) ---- */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 10px 18px; border-radius: 7px; color: var(--text); background: var(--panel-2); font-weight: 700; font-size: 17px; text-decoration: none; min-height: 44px; cursor: pointer; }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover { background: #f34d59; border-color: #f34d59; }
.button.ghost { background: transparent; }
.button.ghost:hover { border-color: #5a5a60; }
.button.small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.button.big { min-height: 60px; padding: 14px 26px; font-size: 21px; width: 100%; }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.button svg { width: 24px; height: 24px; flex: none; }

/* ---- secciones ---- */
.eyebrow { margin: 0; color: var(--red); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; }
.section { padding: clamp(48px, 9vw, 96px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(36px, 6vw, 60px); letter-spacing: 1px; line-height: 1; margin: 10px 0 32px; }
.section h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; }
.section p { color: #c2c2c8; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 8vw, 96px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.hero::before { content: ""; position: absolute; inset: -20% -30% -20% 20%; z-index: -1; background: radial-gradient(ellipse 60% 60% at 60% 50%, rgba(227,26,32,.28), transparent 70%); }
.hero h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(48px, 8vw, 92px); line-height: .95; letter-spacing: 1px; margin: 14px 0 22px; }
.hero h1 span { color: var(--red); }
.lead { max-width: 520px; font-size: 21px; line-height: 1.35; color: #c2c2c8; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(420px, 78vw); border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 0 60px rgba(227,26,32,.35); }

/* ---- tarjetas ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--red); border-radius: 10px 0 0 10px; }
.num { font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: 1; color: var(--red-dark); }
.card h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 32px; letter-spacing: .8px; margin: 6px 0 10px; }
.card p { margin: 0; }

/* ---- la app ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.feature svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.8; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 17px; }

/* ---- descarga ---- */
.download { background: linear-gradient(180deg, transparent, rgba(124,9,15,.18), transparent); max-width: none; }
.download > * { max-width: calc(1180px - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.download-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.download-main, .steps { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.download-main { border-color: var(--red-dark); }
.download-main p:first-child { margin-top: 0; }
.meta { font-size: 15px; color: var(--muted) !important; margin: 12px 0 0; }
.notice { border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; margin: 14px 0 0; font-size: 16px; }
.hash { margin-top: 14px; font-size: 15px; }
.hash summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #c2c2c8; }
.hash code { display: block; word-break: break-all; background: #000; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 13px; color: #ffb8bf; }
.alt-links { margin: 8px 0 0; }
.alt-links a { display: inline-flex; align-items: center; min-height: 44px; color: #ffb8bf; font-weight: 600; }
.steps h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .8px; margin-bottom: 14px; }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 14px; }
.steps li { counter-increment: paso; position: relative; padding-left: 50px; color: #c2c2c8; font-size: 17px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: "Bebas Neue", sans-serif; font-size: 22px; border-radius: 6px; }
.steps li strong { color: var(--text); }
.steps .small { font-size: 15px; margin: 18px 0 0; color: var(--muted); }

/* ---- contacto ---- */
.contact { display: grid; gap: 12px; max-width: 760px; }
.contact-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.value { font-size: 20px; font-weight: 600; text-decoration: none; }
a.value:hover { color: #ffb8bf; }

.footer { border-top: 1px solid var(--line); padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 15px; }
.footer strong { color: var(--text); letter-spacing: 1px; }

/* ---- teléfono ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(240px, 60vw); }
  .cards, .features { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-row .button { justify-self: start; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar { gap: 12px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
