:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f1ea;
  --muted: #bdb5ab;
  --accent: #d6a46d;
  --accent-2: #8f5cff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(143, 92, 255, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(214, 164, 109, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.theme-home .hero,
.theme-home .index-section,
.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.home {
  padding: 56px 0 72px;
}

.hero {
  padding: 56px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.index-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.notes-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.note-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.note-link:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 164, 109, 0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.note-number {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.note-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.note-subtitle {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

/* páginas internas */

.page-shell {
  padding: 42px 0 72px;
}

.page-topbar {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.page-header {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.page-number {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-description {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.notes-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.note-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 35%);
  pointer-events: none;
}

.note-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.note-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.note-content {
  position: relative;
  z-index: 1;
  line-height: 1.9;
  color: #f2ede6;
  white-space: pre-line;
}

.note-card--mica {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
}

.note-card--leo {
  background:
    linear-gradient(180deg, rgba(214,164,109,0.10), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
}

.page-footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* tonos emocionales reutilizables */

.theme-soft-romance {
  --bg: #1a1418;
  --panel: rgba(255, 235, 240, 0.07);
  --text: #fff6f8;
  --muted: #dcc8ce;
  --accent: #ff9fb2;
  --accent-2: #ffd7df;
}

.theme-sadness {
  --bg: #0d1118;
  --panel: rgba(166, 188, 255, 0.05);
  --text: #eef3ff;
  --muted: #a8b4cf;
  --accent: #8ea7ff;
  --accent-2: #9bd3ff;
}

.theme-loneliness {
  --bg: #0a0c10;
  --panel: rgba(255,255,255,0.04);
  --text: #f4f4f2;
  --muted: #9fa5ab;
  --accent: #c5c7ca;
  --accent-2: #7d8793;
}

.theme-joy {
  --bg: #15120b;
  --panel: rgba(255, 209, 102, 0.08);
  --text: #fff8ea;
  --muted: #e2d4af;
  --accent: #ffca5c;
  --accent-2: #ff9d4d;
}

@media (max-width: 860px) {
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .index-section,
  .page-header,
  .note-card {
    padding: 22px;
  }
}