:root {
  --bg: #f9fafb;
  --text-primary: #0b3b46;
  --text-secondary: #3f7080;
  --accent: #107a47;
  --accent-light: #38a969;
  --header-bg: #004085;
  --card-bg: #fff;
  --border-color: #d1dfe9;
  --border-accent: #38a969;
  --maxw: 900px;
  --shadow: rgba(16,115,74,0.15);
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  background: var(--header-bg);
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 4px;
  user-select: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

main {
  max-width: var(--maxw);
  margin: 0 auto 5rem auto;
  padding: 0 1rem;
}

section.year-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px var(--shadow);
  border-left: 6px solid var(--accent);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
}

section.year-section:hover {
  box-shadow: 0 14px 45px var(--shadow);
  transform: translateY(-6px);
}

h2.year-title {
  margin: 0 0 0.4rem 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.95rem;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 14px;
}

h2.year-title::before {
  content: "📜";
  font-size: 1.8rem;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.15));
  user-select: none;
}

.btn-original {
  display: inline-block;
  margin-bottom: 1.1rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-original:hover,
.btn-original:focus {
  background-color: var(--accent-light);
  outline: none;
}

.subtitle {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

p.process {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

ul.changes {
  margin: 0 0 1.3rem 1.6rem;
  padding: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  list-style: disc;
  font-weight: 500;
}

ul.changes li {
  margin-bottom: 0.5rem;
}

.people {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.people span {
  background: #d6e9db;
  color: #0a481a;
  padding: 6px 14px;
  border-radius: 24px;
  font-weight: 700;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease;
  cursor: default;
}

.people span:hover {
  background-color: var(--accent-light);
  color: white;
}

.curio {
  font-size: 1rem;
  color: var(--text-secondary);
  background: #eaf8eb;
  border-left: 6px solid var(--accent);
  padding: 12px 18px;
  font-style: italic;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.8rem;
  user-select: none;
  box-shadow: 0 1px 6px rgba(23,95,43,0.1);
}

.sources {
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  user-select: text;
}

.sources a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.sources a:hover {
  color: var(--accent-light);
}

.reforma {
  background: #dff0d8;
  border-left: 5px solid var(--border-accent);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  margin-top: 2rem;
  box-shadow: 0 1px 8px rgba(56,161,105,0.15);
}

.reforma h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--border-accent);
  font-weight: 700;
}

.reforma p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.reforma ul {
  margin-left: 1.5rem;
  list-style: circle;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.reforma ul li {
  margin-bottom: 0.4rem;
}

.reforma .sources {
  border-top: none;
  padding-top: 0;
  font-size: 0.8rem;
  margin-top: 0;
}

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  user-select: none;
  padding-bottom: 40px;
}

#creadores {
  position: relative;
  background: #107a47;
  color: white;
  padding: 4rem 1rem 6rem 1rem;
  overflow: hidden;
  text-align: center;
  margin-bottom: 3rem;
}

#creadores h2 {
  font-size: 2.4rem;
  margin-bottom: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}

#creadores ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 2.2;
}

#creadores ul li {
  margin: 0.6rem 0;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.creators-content {
  position: relative;
  z-index: 1;
}


@media (max-width: 620px) {
  h2.year-title {
    font-size: 1.6rem;
    gap: 10px;
  }
  main {
    margin: 0 12px 5rem 12px;
  }
  .people {
    justify-content: center;
  }
  section.year-section {
    padding: 1.5rem 1.8rem 2rem 1.8rem;
    margin-bottom: 2rem;
  }
  .reforma {
    padding: 14px 16px;
    margin-top: 1.5rem;
  }
  p.process,
  .reforma p {
    font-size: 0.95rem;
  }
  ul.changes {
    font-size: 0.9rem;
    margin-left: 1.2rem;
  }
  .curio {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
  .btn-original {
    font-size: 0.95rem;
    padding: 8px 18px;
  }
}

@media (max-width: 400px) {
  h2.year-title {
    font-size: 1.4rem;
  }
  body {
    font-size: 14px;
  }
  .btn-original {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
}
