@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('outfit-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('space-grotesk-latin.woff2') format('woff2');
}

:root {
  --bg: #050505;
  --border: #222222;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --primary: #00D369;
  --glow: rgba(0, 211, 105, 0.25);
  --glow-strong: rgba(0, 211, 105, 0.45);
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fa-solid, .fa-brands {
  display: inline-block;
  width: 1em;
  min-width: 1em;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: '';
}

body::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 211, 105, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 211, 105, 0.04) 0%, transparent 50%);
}

body::after {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 211, 105, 0.14), transparent 14%),
    radial-gradient(circle at 80% 25%, rgba(0, 229, 255, 0.10), transparent 16%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.06), transparent 20%);
  opacity: 0.85;
  filter: blur(32px);
  animation: driftGlow 28s linear infinite;
}

@keyframes driftGlow {
  0% { transform: translate(0%, 0%); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, 3%); }
  100% { transform: translate(0%, 0%); }
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline-green {
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline-green:hover {
  background: rgba(0, 211, 105, 0.08);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 5, 5, 0.75);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  padding: 0.25rem;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer h4 {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}

.footer-links a,
.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover,
.contact-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--glow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item i {
  width: 16px;
  margin-top: 3px;
  color: var(--primary);
  text-align: center;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--primary);
}

.footer-legal-links span {
  color: var(--border);
}

.legal-content {
  max-width: 1000px;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 2rem;
}

.legal-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-content .legal-hero h1 {
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
}

.legal-lead p {
  max-width: none;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
}

.company-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(0, 211, 105, 0.24);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(0, 211, 105, 0.11), rgba(17, 17, 17, 0.94) 55%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.company-card-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.company-card-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 211, 105, 0.35);
  border-radius: 13px;
  background: rgba(0, 211, 105, 0.12);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.company-card-brand > div,
.company-card-number {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.company-card-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-card-brand strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.company-card-number {
  align-items: flex-end;
  text-align: right;
}

.company-card-number strong {
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
}

.legal-commitment {
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.legal-commitment-number {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.legal-commitment h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
}

.legal-commitment p {
  max-width: 78ch;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
}

.legal-commitment p:last-child {
  margin-bottom: 0;
}

.legal-notice {
  max-width: 900px;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(0, 211, 105, 0.3);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: rgba(0, 211, 105, 0.06);
}

.legal-notice strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

.legal-toc {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 2fr;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.82);
}

.legal-toc-heading .legal-eyebrow {
  margin-bottom: 0.3rem;
}

.legal-toc-heading h2 {
  font-size: 1.2rem;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-section;
}

.legal-toc li {
  min-width: 0;
  margin: 0;
  counter-increment: legal-section;
}

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc a::before {
  color: var(--primary);
  content: counter(legal-section, decimal-leading-zero);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-sections {
  display: grid;
  gap: 1rem;
}

.legal-card {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.96), rgba(10, 10, 10, 0.92));
}

.legal-card h2 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  line-height: 1.35;
}

.legal-card p,
.legal-card ul {
  max-width: 78ch;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
}

.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  padding-left: 1.25rem;
}

.legal-card li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: #e8e8e8;
  font-weight: 500;
}

.legal-card a {
  color: var(--primary);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(0, 211, 105, 0.35);
  text-underline-offset: 0.18em;
}

.legal-card a:hover {
  text-decoration-color: currentColor;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 211, 105, 0.35);
  border-radius: 50%;
  background: rgba(0, 211, 105, 0.12);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(0, 211, 105, 0.18);
  transform: translateY(-2px);
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 6.25rem;
  z-index: 1004;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 20px var(--glow);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-strong);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 1002;
    flex-direction: column;
    gap: 0.75rem;
    width: min(320px, 100%);
    max-height: calc(100vh - var(--header-h));
    padding: 2rem 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(24px);
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-actions .btn-outline-green {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .legal-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .company-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .company-card-number {
    align-items: flex-start;
    padding-left: calc(44px + 0.9rem);
    text-align: left;
  }

  .legal-toc {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 5.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after {
    animation: none;
  }
}
