:root {
  --bg: #000000;
  --surface: #0D0D0D;
  --surface-2: #161616;
  --border: #2A2A2A;
  --copper: #D4FF3D;
  --copper-dark: #0A0A0A;
  --patina: #8A9A3D;
  --cream: #F5F5F5;
  --text-muted: #9A9A9A;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-fbz { font-weight: 800; font-size: 20px; color: var(--cream); letter-spacing: 0.02em; }
.logo-hosting { font-family: var(--font-mono); font-size: 11px; color: var(--copper); letter-spacing: 0.15em; }

.main-nav { display: flex; gap: 32px; }
.main-nav a { position: relative; font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--copper); color: #0A0A0A; }
.btn-primary:hover { background: #B8E62E; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 255, 61, 0.25); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--cream); }
.btn-secondary:hover { border-color: var(--copper); transform: translateY(-2px); }
.btn-ghost { padding: 8px 18px; border: 1px solid var(--border); font-weight: 500; font-size: 13px; }
.btn-ghost:hover { border-color: var(--copper); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 40px;
  overflow: hidden;
  text-align: center;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.hero-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-tool-arrow { color: var(--copper); transition: transform 0.2s ease; }

/* Franja de la guia interactiva */
.guia-banner-section { padding: 16px 0 20px; border-bottom: 1px solid var(--border); }
.guia-banner {
  display: block;
  border: 2px solid var(--copper);
  border-radius: 16px;
  margin: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.guia-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(212, 255, 61, 0.18); background: var(--surface); }
.guia-banner:hover .hero-tool-arrow { transform: translateX(4px); }

.guia-banner-inner {
  max-width: 1120px;
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guia-banner-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--patina);
  border: 1px solid var(--patina);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.guia-banner-copy h2 { font-size: 19px; font-weight: 800; color: var(--cream); margin-bottom: 6px; max-width: 640px; }
.guia-banner-copy p { font-size: 13px; color: var(--text-muted); }

.guia-banner-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.guia-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
}
.guia-pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--copper);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.guia-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--copper);
}

@media (max-width: 700px) {
  .guia-banner-inner { padding: 24px 20px; }
  .guia-pill { font-size: 12px; }
}

/* Trust bar */
.trust-bar {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trust-bar::-webkit-scrollbar { display: none; }
.trust-bar::before,
.trust-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 1;
}
.trust-bar::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.trust-bar::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 14px 24px;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  scroll-snap-type: x proximity;
}
.trust-item { scroll-snap-align: start; }
.trust-item {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.trust-item:hover { border-color: var(--copper); color: var(--cream); }
.trust-item .icon { color: var(--patina); font-style: normal; }

@media (max-width: 900px) {
  .trust-bar-inner { justify-content: flex-start; }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 16px; max-width: 640px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 620px; margin-bottom: 40px; }

/* Entrance animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Crisis / mensaje clave */
.section-crisis { text-align: center; }
.crisis-inner { max-width: 760px; margin: 0 auto; }
.crisis-inner h2 { margin-left: auto; margin-right: auto; }
.crisis-inner .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* Split layout (contenido + imagen) */
.split-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }

/* Image placeholders — reemplazar por fotos/ilustraciones reales */
.img-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.img-placeholder:hover { border-color: var(--copper); transform: translateY(-2px); }
.img-placeholder span { font-size: 13px; color: var(--text-muted); max-width: 240px; }
.img-placeholder-tall { min-height: 420px; }
.img-placeholder-wide { min-height: 140px; }
.img-placeholder-wide span { max-width: 100%; }

/* Ticker de clientes */
.ticker-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: ticker-scroll 240s linear infinite;
}
.ticker-mask:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--cream);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 8px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Stack grid (todo en un lugar) */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stack-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.stack-card-active { border-color: var(--copper); }
.stack-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--copper);
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.stack-card h3 { font-size: 17px; color: var(--cream); margin-bottom: 8px; }
.stack-card p { font-size: 14px; color: var(--text-muted); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { transition: transform 0.2s ease; }
.step:hover { transform: translateY(-3px); }
.step:hover .step-number { color: var(--copper); }
.step-number { font-family: var(--font-mono); font-size: 13px; color: var(--patina); display: block; margin-bottom: 12px; transition: color 0.2s ease; }
.step h3 { font-size: 18px; color: var(--cream); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* Tech stack */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tech-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.tech-logo {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.tech-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Blog teaser (home) */
.blog-teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.blog-teaser-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-teaser-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.blog-teaser-card .post-row-topic {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.blog-teaser-title { font-size: 15px; color: var(--cream); font-weight: 500; line-height: 1.5; }

/* Billing toggle */
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 40px; }
.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-btn.active { background: var(--copper); color: #0A0A0A; font-weight: 700; }
.toggle-badge { font-size: 11px; background: rgba(0,0,0,0.15); padding: 2px 8px; border-radius: 100px; }
.toggle-badge-muted { background: rgba(154,154,154,0.2); color: var(--text-muted); }
.toggle-btn.active .toggle-badge { background: rgba(0,0,0,0.2); color: #0A0A0A; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
.plan-card-featured { border: 2px solid var(--copper); }
.plan-card-featured:hover { transform: translateY(-4px) scale(1.01); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--copper);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}
.plan-card h3 { font-size: 20px; color: var(--cream); margin-bottom: 8px; }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.plan-price { margin-bottom: 4px; }
.plan-price-clp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream);
  margin-bottom: 24px;
}
.price-amount { font-size: 28px; font-weight: 800; color: var(--cream); }
.plan-tax { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.plan-note { font-size: 12px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  font-size: 14px;
  color: var(--cream);
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--border);
  position: relative;
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--patina);
  font-weight: 700;
}
.plan-cta { width: 100%; }

/* Differentiator */
.differentiator-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.differentiator-side { display: flex; flex-direction: column; gap: 20px; }
.differentiator-copy h2 { font-size: 30px; }
.differentiator-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.differentiator-list li { font-size: 15px; color: var(--text-muted); padding-left: 20px; position: relative; }
.differentiator-list li::before { content: "—"; position: absolute; left: 0; color: var(--copper); }
.differentiator-list strong { color: var(--cream); }
.differentiator-quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
}
.differentiator-quote p {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cream);
  line-height: 1.5;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--copper); }
.faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--copper); margin-right: 10px; font-weight: 700; }
.faq-item[open] summary::before { content: "–"; }
.faq-item p { font-size: 14px; color: var(--text-muted); margin-top: 12px; padding-left: 20px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final-inner h2 { margin: 0 auto 16px; }
.cta-final-inner .section-sub { margin-left: auto; margin-right: auto; }
.cta-final-inner .hero-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 28px; }
.footer-note { font-size: 13px; color: var(--text-muted); }

.footer-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer-parent-text { font-size: 12px; color: var(--text-muted); }
.footer-parent-link { display: inline-flex; align-items: center; opacity: 0.7; transition: opacity 0.2s ease; }
.footer-parent-link:hover { opacity: 1; }
.footer-parent-logo { height: 16px; width: auto; color: var(--text-muted); }
.footer-parent-link:hover .footer-parent-logo { color: var(--copper); }

/* Responsive */
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-teaser-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans-grid { grid-template-columns: 1fr; }
  .differentiator-inner { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .img-placeholder-tall { min-height: 240px; }
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
}
