/* ============================================
   VARIABLES Y ESTILOS GLOBALES
   ============================================ */

:root {
  --bg: #080f1e;
  --bg2: #0e1829;
  --bg3: #141f33;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #e8eaf0;
  --text-muted: rgba(232, 234, 240, 0.5);
  --accent: #7c9fff;
  --accent2: #b98fff;
  --gold: #f0c060;
  --gold2: #e8a020;
  --success: #4ecca3;
  --error: rgba(255, 100, 100, 0.9);
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* FONDO ANIMADO */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(124, 159, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(185, 143, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* CONTENIDO */
.content {
  position: relative;
  z-index: 1;
}

/* BOTONES ATRÁS */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
  min-height: 44px;
  cursor: pointer;
}

.back-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* INPUTS Y FORMULARIOS */
input[type="text"],
input[type="email"],
input[type="search"] {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  outline: none;
  transition: all 0.25s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus {
  border-color: var(--accent);
  background: rgba(124, 159, 255, 0.08);
}

input::placeholder {
  color: var(--text-muted);
}

/* BOTONES PRIMARIOS */
button.primary-btn,
.primary-btn {
  padding: 16px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 600;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 52px;
  letter-spacing: 0.3px;
}

button.primary-btn:hover,
.primary-btn:hover {
  opacity: 0.9;
}

button.primary-btn:active,
.primary-btn:active {
  transform: scale(0.98);
}

/* BOTONES SECUNDARIOS */
button.secondary-btn,
.secondary-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(124, 159, 255, 0.12);
  border: 1px solid rgba(124, 159, 255, 0.3);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

button.secondary-btn:hover,
.secondary-btn:hover {
  background: rgba(124, 159, 255, 0.2);
}

/* TÍTULOS */
.page-title {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 6vw, 54px);
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

/* BADGES */
.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
}

.badge.oracion {
  background: rgba(124, 159, 255, 0.12);
  border: 1px solid rgba(124, 159, 255, 0.2);
  color: var(--accent);
}

.badge.constante {
  background: rgba(240, 192, 96, 0.1);
  border: 1px solid rgba(240, 192, 96, 0.2);
  color: var(--gold);
}

.badge.activo {
  background: rgba(78, 204, 163, 0.1);
  border: 1px solid rgba(78, 204, 163, 0.2);
  color: var(--success);
}

.badge.respondido {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 15px;
}

/* TOAST/NOTIFICACIONES */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2d4a;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }
}
