/* ============================================================
   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;
  --accent-trial: #360405;
  --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; }

/* ---------- Panel de noticias (flotante) ---------- */
.news-panel {
  position: fixed; top: 78px; right: 18px; z-index: 90; width: 300px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(52, 211, 153, .18), transparent 60%),
    var(--card);
  border: 1px solid rgba(52, 211, 153, .4); border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  animation: newsIn .5s ease;
}
@keyframes newsIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.news-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: var(--muted); font-size: 1rem; cursor: pointer; line-height: 1;
}
.news-close:hover { color: var(--text); }
.news-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-badge { font-size: 1.1rem; }
.news-title { font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.news-body { display: block; }
.news-body p { color: var(--text); font-size: .9rem; margin-bottom: 8px; }
.news-cta { color: var(--green); font-weight: 700; font-size: .88rem; }
.news-body:hover .news-cta { text-decoration: underline; }
.news-all {
  display: block; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--accent); font-weight: 600; font-size: .82rem;
}
.news-all:hover { text-decoration: underline; }

/* Página de noticias */
.news-list { max-width: 780px; margin: 0 auto; }
.news-item {
  position: relative;
  background:
    radial-gradient(ellipse at 0% -20%, rgba(52, 211, 153, .10), transparent 60%),
    var(--card);
  border: 1px solid rgba(52, 211, 153, .28);
  border-left: 4px solid var(--green); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 16px; text-align: left;
}
.news-item h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--green); }
/* Tarjetas intercaladas: la alterna en celeste */
.news-item-alt {
  background:
    radial-gradient(ellipse at 0% -20%, rgba(56, 189, 248, .10), transparent 60%),
    var(--card);
  border-color: rgba(56, 189, 248, .28);
  border-left-color: var(--accent);
}
.news-item-alt h3 { color: var(--accent); }
.news-item-date { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.news-item p { color: var(--muted); margin-bottom: 14px; }
.news-item-dtitle { color: var(--text); font-weight: 700; margin: 6px 0 8px; }
.news-item-list { list-style: none; margin: 0 0 14px; padding: 0; }
.news-item-list li { color: var(--muted); font-size: .95rem; padding: 4px 0; line-height: 1.45; }
.news-item-cta {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: .92rem;
}
.news-item-cta:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .news-panel { position: static; width: auto; margin: 12px 16px 0; }
}

/* ---------- 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; }
.os-ico {
  width: 18px; height: 18px; vertical-align: -3px;
  margin-right: 6px; display: inline-block;
}

.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; }
/* Un color distinto por tarjeta de estadística */
.stat-c1 { background: linear-gradient(160deg, rgba(16,185,129,.16), var(--card) 65%); border-color: rgba(16,185,129,.38); }
.stat-c1 .stat-num, .stat-c1 .stat-suffix { color: #34d399; }
.stat-c2 { background: linear-gradient(160deg, rgba(56,189,248,.16), var(--card) 65%); border-color: rgba(56,189,248,.40); }
.stat-c2 .stat-num, .stat-c2 .stat-suffix { color: #38bdf8; }
.stat-c3 { background: linear-gradient(160deg, rgba(245,158,11,.16), var(--card) 65%); border-color: rgba(245,158,11,.40); }
.stat-c3 .stat-num, .stat-c3 .stat-suffix { color: #f59e0b; }
.stat-c4 { background: linear-gradient(160deg, rgba(236,72,153,.16), var(--card) 65%); border-color: rgba(236,72,153,.40); }
.stat-c4 .stat-num, .stat-c4 .stat-suffix { color: #ec4899; }
/* Un color distinto por tarjeta de beneficios */
.ben-c1 { background: linear-gradient(160deg, rgba(56,189,248,.14), var(--card) 65%); border-color: rgba(56,189,248,.38); }
.ben-c1 h3 { color: #38bdf8; }
.ben-c2 { background: linear-gradient(160deg, rgba(16,185,129,.14), var(--card) 65%); border-color: rgba(16,185,129,.38); }
.ben-c2 h3 { color: #34d399; }
.ben-c3 { background: linear-gradient(160deg, rgba(245,158,11,.14), var(--card) 65%); border-color: rgba(245,158,11,.38); }
.ben-c3 h3 { color: #f59e0b; }
.ben-c4 { background: linear-gradient(160deg, rgba(167,139,250,.16), var(--card) 65%); border-color: rgba(167,139,250,.40); }
.ben-c4 h3 { color: #a78bfa; }
/* 9 colores distintos para la sección de características */
.feat-c1 { background: linear-gradient(160deg, rgba(56,189,248,.14), var(--card) 66%); border-color: rgba(56,189,248,.36); }
.feat-c1 h3 { color: #38bdf8; }
.feat-c2 { background: linear-gradient(160deg, rgba(16,185,129,.14), var(--card) 66%); border-color: rgba(16,185,129,.36); }
.feat-c2 h3 { color: #34d399; }
.feat-c3 { background: linear-gradient(160deg, rgba(245,158,11,.14), var(--card) 66%); border-color: rgba(245,158,11,.36); }
.feat-c3 h3 { color: #f59e0b; }
.feat-c4 { background: linear-gradient(160deg, rgba(167,139,250,.14), var(--card) 66%); border-color: rgba(167,139,250,.36); }
.feat-c4 h3 { color: #a78bfa; }
.feat-c5 { background: linear-gradient(160deg, rgba(236,72,153,.14), var(--card) 66%); border-color: rgba(236,72,153,.36); }
.feat-c5 h3 { color: #ec4899; }
.feat-c6 { background: linear-gradient(160deg, rgba(45,212,191,.14), var(--card) 66%); border-color: rgba(45,212,191,.36); }
.feat-c6 h3 { color: #2dd4bf; }
.feat-c7 { background: linear-gradient(160deg, rgba(248,113,113,.14), var(--card) 66%); border-color: rgba(248,113,113,.36); }
.feat-c7 h3 { color: #f87171; }
.feat-c8 { background: linear-gradient(160deg, rgba(129,140,248,.14), var(--card) 66%); border-color: rgba(129,140,248,.36); }
.feat-c8 h3 { color: #818cf8; }
.feat-c9 { background: linear-gradient(160deg, rgba(163,230,53,.13), var(--card) 66%); border-color: rgba(163,230,53,.34); }
.feat-c9 h3 { color: #a3e635; }

/* 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; }
/* En modo dark las capturas son oscuras: flechas naranjas para que resalten */
.carousel.mode-dark .car-arrow,
.tut-carousel .car-arrow {
  background: rgba(251, 146, 60, .92);
  color: #1c1204;
  border-color: rgba(251, 146, 60, .55);
}
.carousel.mode-dark .car-arrow:hover,
.tut-carousel .car-arrow:hover {
  background: #fb923c; color: #000;
  border-color: #fdba74;
}
.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; }

/* Sección "Sin IA: resultados consistentes" */
.noai-card {
  position: relative; overflow: hidden;
  max-width: 920px; margin: 0 auto 28px; padding: 34px 32px;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(56, 189, 248, .16), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(129, 140, 248, .12), transparent 55%),
    var(--card);
  border: 1px solid rgba(56, 189, 248, .32);
  border-radius: 18px; text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
}
/* Variante verde (color del plan Gratuito) */
.noai-card.noai-green {
  background:
    radial-gradient(ellipse at 15% -10%, rgba(16, 185, 129, .22), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(52, 211, 153, .14), transparent 55%),
    var(--card);
  border-color: rgba(16, 185, 129, .45);
}
.noai-card::after {
  content: attr(data-emoji);
  position: absolute; right: -14px; bottom: -30px;
  font-size: 9rem; opacity: .07; pointer-events: none;
  transform: rotate(-12deg);
}
.noai-card p { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; position: relative; z-index: 1; }
.noai-card p:last-child { margin-bottom: 0; }
.noai-card p b { color: var(--text); }
.noai-pillars-title { font-size: 1.2rem; margin: 34px 0 20px; color: var(--accent); text-align: center; }
.noai-nots {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 28px auto; max-width: 920px;
}
.noai-nots p {
  margin: 0; background: rgba(248, 113, 113, .10);
  border: 1px solid rgba(248, 113, 113, .32); border-radius: 999px;
  padding: 10px 20px; color: var(--text); font-weight: 600; font-size: .93rem;
}
.noai-claim { text-align: center; margin-top: 30px; }
.noai-claim1 {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 8px;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.noai-claim2 { color: var(--muted); font-size: 1.02rem; }

/* Tarjeta de invitación / compromiso */
.promo-card {
  position: relative; overflow: hidden;
  max-width: 920px; margin: 0 auto; padding: 36px 34px;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(52, 211, 153, .16), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(251, 191, 36, .12), transparent 55%),
    var(--card);
  border: 1px solid rgba(52, 211, 153, .34);
  border-radius: 18px; text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
}
.promo-card::after {
  content: attr(data-emoji);
  position: absolute; right: -14px; bottom: -30px;
  font-size: 9rem; opacity: .07; pointer-events: none; transform: rotate(-12deg);
}
.promo-card p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; position: relative; z-index: 1; }
.promo-card p:last-child { margin-bottom: 0; }
.promo-card p b { color: var(--text); }

/* CTA band — color violeta para diferenciarla, con marca de agua */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(129, 140, 248, .22), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(167, 139, 250, .14), transparent 55%),
    var(--card);
  border: 1px solid rgba(129, 140, 248, .38); border-radius: 18px;
  text-align: center; padding: 48px 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute; right: -14px; bottom: -30px;
  font-size: 9rem; opacity: .08; pointer-events: none;
  transform: rotate(-12deg); z-index: 0;
}
.cta-band p { color: var(--muted); margin-bottom: 22px; }
.cta-band h2 { margin-bottom: 10px; color: var(--accent-2); }

/* ---------- 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-trial { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-trial:hover { border-color: var(--accent-trial); color: var(--accent-trial); }
.btn-download { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1204; }
.btn-download:hover { opacity: .88; transform: translateY(-1px); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: auto; }
.btn-block + .btn-block { margin-top: 10px; }

/* ---------- 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-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.plan-actions .btn-block { margin-top: 0; }
.plan-placeholder { visibility: hidden; pointer-events: none; }
.plan-placeholder::before { content: "\00a0"; }
.launch-placeholder { visibility: hidden; pointer-events: none; }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px rgba(56,189,248,.12); }

/* Tinte de color por plan para que cada card resalte (verde / azul / dorado) */
.card.plan-free { background: linear-gradient(160deg, rgba(16,185,129,.22), var(--card) 58%); border-color: rgba(16,185,129,.45); }
.card.plan-pro  { background: linear-gradient(160deg, rgba(56,189,248,.22), var(--card) 58%); border-color: rgba(56,189,248,.48); }
.card.plan-bus  { background: linear-gradient(160deg, rgba(245,158,11,.22), var(--card) 58%); }
.card.plan-bus.plan-popular { border-color: rgba(245,158,11,.75); box-shadow: 0 0 0 1px rgba(245,158,11,.6), 0 18px 44px rgba(245,158,11,.18); }
/* Las tarjetas de plan reservan espacio arriba para la etiqueta POPULAR,
   así los 3 planes quedan alineados aunque solo uno la tenga. */
.plans .plan, .buy-grid .buy-card { padding-top: 46px; }
.card[data-emoji] > .popular-tag,
.popular-tag {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: auto; z-index: 2;
  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; justify-content: 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; justify-content: center; gap: 8px; margin-bottom: 18px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.price-old {
  color: var(--muted); font-size: 1.35rem; font-weight: 600;
  text-decoration: line-through; margin-right: 6px; opacity: .75;
}
.launch-tag {
  display: inline-block; margin: -8px 0 16px;
  background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4);
  color: #fbbf24; font-weight: 700; font-size: .8rem;
  padding: 4px 12px; border-radius: 999px;
}
.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: 48px auto 0; max-width: 780px; }
.faq h3 { margin-bottom: 18px; font-size: 1.3rem; text-align: center; }
.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: linear-gradient(160deg, rgba(52, 211, 153, .30) 0%, rgba(52, 211, 153, .10) 45%, rgba(16, 45, 38, .9) 100%), var(--card);
  border: 1px solid rgba(52, 211, 153, .65);
  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 { transform: translateY(-2px); }
.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; }
/* Un color distinto por principio */
.principles .card:nth-child(1)  { border-color: rgba(56,189,248,.38);  background: linear-gradient(160deg, rgba(56,189,248,.14),  var(--card) 66%); }
.principles .card:nth-child(1) h3  { color: #38bdf8; }
.principles .card:nth-child(2)  { border-color: rgba(16,185,129,.38);  background: linear-gradient(160deg, rgba(16,185,129,.14),  var(--card) 66%); }
.principles .card:nth-child(2) h3  { color: #34d399; }
.principles .card:nth-child(3)  { border-color: rgba(245,158,11,.38);  background: linear-gradient(160deg, rgba(245,158,11,.14),  var(--card) 66%); }
.principles .card:nth-child(3) h3  { color: #f59e0b; }
.principles .card:nth-child(4)  { border-color: rgba(167,139,250,.38); background: linear-gradient(160deg, rgba(167,139,250,.14), var(--card) 66%); }
.principles .card:nth-child(4) h3  { color: #a78bfa; }
.principles .card:nth-child(5)  { border-color: rgba(236,72,153,.38);  background: linear-gradient(160deg, rgba(236,72,153,.14),  var(--card) 66%); }
.principles .card:nth-child(5) h3  { color: #ec4899; }
.principles .card:nth-child(6)  { border-color: rgba(45,212,191,.38);  background: linear-gradient(160deg, rgba(45,212,191,.14),  var(--card) 66%); }
.principles .card:nth-child(6) h3  { color: #2dd4bf; }
.principles .card:nth-child(7)  { border-color: rgba(248,113,113,.38); background: linear-gradient(160deg, rgba(248,113,113,.14), var(--card) 66%); }
.principles .card:nth-child(7) h3  { color: #f87171; }
.principles .card:nth-child(8)  { border-color: rgba(129,140,248,.38); background: linear-gradient(160deg, rgba(129,140,248,.14), var(--card) 66%); }
.principles .card:nth-child(8) h3  { color: #818cf8; }
.principles .card:nth-child(9)  { border-color: rgba(163,230,53,.36);  background: linear-gradient(160deg, rgba(163,230,53,.13),  var(--card) 66%); }
.principles .card:nth-child(9) h3  { color: #a3e635; }
.principles .card:nth-child(10) { border-color: rgba(251,146,60,.38);  background: linear-gradient(160deg, rgba(251,146,60,.14),  var(--card) 66%); }
.principles .card:nth-child(10) h3 { color: #fb923c; }

/* ---------- Compra Pro / Business ---------- */
.pur-legend {
  max-width: 900px; margin: 0 auto 34px; text-align: center;
  background: rgba(251, 191, 36, .10); border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 12px; padding: 16px 20px; color: var(--text); font-size: .98rem;
}
.pur-grid { display: grid; grid-template-columns: 1fr; gap: 34px; max-width: 900px; margin: 0 auto; }
.pur-block > h3 { font-size: 1.25rem; margin-bottom: 16px; color: var(--accent); text-align: center; }
.pur-region-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; margin-bottom: 16px;
}
.pur-peru { border-color: rgba(52, 211, 153, .35); }
.pur-otro { border-color: rgba(56, 189, 248, .30); }
.pur-region-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.pur-region-title { font-weight: 700; font-size: 1.02rem; }
.pur-price {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 800; font-size: 1.1rem; color: var(--green);
  background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3);
  padding: 5px 14px; border-radius: 999px;
}
.pur-price-usd { color: var(--accent); background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .3); }
.pur-old { color: var(--muted); font-weight: 600; font-size: .92rem; opacity: .8; }
.pur-launch {
  background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .45);
  color: #fbbf24; font-size: .7rem; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; letter-spacing: .04em;
}
.pur-subnote {
  max-width: 900px; margin: 0 auto 14px; text-align: center;
  background: rgba(52, 211, 153, .10); border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 10px; padding: 10px 16px; color: var(--text); font-size: .92rem;
}
.pur-peru-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.pur-subcol {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.pur-method { display: block; margin-bottom: 12px; font-size: .95rem; }
.pur-qr {
  height: 170px; border: 2px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: .85rem; padding: 8px;
}
.pur-bank {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 8px;
}
.pur-bank-name { font-weight: 700; font-size: .9rem; }
.pur-bank-acc { color: var(--muted); font-size: .82rem; }
.pur-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pur-btns-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-pay {
  display: block; width: 100%; max-width: 460px; margin: 0 auto;
  text-align: center; font-size: .9rem; padding: 12px 14px;
}
.btn-mp { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; }
.btn-pp { background: linear-gradient(135deg, #f4d33f, #ffc439); color: #1c2733; }
.btn-paypal { background: linear-gradient(135deg, #0070ba, #003087); color: #fff; }
.btn-otras { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-yellow { background: linear-gradient(135deg, #f4d33f, #ffc439); color: #1c2733; border: none; font-weight: 700; }
.btn-yellow:hover { opacity: .92; transform: translateY(-1px); }
.btn-pay:hover { opacity: .9; transform: translateY(-1px); }

/* --- Control segmentado de facturación: Mensual / Anual / Permanente --- */
.billing-seg { display: flex; gap: 4px; width: max-content; margin: 0 auto 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.seg-btn { border: none; background: transparent; color: var(--muted); font-weight: 700; padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: .9rem; transition: all .15s ease; }
.seg-btn.active { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; }
.seg-btn:hover:not(.active) { color: #fff; }
@media (max-width: 520px) { .seg-btn { padding: 8px 12px; font-size: .82rem; } }

/* --- Compra unificada: columnas Pro / Business / Pago con radios --- */
.pur-unified { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1140px; margin: 0 auto; align-items: start; }
.pur-col { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; }
.pur-col-pro { background: linear-gradient(160deg, rgba(56,189,248,.14), var(--card) 60%); border-color: rgba(56,189,248,.38); }
.pur-col-business { background: linear-gradient(160deg, rgba(245,158,11,.14), var(--card) 60%); border-color: rgba(245,158,11,.38); }
.pur-col-pay { background: linear-gradient(160deg, rgba(45,212,191,.16), var(--card) 60%); border-color: rgba(45,212,191,.42); }
.pur-col-title { text-align: center; font-size: 1.2rem; font-weight: 800; margin: 0 0 16px; }
.pur-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; cursor: pointer; transition: all .15s ease; }
.pur-opt:last-child { margin-bottom: 0; }
.pur-opt:hover { border-color: var(--accent); }
.pur-opt input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.pur-opt.sel { border-color: var(--accent); background: rgba(56,189,248,.10); box-shadow: 0 0 0 1px var(--accent); }
.pur-opt-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pur-opt-badge { font-size: .7rem; color: var(--muted); font-weight: 600; }
.pur-opt-price { margin-left: auto; text-align: right; white-space: nowrap; font-size: 1.1rem; font-weight: 800; color: #fff; }
.pur-opt-price .pur-old { font-size: .82rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.pur-pay-col { position: sticky; top: 90px; }
.pur-pay-btns { display: flex; flex-direction: column; gap: 10px; }
.pur-pay-btns .btn-pay { max-width: none; }
.pur-selected { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 16px; line-height: 1.5; }
.pur-selected b { color: var(--text); }
@media (max-width: 900px) {
  .pur-unified { grid-template-columns: 1fr; max-width: 460px; }
  .pur-pay-col { position: static; }
}

/* --- Compra simplificada: Mensual / Anual / Permanente --- */
.pur-cur { font-size: .95rem; color: var(--accent); font-weight: 700; }
.pur-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.pur-card { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.pur-card-perm { border-color: rgba(167, 139, 250, .55) !important; box-shadow: 0 0 0 1px rgba(167, 139, 250, .25), 0 10px 30px rgba(124, 58, 237, .18); }
.pur-card-top { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pur-card-title { font-size: 1.3rem; font-weight: 800; }
.pur-card-price { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.1; }
.pur-card-price .pur-old { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-right: 6px; }
.pur-per { font-size: .9rem; color: var(--muted); font-weight: 600; }
.pur-card-usd { color: var(--accent); font-weight: 700; }
.pur-card-usd .pur-old { color: var(--muted); font-weight: 600; margin-right: 4px; }
.pur-card-btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.pur-card-btns .btn-pay { max-width: none; }

@media (max-width: 860px) {
  .pur-grid3 { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 720px) {
  .pur-peru-cols { grid-template-columns: 1fr; }
}

/* ---------- Descarga ---------- */
.dl-back { text-align: center; margin-bottom: 30px; }
.dl-back-end { margin-bottom: 0; margin-top: 36px; }

/* Colores representativos por plan — bien diferenciados */
.card[data-dlcard] { border-width: 2px; }

.card[data-dlcard="free"] {
  border-color: rgba(52, 211, 153, .65);
  background: linear-gradient(160deg, rgba(52, 211, 153, .30) 0%, rgba(52, 211, 153, .10) 45%, rgba(16, 45, 38, .9) 100%), var(--card);
}
.card[data-dlcard="free"] h3 { color: var(--green); }
.card[data-dlcard="free"]:hover { border-color: var(--green); }
.card[data-dlcard="free"] .dl-links a { background: rgba(6, 32, 25, .55); border-color: rgba(52, 211, 153, .35); }
.card[data-dlcard="free"] .dl-links a:hover { border-color: var(--green); color: var(--green); }

.card[data-dlcard="trial"] {
  border-color: rgba(251, 191, 36, .65);
  background: linear-gradient(160deg, rgba(251, 191, 36, .28) 0%, rgba(251, 146, 60, .10) 45%, rgba(50, 36, 8, .9) 100%), var(--card);
}
.card[data-dlcard="trial"] h3 { color: #fbbf24; }
.card[data-dlcard="trial"]:hover { border-color: #fbbf24; }
.card[data-dlcard="trial"] .dl-links a { background: rgba(37, 26, 5, .55); border-color: rgba(251, 191, 36, .35); }
.card[data-dlcard="trial"] .dl-links a:hover { border-color: #fbbf24; color: #fbbf24; }

.card[data-dlcard="pro"] {
  border-color: rgba(56, 189, 248, .65);
  background: linear-gradient(160deg, rgba(56, 189, 248, .30) 0%, rgba(56, 189, 248, .10) 45%, rgba(8, 35, 54, .9) 100%), var(--card);
}
.card[data-dlcard="pro"] h3 { color: var(--accent); }
.card[data-dlcard="pro"]:hover { border-color: var(--accent); }
.card[data-dlcard="pro"] .dl-links a { background: rgba(4, 25, 40, .55); border-color: rgba(56, 189, 248, .35); }
.card[data-dlcard="pro"] .dl-links a:hover { border-color: var(--accent); color: var(--accent); }

.card[data-dlcard="business"] {
  border-color: rgba(167, 139, 250, .65);
  background: linear-gradient(160deg, rgba(167, 139, 250, .30) 0%, rgba(129, 140, 248, .10) 45%, rgba(32, 24, 60, .9) 100%), var(--card);
}
.card[data-dlcard="business"] h3 { color: #a78bfa; }
.card[data-dlcard="business"]:hover { border-color: #a78bfa; }
.card[data-dlcard="business"] .dl-links a { background: rgba(22, 15, 45, .55); border-color: rgba(167, 139, 250, .35); }

/* Color representativo por sistema operativo (gana por especificidad) */
.card[data-dlcard] .dl-links a[data-dl$="-win"]   { background: rgba(0, 120, 215, .18);  border-color: rgba(0, 120, 215, .5); }
.card[data-dlcard] .dl-links a[data-dl$="-mac"]   { background: rgba(170, 180, 190, .14); border-color: rgba(195, 203, 211, .45); }
.card[data-dlcard] .dl-links a[data-dl$="-linux"] { background: rgba(247, 181, 0, .15);   border-color: rgba(247, 181, 0, .5); }
.card[data-dlcard] .dl-links a[data-dl$="-win"]:hover   { border-color: #2f9be0; color: #8fccf5; }
.card[data-dlcard] .dl-links a[data-dl$="-mac"]:hover   { border-color: #d3d9df; color: #eef1f4; }
.card[data-dlcard] .dl-links a[data-dl$="-linux"]:hover { border-color: #fcc624; color: #f7d354; }
.card[data-dlcard="business"] .dl-links a:hover { border-color: #a78bfa; color: #a78bfa; }
.dl-links { margin-top: 16px; }

/* Más aire entre las 4 tarjetas de descarga */
#page-descarga .grid-2 { gap: 40px; max-width: 1080px; margin: 0 auto; }
#page-descarga .card[data-dlcard] { padding: 32px 30px; }
#page-descarga .dl-links { margin-top: 22px; }
#page-descarga .dl-links a { padding: 14px 18px; margin-bottom: 14px; }

.dl-links a {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 10px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: .95rem;
  transition: all .2s;
}
.dl-links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.dl-links .os-ico { width: 20px; height: 20px; vertical-align: middle; margin: 0; }
.dl-os { font-weight: 700; }
.dl-file { flex-basis: 100%; margin-left: 30px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.dl-file-soon { font-style: italic; opacity: .8; }
.dl-macnote {
  margin: -2px 0 12px; padding: 10px 12px;
  background: rgba(251, 191, 36, .10); border: 1px solid rgba(251, 191, 36, .32);
  border-radius: 8px; color: var(--muted); font-size: .8rem; line-height: 1.45;
}
.dl-macnote b { color: var(--text); }
.dl-macnote code {
  display: inline-block; margin-top: 4px; background: #0a0f1e; color: var(--accent);
  padding: 3px 8px; border-radius: 6px; font-size: .82rem; word-break: break-all;
}

/* ---------- 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: 1.6fr 1fr 1fr 1.2fr 1.2fr; gap: 24px; padding-bottom: 32px; }
/* Columna destacada de Novedades */
.footer-news {
  background:
    radial-gradient(ellipse at 30% -20%, rgba(52, 211, 153, .16), transparent 60%),
    var(--card);
  border: 1px solid rgba(52, 211, 153, .35); border-radius: 12px;
  padding: 16px 18px; align-self: start;
}
.footer-news h4 { color: var(--green); }
.footer-news-link {
  display: inline-flex !important; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text) !important; padding: 2px 0 !important;
}
.footer-news-link:hover { color: var(--green) !important; }
.footer-news-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: newsPulse 2s infinite;
}
@keyframes newsPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.footer-news-badge {
  display: inline-block; margin-top: 8px;
  background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4);
  color: #fbbf24; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.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-social {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; padding: 8px 20px 4px;
}
.footer-social-label { color: var(--muted); font-size: .9rem; font-weight: 600; margin-right: 4px; }
.soc {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  transition: all .2s;
  font-size: 0; line-height: 0; padding: 0;
}
.soc svg { width: 22px; height: 22px; display: block; }
.soc:hover { transform: translateY(-2px); color: #fff; }
.soc-wa:hover { background: #25D366; border-color: #25D366; }
.soc-fb:hover { background: #1877F2; border-color: #1877F2; }
.soc-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; }
.soc-tt:hover { background: #000; border-color: #69C9D0; color: #69C9D0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 20px; text-align: center; margin-top: 8px; }

/* ---------- 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; }
}
