/* ============================================================================
   STALTEC CLIPS — HOJA DE ESTILOS
   Tema oscuro premium: fondo #09090b, tarjetas cristal, acentos cian + fucsia.
   ============================================================================ */

/* ----------------------------- VARIABLES ---------------------------------- */
:root {
  --bg: #09090b;
  --bg-soft: #0f0f13;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --fuchsia: #d946ef;
  --violet: #a855f7;
  --green: #25d366;

  --grad: linear-gradient(90deg, var(--cyan), var(--fuchsia));
  --grad-soft: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(217, 70, 239, 0.15));

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --nav-h: 70px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
  --glow-fuchsia: 0 0 40px rgba(217, 70, 239, 0.35);
}

/* ------------------------------ RESET ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--fuchsia); color: #fff; }

/* --------------------------- UTILIDADES ----------------------------------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hl {
  color: var(--cyan-soft);
  font-weight: 600;
}

.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.card-glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.section { position: relative; padding: 90px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

/* ----------------------------- BOTONES ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #06060a;
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(34, 211, 238, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.3); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ------------------------------ NAVBAR ------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad);
  color: #06060a;
  font-size: .85rem;
  box-shadow: var(--glow-fuchsia);
}
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }

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

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--grad); color: #06060a; }

.btn-nav-cta { padding: 10px 18px; font-size: .88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------- HERO ------------------------------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 60px) 20px 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-cyan { width: 460px; height: 460px; background: var(--cyan); top: -120px; left: -120px; animation: float 8s ease-in-out infinite; }
.orb-fuchsia { width: 520px; height: 520px; background: var(--fuchsia); bottom: -180px; right: -140px; animation: float 10s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 24px); }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  color: var(--cyan-soft);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 15ch; }
.hero-sub { color: var(--text-muted); font-size: 1.12rem; margin-top: 20px; max-width: 46ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--text-muted); font-size: .9rem; }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust .check { color: var(--cyan); font-weight: 700; }

/* ------------------------ MAQUETA DE CELULAR ------------------------------ */
.hero-phone { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, #16161d, #0b0b10);
  border: 1px solid var(--border-strong);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow), var(--glow-cyan);
  animation: float 9s ease-in-out infinite;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #0b0b10;
}
.phone-video {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
}
.phone-video-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(217, 70, 239, 0.55), transparent 55%),
    radial-gradient(120% 80% at 20% 20%, rgba(34, 211, 238, 0.5), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.phone-caption {
  position: relative; z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.phone-subtitle {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: .85rem;
  margin-top: 6px;
  background: rgba(0,0,0,0.45);
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
}
.phone-play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.phone-play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,0.25); }
.phone-metrics {
  position: absolute; z-index: 2;
  right: 10px; bottom: 40%;
  display: flex; flex-direction: column; gap: 14px;
  color: #fff;
}
.metric { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }

.phone-chip {
  position: absolute; z-index: 4;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  padding: 9px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.chip-views {
  left: -26px; top: 26%;
  background: linear-gradient(90deg, var(--cyan), #0ea5e9);
  color: #04121a;
  animation: float 7s ease-in-out infinite;
}
.chip-time {
  right: -22px; bottom: 22%;
  background: linear-gradient(90deg, var(--fuchsia), var(--violet));
  color: #fff;
  animation: float 6s ease-in-out infinite reverse;
}

/* ------------------------------- STEPS ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.step { padding: 34px 28px; }
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .97rem; }

/* ------------------------------ DEMOS ------------------------------------- */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: var(--maxw); margin: 0 auto; }
.demo-card figcaption { text-align: center; color: var(--text-muted); margin-top: 14px; font-size: .92rem; }

.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #16161d, #0b0b10);
  border: 1px solid var(--border);
}
.demo-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
  background: #000;
}
.demo-video.loaded { opacity: 1; }
.demo-video.hidden { display: none; }

.demo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(90% 70% at 50% 100%, rgba(217, 70, 239, 0.08), transparent 60%);
  transition: opacity .4s ease;
}
.demo-placeholder.hidden { opacity: 0; pointer-events: none; }
.ph-icon { font-size: 2.4rem; opacity: .7; }
.demo-placeholder p { font-size: .85rem; max-width: 16ch; }

/* ----------------------------- PRECIOS ------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: var(--maxw); margin: 0 auto; align-items: stretch; }
.plan { position: relative; padding: 36px 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.35rem; }
.plan-tag { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0; }
.price-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.price-period { color: var(--text-dim); font-size: .95rem; }

.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: .95rem; }
.plan-features li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.plan .plan-cta { margin-top: auto; }

.plan-popular {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.25), var(--glow-fuchsia);
  transform: scale(1.03);
}
.plan-popular:hover { transform: scale(1.03) translateY(-4px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #06060a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(217, 70, 239, 0.4);
}

/* ------------------------------ BANNER ------------------------------------ */
.banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
}
.banner-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.banner-copy p { color: var(--text-muted); margin-top: 10px; max-width: 56ch; }

/* ------------------------------- FAQ -------------------------------------- */
.accordion { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.accordion-item { overflow: hidden; }
.accordion-item:hover { transform: none; }
.accordion-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: none;
  color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem;
  padding: 20px 22px;
  text-align: left;
}
.accordion-icon { font-size: 1.5rem; font-weight: 500; color: var(--cyan); transition: transform .3s ease; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-body p { padding: 0 22px 22px; color: var(--text-muted); font-size: .96rem; }

/* ----------------------------- FORMULARIO --------------------------------- */
.contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 40px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.contact-copy p { color: var(--text-muted); margin-top: 12px; }

.quick-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.field .optional { color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; -webkit-appearance: none; }

/* ------------------------------ FOOTER ------------------------------------ */
.footer { border-top: 1px solid var(--border); padding: 50px 20px 30px; background: var(--bg-soft); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-tag { color: var(--text-muted); margin-top: 10px; max-width: 30ch; font-size: .92rem; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.social-link:hover { transform: translateY(-3px); color: var(--cyan-soft); border-color: var(--border-strong); background: var(--surface-hover); }
.footer-bottom { max-width: var(--maxw); margin: 34px auto 0; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: .86rem; }

/* ------------------------ BOTÓN FLOTANTE WHATSAPP ------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.55); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ------------------------- ANIMACIONES DE ENTRADA ------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- RESPONSIVE --------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { max-width: none; }
  .hero-phone { order: -1; }
  .steps, .plans, .demos { grid-template-columns: 1fr; max-width: 460px; }
  .plan-popular { transform: none; }
  .plan-popular:hover { transform: translateY(-4px); }
  .contact-inner { grid-template-columns: 1fr; }
  .chip-views { left: -8px; }
  .chip-time { right: -8px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(16px);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 10px 0; width: 100%; }
  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .banner-inner, .contact-inner { padding: 32px 24px; }
  .section { padding: 70px 16px; }
  .hero { padding: calc(var(--nav-h) + 40px) 16px 70px; }
  .hero-ctas .btn { width: 100%; }
}
