:root {
  --blue-900: #0d2f6e;
  --blue-700: #1652b8;
  --blue-600: #1e66d0;
  --blue-50: #eef4fd;
  --ink: #142033;
  --muted: #5b6678;
  --line: #e3e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --teal: #0f9fa8;
  --orange: #e8890c;
  --purple: #7b4fd6;
  --green: #1a9a5a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 40, 90, .08), 0 2px 6px rgba(16, 40, 90, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }

/* Language toggle: hide the inactive language */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.brand img, .brand svg { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; padding: 6px 12px 6px 9px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: background .15s;
}
.lang button:hover { background: var(--blue-50); }
.lang .flag {
  width: 24px; height: 16px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); display: block;
}
/* Inactive language: flag slightly faded so the active one stands out, still eye-catching */
html[data-lang="es"] .lang button[data-set="en"] .flag,
html[data-lang="en"] .lang button[data-set="es"] .flag { opacity: .9; }
html[data-lang="es"] .lang button[data-set="es"],
html[data-lang="en"] .lang button[data-set="en"] { background: var(--blue-600); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(30, 102, 208, .35); }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: #c9d8f2; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #3a86ff55, transparent 60%),
              linear-gradient(160deg, var(--blue-900), var(--blue-700) 60%, var(--blue-600));
  color: #fff; padding: 72px 0 0; overflow: hidden;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 18px; max-width: 820px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #dce8ff; max-width: 680px; margin: 0 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero .small { font-size: 14px; color: #bcd2fb; }
.hero-shot {
  margin: 48px auto -2px; max-width: 1000px;
  border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0;
}

/* Sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Problem/solution strip */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.compare .box h3 { margin: 0 0 8px; font-size: 18px; }
.compare .box p { margin: 0; color: var(--muted); }
.compare .box.good { border-color: #b9d3f7; background: var(--blue-50); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.tag.bad { color: #b4472f; }
.tag.good { color: var(--blue-700); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--blue-50); color: var(--blue-600);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.shot img { width: 100%; }
.shot figcaption { padding: 14px 18px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* Carousel */
.carousel { max-width: 1000px; margin: 0 auto; }
.car-viewport {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.car-track { display: flex; transition: transform .6s cubic-bezier(.22, .7, .2, 1); touch-action: pan-y; }
.slide { flex: 0 0 100%; margin: 0; }
.slide .frame {
  aspect-ratio: 1316 / 889; background: #eef2f8;
  display: flex; align-items: center; justify-content: center;
}
.slide .frame img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption {
  padding: 14px 70px; text-align: center; font-size: 15px; color: var(--muted);
  border-top: 1px solid var(--line); min-height: 52px;
}
.car-btn {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(16, 40, 90, .15);
}
.car-btn:hover { color: var(--blue-600); }
.car-btn svg { width: 20px; height: 20px; }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #c8d3e6; transition: width .3s, background .3s;
}
.car-dots button[aria-selected="true"] { width: 26px; background: var(--blue-600); }
@media (max-width: 680px) {
  .car-btn { width: 36px; height: 36px; }
  .car-btn.prev { left: 6px; }
  .car-btn.next { right: 6px; }
  .slide figcaption { padding: 12px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.plan.best { border: 2px solid var(--blue-600); }
.plan .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66d0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 26px; }

/* Requirements + FAQ */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto 64px; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.req b { display: block; margin-bottom: 4px; }
.req span { color: var(--muted); font-size: 15px; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--blue-600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final CTA */
.cta-band {
  background: linear-gradient(140deg, var(--blue-900), var(--blue-600)); color: #fff; border-radius: 24px;
  padding: 52px 32px; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.02em; }
.cta-band p { margin: 0 0 26px; color: #d6e4ff; font-size: 17px; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: #fff; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.disclaimer { width: 100%; font-size: 13px; color: #8a93a3; margin-top: 6px; }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; font-size: 14.5px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #334055; }

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav a.hide-sm { display: none; }
  .nav { gap: 12px; }
  .features, .compare { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .hero .ctas .btn { flex: 1 1 100%; }
}
