/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --teal: #1c6478;
  --teal-dark: #143f4e;
  --teal-light: #2a8099;
  --teal-pale: #e8f4f8;
  --pink: #e0378a;
  --pink-light: #f05da0;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #374151;
  --gray-800: #1e293b;
  --font: 'Aptos', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .13), 0 4px 12px rgba(0, 0, 0, .08);
}

/* ── TERMINAL EASTER EGG ────────────────────────────── */
#terminalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#terminalOverlay.active {
  display: flex;
}

#terminalBox {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  width: min(680px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', monospace;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  overflow: hidden;
}

#terminalHeader {
  background: #161b22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
  flex-shrink: 0;
}

#terminalHeader span {
  font-size: .78rem;
  color: #8b949e;
  margin-left: 8px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.term-dot-red   { background: #ff5f57; }
.term-dot-yellow{ background: #febc2e; }
.term-dot-green { background: #28c840; }

#terminalOutput {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-size: .88rem;
  line-height: 1.7;
  color: #c9d1d9;
  min-height: 200px;
  max-height: 50vh;
  white-space: pre-wrap;
}

#terminalOutput div {
  min-height: 1.2em;
}

.term-option {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background .15s;
}

.term-option.selected {
  background: rgba(224,55,138,.15);
  outline: 1px solid rgba(224,55,138,.4);
}

#terminalOutput .t-green  { color: #3fb950; }
#terminalOutput .t-pink   { color: #e0378a; }
#terminalOutput .t-teal   { color: #79c0ff; }
#terminalOutput .t-dim    { color: #8b949e; }
#terminalOutput .t-white  { color: #fff; font-weight: 700; }
#terminalOutput .t-cmd    { color: #e0378a; }

#terminalInputRow {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #30363d;
  gap: 8px;
  flex-shrink: 0;
}

#terminalPrompt {
  color: #3fb950;
  font-size: .88rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

#terminalInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-family: 'Courier New', monospace;
  font-size: .88rem;
  caret-color: #e0378a;
}

/* ── SERVICE CARDS 3D ───────────────────────────────── */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── SCROLL PROGRESS BAR ────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* usado para anclas de nav; snap lo complementa */
}

/* Offset para navbar fixed */
[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── UTILITIES ──────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 50px 0;
}

.section-sm {
  padding: 64px 0;
}

.tag {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-align: center;
}

.heading-xl {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.heading-lg {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.heading-md {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.accent {
  color: var(--pink);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 4px 20px rgba(224, 55, 138, .3);
}

.btn-primary:hover {
  background: var(--pink-light);
  border-color: var(--pink-light);
  box-shadow: 0 0 0 3px rgba(224, 55, 138, .35), 0 4px 20px rgba(224, 55, 138, .4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(28, 100, 120, .3);
}

/* ── GRID HELPERS ───────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
}

/* ── SCROLL ANIMATIONS ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

.scale-in.visible {
  opacity: 1;
  animation-play-state: running;
}

.slide-left {
  opacity: 0;
  animation: slideInLeft 0.7s ease-out forwards;
}

.slide-left.visible {
  opacity: 1;
  animation-play-state: running;
}

.slide-right {
  opacity: 0;
  animation: slideInRight 0.7s ease-out forwards;
}

.slide-right.visible {
  opacity: 1;
  animation-play-state: running;
}

/* ── KEYFRAMES ──────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── TOAST NOTIFICATIONS ────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

.toast {
  padding: 16px 20px;
  border-radius: 8px;
  background: #fff;
  border-left: 4px solid #10b981;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  animation: slideIn .3s ease forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
}

.toast.error {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}

.toast.success {
  border-left-color: #10b981;
  background: #f0fdf4;
  color: #15803d;
}

.toast.info {
  border-left-color: #3b82f6;
  background: #eff6ff;
  color: #1e40af;
}

.toast::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
}

.toast.removing {
  animation: slideOut .3s ease forwards;
}

/* ── SCROLLBAR CORPORATIVO ──────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal), var(--pink));
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--teal-light), var(--pink-light));
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--gray-100);
}

/* ── SCROLL SNAP ────────────────────────────────────── */
html {
  scroll-snap-type: y proximity;
}

.snap-section {
  scroll-snap-align: none;
}

/* ── PRELOADER ──────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--teal-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloaderCube {
  width: 140px;
  height: 140px;
}

#preloaderCube polygon,
#preloaderCube line {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preloader-label {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: preloaderPulse 1.2s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  from { opacity: .4; }
  to   { opacity: 1; }
}

/* ── HERO INPUT ─────────────────────────────────────── */
.hero-search {
  margin-top: 32px;
  position: relative;
  max-width: 420px;
}

.hero-search-input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 12px 48px 12px 20px;
  font-family: var(--font);
  font-size: .9rem;
  color: #fff;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}

.hero-search-input::placeholder {
  color: rgba(255,255,255,.45);
}

.hero-search-input:focus {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
}

.hero-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.4);
  font-size: 1rem;
  pointer-events: none;
}

.hero-search-suggestion {
  margin-top: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  min-height: 1.4em;
  padding-left: 4px;
  transition: opacity .2s;
}

.hero-search-suggestion .suggestion-tag {
  display: inline-block;
  background: rgba(224,55,138,.2);
  border: 1px solid rgba(224,55,138,.35);
  color: var(--pink);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-right: 6px;
  cursor: pointer;
  transition: background .2s;
}

.hero-search-suggestion .suggestion-tag:hover {
  background: rgba(224,55,138,.35);
}

@media (max-width: 600px) {
  .hero-search {
    max-width: 100%;
    margin-top: 20px;
  }
}

/* ── CTA FLOTANTE ───────────────────────────────────── */
#floatingCta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

#floatingCta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(224, 55, 138, .45);
  text-decoration: none;
  transition: box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.floating-cta-btn:hover {
  background: var(--pink-light);
  box-shadow: 0 0 0 4px rgba(224, 55, 138, .25), 0 8px 28px rgba(224, 55, 138, .4);
}

.floating-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: .8;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* ── CUSTOM CURSOR ──────────────────────────────────── */
@media (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

#customCursor {
  position: fixed;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 99998;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .3s ease;
  transform: translate(0, 0);
  filter: drop-shadow(0 0 6px rgba(224,55,138,0.6));
}

#customCursor.visible {
  opacity: 1;
}

#customCursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

#cursorTrail {
  position: fixed;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 99997;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .3s ease;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(224, 55, 138, .5);
  border-radius: 50%;
}

#cursorTrail.visible {
  opacity: 1;
}

/* ── HERO AVAILABLE BADGE ───────────────────────────── */
.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #6ee7b7;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* ── LOADER SPINNER ─────────────────────────────────── */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
