/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Surfaces */
  --bg: #0E0F13;
  --bg-2: #15161C;
  --bg-3: #1B1D24;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F4F3F1;
  --text-2: #A2A4AE;
  --text-3: #6C6E78;

  /* Accent */
  --orange: #F2723C;
  --orange-bright: #FF8A5B;
  --orange-deep: #D9551F;
  --yellow: #F5B544;

  --nav-bg: rgba(14, 15, 19, 0.72);

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1140px;
}

/* === Light theme overrides (toggle) === */
:root[data-theme="light"] {
  --bg: #FBFAF8;
  --bg-2: #FFFFFF;
  --bg-3: #F1EFEB;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.20);

  --text: #1A1A1F;
  --text-2: #54545E;
  --text-3: #8A8A93;

  --orange: #DD5C24;
  --orange-bright: #C44F1C;
  --orange-deep: #B0440F;

  --nav-bg: rgba(251, 250, 248, 0.80);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

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

/* === Eyebrow label === */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo::after {
  content: ".";
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === Navbar right group + theme toggle === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(127, 127, 127, 0.06);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--orange);
  color: #fff;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: var(--orange-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* === Hero === */
.hero {
  padding: 168px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(242, 114, 60, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 26px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--orange);
  font-style: italic;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.proof-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 20px;
  border-right: 1px solid var(--border);
}

.proof-item:last-child {
  border-right: none;
}

.proof-item strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.proof-item span {
  font-size: 0.82rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* === Section Shared === */
section {
  padding: 110px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

section > .container > h2,
.section-head h2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
}

/* === Problem === */
.problem {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem-card {
  background: var(--bg);
  padding: 36px 30px;
  transition: background 0.25s;
}

.problem-card:hover {
  background: var(--bg-3);
}

.problem-card .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  color: var(--orange);
  display: block;
  margin-bottom: 22px;
}

.problem-card h3 {
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* === Services / Packages === */
.services {
  background: var(--bg);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.package-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.package-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.package-card.featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(242, 114, 60, 0.06), var(--bg-2) 40%);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.package-header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.package-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.package-header h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.package-price .price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text);
}

.package-features {
  list-style: none;
  margin-bottom: 30px;
}

.package-features li {
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
}

.package-features li.included::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  transform: rotate(-45deg);
}

.package-features li.not-included {
  color: var(--text-3);
}

.package-features li.not-included::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 9px;
  height: 1.5px;
  background: var(--text-3);
}

/* === Tools / Lo que implementamos === */
.tools {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools .section-head h2 {
  font-size: 2rem;
  font-weight: 500;
}

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

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s, transform 0.25s;
}

.tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.tool-icon {
  margin-bottom: 20px;
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.tool-name {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* === Sectors === */
.sectors {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sectors-cta {
  margin-top: 32px;
  font-size: 1rem;
  color: var(--text-2);
  text-align: center;
}

.sectors-cta a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.sectors-cta a:hover {
  color: var(--orange-bright);
}

.sector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.sector-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.sector-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

.sector-solution {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* === Differentiators === */
.differentiators {
  background: var(--bg);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.diff-item {
  padding: 40px;
  background: var(--bg);
  transition: background 0.25s;
}

.diff-item:hover {
  background: var(--bg-2);
}

.diff-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 18px;
}

.diff-item h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.diff-item p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* === CTA === */
.cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(242, 114, 60, 0.16), transparent 65%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.7rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.cta p {
  font-size: 1.12rem;
  color: var(--text-2);
  margin-bottom: 34px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-bottom: 18px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-3);
}

.cta-note strong {
  color: var(--text-2);
  font-weight: 500;
}

/* === Footer === */
.footer {
  padding: 56px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-3);
}

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

.footer-brand .logo {
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal p {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* === Mobile === */
@media (max-width: 880px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-proof {
    flex-direction: column;
  }

  .proof-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px;
  }

  .proof-item:last-child {
    border-bottom: none;
  }

  .packages-grid,
  .sectors-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .packages-grid {
    max-width: 440px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cta h2 {
    font-size: 2rem;
  }

  section {
    padding: 76px 0;
  }

  section > .container > h2,
  .section-head h2 {
    font-size: 1.9rem;
  }

  .diff-item {
    padding: 32px 28px;
  }
}

@media (max-width: 520px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.95rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
