:root {
  --pink: #ff6b9d;
  --pink-dark: #e85589;
  --cream: #fff8f5;
  --text: #2d2233;
  --text-light: #7a6f7f;
  --border: #f0e0e6;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.logo { font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--text); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.main-nav a:hover { color: var(--pink); }

@media (max-width: 480px) {
  .logo { font-size: 1.05rem; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 0.85rem; }
}

/* Screens */
main.container { padding-top: 48px; padding-bottom: 48px; min-height: 60vh; }
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Intro */
#screen-intro { text-align: center; padding: 32px 0; }
#screen-intro h1 { font-size: 1.9rem; margin-bottom: 12px; }
.subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 28px; }
.micro-note { color: var(--text-light); font-size: 0.85rem; margin-top: 14px; }

.btn-primary {
  background: var(--pink);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--pink-dark); }
.btn-primary:active { transform: scale(0.98); }

/* Progress bar */
.progress-bar {
  background: var(--border);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 32px;
}
.progress-fill {
  background: var(--pink);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

/* Question */
.question-title { font-size: 1.3rem; margin-bottom: 24px; text-align: center; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 16px 20px;
  border-radius: 14px;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option-btn:hover { border-color: var(--pink); background: #fff0f5; }

.options-binary { flex-direction: row; flex-wrap: wrap; }
.options-binary .option-btn { flex: 1 1 45%; text-align: center; }
@media (max-width: 480px) {
  .options-binary .option-btn { flex: 1 1 100%; }
}

/* Result: mood reveal */
.mood-reveal { text-align: center; padding: 8px 0 24px; }
.mood-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.mood-emoji { font-size: 2.6rem; display: block; }
.rarity-line {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 12px;
}
.mood-title { font-size: 2rem; margin: 10px 0 14px; }
.mood-tagline {
  font-style: italic;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.share-whatsapp { background: #25d366; color: white; }
.share-whatsapp:hover { background: #1ebe5a; }
.share-copy { background: var(--white); color: var(--text); border: 2px solid var(--border); }
.share-copy:hover { border-color: var(--pink); }
.share-download { background: var(--text); color: white; }
.share-download:hover { background: #46394f; }

.result-divider {
  border-top: 1px dashed var(--border);
  margin: 8px 0 28px;
}

.real-type { text-align: center; }
.code-title { font-size: 2.2rem; letter-spacing: 4px; margin: 8px 0 16px; }
.code-breakdown { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.code-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.code-chip strong { color: var(--pink-dark); margin-right: 4px; }

.section-subtitle {
  font-size: 1.1rem;
  text-align: left;
  margin: 8px 0 12px;
}
.tips-list { text-align: left; margin: 0 0 28px 20px; }
.tips-list li { margin-bottom: 8px; color: var(--text); }

.real-type .product-list { text-align: left; margin-top: 4px; }

/* Contraparte de reparto (compatibilidad) */
.costar-section { text-align: center; }
.costar-title { text-align: center; }
.costar-intro {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}
.costar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.mood-avatar-sm { width: 64px; height: 64px; flex-shrink: 0; box-shadow: none; }
.mood-avatar-sm .mood-emoji { font-size: 1.7rem; }
.costar-info h5 { font-size: 1rem; margin-bottom: 4px; }
.costar-info p { font-size: 0.85rem; color: var(--text-light); }

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

/* Result (legacy badge shared by both sections) */
.result-badge {
  display: inline-block;
  background: var(--pink);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
#screen-result h2 { font-size: 1.7rem; margin-bottom: 8px; }
.result-desc { color: var(--text-light); margin-bottom: 28px; }

.product-list { display: flex; flex-direction: column; gap: 16px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.product-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-info p { color: var(--text-light); font-size: 0.9rem; }
.product-cta {
  background: var(--pink);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.product-cta:hover { background: var(--pink-dark); }

.retry-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--text-light);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.disclosure { color: var(--text-light); font-size: 0.8rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--text-light); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--pink); }

/* Simple content page (about / contact / privacy) */
.simple-page { padding: 32px 0 48px; max-width: 560px; margin: 0 auto; }
.simple-page h1 { font-size: 1.8rem; margin-bottom: 16px; }
.simple-page h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.simple-page p { margin-bottom: 14px; color: var(--text); }
.simple-page a { color: var(--pink-dark); }
.simple-page .updated { color: var(--text-light); font-size: 0.85rem; margin-bottom: 24px; }

/* Blog listing */
.page-header { text-align: center; padding: 32px 0 8px; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-header p { color: var(--text-light); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 32px 0;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.blog-card .tag {
  display: inline-block;
  background: #fff0f5;
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.blog-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { color: var(--text-light); font-size: 0.9rem; }

/* Article page */
.article-header { padding: 32px 0 8px; }
.article-header .tag {
  display: inline-block;
  background: #fff0f5;
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-header h1 { font-size: 1.9rem; margin-bottom: 8px; }
.article-meta { color: var(--text-light); font-size: 0.85rem; }

.article-body { padding: 24px 0 8px; }
.article-body h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { margin-bottom: 8px; }

.cta-box {
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}
.cta-box h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cta-box p { color: var(--text-light); margin-bottom: 16px; }

.back-link {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 24px 0 8px;
}
.back-link:hover { color: var(--pink); }

/* Mobile */
@media (max-width: 480px) {
  #screen-intro h1 { font-size: 1.5rem; }
  .product-card { flex-direction: column; align-items: stretch; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}
