/* ═══ ALMA IA · EVOLUTION CSS ═══ */
/* Prefijo: .ev-  |  Sin tocar estilos existentes */

/* ── Variables ── */
:root {
  --ev-gold: #ffd700;
  --ev-purple: #9333ea;
  --ev-bg: rgba(15,5,40,0.97);
  --ev-radius: 20px;
  --ev-shadow: 0 8px 40px rgba(147,51,234,0.3);
}

/* ── Botones base ── */
.ev-btn-primary {
  display: block; width: 100%; padding: 15px;
  border: none; border-radius: 60px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a0833; font-size: 14px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; letter-spacing: 1.5px;
  cursor: pointer; box-shadow: 0 6px 24px rgba(255,215,0,.35);
  margin-bottom: 10px; transition: transform .15s, box-shadow .15s;
}
.ev-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,215,0,.5); }

.ev-btn-ghost {
  display: block; width: 100%; padding: 10px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50px;
  background: transparent; color: #666;
  font-size: 11px; font-family: 'Montserrat', sans-serif; cursor: pointer;
}

/* ── Teaser ── */
.ev-teaser {
  position: fixed; bottom: -100%; left: 50%; transform: translateX(-50%);
  width: min(92vw, 420px); background: var(--ev-bg);
  border: 1px solid rgba(147,51,234,.4); border-radius: var(--ev-radius);
  padding: 28px 24px; z-index: 9990; text-align: center;
  box-shadow: var(--ev-shadow); transition: bottom .4s cubic-bezier(.34,1.56,.64,1);
}
.ev-teaser.ev-open { bottom: 24px; }
.ev-teaser-icon { font-size: 36px; margin-bottom: 12px; }
.ev-teaser-msg { font-family: 'Cinzel', serif; font-size: 15px; color: var(--ev-gold); letter-spacing: 1.5px; margin-bottom: 8px; }
.ev-teaser-sub { font-size: 12px; color: #9ca3af; margin-bottom: 20px; }

/* ── Paywall ── */
.ev-paywall {
  position: absolute; inset: 0;
  background: rgba(10,4,28,.85); border-radius: inherit;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px; text-align: center;
  backdrop-filter: blur(4px);
}
.ev-paywall-icon { font-size: 32px; margin-bottom: 12px; }
.ev-paywall-title { font-family: 'Cinzel', serif; font-size: 15px; color: var(--ev-gold); margin-bottom: 8px; }
.ev-paywall-sub { font-size: 11px; color: #9ca3af; margin-bottom: 20px; line-height: 1.7; }

/* ── Botón global flotante ── */
.ev-global-btn {
  position: fixed; bottom: 84px; right: 16px; z-index: 9980;
  padding: 12px 20px; border: none; border-radius: 50px;
  background: linear-gradient(135deg, #9333ea, #ffd700 200%);
  color: #fff; font-size: 12px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; letter-spacing: 1px;
  cursor: pointer; box-shadow: 0 4px 20px rgba(147,51,234,.45);
  animation: ev-pulse 3s ease-in-out infinite;
}
@keyframes ev-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(147,51,234,.45); }
  50% { box-shadow: 0 6px 32px rgba(255,215,0,.5); }
}

/* ── Toast ── */
.ev-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(30,10,60,.95); color: #e9d5ff;
  border: 1px solid rgba(147,51,234,.3); border-radius: 12px;
  padding: 12px 20px; font-size: 13px; z-index: 10000;
  opacity: 0; transition: opacity .3s, transform .3s;
  white-space: nowrap; max-width: 90vw;
}
.ev-toast.ev-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ev-toast-warn { border-color: rgba(239,68,68,.4); color: #fca5a5; }
.ev-toast-link { color: var(--ev-gold); cursor: pointer; margin-left: 8px; font-weight: 700; }

/* ── Reenganche ── */
.ev-reengage {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  width: min(92vw, 380px); background: var(--ev-bg);
  border: 1px solid rgba(147,51,234,.4); border-radius: var(--ev-radius);
  padding: 24px; z-index: 9990; text-align: center;
  box-shadow: var(--ev-shadow); transition: top .4s cubic-bezier(.34,1.56,.64,1);
}
.ev-reengage.ev-open { top: 24px; }
.ev-reengage-msg { font-family: 'Cinzel', serif; font-size: 16px; color: var(--ev-gold); margin-bottom: 8px; }
.ev-reengage-sub { font-size: 12px; color: #9ca3af; margin-bottom: 20px; }

/* ── Result teaser ── */
.ev-result-teaser { text-align: center; padding: 20px 0; }
.ev-result-partial {
  background: rgba(147,51,234,.08); border-radius: 12px;
  padding: 16px; margin-bottom: 16px; position: relative;
}
.ev-result-pct {
  font-size: 11px; color: #6b7280; margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
}
.ev-result-msg { font-size: 13px; color: #c4b5d4; margin-bottom: 20px; line-height: 1.7; }

/* ── Permiso push ── */
.ev-perm-prompt {
  position: fixed; bottom: -100%; left: 50%; transform: translateX(-50%);
  width: min(92vw, 400px); background: var(--ev-bg);
  border: 1px solid rgba(147,51,234,.4); border-radius: var(--ev-radius);
  padding: 28px 24px; z-index: 9995; text-align: center;
  box-shadow: var(--ev-shadow); transition: bottom .4s cubic-bezier(.34,1.56,.64,1);
}
.ev-perm-prompt.ev-open { bottom: 24px; }
.ev-perm-icon { font-size: 36px; margin-bottom: 12px; }
.ev-perm-title { font-family: 'Cinzel', serif; font-size: 16px; color: var(--ev-gold); margin-bottom: 8px; }
.ev-perm-sub { font-size: 12px; color: #9ca3af; margin-bottom: 20px; line-height: 1.7; }

/* ── Push toggle ── */
.ev-push-toggle {
  position: fixed; bottom: 136px; right: 16px; z-index: 9970;
  display: flex; align-items: center; gap: 10px;
  background: rgba(15,5,40,.9); border: 1px solid rgba(147,51,234,.3);
  border-radius: 50px; padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ev-toggle-label { font-size: 11px; color: #c4b5d4; font-family: 'Montserrat', sans-serif; white-space: nowrap; }
.ev-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.ev-switch input { opacity: 0; width: 0; height: 0; }
.ev-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.15); border-radius: 20px;
  transition: .3s;
}
.ev-slider:before {
  content: ''; position: absolute; height: 14px; width: 14px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: .3s;
}
.ev-switch input:checked + .ev-slider { background: var(--ev-purple); }
.ev-switch input:checked + .ev-slider:before { transform: translateX(16px); }
