/* ============================================
   STELLA SISTEMAS — Design tokens
   ============================================ */
:root {
  --navy-950: #021639;
  --navy-900: #041d47;
  --navy-800: #0a2a5c;
  --navy-700: #123566;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --gold: #ffd700;
  --gold-dim: #c9a800;

  --white: #ffffff;
  --fog: #a9b4c9;
  --fog-dim: #6d7893;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(255, 215, 0, 0.08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; color: var(--fog); }

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--white); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 22, 57, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

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

.brand-mark {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-word-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--fog);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--fog);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link[aria-current="page"] { color: var(--gold); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--navy-950) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 110px 24px 100px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.08rem;
  max-width: 46ch;
}

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

/* --- signature panel --- */
.hero-panel { position: relative; }

.panel-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fog-dim);
}

.panel-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fog);
  letter-spacing: 0.04em;
}

.panel-rows {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.panel-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 14px;
  border-radius: 10px;
  transition: background 0.2s var(--ease);
}
.panel-row:hover { background: rgba(255, 255, 255, 0.03); }

.row-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.row-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white);
}

.row-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fog);
  white-space: nowrap;
}
.row-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6);
  animation: pulse 2.4s infinite;
}
.panel-row:nth-child(2) .row-status i { animation-delay: 0.6s; }
.panel-row:nth-child(3) .row-status i { animation-delay: 1.2s; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(55, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); }
}

.panel-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 0.06) 50%, rgba(255, 215, 0, 0) 100%);
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { transform: translateY(-140px); }
  100% { transform: translateY(340px); }
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: 56ch;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--white);
}

section { padding: 96px 0; }
.hero { padding-top: 110px; padding-bottom: 100px; }

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--navy-950);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.service-list li {
  font-size: 0.86rem;
  color: var(--fog);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.service-link {
  display: inline-flex;
  margin-top: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-link:hover {
  color: var(--white);
  transform: translateX(2px);
}

/* ============ PROCESS ============ */
.process {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 2px solid var(--line-strong);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.process-step h3 {
  font-size: 1.05rem;
  color: var(--white);
}
.process-step p { font-size: 0.88rem; }

/* ============ DIFFERENTIALS ============ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diff-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.diff-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}
.diff-card p { font-size: 0.9rem; }

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(255, 215, 0, 0.1), transparent 65%),
    var(--navy-900);
  border-top: 1px solid var(--line);
}

.contact-inner {
  text-align: center;
  max-width: 620px;
}

.contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.contact-lead { font-size: 1.02rem; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-footer .brand-word { font-size: 0.85rem; }
.brand-footer .brand-mark { height: 30px; }

.footer-copy {
  font-size: 0.82rem;
  color: var(--fog-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.footer-links a { color: var(--fog); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold); }

/* ============ FLOATING WHATSAPP ============ */
.float-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-950);
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.04); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-menu.is-open { max-height: 320px; }
  .nav-link {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { border-radius: 0; border: none; }

  .process-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
