:root {
  --bg: #0f1024;
  --bg-soft: #171a3a;
  --card: #1e2148;
  --border: #322f66;
  --text: #f1eefc;
  --text-dim: #b9b4dd;
  --accent: #c9a3ff;
  --accent-2: #7ee8c7;
  --gold: #ecc98b;
  --danger: #ff9b9b;
  --radius: 14px;
  --maxw: 880px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1b1d47 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav.site a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

nav.site a:hover { color: var(--accent); }

.hero {
  text-align: center;
  padding: 40px 10px 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 26px;
}

.pill {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--accent-2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.grid-readings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.reading-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}

.reading-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.reading-card .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.reading-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.reading-card p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.reading-card .premium-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 8px;
  border-radius: 999px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin: 22px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.card h2 { margin-top: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #14163333;
  background-color: #12142e;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

textarea { min-height: 100px; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b6fe0);
  color: #17102b;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d9a85a);
  color: #241a06;
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.note strong { color: var(--text); }

.data-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: #14163a;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: #241a3d;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 18px 0;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  padding: 14px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-box {
  background: #14163a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 14px;
  white-space: normal;
}

.result-box p { margin: 0 0 12px; }
.result-box p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Lecturas "premium": insignia con el dato ya calculado (numero de    */
/* camino de vida / signo zodiacal) + secciones numeradas con icono,   */
/* en vez de un bloque de texto plano.                                 */
/* ------------------------------------------------------------------ */

.hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(160deg, #2a2360, #1c1d47);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: 0 0 0 1px rgba(201, 163, 255, 0.15), 0 8px 32px rgba(139, 111, 224, 0.25);
}

.hero-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #1c1330;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 4px 18px rgba(236, 201, 139, 0.35);
}

.hero-badge-symbol { font-size: 2.3rem; }

.hero-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(201, 163, 255, 0.14);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.reading-section {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.reading-section:last-child { margin-bottom: 0; }

.reading-section-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.reading-section-content { min-width: 0; flex: 1; }

.reading-section-content h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.reading-section-content p { margin: 0 0 10px; }
.reading-section-content p:last-child { margin-bottom: 0; }

.reading-section-content ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.reading-section-content ul:last-child { margin-bottom: 0; }
.reading-section-content li { margin-bottom: 6px; }
.reading-section-content strong { color: var(--gold); }

@media (max-width: 480px) {
  .hero-card { flex-direction: column; text-align: center; }
}

.paywall {
  background: linear-gradient(160deg, #2a2360, #1c1d47);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(201, 163, 255, 0.15), 0 8px 32px rgba(139, 111, 224, 0.25);
}

.paywall .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin: 4px 0 4px;
}

.paywall .price-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.paywall ul.features {
  list-style: none;
  text-align: left;
  max-width: 360px;
  margin: 16px auto 20px;
  padding: 0;
}

.paywall ul.features li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
  font-size: 0.94rem;
}

.paywall ul.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.error-box {
  background: #3a1c22;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.hidden { display: none !important; }

footer.site {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer.site a { color: var(--text-dim); margin: 0 8px; text-decoration: underline; }

.legal h1, .legal h2 { color: var(--text); }
.legal { color: var(--text-dim); }
.legal a { color: var(--accent); }

.daily-card {
  background: linear-gradient(160deg, #23204f, #171a3a);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.daily-card .angle {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.account-status {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 480px) {
  header.site { flex-direction: column; gap: 10px; text-align: center; }
  nav.site a { margin: 0 8px; }
}
