@font-face {
  font-family: "KronaOne";
  src: url("assets/fonts/KronaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vistol";
  src: url("assets/fonts/VistolSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #0e0d06;
  --bg: #11110f;
  --bg-panel: #1b1b1b;
  --cream: #faf5e5;
  --muted: rgba(250, 245, 229, 0.72);
  --soft: rgba(250, 245, 229, 0.12);
  --line: rgba(250, 245, 229, 0.16);
  --accent: #dca54a;
  --accent-hover: #e2b45f;
  --data: #78c7b7;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --card-bg: linear-gradient(180deg, rgba(27, 27, 27, 0.86), rgba(14, 13, 6, 0.74));
  --card-border: 1px solid rgba(250, 245, 229, 0.14);
  --card-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  --header-h: 78px;
  --control-h: 62px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Vistol", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(14, 13, 6, 0.96), rgba(17, 17, 15, 0.96)),
    radial-gradient(circle at 50% 20%, rgba(220, 165, 74, 0.16), transparent 46%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body::selection {
  color: var(--bg-deep);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.deck-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.deck-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(250, 245, 229, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(250, 245, 229, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 76%, transparent);
}

.deck-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: var(--header-h);
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(250, 245, 229, 0.08);
  background: rgba(14, 13, 6, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  font-family: KronaOne, var(--font-body);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.top-nav a {
  color: rgba(250, 245, 229, 0.76);
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.top-nav a:hover,
.top-nav a.is-current {
  color: var(--accent);
}

.deck-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 34px);
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(250, 245, 229, 0.16);
  border-radius: 999px;
  background: rgba(250, 245, 229, 0.05);
}

.language-toggle button {
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(250, 245, 229, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-toggle button:hover,
.language-toggle button:focus-visible {
  color: var(--cream);
}

.language-toggle button.is-active {
  background: var(--accent);
  color: #16130d;
  box-shadow: 0 8px 18px rgba(220, 165, 74, 0.18);
}

.icon-btn,
.control {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(250, 245, 229, 0.2);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(250, 245, 229, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-btn {
  width: 42px;
  height: 38px;
  font-weight: 900;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.icon-btn .icon-collapse {
  display: none;
}

.icon-btn.is-fullscreen .icon-expand {
  display: none;
}

.icon-btn.is-fullscreen .icon-collapse {
  display: block;
}

.icon-btn:hover,
.control:hover {
  border-color: rgba(220, 165, 74, 0.68);
  color: var(--accent);
  background: rgba(220, 165, 74, 0.08);
}

.slides {
  position: relative;
  height: 100svh;
  padding: var(--header-h) 0 var(--control-h);
}

.slide {
  position: absolute;
  inset: var(--header-h) 0 var(--control-h);
  display: grid;
  align-content: center;
  gap: 34px;
  width: 100%;
  min-height: 0;
  padding: clamp(18px, 3vw, 44px) clamp(18px, 5vw, 86px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.985);
  transition: opacity 440ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.slide::before {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: clamp(40px, 8vh, 96px);
  z-index: -1;
  width: min(42vw, 560px);
  aspect-ratio: 583 / 402;
  content: "";
  background: url("assets/brand/logsond_isotipo_color.svg") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.slide::after {
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  left: clamp(18px, 5vw, 86px);
  width: 68px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), rgba(120, 199, 183, 0.75));
  opacity: 0.95;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.slide-grid,
.split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
}

.split {
  display: grid;
}

.hero {
  overflow: hidden;
  align-content: start;
}

.hero-bg-mark {
  position: absolute;
  right: -4vw;
  bottom: -12vh;
  width: min(58vw, 780px);
  opacity: 0.1;
  filter: saturate(0.9);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  line-height: 1.04;
}

h2 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.65vw, 3.35rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
  line-height: 1.22;
}

.lead {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(250, 245, 229, 0.78);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  color: #15120a;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.secondary {
  border-color: rgba(220, 165, 74, 0.82);
  color: var(--cream);
  background: transparent;
}

.button.secondary:hover {
  color: var(--accent);
}

.hero-card,
.screen-large,
.stacked-screens figure {
  overflow: hidden;
  margin: 0;
  border: var(--card-border);
  border-radius: var(--radius);
  background: rgba(250, 245, 229, 0.05);
  box-shadow: var(--card-shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: calc(100svh - var(--header-h) - var(--control-h) - 150px);
  object-fit: cover;
  object-position: left top;
}

figcaption {
  padding: 11px 14px;
  border-top: 1px solid rgba(250, 245, 229, 0.1);
  color: rgba(250, 245, 229, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 1030px;
  padding-top: 8px;
}

.section-heading.compact {
  max-width: 1080px;
  text-align: center;
  justify-self: center;
}

.section-heading.compact .lead {
  margin-right: auto;
  margin-left: auto;
}

.pillars,
.workflow,
.status-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.pillars article,
.workflow article,
.status-grid article,
.feature-grid article,
.problem-list div {
  position: relative;
  min-height: 214px;
  padding: 24px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.pillars span,
.workflow span,
.feature-grid span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(220, 165, 74, 0.46);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
}

.pillars p,
.workflow p,
.status-grid p,
.feature-grid p,
.problem-list span,
.check-list {
  color: rgba(250, 245, 229, 0.72);
}

.timeline-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.timeline-card div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 6px 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(250, 245, 229, 0.12);
}

.timeline-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-card span {
  grid-row: span 2;
  color: var(--accent);
  font-family: KronaOne, var(--font-body);
  font-size: 14px;
}

.timeline-card strong {
  color: var(--white);
  font-size: 18px;
}

.timeline-card p {
  margin-bottom: 0;
  color: rgba(250, 245, 229, 0.72);
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-columns article {
  min-height: 160px;
  padding: 22px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.feature-columns p {
  margin-bottom: 0;
  color: rgba(250, 245, 229, 0.72);
}

.problem-list {
  display: grid;
  gap: 16px;
}

.problem-list div {
  min-height: auto;
}

.problem-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 18px;
}

.workflow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow article {
  min-height: 238px;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 24px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.node {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid rgba(250, 245, 229, 0.16);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(250, 245, 229, 0.045);
  font-weight: 900;
}

.node.accent {
  border-color: rgba(220, 165, 74, 0.54);
  color: var(--accent);
}

.node.data {
  border-color: rgba(120, 199, 183, 0.5);
  color: var(--data);
}

.line {
  width: 1px;
  height: 22px;
  justify-self: center;
  background: linear-gradient(180deg, var(--accent), rgba(120, 199, 183, 0.7));
}

.screen-large {
  justify-self: center;
  width: min(100%, 1120px);
}

.screen-large img {
  width: 100%;
  object-fit: contain;
}

.stacked-screens {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.stacked-screens figure:first-child {
  width: min(100%, 660px);
}

.stacked-screens figure:first-child img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.menu-capture {
  width: min(100%, 320px);
  margin-left: clamp(0px, 8vw, 120px) !important;
}

.menu-capture img {
  width: 100%;
  image-rendering: auto;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(250, 245, 229, 0.12);
}

.status-grid article {
  min-height: 214px;
}

.closing {
  justify-items: center;
  text-align: center;
}

.closing .lead {
  margin-right: auto;
  margin-left: auto;
}

.closing-mark {
  width: 118px;
  margin-bottom: 20px;
}

.closing-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.closing-strip span {
  min-width: 150px;
  padding: 12px 18px;
  border: 1px solid rgba(220, 165, 74, 0.4);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(220, 165, 74, 0.08);
  font-weight: 900;
}

.contact-line {
  margin: 26px 0 0;
  color: rgba(250, 245, 229, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.deck-controls {
  position: fixed;
  z-index: 32;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(80px, 640px) auto;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 12px 18px;
  background: linear-gradient(180deg, transparent, rgba(14, 13, 6, 0.88) 26%);
}

.control {
  width: 44px;
  height: 40px;
  font-weight: 900;
}

.progress {
  overflow: hidden;
  width: min(64vw, 640px);
  height: 7px;
  border-radius: 999px;
  background: rgba(250, 245, 229, 0.12);
}

.progress span {
  display: block;
  width: 11.11%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--data));
  transition: width 340ms ease;
}

@media (max-width: 980px) {
  html,
  body {
    overflow: auto;
  }

  .deck-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .top-nav {
    display: none;
  }

  .slides {
    height: auto;
    min-height: 100svh;
    padding: var(--header-h) 0 72px;
  }

  .slide {
    position: relative;
    inset: auto;
    min-height: calc(100svh - var(--header-h));
    padding: 34px 18px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .slide:not(.active) {
    display: none;
  }

  .slide-grid,
  .split,
  .pillars,
  .workflow,
  .status-grid,
  .feature-grid,
  .feature-columns {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-bg-mark {
    width: 86vw;
    opacity: 0.08;
  }

  .pillars article,
  .workflow article,
  .status-grid article {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  :root {
    --header-h: 68px;
  }

  .brand span {
    font-size: 14px;
  }

  .brand img {
    width: 36px;
    height: 38px;
  }

  .deck-status {
    gap: 8px;
  }

  .language-toggle {
    grid-template-columns: repeat(2, 30px);
  }

  .language-toggle button {
    height: 24px;
  }

  .icon-btn {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .menu-capture {
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
