:root {
  /* Tokens principales: colores, radios, sombras y ancho máximo del sitio. */
  --black: #000000;
  --black-2: #000000;
  --graphite: #1d1d1d;
  --charcoal: #2a2a2a;
  --white: #ffffff;
  --paper: #f6f6f1;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(6, 6, 6, 0.12);
  --muted: #b8b8ad;
  --muted-dark: #66665f;
  --yellow: #f6c400;
  --yellow-2: #ffe27a;
  --yellow-dark: #b88700;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --display-h1: clamp(38px, 4.45vw, 62px);
  --display-h2: clamp(30px, 4vw, 52px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  opacity: 1;
  transition: opacity 0.12s ease;
}

body.is-loaded {
  opacity: 1;
}

body.is-leaving {
  opacity: 0.94;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(6, 6, 6, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 6, 6, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Navegación, marca y botones compartidos por todas las páginas. */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(90deg, rgba(246, 196, 0, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(6, 6, 6, 0.1);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 0, 0.72), transparent);
  opacity: 0.55;
}

.nav-shell {
  width: min(var(--max), calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  margin-right: auto;
}

.brand-logo {
  width: 180px;
  height: 58px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  width: 160px;
  height: 50px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--black);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(246, 196, 0, 0.08), 0 0 24px rgba(246, 196, 0, 0.28);
}

.brand-mark::before {
  content: "";
  width: 17px;
  height: 17px;
  background: var(--yellow);
  border-radius: 3px;
  transform: rotate(45deg);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
}

.brand-mark.small::before {
  width: 13px;
  height: 13px;
}

.brand-mark.tiny {
  width: 26px;
  height: 26px;
}

.brand-mark.tiny::before {
  width: 10px;
  height: 10px;
}

.brand-copy,
.footer-brand span:last-child {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 22px;
  font-weight: 950;
}

.brand-copy small,
.footer-brand small {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(6, 6, 6, 0.055);
  border: 1px solid rgba(6, 6, 6, 0.08);
  border-radius: 999px;
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(6, 6, 6, 0.64);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--black);
  background: rgba(255, 255, 255, 0.72);
}

.nav-menu a.is-active {
  color: var(--black);
  background:
    linear-gradient(180deg, rgba(246, 196, 0, 0.32), rgba(255, 255, 255, 0.86));
  border-color: rgba(246, 196, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 0, 0.12), 0 0 18px rgba(246, 196, 0, 0.14);
}

.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  background: var(--yellow);
  border-radius: 999px;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 950;
}

.nav-cta {
  padding: 0 18px;
  color: var(--black);
  background: var(--yellow);
  border: 1px solid rgba(255, 226, 122, 0.8);
  box-shadow: 0 0 24px rgba(246, 196, 0, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.btn {
  padding: 0 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 18px 38px rgba(246, 196, 0, 0.2);
}

.btn-ghost {
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(6, 6, 6, 0.15);
}

.btn-light {
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(6, 6, 6, 0.06);
  border: 1px solid rgba(6, 6, 6, 0.12);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
  border-radius: 999px;
}

.hero,
.section,
.cta-panel {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

/* Estructuras base para secciones, encabezados, bandas oscuras y CTA. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 38px 0 42px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(38vw, 500px);
  pointer-events: none;
  background:
    radial-gradient(circle at 0 30%, rgba(255, 226, 122, 0.38), rgba(246, 196, 0, 0.18) 30%, rgba(246, 196, 0, 0.05) 60%, transparent 78%),
    linear-gradient(90deg, rgba(246, 196, 0, 0.1), transparent);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 11px;
  margin-bottom: 20px;
  padding: 0;
  color: var(--yellow-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--yellow);
  border-radius: 0;
  box-shadow: 0 0 12px rgba(246, 196, 0, 0.8);
}

.kicker.dark {
  color: var(--yellow);
  background: transparent;
}

h1,
h2,
h3 {
  font-weight: 950;
  line-height: 1.02;
  text-wrap: pretty;
}

h1 {
  font-size: var(--display-h1);
}

h2 {
  font-size: var(--display-h2);
}

.title-accent {
  color: var(--yellow);
}

p {
  line-height: 1.72;
}

.section {
  position: relative;
  padding: 42px 0;
}


.section-heading {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading .kicker {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p:last-child {
  color: var(--muted-dark);
}

.band-dark {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - var(--max)) / 2));
  padding-right: max(18px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: start;
}

.stacked-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--yellow);
  font-weight: 950;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 2px;
  margin: auto 0 auto 10px;
  background: var(--yellow);
}

/* Interacciones compartidas para que las tarjetas secundarias se sientan vivas. */
:is(
  .signal-row div,
  .problem-grid article,
  .tool-detail,
  .mission-card,
  .values-grid article,
  .creator-type-card,
  .format-grid article,
  .reason-grid article,
  .space-grid article,
  .demo-panel,
  .launch-grid article,
  .journey-panel div,
  .process-rail article
) {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

:is(
  .signal-row div,
  .problem-grid article,
  .tool-detail,
  .mission-card,
  .values-grid article,
  .creator-type-card,
  .format-grid article,
  .reason-grid article,
  .space-grid article,
  .demo-panel,
  .launch-grid article,
  .journey-panel div,
  .process-rail article
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 56%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

:is(
  .signal-row div,
  .problem-grid article,
  .tool-detail,
  .mission-card,
  .values-grid article,
  .creator-type-card,
  .format-grid article,
  .reason-grid article,
  .space-grid article,
  .demo-panel,
  .launch-grid article,
  .journey-panel div,
  .process-rail article
) > * {
  position: relative;
  z-index: 1;
}

:is(
  .problem-grid article,
  .tool-detail,
  .mission-card,
  .creator-type-card,
  .format-grid article,
  .reason-grid article,
  .space-grid article,
  .demo-panel
) :is(svg, img, .problem-icon, .creator-type-icon, .format-icon, .impact-icon) {
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(
    .signal-row div,
    .problem-grid article,
    .tool-detail,
    .mission-card,
    .values-grid article,
    .creator-type-card,
    .format-grid article,
    .reason-grid article,
    .space-grid article,
    .demo-panel,
    .launch-grid article,
    .journey-panel div,
    .process-rail article
  ):hover {
    transform: translateY(-5px);
    border-color: rgba(246, 196, 0, 0.62);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.13);
  }

  :is(
    .signal-row div,
    .problem-grid article,
    .tool-detail,
    .mission-card,
    .values-grid article,
    .creator-type-card,
    .format-grid article,
    .reason-grid article,
    .space-grid article,
    .demo-panel,
    .launch-grid article,
    .journey-panel div,
    .process-rail article
  ):hover::before {
    opacity: 1;
  }

  :is(
    .problem-grid article,
    .tool-detail,
    .mission-card,
    .creator-type-card,
    .format-grid article,
    .reason-grid article,
    .space-grid article,
    .demo-panel
  ):hover :is(svg, img, .problem-icon, .creator-type-icon, .format-icon, .impact-icon) {
    transform: translateY(-2px) scale(1.04);
  }

  :is(
    .tools-console,
    .reason-grid article,
    .demo-panel,
    .creator-type-card-dark,
    .mission-card:first-child,
    .tool-detail:nth-child(1),
    .tool-detail:nth-child(4),
    .metric-panel
  ):hover {
    border-color: rgba(246, 196, 0, 0.78);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .signal-row div,
    .problem-grid article,
    .tool-detail,
    .mission-card,
    .values-grid article,
    .creator-type-card,
    .format-grid article,
    .reason-grid article,
    .space-grid article,
    .demo-panel,
    .launch-grid article,
    .journey-panel div,
    .process-rail article,
    .module-tile,
    .btn
  ) {
    transition: none;
  }

  :is(
    .signal-row div,
    .problem-grid article,
    .tool-detail,
    .mission-card,
    .values-grid article,
    .creator-type-card,
    .format-grid article,
    .reason-grid article,
    .space-grid article,
    .demo-panel,
    .launch-grid article,
    .journey-panel div,
    .process-rail article,
    .module-tile,
    .btn
  ):hover {
    transform: none;
  }
}

.cta-panel {
  margin-bottom: 68px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: #000000;
  border: 1px solid rgba(246, 196, 0, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-panel > div {
  max-width: 780px;
}

.cta-panel h2 {
  margin-bottom: 16px;
}

.cta-panel p {
  color: var(--muted);
}

.site-footer {
  padding: 28px max(18px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--black);
  background: var(--white);
  border-top: 1px solid var(--line-dark);
}

.site-footer p {
  color: var(--muted-dark);
  font-size: 13px;
}

/* Entrada visual ligera para bloques al aparecer en pantalla. */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero > .reveal {
  display: grid;
  align-content: start;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

/* Ajustes responsivos generales de navegación y layout. */
@media (max-width: 1060px) {
  .nav-cta {
    display: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    width: min(100% - 28px, var(--max));
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(6, 6, 6, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 101;
  }

  .nav-menu.is-open {
    display: grid;
    padding-bottom: 90px;
  }

  .nav-menu a {
    width: 100%;
    min-height: 44px;
  }

  .nav-menu.is-open + .nav-cta {
    position: absolute;
    top: 420px;
    left: 24px;
    right: 24px;
    z-index: 102;
    display: inline-flex;
    min-height: 46px;
    justify-content: center;
    color: var(--black);
    background: var(--yellow);
    border-color: rgba(255, 226, 122, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 0 24px rgba(246, 196, 0, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  }

  .hero,
  .section {
    width: min(100% - 28px, var(--max));
    padding: 28px 0;
  }

  .hero::before {
    inset: 0;
    width: 100%;
    background:
      radial-gradient(ellipse 115% 72% at 0 0, rgba(255, 226, 122, 0.34), rgba(246, 196, 0, 0.16) 38%, rgba(246, 196, 0, 0.06) 64%, transparent 84%),
      linear-gradient(180deg, rgba(246, 196, 0, 0.08), transparent 56%);
  }

  .band-dark {
    width: 100%;
    padding-left: 26px;
    padding-right: 26px;
  }

  .band-dark :is(h1, h2) {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.04;
  }

  .band-dark p {
    font-size: 15px;
    line-height: 1.55;
  }

  .cta-panel {
    width: min(100% - 28px, var(--max));
    margin-bottom: 48px;
    padding: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

}
