/* ════════════════════════════════════════════════════════════
   base.css — MITSURI BOT · sistema de diseño "Sakura Systems"
   Dirección: infraestructura elegante bajo un cerezo — negro
   profundo, sakura, coral y morado, con acentos de cristal y
   glow contenido. Variables compatibles con comandos.css,
   stats.css, desbloqueo.css y subbot-form.js/comandos.js/stats.js
   (mismos nombres de variable, IDs y clases que antes).
   ════════════════════════════════════════════════════════════ */

:root {
  --blush: #0A060D;                       /* fondo: negro con tinte violeta */
  --card: rgba(255, 255, 255, 0.045);     /* panel "cristal" translúcido */
  --card-solid: #140B17;
  --rose: #FF8FC4;                        /* sakura */
  --rose-deep: #E8487F;                   /* coral-rosa, acento primario/CTA */
  --violet: #8B6BFF;                      /* morado profundo, acento premium */
  --gold: #B79BFF;                        /* alias retro-compatible → lila de glow */
  --moss: #34D399;                        /* éxito, uso escaso */
  --moss-light: rgba(52, 211, 153, 0.12);
  --ink: #F8F1F6;
  --ink-soft: #BDA8C0;
  --border: rgba(255, 255, 255, 0.10);
  --ok: #34D399;
  --warn: #FF6F91;
  --max-w: 720px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 620px 480px at 10% 0%, rgba(232, 72, 127, 0.16), transparent 60%),
    radial-gradient(ellipse 680px 520px at 100% 10%, rgba(139, 107, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 720px 560px at 50% 110%, rgba(52, 211, 153, 0.06), transparent 60%),
    var(--blush);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Textura sutil de grilla técnica, muy tenue, detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
}

/* ── Pétalos ambientales — leves, elegantes, no infantiles ── */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }

.petal {
  position: absolute;
  bottom: -6%;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 72%);
  opacity: 0.4;
  border-radius: 50%;
  filter: blur(1px);
  animation: fall linear infinite;
}
.petal:nth-child(3n) {
  width: 7px; height: 7px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 72%);
  opacity: 0.38;
}
.petal:nth-child(3n+1) {
  width: 17px; height: 17px;
  background: radial-gradient(circle, var(--rose-deep) 0%, transparent 72%);
  opacity: 0.22;
  filter: blur(2px);
}
.petal:nth-child(5n) { animation-name: fall-sway; }

@keyframes fall {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}
@keyframes fall-sway {
  0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  30%  { transform: translateY(-30vh) translateX(20px) scale(1); }
  60%  { transform: translateY(-62vh) translateX(-16px) scale(1); }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-112vh) translateX(8px) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; display: none; }
}

/* ── Navegación ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 28px;
  flex-wrap: wrap;
  background: rgba(10, 6, 13, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(100deg, var(--rose-deep), var(--violet) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  box-shadow: 0 0 10px 2px rgba(232, 72, 127, 0.55);
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.nav-links a.active {
  background: linear-gradient(100deg, var(--rose-deep), var(--violet));
  color: #0A060D;
  font-weight: 700;
}

.nav-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.nav-cta {
  background: linear-gradient(100deg, var(--rose-deep), var(--violet)) !important;
  color: #0A060D !important;
  font-weight: 700 !important;
}

/* ── Layout principal ── */
main.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(20px, 6vw, 56px) 24px;
}

/* Card tipo "cristal" con hairline superior + aura */
.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 26px;
  max-width: 440px;
  width: 100%;
  padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 32px);
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.7;
}

.card::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 34px;
  background: radial-gradient(closest-side, rgba(232, 72, 127, 0.20), transparent);
  filter: blur(22px);
  animation: aura-breathe 4.5s ease-in-out infinite;
}
@keyframes aura-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.98); }
  50%      { opacity: 0.85; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .card::before { animation: none; opacity: 0.55; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 6px;
  text-align: center;
}
.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 8px; margin: 0 8px; opacity: 0.6; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6.5vw, 36px);
  line-height: 1.1;
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.01em;
  background: linear-gradient(115deg, var(--ink) 30%, var(--rose) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 28px;
}

button, .btn {
  position: relative;
  overflow: hidden;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--rose-deep), var(--violet) 85%);
  color: #0A060D;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.btn::before, button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.btn:hover::before, button:hover:not(:disabled)::before { transform: translateX(120%); }
.btn:hover, button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(232, 72, 127, 0.45);
}
.btn:active, button:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--violet); color: var(--rose); }

/* ── Utilidades de sección compartidas (landing y páginas nuevas) ── */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) 24px;
}
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

.glass-panel {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--rose);
  background: rgba(232, 72, 127, 0.10);
  border: 1px solid rgba(232, 72, 127, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Revelado al hacer scroll — usado por reveal.js */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Teaser de enlaces bajo una card (usado en obtener-subbot.html y desbloqueo.html) */
.teaser {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.teaser a {
  flex: 1;
  min-width: 150px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.teaser a:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  box-shadow: 0 14px 30px -16px rgba(139, 107, 255, 0.35);
}
.teaser strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
@media (max-width: 380px) {
  .teaser a { min-width: 130px; }
}

/* ── Footer compartido ── */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 24px 30px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-links a:hover { color: var(--rose); border-color: var(--rose); }

.footer-signature {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.7;
}
