/* ===================================================
   TU PORTAL DEL ALMA — personality.css v2
   Interior: botones, cards, inputs, módulos.
   Estilo editorial Digital Rider (sin glows ni “IA”).
   =================================================== */

:root {
  --violet:      var(--primary, #cd734f);
  --violet-soft: rgba(237, 183, 129, 0.12);
  --violet-glow: rgba(237, 183, 129, 0.22);
  --cyan:        var(--dr-teal, #add4d9);
  --rose:        #c98a78;
  --gold:        var(--dr-gold, #edb781);
  --text-dim:    rgba(242, 239, 233, 0.48);
  --text-muted:  rgba(242, 239, 233, 0.28);
  --border-soft: rgba(232, 230, 225, 0.08);
  --border-med:  rgba(232, 230, 225, 0.14);
  --card-bg:     rgba(38, 37, 34, 0.65);
}

/* Tipografía — alineada a la marca (sin Playfair / Outfit) */
h1, .display-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 800;
}

h2, h3 {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Acento de texto — sólido, no gradient clip */
.grad-text {
  color: var(--dr-gold, #edb781);
  background: none;
  -webkit-text-fill-color: unset;
}

/* ── Botones ─────────────────────────────────────── */
.btn-prime,
button.btn-prime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dr-terracotta, #cd734f);
  color: #fff;
  border: 1px solid var(--dr-terracotta, #cd734f);
  border-radius: var(--radius-pill, 999px);
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(205, 115, 79, 0.28);
}

.btn-prime:hover {
  background: var(--dr-terracotta-dark, #b45f3d);
  border-color: var(--dr-terracotta-dark, #b45f3d);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(205, 115, 79, 0.36);
  color: #fff;
}

.btn-prime:active { transform: translateY(0); }

.btn-ghost,
button.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary, #bdb8ae);
  border: 1px solid rgba(232, 230, 225, 0.18);
  border-radius: var(--radius-pill, 999px);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(237, 183, 129, 0.08);
  border-color: rgba(237, 183, 129, 0.4);
  color: var(--text-primary, #f2efe9);
}

.btn-violet,
button.btn-violet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237, 183, 129, 0.1);
  color: var(--dr-gold, #edb781);
  border: 1px solid rgba(237, 183, 129, 0.28);
  border-radius: var(--radius-pill, 999px);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-violet:hover {
  background: rgba(237, 183, 129, 0.18);
  border-color: rgba(237, 183, 129, 0.45);
  color: #f2efe9;
}

.btn-danger-soft,
button.btn-danger-soft {
  background: rgba(217, 112, 90, 0.1);
  color: #e8a090;
  border: 1px solid rgba(217, 112, 90, 0.28);
  border-radius: var(--radius-md, 10px);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-danger-soft:hover {
  background: rgba(217, 112, 90, 0.2);
  color: #fff;
}

.btn-pill { border-radius: 100px !important; }

.btn-enviar,
button[class*="btn-"],
input[type="submit"] {
  border-radius: var(--radius-md, 10px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* ── Cards ───────────────────────────────────────── */
.card-soul {
  background: var(--bg-elevated, #262522);
  border: 1px solid var(--border-subtle, rgba(232,230,225,0.09));
  border-radius: var(--radius-lg, 14px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
}

.card-soul:hover {
  border-color: rgba(237, 183, 129, 0.32);
  transform: translateY(-4px);
  background: var(--bg-elevated-hover, #2d2b28);
}

/* ── Motion quieta ───────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal-up { animation: revealUp 0.55s ease-out both; }

.float-icon { animation: none; }

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.3s; }

.divider-soul {
  height: 1px;
  background: var(--border-subtle, rgba(232,230,225,0.09));
  border: none;
  margin: 2rem 0;
}

/* Orbes apagados (si alguna plantilla aún los usa) */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.05;
}
.orb-violet { background: radial-gradient(circle, #cd734f, transparent 70%); }
.orb-cyan   { background: radial-gradient(circle, #add4d9, transparent 70%); }
.orb-rose   { background: radial-gradient(circle, #c98a78, transparent 70%); }

.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dr-gold, #edb781);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--dr-gold, #edb781);
  flex-shrink: 0;
}
.eyebrow::after { display: none; }

/* ── Inputs ──────────────────────────────────────── */
.input-soul,
.input-custom,
textarea.input-custom {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(232,230,225,0.12) !important;
  border-radius: var(--radius-md, 10px) !important;
  color: var(--text-primary, #f2efe9) !important;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.92rem !important;
  padding: 12px 16px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s !important;
  width: 100%;
}

.input-soul:focus,
.input-custom:focus {
  border-color: rgba(205, 115, 79, 0.55) !important;
  background: rgba(237, 183, 129, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(205, 115, 79, 0.12) !important;
}

.badge-violet {
  background: rgba(237,183,129,0.12);
  border: 1px solid rgba(237,183,129,0.28);
  color: var(--dr-gold, #edb781);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(180, 201, 149, 0.12);
  border: 1px solid rgba(180, 201, 149, 0.3);
  color: var(--dr-sage, #b4c995);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb {
  background: rgba(237, 183, 129, 0.35);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(237, 183, 129, 0.55); }

.alert {
  border-radius: var(--radius-md, 10px) !important;
  border: 1px solid rgba(232,230,225,0.1) !important;
  font-size: 0.9rem !important;
}

.alert-success {
  background: rgba(167, 193, 126, 0.1) !important;
  border-color: rgba(167, 193, 126, 0.28) !important;
  color: #c5d9a8 !important;
}

.alert-danger {
  background: rgba(217, 112, 90, 0.1) !important;
  border-color: rgba(217, 112, 90, 0.28) !important;
  color: #e8a090 !important;
}

.alert-info, .alert-primary {
  background: rgba(237,183,129,0.1) !important;
  border-color: rgba(237,183,129,0.28) !important;
  color: #edb781 !important;
}

.alert-warning {
  background: rgba(237,183,129,0.1) !important;
  border-color: rgba(237,183,129,0.28) !important;
  color: #f2d9bf !important;
}

.img-mystical {
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(232,230,225,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}

.img-mystical:hover { transform: scale(1.01); }

.img-avatar-glow {
  border-radius: 50%;
  border: 2px solid rgba(237,183,129,0.35);
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.img-avatar-glow:hover {
  border-color: rgba(237,183,129,0.6);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 10px);
  color: rgba(242,239,233,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(237,183,129,0.1);
  border-color: rgba(237,183,129,0.2);
  color: var(--dr-gold, #edb781);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.pattern-bg { position: relative; }
.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.module-hero {
  padding: 3.2rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.module-hero-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary, #f2efe9);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  line-height: 1.12;
}

.module-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary, #bdb8ae);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(32, 31, 28, 0.98);
  color: var(--dr-gold, #edb781);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid rgba(237,183,129,0.25);
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .btn-prime, .btn-ghost, .btn-violet {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .module-hero { padding: 2.5rem 1rem 1.5rem; }
}
