:root {
  --bg: #0b0d12;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #11131a;
  --border: #2a2f3d;
  --brand-start: #94b9ff;
  --brand-end: #e894ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px; 
}

body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  backdrop-filter: saturate(180%) blur(10px); 
  background: rgba(11,13,18,.75);
  border-bottom: 1px solid var(--border); 
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2px; }
.brand img { height: 28px; width: auto; border-radius: 8px; }
.brand-name { font-size: 20px; background: linear-gradient(90deg, var(--brand-start), var(--brand-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav a { opacity: .9; padding: 8px 12px; border-radius: 10px; transition: background 0.2s ease; }
nav a:hover { background: rgba(255,255,255,.06); }

.btn { 
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; 
  border-radius: 14px; border: 1px solid var(--border); 
  background: var(--card); box-shadow: var(--shadow); 
  font-weight: 600; cursor: pointer; transition: all 0.2s ease;
  color: var(--text);
}
.btn:hover { background: var(--bg); border-color: var(--muted); }
.btn-ghost { border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: transparent; }
.btn i {
  color: inherit;
}

/* Hero */
.hero { 
  padding-top: 92px; 
  padding-bottom: 64px; 
  position: relative; 
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.05; margin: 0 0 16px; font-weight: 900; letter-spacing: -0.6px; }
.grad { background: linear-gradient(90deg, var(--brand-start), var(--brand-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { max-width: 780px; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pill badges */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: linear-gradient(90deg, rgba(148,185,255,.18), rgba(232,148,255,.18)); }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; text-align: center; }

.section-subtitle { 
  font-size: clamp(16px, 2vw, 20px); 
  color: var(--muted); 
  margin-bottom: 32px; 
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.muted { color: var(--muted); text-align:center; }

.bg-light {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { grid-column: span 12; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 700px){ .card { grid-column: span 6; } }
@media (min-width: 980px){ .card { grid-column: span 4; } }
.card h3 { margin: 6px 0 6px; font-size: 20px; text-align:center; }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(12,1fr); }
.step { grid-column: span 12; border: 1px dashed var(--border); border-radius: 14px; padding: 18px 18px 18px 56px; position: relative; background: var(--card); }
.step::before { content: attr(data-step); position: absolute; left: 14px; top: 16px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #111; background: linear-gradient(180deg, var(--brand-start), var(--brand-end)); -webkit-text-fill-color: #111; }
@media (min-width: 900px){ .step { grid-column: span 4; } }

/* Logos (placeholder) */
.logos { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; opacity: .8; }
@media (min-width: 680px){ .logos{ grid-template-columns: repeat(6,1fr);} }
.logo-slot { border: 1px dashed var(--border); border-radius: 12px; height: 60px; display: grid; place-items: center; font-size: 12px; color: var(--muted); }

/* Trusted By (Infinite Scroll) */
.trusted-by { 
  overflow: hidden; 
  position: relative; 
  width: 100%; 
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); 
}
.trusted-by-logos { 
  display: flex; 
  gap: 40px; 
  width: fit-content;
  /* VUELVO A AÑADIR LA ANIMACIÓN (el JS la sobreescribirá si puede) */
  animation: scroll-left 40s linear infinite; 
}
.trusted-by-logos:hover { animation-play-state: paused; }

.trusted-by-logos img { 
  height: 40px; 
  width: auto; 
  filter: brightness(0) invert(1);
  opacity: 0.7; 
  transition: filter 0.3s ease, opacity 0.3s ease; 
}
.trusted-by-logos img:hover { 
  filter: brightness(0) invert(1); 
  opacity: 1; 
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 24px; }
@media (min-width: 700px){ .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.testimonial-card blockquote { margin: 0; font-size: 1.1rem; color: var(--text); }
.testimonial-card cite { display: block; margin-top: 15px; font-style: normal; font-weight: 600; font-size: 0.95rem; }
.testimonial-card .role { color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1.1rem; }
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-question svg { transition: transform 0.3s ease; }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 18px; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

/* CTA */
.cta { text-align: center; padding: 80px 0; }
.cta .box { background: linear-gradient(135deg, rgba(148,185,255,.18), rgba(232,148,255,.18)); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.placeholder-link { opacity: 0.6; cursor: not-allowed; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer a { transition: color 0.2s ease; }
footer a:hover { color: var(--text); }

/* Utilities */
.hide-on-mobile { display: none; }
@media (min-width: 860px){ .hide-on-mobile { display: initial; } }
.center { text-align: center; justify-content: center; }
.mt-8 { margin-top: 8px; } .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-32 { margin-bottom: 32px; }

/* Mobile nav */
.mobile-toggle{ display: inline-flex; gap:8px; align-items:center; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--card); }
@media (min-width: 860px){ .mobile-toggle { display: none; } }
.mobile-menu{ display:none; }
.mobile-menu.open{ 
  display:block; 
  padding-top: 12px; 
  padding-bottom: 20px; 
}
.mobile-menu a{ display:block; padding:10px 0; border-bottom:1px solid var(--border); }

/* ==== Stats Section ==== */
.bg-dark-stats {
  background-color: #06070a; 
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item h3 {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  color: var(--text);
}

.stat-item h3 .stat-number {
  color: var(--brand-end); 
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; 
}
.stat-item p {
  font-size: 1.1rem;
  margin-top: 8px;
}

/* VUELVO A AÑADIR ESTE KEYFRAME COMO FALLBACK (RESPALDO)
  Tu script.js lo borrará y creará uno perfecto si puede.
  Si el script falla (en local), el navegador usará este.
*/
@keyframes scroll-left {
  0% { transform: translateX(0); }
  /* El JS duplica el contenido, así que el ancho total es 200%.
    Moverse -50% mueve exactamente la mitad, creando un loop perfecto.
  */
  100% { transform: translateX(-50%); } 
}