﻿:root {
  --bg-deep: #1d345f;
  --bg-warm-a: #ff6c4e;
  --bg-warm-b: #f3a53f;
  --surface: #eceff2;
  --surface-strong: #ffffff;
  --text: #1f2f5f;
  --muted: #7f91ab;
  --accent: #4f65d6;
  --line: #dbe2ea;
  --shadow: 0 14px 30px rgba(12, 28, 56, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(102deg, var(--bg-warm-a) 0%, #f58245 45%, var(--bg-warm-b) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 26%, 0 40%);
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: radial-gradient(60% 40% at 50% 18%, rgba(255, 255, 255, 0.16), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--bg-deep);
  clip-path: polygon(0 38%, 100% 24%, 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.topbar {
  position: relative;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  background: rgba(17, 36, 72, 0.82);
  box-shadow: 0 10px 24px rgba(8, 18, 38, 0.28);
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #f7faff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  color: #f7faff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 1;
}

.menu a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

main {
  max-width: 1320px;
  margin: 2.4rem auto 0;
  padding: 1rem 1.4rem 2rem;
}

.hero,
.section {
  background: var(--surface);
  border: 1px solid rgba(31, 47, 95, 0.08);
  border-radius: 0.55rem;
  box-shadow: var(--shadow);
  margin: 0 auto 1.2rem;
  width: min(1220px, 100%);
}

.hero {
  padding: 2.2rem 1.4rem 2rem;
  margin-top: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  color: #35508a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.lead {
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.05rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(79, 101, 214, 0.35);
}

.btn-primary:hover {
  background: #4a5ecf;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #37c069;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-strong);
}

.section {
  padding: 1.5rem 1.2rem;
}

.section p {
  color: var(--muted);
}

.section ul,
.section ol {
  color: var(--text);
  padding-left: 1.2rem;
}

.section code {
  background: #f9fbfd;
  border: 1px solid #d9e2ec;
  border-radius: 0.35rem;
  padding: 0.08rem 0.35rem;
  color: #344767;
  font-size: 0.92em;
}

.section pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.9rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.section pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stats article {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.8rem;
}

.stats strong {
  display: block;
  font-size: 1.7rem;
  font-family: "Montserrat", sans-serif;
  color: #344767;
}

.cards {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
}

.docs-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.85rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.docs-nav h3 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.docs-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
}

.docs-nav .sub-link {
  font-size: 0.88rem;
  padding: 0.18rem 0 0.18rem 0.7rem;
}

.docs-nav a:hover {
  color: var(--accent);
}

.docs-nav::-webkit-scrollbar {
  width: 8px;
}

.docs-nav::-webkit-scrollbar-thumb {
  background: #c8d3e3;
  border-radius: 999px;
}

.docs-content {
  display: grid;
  gap: 0.8rem;
}

.docs-block {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: hidden;
}

.manual-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 1.5rem auto 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
}


.manual-image--button {
  width: auto;
  max-width: 220px;
  max-height: 72px;
  margin: 0.55rem 0 1rem;
  border-radius: 0.35rem;
}
.manual-gallery {
  display: grid;
  gap: 0.7rem;
}

.docs-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

#employee li[id],
#empresa li[id],
#empresa span[id] {
  scroll-margin-top: 6rem;
}

.contract-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d6defa;
  background: #f3f5ff;
  color: #344767;
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-alert {
  border: 1px solid #ffe3a1;
  background: #fff8e6;
  color: #7b4f00;
  border-radius: 0.5rem;
  padding: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.contract-intro {
  background: #fbfcff;
}

.contract-intro p {
  margin: 0.55rem 0;
}

.contract-toc a {
  font-size: 0.88rem;
  line-height: 1.35;
}

.contract-section {
  scroll-margin-top: 5.5rem;
}

.contract-section h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  color: #344767;
}

.contract-section p {
  margin: 0.55rem 0;
  text-align: left;
}

.contract-section ul {
  margin: 0.45rem 0 0.7rem;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, #eef2f7, #f8fbff);
}

.footer {
  max-width: 1320px;
  margin: 2.2rem auto 0;
  padding: 0.4rem 1.4rem 2.2rem;
  color: #8ea2bf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

.footer strong {
  color: #5f7fff;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
}

.footer-links a {
  color: #7288a9;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    max-height: 48vh;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: calc(100% - 1.6rem);
    top: 0.8rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    right: 0;
    top: 3.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    min-width: 180px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    color: #304777;
  }

  .stats,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.8rem 1rem 1.5rem;
  }

  main {
    padding: 1rem 0.8rem 2rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.4rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}


