/* =============================================
   INVOLÚCRATE GUATEMALA ONG — En Construcción
   Fondo claro | Color: #0e57a9 | Montserrat
   ============================================= */

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

:root {
  --blue:       #0e57a9;
  --blue-light: #3a82d4;
  --blue-pale:  #e8f2fb;
  --accent:     #0e57a9;
  --text:       #0a2a50;
  --text-soft:  #5a7a9a;
  --white:      #ffffff;
  --bg:         #f4f8fd;
}

html, body {
  height: 100%;
  min-height: 100vh;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(160deg, #ffffff 0%, #eaf3fc 55%, #d6e9f8 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ── Canvas puzzle ── */
#puzzleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 620px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card ── */
.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14,87,169,0.1);
  border-radius: 28px;
  padding: 3rem 2.8rem 2.6rem;
  text-align: center;
  width: 100%;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) both;
  box-shadow:
    0 4px 24px rgba(14,87,169,0.08),
    0 32px 80px rgba(14,87,169,0.10);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.logo {
  display: block;
  width: 200px;
  max-width: 65%;
  margin: 0 auto 1.4rem;
  animation: logoPop 1s cubic-bezier(.34,1.56,.64,1) 0.15s both;
  filter: drop-shadow(0 6px 18px rgba(14,87,169,0.15));
}

@keyframes logoPop {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Badge ── */
.badge {
  display: block;
  width: fit-content;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 100px;
  padding: 0.3rem 1.1rem;
  margin: 0 auto 1.6rem;
  animation: fadeUp 0.7s ease 0.35s both;
  text-transform: uppercase;
  background: rgba(14,87,169,0.06);
}

/* ── Título ── */
.title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
  animation: fadeUp 0.7s ease 0.45s both;
}

.highlight {
  color: var(--blue);
}

/* ── Subtítulo ── */
.subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease 0.52s both;
}

/* ── Progress ── */
.progress-wrap {
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease 0.58s both;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pct { color: var(--blue); }

.progress-track {
  background: var(--blue-pale);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  box-shadow: 0 0 10px rgba(14,87,169,0.3);
  transition: width 1.8s cubic-bezier(.22,1,.36,1);
}

/* ── Steps ── */
.steps {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  animation: fadeUp 0.7s ease 0.65s both;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b0c4d8;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: 1;
  min-width: 64px;
  max-width: 110px;
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ccdff0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #b0c4d8;
}

.step.done { color: var(--blue); }
.step.done .step-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.step.active { color: var(--blue); }
.step.active .step-icon {
  border-color: var(--blue);
  background: rgba(14,87,169,0.08);
}

/* Punto pulsante */
.pulse-dot {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14,87,169,0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(14,87,169,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(14,87,169,0);  }
  100% { box-shadow: 0 0 0 0   rgba(14,87,169,0);  }
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 10;
  padding: 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  letter-spacing: 0.02em;
}

.dot { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .card { padding: 2rem 1.4rem 1.8rem; }
  .subtitle br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
