  :root {
      --cr-red: #ce1126;
      --cr-blue: #002b7f;
      --bg: #f4f6f9;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto;
      background: var(--bg);
      color: var(--text);
    }

    header {
      background: linear-gradient(90deg, var(--cr-blue), var(--cr-red));
      color: #fff;
      padding: 2rem 1rem;
      text-align: center;
    }

    header h1 { margin: 0; }

    main {
      max-width: 1300px;
      margin: auto;
      padding: 2rem 1rem;
    }

    .controls {
      display: flex;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .controls input {
      flex: 1;
      padding: .8rem 1rem;
      border-radius: 12px;
      border: 1px solid #d1d5db;
      font-size: 1rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    /* Cards */
    .card_estado {
      background: var(--card);
      border-radius: var(--radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    /* Context */
    .context-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
      gap: 1rem;
    }

    .context-item {
      border-left: 4px solid var(--primary);
      padding-left: 1rem;
    }

    .context-item h3 {
      margin: 0 0 0.3rem;
      font-size: 1rem;
    }


    .card {
      background: var(--card);
      border-radius: 18px;
      box-shadow: 0 12px 28px rgba(0,0,0,.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      background: linear-gradient(90deg, #eef2ff, #fff);
    }

    .photo {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--cr-blue);
    }

    .card-header h2 {
      margin: 0;
      font-size: 1.2rem;
    }

    .party {
      color: var(--cr-blue);
      font-weight: 700;
      font-size: .9rem;
    }

    .card-body {
      padding: 1rem 1.2rem 1.4rem;
      font-size: .95rem;
    }

    .section { margin-bottom: .7rem; }
    .section strong { color: var(--cr-red); }

    .bars { margin-top: .5rem; }

    .bar {
      height: 8px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: .4rem;
    }

    .bar span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--cr-blue), var(--cr-red));
    }

    .toggle {
      margin-top: .8rem; 
      background: none;
      border: none;
      color: var(--cr-blue);
      font-weight: 600;
      cursor: pointer;
    }

    .plan {
      display: none;
      margin-top: .8rem;
      background: #f9fafb;
      padding: .8rem;
      border-radius: 12px;
      font-size: .9rem;
      line-height: 1.5;
    }

   .site-footer {
  background: linear-gradient(90deg, var(--cr-blue), var(--cr-red));
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.site-footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.4rem 0;
  font-weight: 400;
}

.site-footer .footer-quote {
  margin-top: 0.8rem;
  font-style: italic;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
  .site-footer {
    padding: 1.5rem 1rem;
  }

  .site-footer .footer-content {
    font-size: 0.9rem;
  }
}


.btn-historico {
  text-decoration: none;
  background: linear-gradient(90deg, var(--cr-blue), var(--cr-red));
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-historico:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 700px) {
  .controls {
    flex-direction: column;
  }

  .btn-historico {
    width: 100%;
    justify-content: center;
  }
}