:root {
  --bg: #08111f;
  --bg-soft: #0e1a2d;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f7fb;
  --muted: #b9c3d6;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #009e8a;
  --accent-2: #69e6d5;
  --orange: #ffb86b;
  --purple: #a78bfa;
  --blue: #75a7ff;
  --green: #80e38a;
  --red: #ff6f7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 158, 138, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(117, 167, 255, 0.20), transparent 32%),
    linear-gradient(180deg, #08111f 0%, #0b1322 45%, #070b13 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #041014;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-text {
  color: var(--text);
}

.top-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--accent-2);
}

.section {
  min-height: 100vh;
  padding: 112px 7vw;
  display: flex;
  align-items: center;
  position: relative;
}

.hero {
  gap: 64px;
  justify-content: space-between;
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(560px, 1.1fr)
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.hero-subtitle,
.section-copy p,
.centered p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #03110f;
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.request-card,
.portal-demo,
.product-board,
.capacity-panel,
.final-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  width: min(390px, 100%);
  padding: 28px;
  transform: rotate(1deg);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill.solution {
  background: rgba(167, 139, 250, 0.18);
  color: #d9ccff;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 28px var(--green);
}

.request-card h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.request-card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.card-grid span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 64px;
}

.section-copy {
  max-width: 680px;
}

.portal-demo {
  padding: 28px;
}

.chat-window {
  display: grid;
  gap: 14px;
}

.chat-row {
  display: flex;
}

.chat-row span {
  max-width: 82%;
  padding: 15px 18px;
  border-radius: 20px;
  line-height: 1.45;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.user span {
  background: var(--accent);
  color: #03110f;
  border-bottom-right-radius: 6px;
}

.chat-row.ai span {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.mini-card {
  margin-top: 26px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(0, 158, 138, 0.12);
  border: 1px solid rgba(105, 230, 213, 0.24);
}

.mini-label {
  display: block;
  color: var(--accent-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  margin-bottom: 8px;
}

.mini-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.centered {
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}

#clasificacion,
#quickwins,
.final-section {
  display: block;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.route-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.route-card:hover {
  transform: translateY(-8px);
  background: var(--panel-strong);
  border-color: rgba(105, 230, 213, 0.45);
}

.route-card.featured {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.22), rgba(255, 255, 255, 0.08));
}

.route-icon {
  font-size: 36px;
  display: inline-block;
  margin-bottom: 22px;
}

.route-card p,
.journey-step p,
.capacity-card p,
.summary-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.dark-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 158, 138, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.03);
}

.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.journey-step {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  overflow-wrap: break-word;
  word-break: normal;
}

.journey-step::after {
  display: none;
}

.journey-step:last-child::after {
  display: none;
}

.journey-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(0, 158, 138, 0.18);
  color: var(--accent-2);
  font-weight: 900;
}

.product-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.board-column {
  min-height: 340px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.board-column h3 {
  color: var(--accent-2);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--line);
}

.ticket.active {
  border-color: rgba(105, 230, 213, 0.55);
  background: rgba(0, 158, 138, 0.14);
}

.ticket.done {
  border-color: rgba(128, 227, 138, 0.55);
  background: rgba(128, 227, 138, 0.14);
}

.ticket.muted {
  opacity: 0.72;
}

.capacity-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capacity-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 20px;
}

.capacity-header strong {
  color: var(--accent-2);
  font-size: 22px;
}

.meter {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.meter.warning span {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.status-flow {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.status-flow span {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-weight: 800;
}

.status-flow span.done {
  color: #041014;
  background: var(--green);
  border-color: transparent;
}

.status-flow span.active {
  color: #041014;
  background: var(--accent-2);
  border-color: transparent;
  box-shadow: 0 0 40px rgba(105, 230, 213, 0.35);
}

.final-section {
  min-height: auto;
  padding-bottom: 140px;
}

.final-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.summary-grid div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.summary-grid strong {
  color: var(--accent-2);
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

@media (max-width: 1100px) {
  .route-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .split,
  .hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-card {
    width: 100%;
  }
  .hero-control {
  min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    padding: 18px;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section {
    padding: 88px 22px;
  }

  .route-grid,
  .journey,
  .summary-grid,
  .capacity-panel,
  .product-board {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    text-align: center;
  }
  .hero {
    gap: 34px;
  }

  .hero-control {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-control .hero-flow {
    grid-template-columns: 1fr;
  }
}
.hero-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 760px;
}

.flow-line {
  position: absolute;
  top: 29px;
  left: 42px;
  right: 42px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(105, 230, 213, 0.95),
    rgba(117, 167, 255, 0.65),
    rgba(167, 139, 250, 0.65)
  );
  transform-origin: left;
  animation: flowPulse 2.6s ease-in-out infinite;
  opacity: 0.85;
}

.flow-node {
  position: relative;
  z-index: 2;
  min-height: 82px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  align-content: center;
  gap: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.flow-node span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 158, 138, 0.18);
  color: var(--accent-2);
  font-weight: 900;
  font-size: 13px;
}

.flow-node strong {
  font-size: 12px;
  line-height: 1.15;
  color: var(--text);
}

.flow-node.active {
  border-color: rgba(105, 230, 213, 0.55);
  background: rgba(0, 158, 138, 0.16);
}

.flow-node.active span {
  background: var(--accent-2);
  color: #03110f;
  box-shadow: 0 0 26px rgba(105, 230, 213, 0.45);
}

@keyframes flowPulse {
  0% {
    transform: scaleX(0.08);
    opacity: 0.3;
  }

  45% {
    transform: scaleX(1);
    opacity: 0.95;
  }

  100% {
    transform: scaleX(1);
    opacity: 0.35;
  }
}

@media (max-width: 1100px) {
  .hero-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-line {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-flow {
    grid-template-columns: 1fr;
  }
}
.hero-card {
  align-self: center;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(105, 230, 213, 0.85), rgba(117, 167, 255, 0.35), rgba(167, 139, 250, 0.55));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card::after {
  content: "tarjeta viva";
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(105, 230, 213, 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(105, 230, 213, 0.35);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-control {
  position: relative;
  align-self: center;
  min-height: 560px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 18%, rgba(105, 230, 213, 0.18), transparent 28%),
    radial-gradient(circle at 85% 78%, rgba(167, 139, 250, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-control::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 28px;
  border: 1px dashed rgba(105, 230, 213, 0.20);
  pointer-events: none;
}

.control-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-bottom: 28px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(105, 230, 213, 0.12);
  border: 1px solid rgba(105, 230, 213, 0.30);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-control .hero-flow {
  margin-top: 0;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-control .flow-line {
  display: none;
}

.hero-control .flow-node {
  min-height: 80px;
}

.hero-control .hero-card {
  width: min(420px, 100%);
  margin: 34px auto 0;
  transform: none;
  background: rgba(16, 43, 58, 0.92);
}

.hero-control .hero-card::after {
  top: -15px;
}
.flow-node.completed {
  border-color: rgba(128, 227, 138, 0.38);
  background: rgba(128, 227, 138, 0.10);
}

.flow-node.completed span {
  background: rgba(128, 227, 138, 0.95);
  color: #041014;
}

.pulse-card {
  animation: pulseCard 0.55s ease;
}

@keyframes pulseCard {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }

  45% {
    transform: scale(1.025);
    box-shadow: 0 30px 100px rgba(105, 230, 213, 0.28);
  }

  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-node.completed {
  border-color: rgba(128, 227, 138, 0.38);
  background: rgba(128, 227, 138, 0.10);
}

.flow-node.completed span {
  background: rgba(128, 227, 138, 0.95);
  color: #041014;
}

.pulse-card {
  animation: pulseCard 0.55s ease;
}

@keyframes pulseCard {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }

  45% {
    transform: scale(1.025);
    box-shadow: 0 30px 100px rgba(105, 230, 213, 0.28);
  }

  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}
.journey-step h3 {
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.journey-step p {
  font-size: 16px;
  line-height: 1.48;
}

.journey-step span {
  flex-shrink: 0;
}
