/* Gou retro — Game Boy / Pokémon RPG menu aesthetic (B&W) */

@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323:wght@400;700&display=swap");

.retro-surface {
  --retro-bg: #e8e8e8;
  --retro-bg-alt: #d0d0d0;
  --retro-panel: #f8f8f8;
  --retro-ink: #0f0f0f;
  --retro-mid: #5a5a5a;
  --retro-lite: #9a9a9a;
  --retro-border: #0f0f0f;
  --retro-shadow: 6px 6px 0 #0f0f0f;
  --retro-font: "VT323", "Courier New", monospace;
  --retro-pixel: "Press Start 2P", monospace;

  background: var(--retro-bg);
  color: var(--retro-ink);
  font-family: var(--retro-font);
  font-size: 22px;
  line-height: 1.45;
  image-rendering: pixelated;
}

.retro-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    #000 2px,
    #000 3px
  );
}

/* Hide modern chrome */
.retro-surface .grain,
.retro-surface .tech-canvas,
.retro-surface .hero__gridlines,
.retro-surface .tech-orbit,
.retro-surface .pulse-dot,
.retro-surface .premium-cursor,
.retro-surface .premium-cursor-ring,
.retro-surface .scroll-progress,
.retro-surface .back-to-top,
.retro-surface .card-glare {
  display: none !important;
}

.retro-surface * {
  cursor: default !important;
  text-shadow: none !important;
}

.retro-surface h1,
.retro-surface h2,
.retro-surface h3,
.retro-surface h4,
.retro-surface .eyebrow,
.retro-surface .path-card__label,
.retro-surface .btn {
  font-family: var(--retro-pixel);
  letter-spacing: 0;
  text-transform: none;
}

.retro-surface h1 {
  font-size: clamp(14px, 3.2vw, 22px);
  line-height: 1.65;
  color: var(--retro-ink);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.retro-surface h2 {
  font-size: clamp(12px, 2.4vw, 16px);
  line-height: 1.7;
}

.retro-surface h3 {
  font-size: 11px;
  line-height: 1.8;
}

.retro-surface h4 {
  font-size: 10px;
}

.retro-surface p,
.retro-surface li,
.retro-surface .hero__lead,
.retro-surface .section__sub {
  font-family: var(--retro-font);
  font-size: 22px;
  color: var(--retro-mid);
}

.retro-surface .eyebrow {
  font-size: 8px;
  color: var(--retro-mid);
}

.retro-surface .text-gradient,
.retro-surface .hero__accent {
  background: none !important;
  -webkit-text-fill-color: var(--retro-ink) !important;
  color: var(--retro-ink) !important;
}

/* Nav — RPG top bar */
.retro-surface .nav {
  background: var(--retro-panel);
  border-bottom: 4px solid var(--retro-border);
  box-shadow: 0 4px 0 var(--retro-mid);
  backdrop-filter: none;
}

.retro-surface .nav--scrolled {
  background: var(--retro-panel);
}

.retro-surface .nav__links a {
  font-family: var(--retro-pixel);
  font-size: 8px;
  color: var(--retro-mid);
  padding: 8px 4px;
  border-bottom: 3px solid transparent;
}

.retro-surface .nav__links a:hover,
.retro-surface .nav__links a.is-lit {
  color: var(--retro-ink);
  border-bottom-color: var(--retro-ink);
}

.retro-surface .logo-plate--nav {
  background: var(--retro-panel);
  padding: 2px 0;
}

.retro-surface .logo-plate--nav img {
  height: 28px;
  filter: none;
}

/* Buttons — menu choice style */
.retro-surface .btn {
  border-radius: 0;
  border: 4px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  font-size: 9px;
  padding: 14px 18px;
  transition: transform 0.05s, box-shadow 0.05s;
}

.retro-surface .btn--primary {
  background: var(--retro-ink);
  color: var(--retro-panel);
}

.retro-surface .btn--ghost {
  background: var(--retro-panel);
  color: var(--retro-ink);
  border-color: var(--retro-border);
}

.retro-surface .btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--retro-ink);
}

.retro-surface .btn:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--retro-ink);
}

/* Hero — dialog box */
.retro-surface .hero {
  background: var(--retro-bg);
  min-height: auto;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 48px;
}

.retro-surface .hero__bg {
  display: none;
}

.retro-surface .hero__copy,
.retro-surface .hero__visual {
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  padding: 24px 20px;
}

.retro-surface .hero__grid--home {
  gap: 20px;
}

.retro-surface .hero__stats strong {
  font-family: var(--retro-pixel);
  font-size: 18px;
  color: var(--retro-ink);
}

.retro-surface .hero__stats span {
  font-size: 18px;
}

.retro-surface .logo-plate--hero {
  background: transparent;
  padding: 0;
}

.retro-surface .logo-plate--hero img,
.retro-surface .hero__logo {
  width: min(320px, 85vw);
  image-rendering: pixelated;
  filter: none;
}

.retro-surface .logo-plate--glow img {
  filter: none;
}

/* Path cards — battle menu slots */
.retro-surface .path-card {
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  border-radius: 0;
  box-shadow: var(--retro-shadow);
  transform: none !important;
}

.retro-surface .path-card::before {
  display: none;
}

.retro-surface .path-card:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 4px 4px 0 var(--retro-ink);
  border-color: var(--retro-ink);
}

.retro-surface .path-card__icon {
  font-family: var(--retro-pixel);
  font-size: 8px;
  color: var(--retro-lite);
}

.retro-surface .path-card__tags span {
  border: 2px solid var(--retro-border);
  border-radius: 0;
  background: var(--retro-bg-alt);
  font-family: var(--retro-font);
  font-size: 18px;
  color: var(--retro-mid);
}

/* Trust strip */
.retro-surface .gou-flow__hub {
  border: 4px solid var(--retro-border);
  border-radius: 0;
  box-shadow: var(--retro-shadow);
  font-family: var(--retro-pixel);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.retro-surface .gou-title {
  font-family: var(--retro-pixel);
  font-size: clamp(18px, 4vw, 28px);
  letter-spacing: 0.1em;
}

.retro-surface .gou-tagline {
  font-family: var(--retro-font);
  font-size: 22px;
}

.retro-surface .gou-pillar,
.retro-surface .gou-flow__inputs,
.retro-surface .gou-audience {
  border-radius: 0;
  border-width: 4px;
  box-shadow: var(--retro-shadow);
}

.retro-surface .gou-audience h3 {
  font-family: var(--retro-pixel);
  font-size: 9px;
}

.retro-surface .gou-audience--more h3 {
  font-size: 14px;
}

.retro-surface .gou-audience p {
  font-family: var(--retro-font);
  font-size: 18px;
}

.retro-surface .nav__lang {
  border-radius: 0;
  border-width: 3px;
  box-shadow: var(--retro-shadow);
}

.retro-surface .nav__lang-btn {
  border-radius: 0;
  font-family: var(--retro-pixel);
  font-size: 7px;
}

.retro-surface .nav__lang-btn.is-active {
  background: var(--retro-ink);
  color: var(--retro-panel);
}

.retro-surface .hero__gou-line {
  grid-template-columns: clamp(28px, 6vw, 44px) 1fr;
  gap: 0.4em 0.65em;
}

.retro-surface .hero__gou-key {
  font-family: var(--retro-pixel);
  font-size: clamp(22px, 4.5vw, 34px);
  line-height: 1;
}

.retro-surface .hero__gou-text {
  font-family: var(--retro-font);
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.25;
}

.retro-surface .hero--home .hero__stats {
  grid-template-columns: repeat(3, 1fr);
}

.retro-surface .faq-item,
.retro-surface .force-card,
.retro-surface .brand-map,
.retro-surface .founder-card,
.retro-surface .testimonial {
  border-radius: 0;
  border-width: 4px;
  box-shadow: var(--retro-shadow);
}

.retro-surface .mode-switch {
  border: 4px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  border-radius: 0;
}

.retro-surface .criteria-list li::before {
  content: "▶ ";
}

/* Terminal — in-game text scroll */
.retro-surface .tech-terminal {
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  border-radius: 0;
  box-shadow: var(--retro-shadow);
}

.retro-surface .tech-terminal__bar {
  background: var(--retro-bg-alt);
  border-bottom: 3px solid var(--retro-border);
  border-radius: 0;
}

.retro-surface .tech-terminal__bar span:nth-child(1) { background: #0f0f0f; }
.retro-surface .tech-terminal__bar span:nth-child(2) { background: #5a5a5a; }
.retro-surface .tech-terminal__bar span:nth-child(3) { background: #9a9a9a; }

.retro-surface .tech-terminal__bar code {
  color: var(--retro-mid);
  font-family: var(--retro-font);
  font-size: 20px;
}

.retro-surface .tech-terminal__line {
  font-family: var(--retro-font);
  font-size: 20px;
  color: var(--retro-mid);
}

.retro-surface .tech-terminal__line--cmd { color: var(--retro-ink); }
.retro-surface .tech-terminal__line--ok { color: var(--retro-mid); }
.retro-surface .tech-terminal__line--accent { color: var(--retro-ink); font-weight: 700; }

.retro-surface .tech-terminal__line.is-active::after {
  background: var(--retro-ink);
}

.retro-surface .tech-checklist li::before {
  content: "▶ ";
  color: var(--retro-ink);
}

.retro-surface .founder-trayectoria__item {
  border: 4px solid var(--retro-border);
  border-radius: 0;
  background: var(--retro-panel);
  box-shadow: var(--retro-shadow);
}

.retro-surface .founder-trayectoria-wrap {
  border-top: 3px solid var(--retro-border);
}

.retro-surface .case-study__relacion {
  font-family: var(--retro-font);
  font-size: 20px;
  color: var(--retro-mid);
}

/* Fit quiz — RPG quest terminal */
.retro-surface .fit-quiz--retro {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.retro-surface .fit-quiz-retro__body {
  padding: 18px 20px 22px;
}

.retro-surface .fit-quiz-retro__lead {
  font-family: var(--retro-font);
  font-size: 22px;
  line-height: 1.45;
  color: var(--retro-ink);
  margin: 0 0 12px;
}

.retro-surface .fit-quiz-retro__prompt {
  font-family: var(--retro-font);
  font-size: 22px;
  color: var(--retro-mid);
  margin: 0 0 18px;
}

.retro-surface .fit-quiz-retro__field {
  display: block;
  margin-bottom: 16px;
}

.retro-surface .fit-quiz-retro__label {
  display: block;
  font-family: var(--retro-font);
  font-size: 22px;
  color: var(--retro-ink);
  margin-bottom: 8px;
}

.retro-surface .fit-quiz-retro__step {
  font-family: var(--retro-pixel);
  font-size: 8px;
  color: var(--retro-mid);
  margin-right: 4px;
}

.retro-surface .fit-quiz-retro__field select {
  width: 100%;
  font-family: var(--retro-font);
  font-size: 22px;
  padding: 10px 12px;
  border: 3px solid var(--retro-border);
  border-radius: 0;
  background: var(--retro-bg);
  color: var(--retro-ink);
  box-shadow: inset 3px 3px 0 var(--retro-bg-alt);
}

.retro-surface .fit-quiz-retro__submit {
  margin-top: 8px;
}

.retro-surface .fit-quiz-retro__result {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 3px solid var(--retro-border);
}

.retro-surface .fit-quiz-retro__chosen {
  font-weight: 700;
}

.retro-surface .fit-quiz-retro__exp {
  margin: 10px 0 14px;
}

.retro-surface .fit-quiz-retro__cta {
  margin-top: 4px;
}

.retro-surface .section--quiz {
  background: var(--retro-bg);
}

/* Marquee — status bar ticker */
.retro-surface .tech-marquee {
  background: var(--retro-ink);
  border-top: 4px solid var(--retro-border);
  border-bottom: 4px solid var(--retro-border);
}

.retro-surface .tech-marquee__track span {
  font-family: var(--retro-pixel);
  font-size: 8px;
  color: var(--retro-panel);
}

/* Brands / sections */
.retro-surface .section--dark,
.retro-surface .section--tech,
.retro-surface .section--paths,
.retro-surface .section--cta {
  background: var(--retro-bg);
}

.retro-surface .brand,
.retro-surface .board-card,
.retro-surface .case-study,
.retro-surface .showcase-card,
.retro-surface .info-card,
.retro-surface .mode-card,
.retro-surface .outcome-card {
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  border-radius: 0;
  box-shadow: var(--retro-shadow);
  transform: none !important;
}

.retro-surface .brand__dot {
  background: var(--retro-ink);
  box-shadow: none;
  animation: none;
}

/* Brand specialties — section--dark keeps light bg in retro; undo white-on-light text */
.retro-surface .brand-spec {
  background: var(--retro-panel) !important;
  border: 4px solid var(--retro-border) !important;
  border-radius: 0;
  box-shadow: var(--retro-shadow);
}

.retro-surface .section--dark .brand-spec {
  background: var(--retro-panel) !important;
  border-color: var(--retro-border) !important;
}

.retro-surface .brand-spec__head h4 {
  font-family: var(--retro-pixel);
  font-size: 10px;
  color: var(--retro-ink);
}

.retro-surface .brand-spec__line,
.retro-surface .section--dark .brand-spec__line {
  font-family: var(--retro-font);
  font-size: 20px;
  color: var(--retro-mid) !important;
}

.retro-surface .brand-spec__link,
.retro-surface .section--dark .brand-spec__link {
  font-family: var(--retro-pixel);
  font-size: 8px;
  color: var(--retro-ink) !important;
}

.retro-surface .brand__status {
  font-family: var(--retro-pixel);
  font-size: 7px;
}

.retro-surface .brand__status--live {
  color: var(--retro-ink);
}

.retro-surface .brand__status--demo {
  color: var(--retro-mid);
}

.retro-surface .brand__status--dev {
  color: var(--retro-lite);
}

.retro-surface .section--cta .cta {
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
}

/* Forms */
.retro-surface input,
.retro-surface textarea,
.retro-surface select {
  font-family: var(--retro-font);
  font-size: 22px;
  border: 3px solid var(--retro-border);
  border-radius: 0;
  background: var(--retro-panel);
  color: var(--retro-ink);
  box-shadow: inset 3px 3px 0 var(--retro-bg-alt);
}

.retro-surface input:focus,
.retro-surface textarea:focus,
.retro-surface select:focus {
  outline: 3px solid var(--retro-mid);
  outline-offset: 2px;
}

/* Footer */
.retro-surface .footer {
  background: var(--retro-bg-alt);
  border-top: 4px solid var(--retro-border);
  color: var(--retro-mid);
}

.retro-surface .footer p {
  font-size: 20px;
}

.retro-surface .logo-plate--footer img {
  height: 22px;
  opacity: 1;
}

/* Version switcher */
.retro-switch {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  background: var(--retro-panel);
  border: 4px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  padding: 12px 14px;
  max-width: 220px;
}

.retro-switch p {
  font-family: var(--retro-pixel);
  font-size: 7px;
  margin: 0 0 8px;
  color: var(--retro-ink);
  animation: retro-blink 1.2s steps(2) infinite;
}

.retro-switch a {
  font-family: var(--retro-pixel);
  font-size: 7px;
  color: var(--retro-mid);
  text-decoration: underline;
}

.retro-switch a:hover {
  color: var(--retro-ink);
}

.retro-switch--modern {
  background: rgba(19, 22, 40, 0.92);
  border: 1px solid rgba(140, 150, 184, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.retro-switch--modern a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.retro-switch--modern a:hover {
  color: var(--coral);
}

@keyframes retro-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Retro: nunca ocultar body esperando page-ready */
html.js:not(.page-ready) body.retro-surface {
  opacity: 1;
}

/* Page transitions — solo al cambiar versión */
html.js.version-enter body.retro-surface {
  animation: version-in-retro 0.35s ease forwards;
}

.retro-surface ::selection {
  background: var(--retro-ink);
  color: var(--retro-panel);
}

@media (max-width: 768px) {
  .retro-surface .nav__links {
    background: var(--retro-panel);
    border: 4px solid var(--retro-border);
    box-shadow: var(--retro-shadow);
  }

  .retro-surface .nav--open {
    background: var(--retro-panel);
  }

  .retro-surface .nav--open .nav__links a {
    color: var(--retro-ink);
    padding: 12px 4px;
    font-size: 16px;
  }

  .retro-surface .hero__headline {
    font-size: clamp(11px, 3vw, 16px);
    line-height: 1.75;
    hyphens: none;
    word-break: normal;
  }

  .retro-surface .hero__stats--claims {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .retro-surface .section {
    padding: 48px 0;
  }

  .retro-switch {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .retro-surface .mode-switch--corner {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .retro-surface .fit-quiz--retro {
    max-width: 100%;
    overflow: hidden;
  }

  .retro-surface .fit-quiz--retro .tech-terminal__bar code {
    font-size: 14px;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .retro-surface .fit-quiz-retro__body {
    padding: 14px 12px 18px;
  }

  .retro-surface .fit-quiz-retro__lead,
  .retro-surface .fit-quiz-retro__prompt,
  .retro-surface .fit-quiz-retro__label {
    font-size: 18px;
    line-height: 1.4;
    word-break: break-word;
  }

  .retro-surface .fit-quiz-retro__field select {
    font-size: 16px;
    min-height: 44px;
    padding: 10px;
  }

  .retro-surface .fit-quiz-retro__submit,
  .retro-surface .fit-quiz-retro__cta,
  .retro-surface .fit-quiz-retro__result .btn {
    width: 100%;
    justify-content: center;
  }

  .retro-surface .fit-quiz-retro__result .tech-terminal__line {
    font-size: 18px;
    line-height: 1.45;
    word-break: break-word;
  }

  .retro-surface .section--quiz .container {
    width: min(var(--max), 100% - var(--mobile-pad, 16px) * 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .retro-switch p {
    animation: none;
  }
}
