:root {
  --bg: #06131f;
  --bg-soft: #0c1f31;
  --surface: rgba(10, 22, 35, 0.78);
  --surface-strong: rgba(12, 28, 44, 0.94);
  --surface-light: rgba(255, 255, 255, 0.06);
  --text: #ebf4fb;
  --muted: #9bb4c9;
  --line: rgba(132, 191, 231, 0.18);
  --primary: #53d6d1;
  --primary-strong: #27b5dd;
  --accent: #9effd7;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 181, 221, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(83, 214, 209, 0.14), transparent 25%),
    linear-gradient(180deg, #06131f 0%, #07111b 42%, #050b12 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 15, 24, 0.45);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 15, 24, 0.82);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  width: min(240px, 42vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  min-height: 54px;
  padding: 0 1.4rem;
  color: #04111a;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 16px 35px rgba(83, 214, 209, 0.25);
}

.btn-secondary,
.btn-outline {
  min-height: 54px;
  padding: 0 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-sm {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 -120px 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.82) 84%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.82) 84%, transparent 100%);
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  mix-blend-mode: screen;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  animation: float 10s ease-in-out infinite;
}

.orb-a {
  top: 5%;
  left: -5%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(39, 181, 221, 0.28), transparent 68%);
}

.orb-b {
  right: 8%;
  top: 12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(158, 255, 215, 0.16), transparent 70%);
  animation-delay: -2s;
}

.orb-c {
  right: -4%;
  bottom: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(83, 214, 209, 0.16), transparent 72%);
  animation-delay: -4s;
}

.grid-glow {
  position: absolute;
  inset: 10% 6% auto;
  height: 66%;
  border-radius: 40px;
  background-image:
    linear-gradient(rgba(124, 183, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 183, 219, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-panel,
.trust-strip,
.service-card,
.timeline-item,
.insight-card,
.stat-panel,
.contact-card,
.insight-block,
.section-copy {
  will-change: transform, opacity;
}

.eyebrow,
.mini-label,
.metric-label,
.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.eyebrow::before,
.mini-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 18px rgba(158, 255, 215, 0.4);
}

.hero h1,
.section h2 {
  margin: 1rem 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.25rem);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.hero-lead,
.section-copy p,
.service-card p,
.timeline-item p,
.highlight-copy p,
.contact-copy p,
.metric-card p,
.trust-grid p,
.insight-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #d8eaf7;
}

.hero-panel {
  position: relative;
  min-height: 540px;
}

.panel-card-main {
  position: relative;
  height: 100%;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(158, 255, 215, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(8, 20, 31, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-topline,
.stat-row,
.footer-wrap,
.contact-list,
.footer-brand,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-topline {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-topline,
.metric-stack,
.signal-bars {
  position: relative;
  z-index: 1;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #50f3a2;
  box-shadow: 0 0 16px rgba(80, 243, 162, 0.55);
}

.metric-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.service-card,
.timeline-item,
.insight-card,
.stat-panel,
.contact-card,
.trust-strip {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.metric-card strong,
.service-card h3,
.timeline-item h3,
.insight-card h3,
.contact-copy h2,
.highlight-copy h2 {
  display: block;
  margin-top: 0.7rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.8rem;
  margin-top: 2rem;
  height: 130px;
}

.signal-bars span {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(158, 255, 215, 0.25), rgba(39, 181, 221, 0.92));
  animation: equalize 1.8s ease-in-out infinite;
}

.signal-bars span:nth-child(1) { height: 45%; animation-delay: -0.1s; }
.signal-bars span:nth-child(2) { height: 80%; animation-delay: -0.4s; }
.signal-bars span:nth-child(3) { height: 60%; animation-delay: -0.7s; }
.signal-bars span:nth-child(4) { height: 95%; animation-delay: -0.2s; }
.signal-bars span:nth-child(5) { height: 55%; animation-delay: -0.5s; }
.signal-bars span:nth-child(6) { height: 72%; animation-delay: -0.3s; }

.floating-note {
  position: absolute;
  max-width: 250px;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(158, 255, 215, 0.2);
  background: rgba(8, 20, 31, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.floating-note span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.35;
}

.floating-note-top {
  top: 1rem;
  right: -0.5rem;
}

.floating-note-bottom {
  left: -1rem;
  bottom: 2rem;
}

.trust-strip {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1100px);
  margin: -1rem auto 0;
  border-radius: 28px;
  padding: 1.4rem;
}

.trust-grid,
.highlight-grid,
.contact-grid,
.split-layout {
  display: grid;
  gap: 1.5rem;
}

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

.section {
  padding: 6rem 0;
}

.section-services {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: transparent;
}

.section-services::before,
.section-services::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-services::before {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 181, 221, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(158, 255, 215, 0.1), transparent 24%),
    linear-gradient(180deg, #06131f 0%, rgba(6, 19, 31, 0.88) 24%, rgba(6, 19, 31, 0.5) 52%, rgba(5, 11, 18, 0.98) 100%);
}

.section-services::after {
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(5, 11, 18, 0.5) 76%, #050b12 100%),
    radial-gradient(circle at 15% 18%, rgba(158, 255, 215, 0.12), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(39, 181, 221, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(5, 11, 18, 0.82), rgba(5, 11, 18, 0.34), rgba(5, 11, 18, 0.82));
}

.section-services > .container {
  position: relative;
  z-index: 1;
}

.section-about {
  position: relative;
  z-index: 2;
}

.section-about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -150px;
  height: 240px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 19, 31, 0.96) 32%, rgba(6, 19, 31, 0.92) 58%, transparent 100%);
}

.section-about > .container {
  position: relative;
  z-index: 1;
}

.services-video-bg {
  position: absolute;
  inset: -150px 0 -140px 0;
  z-index: 0;
  opacity: 0.54;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.78) 46%, #000 58%, #000 78%, rgba(0, 0, 0, 0.56) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.78) 46%, #000 58%, #000 78%, rgba(0, 0, 0, 0.56) 88%, transparent 100%);
  transition: opacity 650ms ease;
}

.services-video-bg::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  background:
    linear-gradient(180deg, #06131f 0%, rgba(6, 19, 31, 0.92) 20%, rgba(6, 19, 31, 0.34) 46%, rgba(5, 11, 18, 0.8) 100%),
    linear-gradient(90deg, rgba(5, 11, 18, 0.92), transparent 18%, transparent 82%, rgba(5, 11, 18, 0.92));
  box-shadow: inset 0 0 160px rgba(5, 11, 18, 0.78);
}

.section-services:hover .services-video-bg {
  opacity: 0.62;
}

.services-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.95) contrast(1.08) brightness(0.78);
  transform: scale(1.06);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 48%, rgba(0, 0, 0, 0.68) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 48%, rgba(0, 0, 0, 0.68) 66%, transparent 100%);
  transition: opacity 900ms ease;
}

.services-video.is-active {
  opacity: 1;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.section-copy p + p {
  margin-top: 1rem;
}

.insight-block {
  display: grid;
  gap: 1rem;
}

.insight-card,
.service-card,
.timeline-item,
.stat-panel,
.contact-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.card-index,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #031018;
  background: linear-gradient(135deg, var(--accent), var(--primary-strong));
}

.section-heading {
  margin-bottom: 2rem;
}

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

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.service-card-data {
  --service-image: url("../img/services/analisis-de-datos.webp");
}

.service-card-software {
  --service-image: url("../img/services/soluciones-informaticas.webp");
}

.service-card-web {
  --service-image: url("../img/services/paginas-web.webp");
}

.service-card-infra {
  --service-image: url("../img/services/servidores.webp");
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-card::before {
  z-index: 0;
  background-image: var(--service-image);
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-card::after {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(158, 255, 215, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(6, 19, 31, 0.18), rgba(6, 19, 31, 0.76) 72%);
}

.service-card:hover::before {
  opacity: 0.42;
  transform: scale(1.08);
}

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

.service-card h3,
.timeline-item h3,
.insight-card h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.25rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.6rem;
  isolation: isolate;
}

.section-process {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background:
    linear-gradient(180deg, #050b12 0%, rgba(5, 11, 18, 0.96) 62%, transparent 100%);
}

.section-process > .container {
  position: relative;
  z-index: 1;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: calc(12.5% - 0.5rem);
  right: calc(12.5% - 0.5rem);
  top: 0.85rem;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}

.timeline::before {
  background: linear-gradient(90deg, transparent, rgba(132, 191, 231, 0.22), transparent);
}

.timeline::after {
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary-strong), transparent);
  box-shadow: 0 0 24px rgba(83, 214, 209, 0.36);
  transform-origin: left;
  animation: processFlow 5.8s ease-in-out infinite;
}

.timeline-item {
  --spot-x: 0%;
  --spot-y: -19.5rem;
  position: relative;
  z-index: 2;
  min-height: 260px;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.timeline-item:nth-child(1) {
  --spot-x: 210%;
}

.timeline-item:nth-child(2) {
  --spot-x: 105%;
}

.timeline-item:nth-child(3) {
  --spot-x: 0%;
}

.timeline-item:nth-child(4) {
  --spot-x: -105%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.timeline-item::after {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    radial-gradient(circle at 24% 18%, rgba(158, 255, 215, 0.09), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(39, 181, 221, 0.08), transparent 38%);
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.timeline-item:hover {
  border-color: rgba(158, 255, 215, 0.34);
  background: rgba(12, 28, 44, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 40px rgba(83, 214, 209, 0.08);
  transform: translateY(-8px);
}

.timeline-item:hover::after {
  opacity: 0.95;
}

.timeline-item.is-spotlighting {
  z-index: 5;
  transform: translate3d(var(--spot-x), var(--spot-y), 0) scale(1.02);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(83, 214, 209, 0.12);
}

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

.timeline-step {
  width: fit-content;
  border: 1px solid rgba(158, 255, 215, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: var(--accent);
  background: rgba(5, 15, 24, 0.58);
  box-shadow: 0 0 22px rgba(83, 214, 209, 0.12);
  animation: processPulse 3.2s ease-in-out infinite;
}

.timeline-item:nth-child(2) .timeline-step { animation-delay: 0.35s; }
.timeline-item:nth-child(3) .timeline-step { animation-delay: 0.7s; }
.timeline-item:nth-child(4) .timeline-step { animation-delay: 1.05s; }

.timeline-item h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.timeline-item p {
  max-width: 28ch;
}

.timeline-note {
  position: absolute;
  left: calc(100% + 1.1rem);
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  width: min(25rem, 31vw);
  color: rgba(234, 243, 250, 0.92);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 0 24px rgba(83, 214, 209, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-0.45rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.timeline-note::before {
  content: "";
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(83, 214, 209, 0.58);
}

.timeline-note-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 0.28rem;
  vertical-align: -0.12em;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 14px rgba(83, 214, 209, 0.72);
}

.timeline-note.is-active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.timeline-note.is-active .timeline-note-text::after {
  animation: processCaretBlink 0.78s step-end infinite;
}

.section-highlight {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 2rem;
}

.section-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 38%, rgba(83, 214, 209, 0.08), transparent 28%),
    radial-gradient(circle at 78% 48%, rgba(158, 255, 215, 0.06), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(6, 19, 31, 0.34) 28%, rgba(5, 11, 18, 0.3) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 52%, rgba(0, 0, 0, 0.66) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 52%, rgba(0, 0, 0, 0.66) 78%, transparent 100%);
}

.highlight-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.stat-panel {
  position: relative;
  display: grid;
  gap: 1rem;
}

.stat-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(158, 255, 215, 0.12), transparent);
  opacity: 0;
  animation: panelBreath 6s ease-in-out infinite;
}

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

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-glow-x: 50%;
  --tilt-glow-y: 50%;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--tilt-glow-x) var(--tilt-glow-y), rgba(158, 255, 215, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tilt-card.is-tilting {
  border-color: rgba(158, 255, 215, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44), 0 0 44px rgba(83, 214, 209, 0.1);
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

.stat-row {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.stat-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 255, 215, 0.52), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  animation: statLineFocus 6s ease-in-out infinite;
}

.stat-row:nth-child(2)::after {
  animation-delay: 1.2s;
}

.stat-row:nth-child(3)::after {
  animation-delay: 2.4s;
}

.stat-row:last-child {
  border-bottom: 0;
}

.stat-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.stat-row span {
  color: var(--muted);
  text-align: right;
  max-width: 26ch;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-list {
  margin-top: 2rem;
  flex-direction: column;
  align-items: flex-start;
}

.contact-list a {
  font-size: 1.05rem;
  color: var(--text);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form label {
  display: grid;
  gap: 0.5rem;
}

.lead-form span {
  color: #d8eaf7;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(158, 255, 215, 0.5);
  box-shadow: 0 0 0 4px rgba(83, 214, 209, 0.1);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.checkbox-row span,
.form-note {
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-wrap {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-brand,
.footer-meta {
  flex-wrap: wrap;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-brand p,
.footer-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.site-version {
  color: rgba(155, 180, 201, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.timeline .timeline-item.reveal.is-visible {
  transition-delay: 0ms;
}

.timeline .timeline-item.reveal.is-visible.is-spotlighting {
  z-index: 5;
  transform: translate3d(var(--spot-x), var(--spot-y), 0) scale(1.02);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(83, 214, 209, 0.12);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.75); opacity: 0.78; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes processFlow {
  0% {
    transform: scaleX(0);
    opacity: 0.2;
  }
  42%,
  68% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.18;
  }
}

@keyframes processPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(83, 214, 209, 0.12);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 28px rgba(158, 255, 215, 0.28);
    transform: translateY(-1px);
  }
}

@keyframes processFlowVertical {
  0% {
    transform: scaleY(0);
    opacity: 0.2;
  }
  42%,
  68% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0.18;
  }
}

@keyframes processCaretBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes panelBreath {
  0%,
  100% {
    opacity: 0;
  }
  48%,
  62% {
    opacity: 1;
  }
}

@keyframes statLineFocus {
  0%,
  18% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  28%,
  46% {
    opacity: 1;
    transform: scaleX(1);
  }
  64%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-layout,
  .highlight-grid,
  .contact-grid,
  .services-grid,
  .timeline,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    min-height: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 3rem;
  }

  .timeline-item {
    animation: none;
  }

  .timeline-note {
    display: none;
  }

  .timeline::before,
  .timeline::after {
    left: 24px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .timeline::after {
    transform-origin: top;
    animation-name: processFlowVertical;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(6, 19, 31, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero,
  .section {
    padding: 4.5rem 0;
  }

  .hero-grid,
  .split-layout,
  .highlight-grid,
  .contact-grid,
  .services-grid,
  .timeline,
  .trust-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .panel-card-main {
    min-height: 0;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .trust-strip {
    margin-top: 1rem;
  }

  .footer-wrap,
  .panel-topline,
  .stat-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-row span {
    text-align: left;
  }

  .timeline {
    padding-top: 0;
    padding-left: 2.5rem;
  }

  .timeline-item {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .services-video-bg video {
    display: none;
  }

  .timeline::after,
  .timeline-item,
  .timeline-step,
  .timeline-note,
  .timeline-note-text,
  .timeline-note-text::after,
  .stat-panel::before,
  .stat-row::after {
    animation: none !important;
  }
}

.portal-body {
  background:
    radial-gradient(circle at top left, rgba(39, 181, 221, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(158, 255, 215, 0.12), transparent 22%),
    linear-gradient(180deg, #07131f 0%, #091724 55%, #040a11 100%);
}

.portal-body.portal-modal-open {
  overflow: hidden;
}

.portal-shell {
  min-height: 100vh;
}

.portal-main {
  padding: 3.5rem 0 5rem;
}

.portal-login {
  position: relative;
}

.portal-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 2rem;
  align-items: center;
}

.portal-copy h1,
.portal-section-head h1 {
  margin: 1rem 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.portal-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  max-width: 10ch;
}

.portal-benefits,
.portal-card-grid,
.portal-dashboard-grid {
  display: grid;
  gap: 1rem;
}

.portal-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.portal-mini-card,
.portal-card,
.portal-stat {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 28, 44, 0.95), rgba(8, 17, 28, 0.92));
  box-shadow: var(--shadow);
}

.portal-mini-card {
  padding: 1.25rem;
}

.portal-mini-card strong,
.portal-card strong,
.portal-stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.portal-mini-card p,
.portal-card p,
.portal-stat p,
.portal-sidebar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portal-card,
.portal-stat {
  padding: 1.5rem;
}

.portal-alert {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  width: min(420px, calc(100vw - 2rem));
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 16px;
  background: rgba(255, 107, 107, 0.1);
  color: #ffd5d5;
  font-weight: 700;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease;
}

.portal-alert.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.portal-alert-success {
  border-color: rgba(83, 214, 209, 0.28);
  background: rgba(83, 214, 209, 0.12);
  color: #d9fffb;
}

.portal-alert-error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
  color: #ffd5d5;
}

.portal-form {
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 19, 31, 0.82);
  box-shadow: var(--shadow);
}

.portal-top-nav {
  gap: 0.9rem;
}

.portal-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.98), rgba(5, 13, 21, 0.96)),
    radial-gradient(circle at top, rgba(83, 214, 209, 0.12), transparent 40%);
}

.portal-sidebar-brand {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.portal-sidebar-logo {
  width: 190px;
  max-width: 100%;
}

.portal-sidebar-copy {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.portal-sidebar-copy strong {
  font-size: 1.5rem;
}

.portal-side-nav {
  display: grid;
  gap: 0.75rem;
}

.portal-nav-link {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 1rem 1.05rem;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-nav-link:hover,
.portal-nav-link.is-active {
  color: var(--text);
  border-color: rgba(83, 214, 209, 0.4);
  background: linear-gradient(135deg, rgba(39, 181, 221, 0.18), rgba(83, 214, 209, 0.1));
  transform: translateX(2px);
}

.portal-nav-link-exit {
  display: inline-flex;
  align-items: center;
}

.portal-action-btn {
  min-height: 52px;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-action-btn:hover,
.portal-action-btn:focus-visible {
  color: var(--text);
  border-color: rgba(83, 214, 209, 0.4);
  background: linear-gradient(135deg, rgba(39, 181, 221, 0.18), rgba(83, 214, 209, 0.1));
  transform: translateX(2px);
  outline: none;
}

.portal-action-btn-danger:hover,
.portal-action-btn-danger:focus-visible {
  border-color: rgba(255, 107, 107, 0.38);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(255, 159, 122, 0.08));
}

.portal-inline-form {
  margin: 0;
}

.portal-inline-form-full {
  height: 100%;
}

.portal-action-group-cell {
  vertical-align: middle;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-action-group-cell .portal-inline-form {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 8, 14, 0.76);
  backdrop-filter: blur(10px);
}

.portal-modal {
  width: min(1320px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(83, 214, 209, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 22, 35, 0.98), rgba(5, 13, 21, 0.98));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4);
}

.portal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-modal-head h2 {
  margin: 0.45rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.portal-modal-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.portal-modal-table-shell {
  max-height: min(50vh, 560px);
}

.portal-modal-actions {
  justify-content: flex-end;
}

.portal-content {
  padding: 2.2rem;
}

.portal-content-panel {
  display: grid;
  gap: 1.5rem;
}

.portal-content-panel[hidden] {
  display: none !important;
}

.portal-dashboard-grid.portal-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-dashboard-grid.portal-kpi-grid.portal-modal-kpi-grid-compact {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 0.55rem;
}

.portal-modal-kpi-grid-compact .portal-stat {
  padding: 0.75rem;
}

.portal-modal-kpi-grid-compact .portal-stat strong {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.portal-modal-kpi-grid-compact .portal-stat p {
  font-size: 0.76rem;
  line-height: 1.3;
}

.portal-modal-kpi-grid-compact .metric-label {
  font-size: 0.72rem;
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-section-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
}

.portal-card-grid,
.portal-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-form-card {
  display: grid;
  gap: 1.5rem;
}

.portal-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-block-head h2,
.portal-block-head h3 {
  margin: 0.45rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.portal-block-head p,
.portal-draft-head span {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.portal-block-head-inline {
  margin-bottom: 0.5rem;
}

.portal-block-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.portal-block-actions p {
  margin: 0;
}

.portal-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.portal-data-form {
  display: grid;
  gap: 1.25rem;
}

.portal-form-grid {
  display: grid;
  gap: 1rem;
}

.portal-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.portal-form-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-form-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.portal-form-grid-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.portal-field {
  display: grid;
  gap: 0.55rem;
}

.portal-field span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  border-color: rgba(83, 214, 209, 0.55);
  box-shadow: 0 0 0 4px rgba(83, 214, 209, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.portal-field input::placeholder,
.portal-field textarea::placeholder {
  color: rgba(155, 180, 201, 0.68);
}

.portal-field input[type="number"]::-webkit-outer-spin-button,
.portal-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.portal-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.portal-field-full {
  grid-column: 1 / -1;
}

.portal-field-action {
  align-content: end;
}

.portal-field-action .btn {
  min-height: 52px;
}

.portal-item-builder {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-token-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: text;
}

.portal-token-field:focus-within {
  border-color: rgba(83, 214, 209, 0.55);
  box-shadow: 0 0 0 4px rgba(83, 214, 209, 0.12);
}

.portal-token-field input {
  flex: 1;
  min-width: 180px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  margin-left: -0.2rem;
}

.portal-token-field input:focus {
  box-shadow: none;
}

.portal-token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-token-chips:empty {
  display: none;
}

.portal-token-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.2rem 0.45rem 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(83, 214, 209, 0.15);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-token-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.portal-draft-list {
  display: grid;
  gap: 0.85rem;
}

.portal-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-draft-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.portal-draft-counter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(39, 181, 221, 0.25), rgba(83, 214, 209, 0.18));
  border: 1px solid rgba(83, 214, 209, 0.28);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.portal-draft-item,
.portal-empty-state-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(5, 15, 24, 0.46);
}

.portal-draft-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-draft-item-head strong {
  margin: 0 0 0.35rem;
}

.portal-draft-item-head p,
.portal-empty-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.portal-remove-btn {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.08);
  color: #ffd0d0;
  font-weight: 700;
  cursor: pointer;
}

.portal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.portal-form-actions-split {
  align-items: center;
  justify-content: space-between;
}

.portal-import-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.portal-import-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-import-panel strong {
  margin: 0.45rem 0 0.35rem;
}

.portal-sales-placeholder {
  display: none !important;
}

.portal-dashboard-placeholder {
  display: none !important;
}

.portal-content-panel[data-panel="acciones-comerciales"] > article:nth-of-type(2) .portal-data-table th:nth-child(4),
.portal-content-panel[data-panel="acciones-comerciales"] > article:nth-of-type(2) .portal-data-table td:nth-child(4),
.portal-content-panel[data-panel="acciones-comerciales"] > article:nth-of-type(2) .portal-data-table th:nth-child(12),
.portal-content-panel[data-panel="acciones-comerciales"] > article:nth-of-type(2) .portal-data-table td:nth-child(12) {
  display: none;
}

.portal-chart-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.portal-chart-card {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.portal-chart-card-wide {
  grid-column: 1 / -1;
}

.portal-apex-chart {
  min-height: 360px;
  padding: 0.35rem 0.1rem 0;
}

.portal-apex-chart .apexcharts-tooltip,
.portal-apex-chart .apexcharts-menu {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(8, 19, 31, 0.96) !important;
  color: var(--text);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.portal-apex-chart .apexcharts-tooltip-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.portal-apex-chart .apexcharts-menu-item:hover {
  background: rgba(83, 214, 209, 0.14) !important;
}

.portal-combo-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 0.7rem;
  min-height: 240px;
  padding: 0.85rem 0.7rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(255, 255, 255, 0.025);
}

.portal-combo-chart-svg {
  display: block;
  min-height: 0;
  padding: 0.75rem;
}

.portal-combo-chart-svg svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  overflow: visible;
}

.portal-chart-axis {
  stroke: rgba(155, 180, 201, 0.45);
  stroke-width: 2;
}

.portal-chart-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.portal-chart-bar {
  rx: 4;
}

.portal-chart-bar-affected {
  fill: rgba(83, 214, 209, 0.92);
}

.portal-chart-bar-neutral {
  fill: rgba(39, 181, 221, 0.36);
}

.portal-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.portal-chart-line-total {
  stroke: #ffd166;
}

.portal-chart-line-affected {
  stroke: rgba(83, 214, 209, 0.96);
}

.portal-chart-point-total {
  fill: #ffd166;
  stroke: #06131f;
  stroke-width: 2;
}

.portal-chart-x-label {
  fill: rgba(155, 180, 201, 0.9);
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
}

.portal-combo-column {
  display: grid;
  grid-template-rows: minmax(170px, 1fr) auto;
  gap: 0.55rem;
  min-width: 0;
}

.portal-combo-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 170px;
}

.portal-combo-bar {
  width: min(28px, 70%);
  min-height: 2px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(83, 214, 209, 0.94), rgba(39, 181, 221, 0.72));
  box-shadow: 0 8px 20px rgba(39, 181, 221, 0.16);
}

.portal-combo-point {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #06131f;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.16);
  transform: translate(-50%, 50%);
}

.portal-combo-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-ratio-chart {
  display: flex;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.portal-ratio-segment {
  display: block;
  min-width: 2px;
}

.portal-ratio-segment-affected {
  background: linear-gradient(90deg, rgba(83, 214, 209, 0.96), rgba(39, 181, 221, 0.84));
}

.portal-ratio-segment-neutral {
  background: rgba(155, 180, 201, 0.18);
}

.portal-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.portal-legend-dot-affected {
  background: #53d6d1;
}

.portal-legend-dot-neutral {
  background: rgba(155, 180, 201, 0.5);
}

.portal-legend-dot-total {
  background: #ffd166;
}

.portal-legend-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.portal-legend-line-affected {
  background: rgba(83, 214, 209, 0.96);
}

.portal-bar-list {
  display: grid;
  gap: 0.85rem;
}

.portal-bar-row {
  display: grid;
  gap: 0.45rem;
}

.portal-bar-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-bar-row-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-bar-row-head strong {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.portal-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.portal-bar-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(39, 181, 221, 0.82), rgba(83, 214, 209, 0.96));
}

.portal-chart-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-upload-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-hidden-file-input {
  display: none;
}

.portal-filter-form {
  margin-bottom: 0.5rem;
}

.portal-table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.portal-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  background: rgba(6, 19, 31, 0.62);
}

.portal-data-table th,
.portal-data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.portal-data-table th {
  position: sticky;
  top: 0;
  background: rgba(8, 19, 31, 0.96);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.portal-data-table td {
  color: var(--muted);
}

.portal-row-group-start td {
  border-top: 1px solid rgba(83, 214, 209, 0.22);
}

.portal-row-group-start td:first-child {
  box-shadow: inset 3px 0 0 rgba(83, 214, 209, 0.26);
}

.portal-row-group-continue td {
  background: rgba(255, 255, 255, 0.015);
}

.portal-data-table-compact {
  min-width: 780px;
}

.portal-data-table-compact th,
.portal-data-table-compact td {
  padding: 0.85rem 0.9rem;
}

.portal-empty-state {
  text-align: center !important;
  color: var(--muted);
  padding: 2rem 1rem !important;
}

.portal-body {
  font-size: 0.92rem;
}

.portal-app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.portal-sidebar {
  padding: 1.45rem 1.1rem;
}

.portal-sidebar-logo {
  width: 160px;
}

.portal-sidebar-copy {
  margin-bottom: 1.35rem;
}

.portal-sidebar-copy strong {
  font-size: 1.25rem;
}

.portal-side-nav {
  gap: 0.55rem;
}

.portal-nav-link {
  padding: 0.78rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

.portal-content {
  padding: 1.45rem;
}

.portal-content-panel {
  gap: 1rem;
}

.portal-section-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
}

.portal-chip {
  min-height: 34px;
  padding: 0 0.8rem;
  font-size: 0.85rem;
}

.portal-card,
.portal-stat {
  padding: 1rem;
  border-radius: 18px;
}

.portal-card strong,
.portal-stat strong {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.portal-card p,
.portal-stat p,
.portal-sidebar-copy p,
.portal-block-head p,
.portal-draft-head span {
  line-height: 1.45;
}

.portal-form-card,
.portal-data-form {
  gap: 0.9rem;
}

.portal-block-head h2,
.portal-block-head h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.portal-form-grid {
  gap: 0.75rem;
}

.portal-field {
  gap: 0.38rem;
}

.portal-field span,
.metric-label {
  font-size: 0.82rem;
}

.portal-field input,
.portal-field select,
.portal-field textarea,
.portal-action-btn,
.portal-field-action .btn {
  min-height: 42px;
  font-size: 0.9rem;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  padding: 0 0.75rem;
}

.portal-item-builder,
.portal-import-panel {
  padding: 1rem;
  border-radius: 16px;
}

.portal-table-shell {
  border-radius: 16px;
}

.portal-data-table {
  font-size: 0.84rem;
}

.portal-data-table th,
.portal-data-table td {
  padding: 0.65rem 0.7rem;
}

.portal-data-table-compact th,
.portal-data-table-compact td {
  padding: 0.6rem 0.65rem;
}

@media (max-width: 1100px) {
  .portal-dashboard-grid.portal-kpi-grid.portal-modal-kpi-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-login-grid,
  .portal-app-shell,
  .portal-card-grid,
  .portal-chart-grid,
  .portal-dashboard-grid,
  .portal-form-grid-5,
  .portal-form-grid-4,
  .portal-form-grid-6,
  .portal-form-grid-8 {
    grid-template-columns: 1fr;
  }

  .portal-kpi-grid {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-grid.portal-kpi-grid.portal-modal-kpi-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .portal-main,
  .portal-content {
    padding: 1.5rem 0 2.5rem;
  }

  .portal-login-grid,
  .portal-benefits,
  .portal-form-grid-2,
  .portal-form-grid-3 {
    grid-template-columns: 1fr;
  }

  .portal-section-head {
    flex-direction: column;
  }

  .portal-block-head,
  .portal-block-actions,
  .portal-draft-head,
  .portal-draft-item-head,
  .portal-form-actions,
  .portal-import-actions,
  .portal-import-panel,
  .portal-modal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-top-nav {
    position: static;
    display: flex;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
