/* ============================================================
   Fileo · Landing
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.35);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

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

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

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #cbd5e1;
}

.btn-ghost {
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.9);
}

.brand-name {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(79, 70, 229, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  max-width: 15ch;
}

.lead {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------- Mock ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(-1.2deg);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.mock-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-live {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.mock-client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e0e7ff;
  color: #3730a3;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.mock-client strong {
  display: block;
  font-size: 0.88rem;
}

.mock-client span {
  font-size: 0.75rem;
  color: var(--muted);
}

.mock-progress {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #f8fafc;
}

.mock-list strong {
  display: block;
  font-size: 0.83rem;
}

.mock-list span {
  font-size: 0.72rem;
  color: var(--muted);
}

.tick {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  flex: none;
}

.pending {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1.5px dashed #cbd5e1;
  flex: none;
}

.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-link {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Secciones ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.problem h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  max-width: 24ch;
}

.problem-list p {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}

.problem-list p::before {
  content: "—";
  color: var(--primary);
  margin-right: 10px;
  font-weight: 800;
}

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

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 4px 9px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 24px 60px -30px rgba(79, 70, 229, 0.55);
}

.price-tag {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.price {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price span {
  color: var(--ink);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-right: 4px;
}

.price-card ul {
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  margin-right: 8px;
}

.price-card .btn {
  margin-top: auto;
}

.pricing-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

/* ---------- CTA ---------- */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  max-width: 22ch;
}

.cta p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.cta .btn-primary {
  background: #fff;
  color: #3730a3;
  box-shadow: none;
}

.cta .btn-primary:hover {
  background: #eef2ff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1120;
  color: #cbd5e1;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer .brand {
  color: #fff;
}

.footer-text {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 32ch;
}

.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 14px;
  font-weight: 700;
}

.site-footer li {
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.78rem;
  color: #94a3b8;
}

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

  .hero {
    padding: 60px 0 72px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .mock {
    transform: none;
  }

  .steps,
  .features,
  .pricing {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
