:root {
  color-scheme: dark;

  /* Marca — identidad Servites: negro #0D0803, naranja #F05B08, hueso #F1EDEC */
  --brand: #f05b08;
  --brand-light: #ff7a2e;
  --brand-dark: #c44606;
  --brand-darker: #8f3204;

  --brand-tint: rgba(240, 91, 8, 0.1);
  --brand-tint-strong: rgba(240, 91, 8, 0.18);
  --brand-ring: rgba(240, 91, 8, 0.35);
  --brand-glow: rgba(240, 91, 8, 0.45);

  /* Superficies — negro neutro, rampa de elevación más clara conforme sube */
  --surface-0: #0a0a0c;
  --surface-1: #101013;
  --surface-2: #17171b;
  --surface-3: #1e1e24;
  --surface-4: #28282f;

  /* Texto */
  --text: #f5f4f3;
  --text-muted: #b8b6bd;
  --text-light: #85838c;
  --text-faint: #57555e;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-brand: rgba(240, 91, 8, 0.4);

  /* Semántico */
  --success: #22c55e;
  --success-tint: rgba(34, 197, 94, 0.12);
  --danger: #ef4444;
  --danger-tint: rgba(239, 68, 68, 0.12);
  --warning: #ffc72c;
  --info: #3b82f6;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --elev-2:
    0 4px 12px -2px rgba(0, 0, 0, 0.55),
    0 2px 4px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --elev-4:
    0 24px 64px -12px rgba(0, 0, 0, 0.7),
    0 8px 16px -8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glow-brand:
    0 0 0 1px rgba(240, 91, 8, 0.25),
    0 8px 32px -4px rgba(240, 91, 8, 0.35);
  --glow-brand-strong:
    0 0 0 1px rgba(240, 91, 8, 0.4),
    0 12px 48px -6px rgba(240, 91, 8, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* Equilibrio: ni angosto tipo blog, ni edge-to-edge desbordado */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--surface-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-light);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--glow-brand);
}

.button-primary:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: var(--glow-brand-strong);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface-2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 8, 3, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: var(--glow-brand);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 17px;
  font-family: "Nunito", "Inter", sans-serif;
}

.brand-copy small {
  color: var(--text-light);
  font-size: 12px;
}

/* Hero intro brand lockup */
.hero-intro-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.intro-icon-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.intro-icon-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--glow-brand);
  position: relative;
  z-index: 1;
  animation: brand-slide-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-word {
  font-family: "Nunito", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  color: var(--text);
  animation: brand-slide-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.speed-line {
  position: absolute;
  left: -4px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-light), transparent);
  opacity: 0;
  animation: speed-line-shoot 0.9s ease-out both;
}

.speed-line-1 {
  top: 22%;
  width: 30px;
  animation-delay: 0s;
}

.speed-line-2 {
  top: 48%;
  width: 22px;
  animation-delay: 0.09s;
}

.speed-line-3 {
  top: 74%;
  width: 26px;
  animation-delay: 0.18s;
}

@keyframes brand-slide-in {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes speed-line-shoot {
  0% {
    opacity: 0;
    transform: translateX(-46px) scaleX(0.4);
  }
  35% {
    opacity: 1;
    transform: translateX(-14px) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateX(16px) scaleX(0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-icon-wrap img,
  .intro-word,
  .speed-line {
    animation: none;
    opacity: 1;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 10px 20px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button:hover {
  color: var(--text);
}

.lang-toggle button.is-active {
  background: var(--brand);
  color: #fff;
}

.lang-toggle-mobile {
  display: none;
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 72px;
  overflow: hidden;
  position: relative;
  background: var(--surface-0);
}

/* Decorative background shapes */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-deco-ring {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  opacity: 0.16;
}

.hero-deco-leaf {
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 160px;
  height: 160px;
  color: var(--text-faint);
  opacity: 0.2;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.4rem);
  margin: 20px 0 20px;
}

.text-accent {
  color: var(--brand-light);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feature-icon svg {
  width: 16px;
  height: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.button-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note-icon {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-stats-bar {
  grid-column: 1 / -1;
  margin-top: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-icon svg {
  width: 22px;
  height: 22px;
}

.hero-stat-item strong {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-item span {
  font-size: 12.5px;
  color: var(--text-light);
}

/* Hero panel (dashboard mock) */
.hero-panel {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  box-shadow: var(--elev-4);
  position: relative;
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-light);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7ee0a3;
  font-weight: 600;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  border: 1px solid var(--border);
}

.kpi-card small {
  color: var(--text-light);
  font-size: 11.5px;
}

.kpi-card strong {
  display: block;
  font-size: 17px;
  margin: 6px 0 4px;
  color: var(--text);
}

.positive {
  color: #7ee0a3;
  font-size: 12px;
  font-weight: 600;
}

.negative {
  color: #ff8f85;
  font-size: 12px;
  font-weight: 600;
}

.hero-workspace {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.workspace-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.workspace-card small {
  color: var(--text-light);
  font-size: 11.5px;
}

.workspace-card-large {
  grid-row: span 2;
}

.workspace-card-large strong {
  display: block;
  font-size: 14px;
  margin: 8px 0 18px;
  font-weight: 600;
  color: var(--text);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}

.bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-tint));
  border-radius: 4px;
}

.mini-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mini-list li {
  font-size: 12.5px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Section heading */
.section-heading {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-heading span {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--brand-light);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}

.comparison-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text);
}

.comparison-card-muted {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.comparison-card-highlight {
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-brand);
  color: #fff;
  box-shadow: var(--glow-brand);
}

.comparison-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 14.5px;
  border-top: 1px solid var(--border-subtle);
}

.comparison-list li:first-child {
  border-top: none;
}

.comparison-card-muted .comparison-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-size: 12px;
  top: 12px;
}

.comparison-card-highlight .comparison-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 700;
  top: 10px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--text);
}

.price-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card .price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.price-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.price-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 700;
}

.price-card-featured {
  background: linear-gradient(160deg, var(--surface-4), var(--surface-2));
  border-color: var(--border-brand);
  transform: scale(1.03);
  box-shadow: var(--glow-brand-strong);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: var(--glow-brand);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-light);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14.5px;
  padding-bottom: 20px;
}

.faq-item.is-open {
  border-color: var(--border-brand);
}

.faq-item.is-open .faq-answer {
  max-height: 240px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  background: var(--surface-0);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .price-card-featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .lang-toggle-mobile {
    display: inline-flex;
  }

  .lang-toggle-desktop {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px clamp(24px, 5vw, 64px) 20px;
    display: none;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 8px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-deco {
    display: none;
  }

  .hero-feature-strip {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .feature-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
