:root {
  --cream: #f7f2e8;
  --paper: #fffdf7;
  --white: #ffffff;
  --charcoal: #292624;
  --muted: #5e5852;
  --gold: #a86e00;
  --gold-ink: #765000;
  --gold-light: #f5e9c9;
  --coral: #a83b32;
  --teal: #14564f;
  --teal-light: #e4efeb;
  --purple: #604879;
  --purple-light: #f0eaf4;
  --hover-wash: rgba(255, 255, 255, .15);
  --nav-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  --primary: var(--charcoal);
  --accent: var(--coral);
  --light: var(--teal-light);
  --text: var(--charcoal);
  --card: var(--paper);
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ── MODO APRESENTAÇÃO ── */
body.presentation-mode header,
body.presentation-mode footer,
body.presentation-mode nav,
body.presentation-mode #progress-bar,
body.presentation-mode #music-player,
body.presentation-mode #slide-timer { display: none !important; }

body.presentation-mode #progress-track { display: block; }

body.presentation-mode main {
  max-width: 100%;
  padding: 1.5rem 3rem 2rem;
}

body.presentation-mode .card-body { font-size: 1.18rem; }
body.presentation-mode .card-header h2 { font-size: 1.4rem; }
body.presentation-mode .teoria-item p,
body.presentation-mode .conceito-item p,
body.presentation-mode .step-text span { font-size: 1rem; }

#btn-present {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}
#btn-present:hover { background: var(--charcoal); transform: scale(1.04); }
#btn-present:focus-visible,
#music-btn:focus-visible,
.nav-arrow:focus-visible,
.progress-dot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

#presentation-status {
  position: fixed;
  top: 54px;
  right: 16px;
  z-index: 201;
  max-width: min(24rem, calc(100vw - 32px));
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .85rem;
}

#presentation-status:empty { display: none; }

/* ── INDICADOR FINO DE PROGRESSO ── */
#progress-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 4px;
  background: rgba(41, 38, 36, .18);
}

#progress-fill {
  width: 14.2857%;
  height: 100%;
  background: #007bff;
  transition: width .3s ease;
}

/* ── BARRA DE PROGRESSO ── */
#progress-bar {
  background: #1e1c1a;
  padding: 5px 1rem 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.progress-steps {
  display: flex;
  gap: 7px;
  align-items: center;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.progress-dot:hover { background: rgba(255,255,255,0.45); }

.progress-dot.active {
  background: var(--coral);
  transform: scale(1.45);
}

#nav-arrows {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: none;
  gap: 16px;
  align-items: center;
}

body.presentation-mode #nav-arrows { display: flex; }

.nav-arrow {
  background: var(--charcoal);
  color: var(--gold-light);
  border: 2px solid var(--coral);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: background .2s, transform .15s;
}

.nav-arrow:hover { background: var(--coral); color: #fff; transform: scale(1.1); }
.nav-arrow:active { transform: scale(.95); }

.progress-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 36px;
  text-align: right;
}

/* ── FUNDO 3D COM LOGO ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(168,59,50,0.13) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(96,72,121,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(20,86,79,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

#bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.04;
  filter:
    drop-shadow(0 0 30px rgba(168,59,50,0.3))
    drop-shadow(0 10px 40px rgba(0,0,0,0.3));
  transform: perspective(800px) rotateX(8deg) rotateY(-6deg) scale(1.05);
  border-radius: 32px;
}

nav, main, header, footer, #progress-bar {
  position: relative;
  z-index: 1;
}

header {
  background: var(--paper);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(41, 38, 36, .1);
}

.brand-lockup {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand-copy {
  flex: 1;
}

.team-row {
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}

.team-member {
  width: 30px;
  height: 64px;
  flex-shrink: 0;
}

.brand-image {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.brand-eyebrow {
  margin-bottom: .2rem;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-title {
  color: var(--charcoal);
  font-size: 1.65rem;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ── TOOLTIP NOS PERSONAGENS ── */
.team-member-wrap {
  position: relative;
  cursor: default;
}

.team-member-wrap::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  max-width: min(15rem, calc(100vw - 2rem));
  transform: translateY(4px);
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  border: 1px solid var(--coral);
}

.team-member-wrap:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── TEMPORIZADOR ── */
#slide-timer {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--charcoal);
  color: var(--gold-light);
  border: 1px solid var(--coral);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  pointer-events: none;
}

body.presentation-mode #slide-timer { display: block; }

/* ── INTEGRANTES ── */
.integrantes-grid {
  margin-top: 1.2rem;
}

.integrantes-grid > .label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.integrantes-cards {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.integrante-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  background: var(--paper);
  border: 1px solid rgba(41,38,36,.1);
  border-radius: 12px;
  padding: .65rem .55rem;
  flex: 0 1 150px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}

.integrante-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }

.integrante-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.integrante-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.integrante-foto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.integrante-card strong {
  font-size: .9rem;
  color: var(--charcoal);
  line-height: 1.3;
}

.integrante-card span {
  font-size: .78rem;
  color: var(--muted);
}

/* ── NAVIGATION ── */
nav {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem;
  box-shadow: var(--nav-shadow);
}

.tab-button {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  padding: .5rem .85rem;
  transition: background .2s, color .2s, border-color .2s;
  border-radius: 4px 4px 0 0;
}

.tab-button:hover { background: var(--hover-wash); color: var(--white); }

.tab-button[aria-selected="true"] {
  border-bottom-color: var(--coral);
  color: var(--white);
}

.tab-button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.card[role="tabpanel"][hidden] { display: none; }

/* ── OBJECTIVE BANNER ── */
.objetivo {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 1.8rem 1.5rem;
}

.objetivo h2 {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .5rem;
}

.objetivo p {
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 780px;
  margin: 0 auto;
}

/* ── MAIN ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── CARD ── */
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card[role="tabpanel"] {
  display: flex;
  flex-direction: column;
  animation: panel-in 0.38s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.card-header .num {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-header .num-logo { padding: 2px; }

.num-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.card-header h2 { font-size: 1.1rem; font-weight: 700; }

/* ── IDEA ICONS ── */
.idea-icon {
  width: 1.3em;
  height: 1.3em;
  margin-left: .3rem;
  overflow: visible;
  vertical-align: -.28em;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 70%;
}

.idea-icon--group { animation: idea-pulse 2.4s ease-in-out infinite; }
.idea-icon--case { transform-origin: 38% 38%; animation: search-scan 3s ease-in-out infinite; }
.idea-icon--constructivism path { transform-box: fill-box; transform-origin: center; animation: block-build 2.8s ease-in-out infinite; }
.idea-icon--constructivism path:nth-child(2) { animation-delay: .18s; }
.idea-icon--constructivism path:nth-child(3) { animation-delay: .36s; }
.idea-icon--piaget circle { transform-box: fill-box; transform-origin: center; animation: thought-pulse 2.4s ease-in-out infinite; }
.idea-icon--piaget circle:nth-of-type(2n) { animation-delay: .3s; }
.idea-icon--vygotsky path { transform-box: fill-box; transform-origin: center; animation: dialogue-float 2.5s ease-in-out infinite; }
.idea-icon--vygotsky path:nth-child(2) { animation-delay: .4s; }
.idea-icon--practice { transform-origin: 20% 80%; animation: pencil-write 2s ease-in-out infinite; }
.idea-icon--conclusion path:nth-child(2) { stroke-dasharray: 24; stroke-dashoffset: 24; animation: conclusion-check 3s ease-in-out infinite; }

@keyframes idea-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(245, 233, 201, .8)); }
}
@keyframes search-scan {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-9deg); }
}
@keyframes block-build {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes thought-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
@keyframes dialogue-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes pencil-write {
  0%, 100% { transform: rotate(0); }
  35%, 65% { transform: rotate(-8deg); }
}
@keyframes conclusion-check {
  0%, 20% { stroke-dashoffset: 24; }
  55%, 100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .idea-icon,
  .idea-icon * { animation: none !important; }
  .card[role="tabpanel"] { animation: none; }
}

/* ── CARD BODY ── */
.card-body { flex: 1; padding: 1.75rem; }

/* ── CASE STUDY ── */
.caso-box {
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}

.caso-box .label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}

.caso-box p { font-size: 1rem; line-height: 1.75; }

.desafio {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
}

.desafio .label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: .4rem;
}

.desafio p { font-size: 1rem; line-height: 1.75; }

/* ── CONSTRUCTIVISM ── */
.bullets { list-style: none; display: flex; flex-direction: column; gap: .8rem; }

.bullets li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: 1rem;
}

.bullets li::before {
  content: '✦';
  color: var(--accent);
  font-size: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.conceito-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.2rem;
}

.conceito-item {
  background: var(--light);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.conceito-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.conceito-item:nth-child(2) { border-left-color: var(--gold); }
.conceito-item:nth-child(3) { border-left-color: var(--purple); }
.conceito-item:nth-child(4) { border-left-color: var(--coral); }

.conceito-item h3 { margin-bottom: .35rem; color: var(--charcoal); font-size: .98rem; }
.conceito-item p { color: var(--muted); font-size: .93rem; }

/* ── THEORIES ── */
.piaget-visual { margin: 0 auto 1.25rem; max-width: 844px; }
.piaget-visual img { display: block; width: 100%; height: auto; border-radius: 8px; }
.piaget-visual figcaption { margin-top: .4rem; color: var(--muted); font-size: .82rem; text-align: center; }

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

.piaget-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
  gap: 1.5rem;
}

.teoria-item {
  min-width: 0;
  background: var(--purple-light);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.piaget-flow .teoria-item { position: relative; }
.piaget-flow .teoria-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.35rem;
  color: var(--coral);
  font-size: 1.25rem;
  font-weight: 800;
  transform: translate(50%, -50%);
}

.teoria-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.teoria-item h3 {
  font-size: .95rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: .4rem;
}

.piaget-conceitos-title {
  margin-bottom: .75rem;
  color: var(--charcoal);
  font-size: 1.05rem;
}

.teoria-item p { font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* ── QUOTE BLOCK ── */
.quote-block {
  position: relative;
  background: var(--charcoal);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 1.4rem 1.6rem 1.4rem 3.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  left: 0.9rem;
  top: 0.2rem;
  font-size: 3.8rem;
  color: var(--coral);
  line-height: 1;
  font-style: normal;
}

.quote-block cite {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── SOLUTION ── */
.pratica-intro {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

.steps { display: flex; flex-direction: column; gap: 1rem; }

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover { transform: translateX(4px); box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.step-num {
  background: var(--purple);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong { display: block; font-size: 1rem; color: var(--primary); margin-bottom: 2px; }
.step-text span { font-size: .93rem; color: var(--muted); }

/* ── ORGANIZATION ── */
.organizacao { margin-top: 1.5rem; }
.organizacao-titulo { font-size: .85rem; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  margin-top: .5rem;
}

.org-item {
  background: var(--light);
  border-radius: 8px;
  padding: .9rem 1rem;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.org-item .icon { font-size: 1.6rem; margin-bottom: .4rem; }
.org-item p { font-size: .88rem; font-weight: 600; color: var(--charcoal); }

/* ── CONCLUSION ── */
.conclusao-text {
  font-size: 1.05rem;
  color: var(--muted);
  border-left: 4px solid var(--primary);
  padding-left: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.proposta-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(20, 86, 79, .16);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  background: var(--paper);
}

.proposta-card h3 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.05rem;
}

.proposta-pilares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

.proposta-pilar {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.proposta-pilar:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.proposta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.proposta-pilar strong {
  display: block;
  font-size: .95rem;
  color: var(--charcoal);
  margin-bottom: .2rem;
}

.proposta-pilar p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 560px) {
  .proposta-pilares { grid-template-columns: 1fr; }
}

.conclusao-brand {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem -1.75rem 0;
  padding: 2rem 1.75rem;
  color: var(--gold-light);
  background: var(--charcoal);
  border-top: 5px solid var(--coral);
}

.conclusao-logo {
  display: block;
  width: 128px;
  height: 128px;
  border: 5px solid var(--cream);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  flex-shrink: 0;
}

.conclusao-brand-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.conclusao-brand .footer-eyebrow {
  color: var(--gold-light);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(168, 59, 50, .38);
  margin: 0;
}

.conclusao-brand .footer-eyebrow::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin: .55rem auto 0;
  border-radius: 2px;
  background: var(--coral);
}

.conclusao-brand .footer-title {
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1.2;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: .82rem;
  color: var(--gold-light);
  background: var(--charcoal);
  border-top: 5px solid var(--coral);
}

#music-player {
  margin: .75rem auto 0;
}

#music-btn {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  color: #fff;
  background: #1a3a5c;
  border: 2px solid transparent;
  border-radius: 30px;
  font: 600 .9rem 'Segoe UI', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: background .2s, transform .1s;
}

#music-btn:hover { background: #2563a8; transform: scale(1.04); }
#music-btn.playing { color: #1a3a5c; background: #f0a500; }
#music-status { display: block; margin-top: .4rem; color: #fff; font-size: .85rem; }

/* ── PRINT / PDF ── */
@media print {
  @page { margin: 1.5cm; }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  body::before,
  #bg-logo,
  #progress-track,
  #progress-bar,
  #slide-timer,
  #btn-present,
  #presentation-status,
  #music-player,
  nav,
  footer,
  #nav-arrows {
    display: none !important;
  }

  main {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .card,
  .card[role="tabpanel"][hidden] {
    display: flex !important;
    margin: 0;
    box-shadow: none;
    border: 1px solid #ccc;
    animation: none;
    break-after: page;
    page-break-after: always;
  }

  .card:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .card-header,
  .quote-block,
  .conclusao-brand {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .integrantes-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integrante-card { min-width: 0; }
  .integrante-card strong { overflow-wrap: anywhere; }
  .piaget-flow { grid-template-columns: 1fr; gap: 1rem; }
  .piaget-flow .teoria-item:not(:last-child)::after {
    content: '↓';
    top: auto;
    right: 50%;
    bottom: -1rem;
    transform: translate(50%, 50%);
  }
}

@media (max-width: 560px) {
  .conclusao-brand { flex-direction: column; gap: 1rem; text-align: center; }
  .conclusao-logo { width: 100px; height: 100px; }
  .conclusao-brand .footer-title { font-size: 1.5rem; }
  header { padding: .75rem 1rem; }
  .brand-lockup { gap: .5rem; }
  .brand-image { width: 56px; height: 56px; border-radius: 8px; }
  .brand-copy { min-width: 0; }
  .brand-title { font-size: 1.15rem; }
  .brand-subtitle { font-size: .72rem; line-height: 1.3; }
  .team-row { gap: .12rem; }
  .team-member { width: 16px; height: 38px; }
  nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: .35rem .5rem; scrollbar-width: thin; }
  .tab-button { padding: .45rem .6rem; }
  .teoria-grid { grid-template-columns: 1fr; }
  .conceito-grid { grid-template-columns: 1fr; }
  body.presentation-mode main { padding: 1rem; }
  .card-body { padding: 1.1rem; }
  .quote-block { padding: 1.2rem 1rem 1.2rem 2.7rem; overflow-wrap: anywhere; }
  .step-text { min-width: 0; overflow-wrap: anywhere; }
  #btn-present { top: auto; right: 12px; bottom: 12px; }
  body.presentation-mode #btn-present { top: 12px; bottom: auto; }
  #presentation-status { top: auto; right: 12px; bottom: 72px; }
  body.presentation-mode #presentation-status { top: 58px; bottom: auto; }
  #music-btn { width: min(100%, 20rem); }
  .integrantes-cards { gap: .55rem; }
}

@media (max-width: 380px) {
  .integrantes-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #progress-fill { transition: none; }
}
