/* ============================================================
   WASIGEN SITE — Estilos
   Tema oscuro alineado a la app WasiGen Backend
   ============================================================ */
:root {
  --bg: #0d1220;
  --bg-2: #131a2e;
  --card: #1a2340;
  --card-2: #202b4d;
  --border: #2b3663;
  --text: #e8ecf8;
  --muted: #9aa5c4;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --green: #34d399;
  --gradient: linear-gradient(135deg, #38bdf8, #818cf8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }
.mt { margin-top: 56px; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.brand-logo-img {
  width: 44px; height: 44px; object-fit: contain;
  background: #eef2fb; border-radius: 12px; padding: 4px;
  border: 1px solid rgba(90, 176, 255, 0.35);
  filter:
    drop-shadow(0 0 10px rgba(90, 176, 255, 0.55))
    drop-shadow(0 0 28px rgba(0, 229, 255, 0.25));
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 10px rgba(90, 176, 255, 0.55))
      drop-shadow(0 0 28px rgba(0, 229, 255, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 16px rgba(90, 176, 255, 0.80))
      drop-shadow(0 0 40px rgba(0, 229, 255, 0.40));
  }
}
.brand-name .accent {
  background: linear-gradient(135deg, #5ab0ff 0%, #00e5ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.nav-link:hover { color: var(--text); background: var(--card); }
.nav-link.active { color: var(--accent); background: var(--card); }
.nav-cta {
  background: var(--gradient); color: #0b1020 !important; font-weight: 700;
}
.nav-cta:hover { opacity: .9; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-select {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font-size: .88rem; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.lang-select:hover, .lang-select:focus { border-color: var(--accent); outline: none; }

/* ---------- Páginas (tabs) ---------- */
.page { display: none; animation: fadeIn .35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(56,189,248,.15), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(129,140,248,.15), transparent 55%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  margin-bottom: 18px;
}
h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.platforms {
  color: var(--muted); font-size: .92rem; margin-bottom: 36px;
}
.platforms b { color: var(--text); font-weight: 600; white-space: nowrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-num, .stat-suffix { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* Code card */
.code-card {
  background: #0a0f1e; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.code-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b3663; }
.code-dots i:first-child { background: #f87171; }
.code-dots i:nth-child(2) { background: #fbbf24; }
.code-dots i:nth-child(3) { background: #34d399; }
.code-card pre { overflow-x: auto; }
.code-card code { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; font-size: .82rem; color: #c7d2ee; }
.c-kw { color: #818cf8; } .c-ty { color: #38bdf8; } .c-str { color: #34d399; } .c-cm { color: #64748b; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.kicker { display: block; color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: .78rem; margin-bottom: 10px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 36px; font-size: 1.05rem; }

/* Encabezados de sección centrados */
.section > .kicker, .section > h2, .section > .section-sub { text-align: center; }
.section > .section-sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; transition: transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
/* Marca de agua (emoji del ícono de la tarjeta) */
.card[data-emoji] > * { position: relative; z-index: 1; }
.card[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute; right: -12px; bottom: -26px;
  font-size: 7rem; opacity: .08; pointer-events: none;
  transform: rotate(-12deg); z-index: 0;
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Pasos */
.step { position: relative; padding-top: 30px; }
.step-num {
  position: absolute; top: -18px; left: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); color: #0b1020; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.steps { margin-top: 30px; }

/* Capturas del generador — carrusel */
.carousel { max-width: 1140px; margin: 0 auto; }
.shots .kicker, .shots h2, .shots .section-sub { text-align: center; }
.shots .section-sub { margin-left: auto; margin-right: auto; }
.carousel-head { display: flex; justify-content: center; margin-bottom: 18px; }
.mode-switch {
  display: inline-flex; gap: 4px; background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px;
}
.mode-btn {
  background: transparent; color: var(--muted); border: none; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  transition: all .2s;
}
.mode-btn.active { background: var(--gradient); color: #0b1020; }
.carousel-frame {
  background: #0a0f1e; border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 14px 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.carousel-frame .code-dots { margin-bottom: 10px; }
.carousel-viewport { position: relative; border-radius: 10px; overflow: hidden; }
.carousel-viewport img {
  display: block; width: 100%; height: auto; cursor: zoom-in; border-radius: 10px;
}
.car-fade-in { animation: carFade .45s ease; }
@keyframes carFade { from { opacity: .25; } to { opacity: 1; } }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13, 18, 32, .75); color: var(--text);
  border: 1px solid var(--border); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
}
.car-arrow:hover { border-color: var(--accent); color: var(--accent); background: rgba(13,18,32,.92); }
.car-prev { left: 14px; }
.car-next { right: 14px; }
.car-caption { text-align: center; color: var(--muted); font-weight: 600; margin-top: 14px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.car-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--border); padding: 0;
  transition: all .2s;
}
.car-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.car-dot:hover { border-color: var(--accent); }

/* (legacy) tarjetas de captura */
.shot-card {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.shot-card img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(56,189,248,.18), transparent 60%),
    var(--card);
  border: 1px solid var(--border); border-radius: 18px;
  text-align: center; padding: 48px 24px;
}
.cta-band p { color: var(--muted); margin-bottom: 22px; }
.cta-band h2 { margin-bottom: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: all .2s;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--gradient); color: #0b1020; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: auto; }

/* ---------- Tutorial ---------- */
.tutorial-list { counter-reset: paso; list-style: none; max-width: 780px; }
.tutorial-list li {
  counter-increment: paso; position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px 16px 66px; margin-bottom: 12px; color: var(--text);
}
.tutorial-list li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); color: #0b1020; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.tutorial-list code { background: #0a0f1e; padding: 2px 8px; border-radius: 6px; color: var(--accent); font-size: .88em; }

/* Tutorial — carrusel */
.tut-carousel { max-width: 980px; margin: 0 auto; }
.tut-hint { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.tut-frame {
  background: #0a0f1e; border: 1px solid rgba(90, 176, 255, .35); border-radius: 16px;
  padding: 14px;
  animation: framePulse 4s ease-in-out infinite;
}
@keyframes framePulse {
  0%, 100% {
    border-color: rgba(90, 176, 255, .35);
    box-shadow:
      0 0 16px rgba(90, 176, 255, .28),
      0 0 44px rgba(0, 229, 255, .12),
      0 24px 60px rgba(0, 0, 0, .45);
  }
  50% {
    border-color: rgba(0, 229, 255, .55);
    box-shadow:
      0 0 28px rgba(90, 176, 255, .50),
      0 0 70px rgba(0, 229, 255, .24),
      0 24px 60px rgba(0, 0, 0, .45);
  }
}
.tut-viewport {
  position: relative; border-radius: 10px; overflow: hidden;
  height: 480px; display: flex; align-items: center; justify-content: center;
  background: #101729;
}
.tut-viewport img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  cursor: zoom-in; border-radius: 6px;
}
.tut-caption {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; color: var(--text); font-weight: 500; text-align: left;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.tut-step-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: var(--gradient); color: #0b1020; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.tut-caption code { background: #0a0f1e; padding: 2px 8px; border-radius: 6px; color: var(--accent); font-size: .88em; }
.tut-counter { text-align: center; color: var(--accent); font-weight: 800; margin-top: 12px; letter-spacing: .08em; }
.tut-carousel .car-dots { flex-wrap: wrap; }

/* ---------- Planes ---------- */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 40px; font-weight: 600;
}
.trial-cta { text-align: center; margin: -14px 0 40px; }
.switch { position: relative; width: 52px; height: 28px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--border); transition: .25s;
}
.slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  left: 3px; top: 3px; background: var(--gradient); transition: .25s;
}
.switch input:checked + .slider::before { transform: translateX(24px); }

.plans .plan, .buy-grid .buy-card { display: flex; flex-direction: column; position: relative; }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px rgba(56,189,248,.12); }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #0b1020; font-weight: 800; font-size: .72rem;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .08em;
}
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-emoji { font-size: 1.5rem; }
.plan-head h3 { margin: 0; font-size: 1.2rem; }
.badge { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: .06em; }
.badge-free { background: rgba(52,211,153,.15); color: var(--green); }
.badge-pro { background: rgba(56,189,248,.15); color: var(--accent); }
.badge-bus { background: rgba(129,140,248,.18); color: var(--accent-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.per { color: var(--muted); }
.feat { list-style: none; margin-bottom: 22px; flex: 1; }
.feat li {
  padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: .9rem;
  border-bottom: 1px dashed rgba(43,54,99,.6);
}
.feat li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-size: .85rem; }
.feat li b { color: var(--text); }

/* ---------- Comprar ---------- */
.buy-desc { color: var(--muted); font-size: .93rem; margin-bottom: 20px; flex: 1; }
.buy-note {
  margin-top: 34px; text-align: center; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.faq { margin-top: 48px; max-width: 780px; }
.faq h3 { margin-bottom: 18px; font-size: 1.3rem; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: .94rem; }

/* ---------- Sobre Nosotros ---------- */
.about-card.mt { margin-top: 56px; }
.about-card {
  position: relative; overflow: hidden;
  max-width: 920px; margin: 0 auto 26px;
  padding: 40px 36px;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(52, 211, 153, .14), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(56, 189, 248, .08), transparent 55%),
    var(--card);
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: 20px; text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}
.about-card::after {
  content: attr(data-emoji);
  position: absolute; right: -14px; bottom: -34px;
  font-size: 10rem; opacity: .07; pointer-events: none;
  transform: rotate(-12deg);
}
.about-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; border-radius: 18px;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .3);
}
.about-card h3 { font-size: 1.35rem; margin-bottom: 18px; color: var(--green); }
.about-card p { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; position: relative; z-index: 1; }
.about-card p b { color: var(--text); }
.about-card p:last-child { margin-bottom: 0; }
.principles-title { font-size: 1.35rem; margin: 40px 0 22px; color: var(--green); text-align: center; }
.principles { margin-bottom: 48px; }
.about-card.mt { margin-top: 48px; }
.principles .card {
  position: relative; overflow: hidden;
  border-color: rgba(52, 211, 153, .22);
  background:
    radial-gradient(ellipse at 12% -10%, rgba(52, 211, 153, .12), transparent 55%),
    radial-gradient(ellipse at 95% 115%, rgba(56, 189, 248, .07), transparent 55%),
    var(--card);
}
.principles .card::after {
  content: attr(data-emoji);
  position: absolute; right: -12px; bottom: -26px;
  font-size: 7rem; opacity: .08; pointer-events: none;
  transform: rotate(-12deg);
}
.principles .card:hover { border-color: var(--green); }
.principles .card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--green); position: relative; z-index: 1; }
.principles .card p { font-size: .94rem; position: relative; z-index: 1; }

/* ---------- Contacto ---------- */
.contact-grid .card p { margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 8, 18, 0.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-caption { color: var(--muted); margin-top: 14px; font-weight: 600; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; transition: all .2s;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 32px; }
.footer h4 { margin-bottom: 12px; font-size: .95rem; }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: var(--accent); }
.footer p { color: var(--muted); font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 20px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 680px) {
  .carousel-frame { padding: 10px 10px 8px; border-radius: 12px; }
  .tut-viewport { height: 260px; }
  .tut-frame { padding: 8px; }
  .tut-caption { font-size: .9rem; padding: 0 8px; }
  .car-arrow { width: 34px; height: 34px; font-size: 1.15rem; }
  .car-prev { left: 8px; }
  .car-next { right: 8px; }
  .car-caption { font-size: .85rem; padding: 0 8px; }
  .mode-btn { padding: 7px 14px; font-size: .82rem; }
  .car-dot { width: 8px; height: 8px; }
  .lightbox { padding: 10px; }
  .lightbox img { max-width: 98vw; max-height: 80vh; }
  .lightbox-close { top: 10px; right: 12px; width: 38px; height: 38px; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px;
  }
  .nav.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-toggle { display: block; }
  .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0; }
}
