/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Nunito:wght@600;700&family=Poppins:wght@500;600&family=Quicksand:wght@500;600&family=Lora:ital,wght@0,400;1,400&family=Inter:wght@400;500&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --olive:       #BDB96A;
  --lavender:    #C1BFFF;
  --purple:      #CF6DFC;
  --purple-dark: #8B3CC4;
  --text:        #111111;
  --text-muted:  #555555;
  --border:      #e0ddb5;
  --sidebar-bg:  #F7F1E8;
  --sidebar-w:   270px;
  --header-h:    0px;
  --content-max: 860px;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Typography ── */
h1 { font-family: 'Baloo 2', cursive; font-weight: 800; }
h2 { font-family: 'Nunito', sans-serif; font-weight: 700; }
h3 { font-family: 'Poppins', sans-serif; font-weight: 600; }
h4 { font-family: 'Quicksand', sans-serif; font-weight: 600; }
em { font-family: 'Lora', serif; font-style: italic; }
strong { font-family: 'Lora', serif; font-weight: 400; font-style: normal; }

a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout shell ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.body-wrapper {
  display: flex;
  flex: 1;
}

/* ── Main content ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 3rem 2.5rem 5rem;
  max-width: calc(var(--content-max) + 5rem);
}

/* ── Sections ── */
.content-section { margin-bottom: 3.5rem; }

.content-section h2 {
  font-size: 1.6rem;
  color: var(--text);
  border-bottom: 2px solid var(--olive);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

.content-section h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}

.content-section h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0.4rem;
}

.content-section p { margin-bottom: 1rem; }

.content-section ul,
.content-section ol,
.project-section ul,
.project-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li,
.project-section li { margin-bottom: 0.4rem; }

/* ── Video embed ── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 1.5rem 0;
  background: #000;
  border: 2px solid var(--border);
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-notice {
  background: rgba(193, 191, 255, 0.25);
  border-left: 3px solid var(--lavender);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Workflow diagram ── */
.workflow {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
}

.workflow-step .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.workflow-arrow { color: var(--olive); font-size: 1.4rem; font-weight: bold; }

/* ── Info box ── */
.info-box {
  background: rgba(193, 191, 255, 0.18);
  border: 1.5px solid var(--lavender);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Week page title ── */
.week-title {
  font-family: 'Baloo 2', cursive;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.week-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* ── Recursos section ── */
.recursos { margin-top: 2.5rem; }

.recursos > h2 {
  font-size: 1.2rem;
  color: var(--text);
  border-bottom: 2px solid var(--olive);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

.recurso-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.recurso-icon { font-size: 1.4rem; line-height: 1; padding-top: 2px; flex-shrink: 0; }
.recurso-body { flex: 1; }

.recurso-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.recurso-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.recurso-list li::before {
  content: "→ ";
  color: var(--olive);
  font-size: 0.85rem;
}

.recurso-link { font-size: 0.9rem; }

.recurso-link.placeholder {
  color: var(--text-muted);
  font-style: italic;
  pointer-events: none;
}

/* ── Prev / Next nav ── */
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  gap: 1rem;
}

.week-nav-prev,
.week-nav-next { flex: 1; }

.week-nav-next { text-align: right; }

.week-nav a {
  display: inline-block;
  color: var(--purple-dark);
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--lavender);
  border-radius: 6px;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.week-nav a:hover {
  background: rgba(193, 191, 255, 0.25);
  border-color: var(--purple);
  text-decoration: none;
}

/* ── Site footer ── */
.site-footer {
  margin-left: var(--sidebar-w);
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--purple-dark); }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 0.25rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-content { margin-left: 0; padding: 1.5rem 1.1rem 3rem; }
  .week-title   { font-size: 1.6rem; }
  .week-nav     { flex-direction: column; align-items: stretch; }
  .week-nav-next { text-align: left; }
}
