/* VEO Vista page styles */

/* ---------- language switching ----------
   Default (no JS): EN visible, ES hidden.
   JS sets html[data-lang] and these rules flip visibility. */

body [data-lang="es"] { display: none; }
html[data-lang="es"] body [data-lang="es"] { display: inline; }
html[data-lang="es"] body [data-lang="en"] { display: none; }

.lang-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover { color: var(--ink); border-color: var(--faint); }

/* ---------- hero ---------- */

.vv-hero {
  padding-top: clamp(7rem, 18vw, 11rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.vv-hero h1 { max-width: 17em; font-size: clamp(1.9rem, 5.5vw, 3.4rem); }

.vv-cta { font-size: 1.05rem; }

/* ---------- demo video ---------- */

.vv-video-section .container { display: flex; flex-direction: column; gap: 0.8rem; }

.vv-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  background: var(--panel);
}

.vv-video-caption { font-size: 0.85rem; }

/* ---------- before / after ---------- */

.vv-ba-section h2 { margin-bottom: 2rem; max-width: 16em; }

.vv-ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 860px) {
  .vv-ba-grid { grid-template-columns: 1fr 1fr; }
}

/* No-JS default: stacked figures, both images visible */
.ba-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ba-before-wrap, .ba-after-wrap { position: relative; }

.ba-slider img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
}

.ba-tag {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(11, 11, 14, 0.75);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.ba-tag-before { background: rgba(11, 11, 14, 0.6); color: var(--muted); }

.ba-handle { display: none; }

/* JS-active: overlaid comparison with drag handle */
.ba-slider.ba-active {
  display: block;
  touch-action: none;
  cursor: ew-resize;
  overflow: hidden;
  border-radius: var(--radius);
}

.ba-slider.ba-active .ba-before-wrap,
.ba-slider.ba-active .ba-after-wrap { position: static; }

.ba-slider.ba-active img { border: 0; border-radius: 0; }

.ba-slider.ba-active .ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba-slider.ba-active .ba-after-wrap img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.ba-slider.ba-active .ba-handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 2;
}

.ba-slider.ba-active .ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
}

.ba-slider.ba-active .ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ba-slider.ba-active .ba-handle span::before {
  content: "\2194";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-size: 1rem;
}

/* ---------- pricing ---------- */

.vv-pricing { max-width: 720px; }

.vv-pricing h2 { margin-bottom: 1.5rem; }

.vv-pricing table {
  width: 100%;
  border-collapse: collapse;
}

.vv-pricing td {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--panel-edge);
  font-size: 1.05rem;
}

.vv-pricing tr:first-child td { border-top: 1px solid var(--panel-edge); }

.vv-price {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  white-space: nowrap;
}

.vv-pricing-note { margin-top: 1rem; font-size: 0.9rem; }

/* ---------- trust ---------- */

.vv-trust {
  background: var(--panel);
  border-block: 1px solid var(--panel-edge);
  text-align: center;
}

.vv-trust .container { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.vv-trust-line {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  max-width: 18em;
}

/* ---------- compliance ---------- */

.vv-compliance {
  padding-block: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.vv-compliance p { font-size: 0.85rem; max-width: 44em; margin-inline: auto; }

/* ---------- final CTA ---------- */

.vv-final {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

.vv-final h2 { max-width: 15em; }

/* ---------- sticky WhatsApp bar (mobile only) ---------- */

.wa-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 11, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--panel-edge);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.wa-sticky.visible { transform: translateY(0); }

.wa-sticky .btn { width: 100%; }

@media (min-width: 900px) {
  .wa-sticky { display: none; }
}

/* footer link color on vv page */
.vv .site-footer p a { color: var(--accent); text-decoration: none; }
