:root {
  --bg: #ffffff;
  --bg-2: #f6f5f1;
  --surface: #ffffff;
  --text: #211f1b;
  --text-2: #5c5a54;
  --text-3: #8e8c84;
  --border: rgba(33, 31, 27, 0.10);
  --border-2: rgba(33, 31, 27, 0.18);
  --accent: #211f1b;
  --on-accent: #ffffff;
  --info-bg: #ecf2fb;
  --info-text: #1e5fa5;
  --info-border: #4b86d6;

  --coral: #d85a30;
  --purple: #5b52c9;
  --teal: #1d9e75;
  --coral-bg: #faece7;
  --coral-tx: #712b13;
  --purple-bg: #eeedfe;
  --purple-tx: #26215c;
  --teal-bg: #e1f5ee;
  --teal-tx: #085041;
  --cream: #f3f1ea;
  --cream-bd: #e2dfd5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1916;
    --bg-2: #232220;
    --surface: #201f1c;
    --text: #eceae3;
    --text-2: #a9a79f;
    --text-3: #76746c;
    --border: rgba(255, 255, 255, 0.12);
    --border-2: rgba(255, 255, 255, 0.20);
    --accent: #eceae3;
    --on-accent: #1a1916;
    --info-bg: rgba(75, 134, 214, 0.16);
    --info-text: #9cc2ee;
    --info-border: #4b86d6;

    --coral-bg: rgba(216, 90, 48, 0.18);
    --coral-tx: #f0a98c;
    --purple-bg: rgba(91, 82, 201, 0.22);
    --purple-tx: #bcb6f2;
    --teal-bg: rgba(29, 158, 117, 0.18);
    --teal-tx: #86d9be;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.foco-logo { display: block; flex: 0 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-1px); opacity: .92; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links > a { font-size: 14.5px; color: var(--text-2); }
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links .lang-switch {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 9px; border: 1px solid var(--border-2); border-radius: 6px;
  color: var(--text-2);
}
.nav__links .lang-switch:hover { color: var(--text); background: var(--bg-2); }
.nav__links .btn { color: var(--on-accent); }

/* Hero */
.hero { padding: 80px 0 56px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: .02em; }
.eyebrow--pill {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 54px); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.025em; max-width: 760px; margin-bottom: 18px;
}
.hero__sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-2); max-width: 520px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 54px; }

/* Preview window */
.preview {
  width: 100%; max-width: 760px; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.preview__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 15px; background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.preview__title { margin-left: 8px; font-size: 12.5px; color: var(--text-3); }

.trow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.trow:last-child { border-bottom: none; }
.trow__title { font-size: 15px; }
.trow__time { font-size: 13px; color: var(--text-3); margin-left: 4px; }
.cb { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--c, var(--border-2)); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; transition: background .25s ease, border-color .25s ease; }
.cb--coral { --c: var(--coral); }
.cb--purple { --c: var(--purple); }
.cb--teal { --c: var(--teal); }
.cb__check { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease .05s; }
.trow.done .cb { background: var(--c); }
.trow.done .cb__check { opacity: 1; }
.trow.done .trow__title { text-decoration: line-through; color: var(--text-3); }
.trow.done .chip { opacity: .55; }

.chip { margin-left: auto; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip--coral { background: var(--coral-bg); color: var(--coral-tx); }
.chip--purple { background: var(--purple-bg); color: var(--purple-tx); }
.chip--teal { background: var(--teal-bg); color: var(--teal-tx); }

/* Hero animated demo */
.demo__screen { position: relative; height: 228px; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.demo[data-active="panorama"] .scene--panorama,
.demo[data-active="escucha"] .scene--escucha,
.demo[data-active="ia"] .scene--ia { opacity: 1; }

.scene--panorama { display: flex; flex-direction: column; justify-content: center; }
.demo.is-js .scene--panorama .trow { opacity: 0; transform: translateY(7px); transition: opacity .4s ease, transform .4s ease; }
.demo.is-js .scene--panorama .trow.in { opacity: 1; transform: none; }

.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); opacity: 0; transition: opacity .35s ease; }
.demo[data-active="escucha"] .rec { opacity: 1; }
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: recPulse 1.2s ease-in-out infinite; }

.scene--escucha { padding: 18px 16px; display: flex; flex-direction: column; }
.esc__top { display: flex; align-items: center; margin-bottom: 16px; }
.esc__top .chip { margin-left: 0; }
.esc__timer { margin-left: auto; font-weight: 600; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 46px; margin-bottom: 16px; }
.wave span { flex: 1 1 0; min-width: 2px; background: var(--text-3); border-radius: 2px; transform-origin: center; animation: wavePulse 1s ease-in-out infinite; }
.esc__trans { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.esc__line { margin-bottom: 4px; }
.esc__line:last-child { color: var(--text); }

.scene--ia { padding: 18px 16px; }
.ia__head { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.ia__head .ico { color: var(--purple); }
.ia__think { display: flex; gap: 6px; }
.ia__think span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: thinkBounce 1.1s ease-in-out infinite; }
.ia__think span:nth-child(2) { animation-delay: .15s; }
.ia__think span:nth-child(3) { animation-delay: .3s; }
.ia__think.hide { display: none; }
.ia__line { font-size: 14px; line-height: 1.5; color: var(--text-2); margin-bottom: 6px; opacity: 0; transform: translateY(5px); transition: opacity .4s ease, transform .4s ease; }
.ia__line.in { opacity: 1; transform: none; }
.ia__tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ia__task { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; opacity: 0; transform: translateY(5px); transition: opacity .4s ease, transform .4s ease; }
.ia__task.in { opacity: 1; transform: none; }
.ia__task::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; }

@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes wavePulse { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes thinkBounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Sections */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-2); }
.section--center { text-align: center; }
.section .eyebrow { display: block; text-align: center; margin-bottom: 8px; }
.section__title {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; line-height: 1.2;
  letter-spacing: -0.02em; text-align: center; margin-bottom: 12px;
}
.section__lead { color: var(--text-2); text-align: center; max-width: 480px; margin: 0 auto 36px; font-size: 16.5px; }
.section__title + .grid { margin-top: 36px; }

/* Grids */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Tiles + icons */
.tile {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); margin-bottom: 14px;
}
.card .tile { background: var(--bg-2); }
.section--alt .tile { background: var(--bg); }
.section--alt .card .tile { background: var(--bg-2); }

/* Cards (two modes) */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--border-2); }
.card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.card__head h3 { font-size: 18px; font-weight: 600; }
.card p { color: var(--text-2); font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }

/* Feature blocks */
.feature { text-align: center; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* Platforms */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; color: var(--text-2); }
.platform { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; }

/* Pricing */
.plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  max-width: 760px; margin: 0 auto;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.plan--featured { border: 2px solid var(--info-border); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute; top: -12px; left: 26px;
  font-size: 12px; font-weight: 600; background: var(--info-bg); color: var(--info-text);
  padding: 4px 12px; border-radius: 999px;
}
.plan__name { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.plan__name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.plan__name-row .plan__name { margin-bottom: 0; }
.tag-ai {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; background: var(--info-bg); color: var(--info-text);
  padding: 3px 9px; border-radius: 999px;
}
.plan__price { display: flex; align-items: baseline; gap: 5px; }
.plan__amount { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.plan__per { font-size: 15px; color: var(--text-2); }
.plan__year { font-size: 13px; color: var(--text-3); margin-top: 2px; margin-bottom: 20px; }
.plan__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.plan__list li .ico { color: var(--text); margin-top: 1px; }
.plan__list--ai li .ico { color: var(--teal); }
.plan .btn { margin-top: auto; }
.plans__note { max-width: 480px; margin: 22px auto 0; text-align: center; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; gap: 14px; height: 70px; flex-wrap: wrap; }
.footer__copy { font-size: 12.5px; color: var(--text-3); }
.footer__links { margin-left: auto; display: flex; gap: 20px; }
.footer__links a { font-size: 13.5px; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }

/* A11y */
:focus-visible { outline: 2px solid var(--info-border); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 680px) {
  .nav__links > a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .plans {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    margin: 0 -24px;
    padding: 18px 24px 24px;
    scroll-padding: 24px;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 84%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
