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

pais {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  min-height: 100vh;
  gap: 25px;
}

pais > nombre {
  display: block;
  font-size: 2.2rem;
  color: #4caf50;
  text-align: center;
  font-weight: bold;
  width: 100%;
  max-width: 600px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 15px;
}

pais > nombre::before {
  content: "País: ";
}

regresar {
  display: block;
  width: 100%;
  max-width: 600px;
}

a {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  background-color: #4caf50;
  color: #121212;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
  transform: scale(1.03);
}

departamento {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  background-color: #1e1e1e;
  border-left: 5px solid #4caf50;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  gap: 12px;
}

departamento::before {
  content: "ID: " attr(id);
  display: block;
  font-size: 0.85rem;
  color: #a5d6a7;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -15px;
}

departamento > nombre {
  display: block;
  font-size: 1.4rem;
  color: #a5d6a7;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 5px;
  margin-top: 15px;
}

departamento > nombre::before {
  content: "Departamento: ";
}

cabecera,
habitantes,
altura,
moneda,
codigo,
idioma {
  display: block;
  font-size: 1.1rem;
  line-height: 1.5;
}

cabecera::before {
  content: "Cabecera: ";
  font-weight: 600;
  color: #4caf50;
}

habitantes::before {
  content: "Habitantes: ";
  font-weight: 600;
  color: #4caf50;
}

altura::before {
  content: "Altura: ";
  font-weight: 600;
  color: #4caf50;
}

moneda::before {
  content: "Moneda: ";
  font-weight: 600;
  color: #4caf50;
}

idioma::before {
  content: "Idioma: ";
  font-weight: 600;
  color: #4caf50;
}

codigo {
  color: #a5d6a7;
  font-weight: 500;
}
