@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Lora:ital@1&display=swap');

:root {
  --bg: #050A39;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(139, 146, 196, 0.25);
  --text: #FFFFFF;
  --text-muted: #8B93C4;
  --mint: #00FF88;
  --mint-dark: #04342C;
  --sky: #00BFFF;
  --violet: #8B5CF6;
  --danger: #F09595;
  --font-body: 'Montserrat', sans-serif;
  --font-voice: 'Lora', serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

body {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

body.page-inicio {
  background-image: linear-gradient(rgba(5, 10, 57, 0.75), rgba(5, 10, 57, 0.75)), url('../brand/cerebro-mente-foco-digital.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}

h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 12px;
}

p {
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

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

.card {
  display: block;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.icon {
  font-size: 20px;
  line-height: 1;
}

.icon-mint { color: var(--mint); }
.icon-sky { color: var(--sky); }
.icon-violet { color: var(--violet); }

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--sky);
}

input[type="text"], textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

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

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

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: var(--mint);
  color: var(--mint-dark);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.error-message {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--mint);
}

.checklist-item label {
  font-size: 15px;
}

.checklist-item .letter {
  font-weight: 700;
  color: var(--mint);
  margin-right: 4px;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 136, 0.08);
  border: 0.5px solid rgba(0, 255, 136, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.streak-badge .streak-number {
  color: var(--mint);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.top-bar a {
  color: var(--text-muted);
  font-size: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cover-card {
  display: block;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.cover-card span {
  display: block;
  font-size: 12px;
  padding: 8px;
}

.timer-display {
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 24px 0;
}

.timer-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.onboarding-slide {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding-slide .letter-big {
  font-family: var(--font-voice);
  font-style: italic;
  font-size: 56px;
  color: var(--mint);
  margin: 0;
}

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dots span.active {
  background: var(--mint);
}

.hidden {
  display: none !important;
}

.step-header {
  margin-bottom: 16px;
}

.step-header .step-count {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 4px;
}

.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.step-nav button {
  flex: 1;
}

.phase-display {
  text-align: center;
  padding: 32px 0;
}

.phase-display .phase-label {
  font-size: 28px;
  font-weight: 500;
  color: var(--mint);
  margin: 0 0 4px;
}

.phase-display .phase-seconds {
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.grounding-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.grounding-list li {
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.grounding-list li .num {
  color: var(--mint);
  font-weight: 700;
  margin-right: 8px;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.summary-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.week-strip {
  display: flex;
  gap: 6px;
  margin: 12px 0 20px;
}

.week-strip .day-dot {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.week-strip .day-dot.complete {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--mint);
}

.module-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.accent-cyan { color: var(--sky); }
.accent-amber { color: #FFB03B; }
.accent-mint { color: var(--mint); }
